/* ==========================================================================
   DiagTeam — shared site stylesheet
   Light, professional visual system (replaces the previous dark/neon theme).
   Same custom-property and class names as before are reused throughout the
   site, so every page picks this up without markup changes.
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #ffffff;
  --bg2: #f5f6f8;
  --bg3: #eceef1;

  /* text */
  --text: #16213a;
  --text-muted: #5b6472;
  --text-dim: #98a1ac;

  /* lines */
  --border: #e3e6ea;

  /* brand accent — muted teal-green (kept from the old brand, desaturated) */
  --green: #1f6f54;
  --green-light: #2f8d6c;
  --green-pale: #e9f3ef;
  --green-rgb: 31, 111, 84;

  /* status */
  --red: #b3453a;
  --red-rgb: 179, 69, 58;
  --orange: #c9822b;
  --orange-rgb: 201, 130, 43;

  /* type — one family everywhere; names kept for compatibility */
  --serif: 'Inter', system-ui, -apple-system, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Inter', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 1px 2px rgba(16,33,58,0.05);
  --shadow-md: 0 6px 20px rgba(16,33,58,0.07);
  --shadow-lg: 0 16px 40px rgba(16,33,58,0.10);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

/* Fond beige (même teinte que le rapport) pendant la phase de questions du test */
body.bg-beige { background: #F5F1E8; }

h1, h2, h3 { color: var(--text); }
strong { color: var(--text); font-weight: 600; }
a { color: var(--green); text-decoration-color: rgba(var(--green-rgb), 0.35); }
a:hover { color: var(--green-light); }
p { margin-bottom: 1rem; }

/* ==========================================================================
   NAV
   ========================================================================== */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.125rem 2.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--text);
  text-decoration: none;
}

.nav-logo-mark {
  width: 32px; height: 32px;
  background: var(--green);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 11px; font-weight: 700; color: #fff;
  letter-spacing: 0.03em;
}

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; text-decoration: none; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--green); color: #fff !important;
  padding: 0.55rem 1.25rem; border-radius: 8px;
  font-size: 0.875rem !important; font-weight: 600;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--green-light) !important; }

.nav-back { font-size: 0.875rem; color: var(--text-muted); text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.nav-back:hover { color: var(--text); }

.nav-lang {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; border: 1px solid var(--border); padding: 0.3rem 0.7rem; border-radius: 6px;
  transition: border-color 0.15s, color 0.15s;
}
.nav-lang:hover { border-color: var(--green); color: var(--green); }

.nav-tag {
  font-size: 0.75rem; font-weight: 600; color: var(--green);
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--green-pale); padding: 4px 12px; border-radius: 20px;
}

/* ==========================================================================
   BUTTONS (shared)
   ========================================================================== */
.btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fff !important;
  padding: 0.875rem 2rem; border-radius: 8px;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  border: none; cursor: pointer; font-family: var(--sans);
}
.btn-main:hover:not(:disabled) { background: var(--green-light); transform: translateY(-1px); }
.btn-main:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--text); font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--border); padding: 0.875rem 1.75rem; background: transparent;
  border-radius: 8px; transition: border-color 0.15s, color 0.15s; cursor: pointer; font-family: var(--sans);
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--green); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0.625rem 1.25rem; border-radius: 8px; font-size: 0.875rem; font-weight: 600; cursor: pointer; font-family: var(--sans); border: none; transition: all 0.15s; white-space: nowrap; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-light); }
.btn-outline { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text-muted); color: var(--text); }
.btn-red { background: transparent; color: var(--red); border: 1px solid rgba(var(--red-rgb),0.3); }
.btn-red:hover { background: rgba(var(--red-rgb),0.08); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; padding: 7rem 2.5rem 4rem; position: relative; overflow: hidden; }
.hero-bg-num { display: none; }

.hero-label { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; color: var(--green); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-title { font-family: var(--serif); font-weight: 800; font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.12; max-width: 720px; margin-bottom: 1.5rem; letter-spacing: -0.015em; color: var(--text); }
.hero-title em { font-style: normal; color: var(--green); }
.hero-sub { font-size: 1.125rem; color: var(--text-muted); max-width: 500px; line-height: 1.65; margin-bottom: 2.5rem; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.hero-proof { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.proof-num { font-family: var(--serif); font-weight: 800; font-size: 1.75rem; color: var(--text); font-variant-numeric: tabular-nums; }
.proof-label { font-size: 0.8125rem; color: var(--text-muted); }
.proof-sep { width: 1px; height: 36px; background: var(--border); }

/* ticker (removed from markup on homepage; hidden defensively elsewhere) */
.ticker-wrap { display: none; }

/* ==========================================================================
   REVEAL ANIMATION — subtle
   ========================================================================== */
.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   PAIN SECTION
   ========================================================================== */
.pain { padding: 6rem 2.5rem; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-label { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; color: var(--green); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; }
.pain-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.625rem, 3.5vw, 2.5rem); max-width: 620px; line-height: 1.25; margin-bottom: 3rem; color: var(--text); }

.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pain-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: box-shadow 0.15s, border-color 0.15s; }
.pain-item:hover { box-shadow: var(--shadow-md); border-color: #d7dce1; }
.pain-num { font-family: var(--serif); font-weight: 800; font-size: 2rem; color: var(--green); opacity: 0.35; line-height: 1; margin-bottom: 1rem; }
.pain-text { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }
.pain-text strong { color: var(--text); font-weight: 600; }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how { padding: 6rem 2.5rem; max-width: 1140px; margin: 0 auto; }
.how-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 3.5rem; flex-wrap: wrap; }
.how-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.625rem, 3.5vw, 2.5rem); line-height: 1.25; color: var(--text); max-width: 560px; }
.how-desc { max-width: 360px; color: var(--text-muted); font-size: 0.9375rem; line-height: 1.65; padding-top: 0.5rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.875rem; transition: box-shadow 0.15s, border-color 0.15s; }
.step:hover { box-shadow: var(--shadow-md); border-color: #d7dce1; }
.step-n { width: 34px; height: 34px; border: 1.5px solid var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-weight: 700; font-size: 0.8125rem; color: var(--green); font-variant-numeric: tabular-nums; }
.step-title { font-size: 1rem; font-weight: 600; color: var(--text); }
.step-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ==========================================================================
   ROLES
   ========================================================================== */
.roles { padding: 6rem 2.5rem; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.roles-inner { max-width: 1140px; margin: 0 auto; }
.roles-header { margin-bottom: 3rem; }
.roles-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.625rem, 3.5vw, 2.5rem); line-height: 1.25; max-width: 520px; color: var(--text); }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.role-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.375rem; transition: border-color 0.15s, box-shadow 0.15s; cursor: default; }
.role-card:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.role-icon { width: 38px; height: 38px; background: var(--green-pale); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; margin-bottom: 0.875rem; }
.role-name { font-size: 0.9375rem; font-weight: 600; color: var(--text); margin-bottom: 0.375rem; }
.role-desc { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.55; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testi { padding: 6rem 2.5rem; max-width: 1140px; margin: 0 auto; }
.testi-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.625rem, 3.5vw, 2.5rem); margin-bottom: 3rem; line-height: 1.25; color: var(--text); }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.testi-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.testi-quote { font-family: var(--serif); font-weight: 500; font-size: 1.0625rem; color: var(--text); line-height: 1.6; margin-bottom: 1.25rem; font-style: normal; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--green-pale); display: flex; align-items: center; justify-content: center; font-size: 0.8125rem; font-weight: 700; color: var(--green); }
.testi-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.testi-role { font-size: 0.8125rem; color: var(--text-muted); }

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing { padding: 6rem 2.5rem; background: var(--bg2); border-top: 1px solid var(--border); }
.pricing-inner { max-width: 900px; margin: 0 auto; }
.pricing-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.625rem, 3.5vw, 2.5rem); margin-bottom: 0.75rem; text-align: center; color: var(--text); }
.pricing-sub { text-align: center; color: var(--text-muted); margin-bottom: 3rem; font-size: 0.9375rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.plan { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; position: relative; }
.plan.featured { border-color: var(--green); box-shadow: var(--shadow-md); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 14px; border-radius: 20px; white-space: nowrap; font-family: var(--sans); letter-spacing: 0.03em; }
.plan-name { font-family: var(--sans); font-size: 0.8125rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; }
.plan-price { font-family: var(--serif); font-weight: 800; font-size: 2.75rem; line-height: 1; margin-bottom: 0.25rem; color: var(--text); }
.plan-period { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 1.75rem; }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.875rem; color: var(--text-dim); }
.plan-features li::before { content: '✓'; color: var(--green); flex-shrink: 0; font-size: 0.8125rem; font-weight: 700; line-height: 1.5; }
.plan-features li.active { color: var(--text-muted); }
.plan-features li.on { color: var(--text); }

.plan-btn { display: block; width: 100%; text-align: center; padding: 0.75rem; border-radius: 8px; font-size: 0.9375rem; font-weight: 600; text-decoration: none; cursor: pointer; font-family: var(--sans); border: none; transition: all 0.15s; }
.plan-btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.plan-btn-outline:hover { border-color: var(--text-muted); }
.plan-btn-fill { background: var(--green); color: #fff; }
.plan-btn-fill:hover { background: var(--green-light); }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-final { padding: 7rem 2.5rem; text-align: center; position: relative; background: var(--bg2); border-top: 1px solid var(--border); }
.cta-final-bg { display: none; }
.cta-final-title { font-family: var(--serif); font-weight: 800; font-size: clamp(1.875rem, 4.5vw, 3.25rem); line-height: 1.2; max-width: 680px; margin: 0 auto 1.25rem; color: var(--text); }
.cta-final-title em { font-style: normal; color: var(--green); }
.cta-final-sub { color: var(--text-muted); font-size: 1rem; max-width: 420px; margin: 0 auto 2.5rem; }
.cta-final-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-mono { font-family: var(--sans); font-size: 0.8125rem; color: var(--text-dim); margin-top: 1.25rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { border-top: 1px solid var(--border); padding: 2rem 2.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: var(--serif); font-weight: 700; font-size: 1rem; color: var(--text); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 0.8125rem; color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--green); }
.footer-badge { display: flex; align-items: center; }
.footer-badge img { display: block; }

/* ==========================================================================
   ARTICLE / BLOG TEMPLATE  (rh, leadership, management, productivite,
   conflits, glossaire.html)
   ========================================================================== */
main { max-width: 760px; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.breadcrumb { font-family: var(--sans); font-size: 0.8125rem; color: var(--text-dim); margin-bottom: 2rem; }
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.kicker { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; color: var(--green); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; }

main h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(1.875rem, 4.5vw, 2.75rem); line-height: 1.2; margin-bottom: 1.5rem; letter-spacing: -0.01em; }
main h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.625rem); line-height: 1.3; margin: 2.75rem 0 1rem; color: var(--text); }
main h3 { font-size: 1.0625rem; font-weight: 600; color: var(--text); margin: 1.75rem 0 0.5rem; }
main p { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 1rem; }
.lead { color: var(--text); font-size: 1.0625rem; line-height: 1.7; margin-bottom: 1rem; }
ul.plain { margin: 0 0 1rem 1.25rem; color: var(--text-muted); font-size: 0.9375rem; }
ul.plain li { margin-bottom: 0.5rem; }

.stat-row { display: flex; gap: 12px; margin: 2rem 0; flex-wrap: wrap; }
.stat { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1.5rem; flex: 1; min-width: 140px; }
.stat-num { font-family: var(--serif); font-weight: 800; font-size: 1.5rem; color: var(--text); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

.cta-box { margin: 3rem 0; padding: 2rem; background: var(--green-pale); border: 1px solid rgba(var(--green-rgb),0.18); border-radius: 14px; text-align: center; }
.cta-box p { color: var(--text); margin-bottom: 1.25rem; }

.role-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 1.5rem 0 2.5rem; }
.role-mini { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 0.875rem; font-size: 0.8125rem; color: var(--text-muted); text-decoration: none; transition: border-color 0.15s, color 0.15s; }
.role-mini:hover { border-color: var(--green); color: var(--text); }

main h2 + ul li, main ul[style] li { list-style: none; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
main h2 + ul li a, main ul[style] li a { display: block; padding: 0.75rem 0.875rem; font-size: 0.875rem; color: var(--text-muted); text-decoration: none; border-radius: 8px; transition: border-color 0.15s, color 0.15s; }
main h2 + ul li a:hover, main ul[style] li a:hover { color: var(--green); border-color: var(--green); }

.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.related h2 { margin-top: 0; }
.related ul { list-style: none; }
.related li { margin-bottom: 0.625rem; }
.related a { font-size: 0.9375rem; }

/* ==========================================================================
   CONTACT / LEGAL PAGES
   ========================================================================== */
main h1 { }
main h2 { }
.contact-card { margin-top: 2rem; padding: 1.75rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; }
.contact-email { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; color: #fff; text-decoration: none; padding: 0.75rem 1.25rem; background: var(--green); border-radius: 8px; margin-top: 0.5rem; transition: background 0.15s; }
.contact-email:hover { background: var(--green-light); }
.contact-note { font-size: 0.8125rem; color: var(--text-dim); margin-top: 1.5rem; }

/* mentions-legales / confidentialite specific h2 color override */
body:has(.contact-card), .legal-page {}
main h2 { color: var(--text); }

/* ==========================================================================
   TEST.HTML — quiz flow
   ========================================================================== */
main.quiz-main, .step-container { width: 100%; max-width: 600px; }
.step { display: none; animation: fadeIn 0.3s ease; background: none; border: none; padding: 0; }
.step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.step-label { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; color: var(--green); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.875rem; }
h1 em { font-style: normal; color: var(--green); }
h2.section-q { font-family: var(--serif); font-weight: 600; font-size: clamp(1.1rem, 3vw, 1.375rem); line-height: 1.4; margin-bottom: 1.5rem; color: var(--text); font-style: normal; }
.subtitle { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 2rem; }

.field { margin-bottom: 1.125rem; }
label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.375rem; }
input[type="text"], input[type="email"] {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.75rem 1rem; font-size: 0.9375rem; color: var(--text); font-family: var(--sans);
  outline: none; transition: border-color 0.15s;
}
input:focus { border-color: var(--green); }
input::placeholder { color: var(--text-dim); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1.5rem; }
.plan-card { background: var(--bg); border: 2px solid var(--border); border-radius: 12px; padding: 1.5rem 1.25rem; cursor: pointer; transition: border-color 0.15s, background 0.15s; position: relative; }
.plan-card:hover { border-color: #c7ccd2; }
.plan-card.selected { border-color: var(--green); background: var(--green-pale); }

.card-display { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.card-chip { width: 32px; height: 24px; background: #d8c98a; border-radius: 4px; margin-bottom: 1.5rem; border: 1px solid var(--border); }
.card-num-display { font-family: var(--sans); font-size: 1rem; letter-spacing: 0.15em; color: var(--text); margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.card-meta { display: flex; justify-content: space-between; font-family: var(--sans); font-size: 0.75rem; color: var(--text-muted); }
.card-brand { position: absolute; bottom: 1.25rem; right: 1.25rem; font-family: var(--serif); font-weight: 700; font-size: 1rem; color: var(--text-dim); font-style: normal; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.secure-note { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-dim); margin-top: 0.875rem; }
.secure-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.summary-total { font-weight: 700; color: var(--text); }

.progress-wrap { margin-bottom: 1.75rem; }
.progress-meta { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.5rem; font-variant-numeric: tabular-nums; }
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--green); border-radius: 2px; transition: width 0.4s ease; }

.instr-banner { background: var(--green-pale); border: 1px solid rgba(var(--green-rgb),0.15); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.75rem; font-size: 0.875rem; color: var(--text); line-height: 1.6; }
.instr-banner strong { color: var(--text); }

.statements { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.5rem; }
.stmt-row { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1rem 1rem 1.125rem; transition: border-color 0.15s; }
.stmt-row:hover { border-color: #c7ccd2; }
.stmt-row.has-points { border-color: var(--green); background: var(--green-pale); }
.stmt-letter { font-family: var(--sans); font-weight: 700; font-size: 0.8rem; color: var(--green); flex-shrink: 0; width: 18px; text-align: center; }
.stmt-text { flex: 1; font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.stmt-row.has-points .stmt-text { color: var(--text); }
.stmt-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ctrl-btn { width: 28px; height: 28px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s, border-color 0.15s, color 0.15s; font-weight: 600; line-height: 1; }
.ctrl-btn:hover { background: var(--green-pale); border-color: var(--green); color: var(--green); }
.ctrl-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.stmt-val { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--text); min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }

.points-counter { display: flex; align-items: center; justify-content: space-between; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 0.875rem 1.25rem; margin-bottom: 1.5rem; }
.points-label { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.points-display { font-family: var(--sans); font-size: 1rem; font-weight: 700; transition: color 0.15s; }
.points-display.ok { color: var(--green); }
.points-display.over { color: var(--red); }
.points-display.under { color: var(--text-muted); }
.points-bar-mini { width: 100px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.points-bar-fill { height: 100%; border-radius: 2px; transition: width 0.2s, background 0.2s; background: var(--green); }

.section-nav { display: flex; gap: 10px; }
.section-nav .btn-ghost { width: auto; padding: 0.875rem 1.5rem; }
.section-nav .btn-main { flex: 1; }

.result-hero { text-align: center; margin-bottom: 2rem; }
.result-icon-wrap { width: 80px; height: 80px; background: var(--green-pale); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 1.25rem; animation: pop 0.4s ease both; }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
.result-role-name { font-family: var(--serif); font-weight: 800; font-size: 2rem; color: var(--text); margin-bottom: 0.375rem; }
.result-tag { display: inline-block; background: var(--green-pale); color: var(--green); font-family: var(--sans); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; margin-bottom: 1rem; }
.result-desc { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.7; max-width: 440px; margin: 0 auto; }
.result-secondary { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.result-secondary-icon { width: 44px; height: 44px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.375rem; flex-shrink: 0; }
.result-secondary-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.25rem; }
.result-secondary-name { font-size: 1rem; font-weight: 600; color: var(--text); }

.score-bars { margin-bottom: 1.75rem; }
.score-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.score-bar-icon { font-size: 1rem; width: 20px; text-align: center; }
.score-bar-name { font-size: 0.8125rem; color: var(--text-muted); min-width: 110px; }
.score-bar-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.score-bar-fill { height: 100%; background: var(--green); border-radius: 3px; transition: width 0.7s ease; }
.score-bar-fill.primary { background: var(--green); }
.score-bar-fill.secondary { background: var(--green-light); }
.score-bar-fill.other { background: var(--text-dim); }
.score-bar-val { font-size: 0.75rem; color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 28px; text-align: right; }
.result-cta-note { font-size: 0.8125rem; color: var(--text-dim); text-align: center; margin-top: 0.875rem; }

.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1.5rem; }
.role-tile { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 0.875rem 1rem; transition: border-color 0.15s, background 0.15s; }
.role-tile.present { border-color: var(--green); background: var(--green-pale); }
.role-tile-icon { font-size: 1.25rem; margin-bottom: 4px; }
.role-tile-name { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.role-tile.present .role-tile-name { color: var(--green); }
.role-tile-members { font-size: 0.7rem; color: var(--text-dim); margin-top: 3px; line-height: 1.4; }
.role-tile.present .role-tile-members { color: var(--text-muted); }

.participant-row { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 0.875rem 1rem; margin-bottom: 8px; }
.participant-icon { width: 38px; height: 38px; background: var(--bg2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; flex-shrink: 0; }
.participant-name { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.participant-role { font-size: 0.8rem; color: var(--text-muted); }
.missing-tag { background: var(--bg2); border: 1px solid var(--border); border-radius: 20px; padding: 4px 14px; font-size: 0.8125rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 5px; }

@media (max-width: 520px) {
  nav { padding: 1rem 1.25rem; }
  main { padding: 2rem 1rem 3rem; }
  .plans { grid-template-columns: 1fr; }
  .card-row { grid-template-columns: 1fr; }
  .stmt-text { font-size: 0.8375rem; }
  .points-bar-mini { width: 60px; }
}

/* ==========================================================================
   RESULTATS.HTML — internal admin dashboard
   ========================================================================== */
.page { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.page h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.5rem; color: var(--text); }
.page h1 em { font-style: normal; color: var(--green); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 1.5rem 0; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; }
.stat-val { font-family: var(--serif); font-weight: 800; font-size: 2rem; color: var(--text); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-lbl { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 4px; }

.sheets-box { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 2rem; }
.sheets-title { font-size: 0.8125rem; font-weight: 700; color: var(--green); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1rem; }
.sheets-row { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.sheets-input { flex: 1; min-width: 200px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--text); font-family: var(--sans); outline: none; transition: border-color 0.15s; }
.sheets-input:focus { border-color: var(--green); }
.sheets-input::placeholder { color: var(--text-dim); font-size: 0.8rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); flex-shrink: 0; margin-top: 4px; }
.status-dot.ok { background: var(--green); }
.status-dot.err { background: var(--red); }
.status-dot.pending { background: var(--orange); animation: pulse 1s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.status-msg { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.5rem; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.toolbar-left { flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
thead tr { background: var(--bg2); }
th { padding: 0.75rem 1rem; text-align: left; font-size: 0.7rem; font-weight: 700; color: var(--green); letter-spacing: 0.05em; text-transform: uppercase; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg2); }
td.name { color: var(--text); font-weight: 600; }
td.role { color: var(--text); }
.role-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--green-pale); color: var(--green); padding: 2px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em; }
.plan-badge-s { background: var(--bg3); color: var(--text-muted); padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; }
.plan-badge-e { background: var(--green-pale); color: var(--green); padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; }

.mini-bars { display: flex; flex-direction: column; gap: 3px; min-width: 110px; }
.mini-bar-row { display: flex; align-items: center; gap: 5px; }
.mini-bar-track { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.mini-bar-fill { height: 100%; background: var(--green); border-radius: 2px; }
.mini-bar-lbl { font-size: 0.65rem; color: var(--text-dim); width: 16px; text-align: right; }

.empty { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-title { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--text); margin-bottom: 0.5rem; }
.empty-desc { font-size: 0.9375rem; max-width: 360px; margin: 0 auto 1.5rem; line-height: 1.7; }
.export-note { font-size: 0.75rem; color: var(--text-dim); margin-top: 1rem; text-align: center; }

.tabs { display: flex; gap: 4px; margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.tab-btn { background: none; border: none; padding: 0.625rem 1.25rem; font-size: 0.875rem; font-family: var(--sans); color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.15s; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); font-weight: 700; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.team-card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.team-card-header { background: var(--green-pale); padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.team-card-name { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--text); }
.team-card-count { font-size: 0.7rem; font-weight: 700; color: var(--green); background: rgba(var(--green-rgb),0.12); padding: 2px 10px; border-radius: 20px; }
.team-card-body { padding: 1.25rem; }

.role-wheel { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 1.25rem; }
.role-bubble { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; padding: 0.5rem 0.25rem; text-align: center; position: relative; }
.role-bubble.present { background: rgba(var(--green-rgb),0.12); border: 1px solid rgba(var(--green-rgb),0.35); }
.role-bubble.doublon { background: rgba(var(--orange-rgb),0.12); border: 1px solid rgba(var(--orange-rgb),0.4); }
.role-bubble.absent { background: var(--bg2); border: 1px dashed var(--border); opacity: 0.6; }
.role-bubble-icon { font-size: 1.25rem; }
.role-bubble-name { font-size: 0.6rem; color: var(--text-muted); margin-top: 3px; line-height: 1.2; }
.role-bubble-count { position: absolute; top: 4px; right: 6px; font-size: 0.6rem; font-weight: 700; }
.role-bubble.present .role-bubble-count { color: var(--green); }
.role-bubble.doublon .role-bubble-count { color: var(--orange); }

.team-members { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
.team-member { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; }
.member-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--green-pale); display: flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 700; color: var(--green); flex-shrink: 0; }
.member-name { color: var(--text); font-weight: 600; flex: 1; }
.member-role { font-size: 0.7rem; color: var(--text-muted); }

.team-alerts { display: flex; flex-direction: column; gap: 5px; }
.alert-line { display: flex; align-items: flex-start; gap: 6px; font-size: 0.775rem; line-height: 1.4; color: var(--text-muted); }
.alert-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.alert-dot.red { background: var(--red); }
.alert-dot.orange { background: var(--orange); }
.alert-dot.green { background: var(--green); }
.carto-empty { text-align: center; padding: 3rem 2rem; color: var(--text-muted); }

@media (max-width: 640px) {
  nav { padding: 1rem 1.25rem; }
  .page { padding: 1.5rem 1rem 3rem; }
  .sheets-row { flex-direction: column; }
  th:nth-child(n+5) { display: none; }
  td:nth-child(n+5) { display: none; }
}

/* ==========================================================================
   RESPONSIVE (site-wide)
   ========================================================================== */
@media (max-width: 640px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .hero, .pain, .how, .roles, .testi, .pricing, .cta-final { padding-left: 1.25rem; padding-right: 1.25rem; }
  footer { flex-direction: column; align-items: flex-start; }
}
