/* ==========================================================================
   CyberScore — cyberpilotage.fr
   Re-skin "famille PBCI" : clair, bleu canard + azur, rondeurs.
   Conserve les noms de classes d'origine ; signature mono préservée.
   ========================================================================== */
:root {
  --bleu: #0a4b63;
  --bleu2: #073a4d;
  --menthe: #2f7df0;
  --menthe-clair: #6aa6ff;
  --menthe-ink: #1b5fcc;       /* Azur foncé pour texte sur blanc */
  --bg: #f6f9fa;
  --surface: #ffffff;
  --surface2: #eaf2fe;        /* tuile azur */
  --on-accent: #ffffff;       /* texte lisible sur accent azur */
  --border: rgba(10, 75, 99, 0.16);
  --border-light: rgba(10, 75, 99, 0.20);
  --text: #16323d;
  --text-muted: #3c5460;
  --text-dim: #2d4a55;
  --danger: #d65b5b;
  --warn: #cf8a2b;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 56px;
  --ombre-douce: 0 18px 50px -22px rgba(10, 75, 99, 0.22);
  --ombre-carte: 0 24px 60px -30px rgba(10, 75, 99, 0.32);
  --mono: 'Space Mono', ui-monospace, monospace;
  --titre: 'Space Grotesk', 'Segoe UI', sans-serif;
  --sans: 'Hanken Grotesk', 'Segoe UI', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(246, 249, 250, 0.82);
  backdrop-filter: blur(16px);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--bleu);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.nav-logo::before {
  content: none;
}
.nav-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--menthe), var(--menthe-clair));
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.nav-logo .nav-word { color: var(--menthe-ink); font-weight: 600; }

.nav-cta {
  font-family: var(--titre);
  font-size: 0.85rem;
  color: var(--on-accent);
  background: var(--menthe);
  border: none;
  padding: 11px 22px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border-radius: 50px;
  box-shadow: 0 10px 24px -12px rgba(47, 125, 240, 0.8);
}
.nav-cta:hover { background: var(--menthe-clair); transform: translateY(-1px); }

/* ─── HERO (bloc teal arrondi, comme la vitrine) ─── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: clamp(120px, 16vh, 180px) clamp(20px, 6vw, 64px) clamp(70px, 12vh, 120px);
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(47, 125, 240, 0.25), transparent 60%),
    linear-gradient(160deg, var(--bleu) 0%, var(--bleu2) 100%);
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(75% 75% at 50% 40%, #000 30%, transparent 78%);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-grid { display: none; }
.hero-content { position: relative; max-width: 700px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--menthe-clair);
  background: rgba(47, 125, 240, 0.14);
  border: 1px solid rgba(47, 125, 240, 0.4);
  padding: 9px 18px;
  letter-spacing: 0.06em;
  margin-bottom: 30px;
  border-radius: 50px;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--menthe);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--menthe-clair); }

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 42px;
  line-height: 1.7;
  text-wrap: pretty;
}
.hero-sub strong { color: var(--menthe-clair); font-weight: 700; }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}

.btn-demo {
  font-family: var(--titre);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--on-accent);
  background: var(--menthe);
  border: none;
  padding: 18px 32px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.25s, background 0.2s;
  border-radius: 50px;
  box-shadow: 0 16px 36px -14px rgba(47, 125, 240, 0.75);
}
.btn-demo:hover { background: var(--menthe-clair); transform: translateY(-2px); box-shadow: 0 22px 48px -16px rgba(47, 125, 240, 0.8); }
.btn-demo svg { width: 26px; height: 26px; flex-shrink: 0; }
.btn-demo-meta {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  display: block;
  margin-top: 2px;
  letter-spacing: 0;
}

.btn-ghost {
  font-family: var(--titre);
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, border-color 0.2s;
  border-radius: 50px;
  text-align: center;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--menthe-clair); }

/* ─── SECTIONS ─── */
section { position: relative; z-index: 1; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

.section-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--menthe-ink);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
}
.section-title {
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--bleu);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 52px;
  line-height: 1.7;
}

/* ─── DÉMO vs COMPLÈTE ─── */
.demo-reveal { padding: clamp(70px, 10vw, 100px) 0; }

.demo-reveal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) { .demo-reveal-grid { grid-template-columns: 1fr; } }

.reveal-panel {
  background: linear-gradient(168deg, #f1f7f8, #e6f0f3);
  border: 1px solid rgba(10, 75, 99, 0.16);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--ombre-douce);
}
.reveal-panel.locked {
  background: linear-gradient(168deg, #eaf2fe, #d9e7fc);
  border-color: rgba(47, 125, 240, 0.38);
}

.reveal-panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.reveal-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--surface2);
  color: var(--menthe-ink);
  flex-shrink: 0;
}
.reveal-panel.locked .reveal-icon { background: #fff5e6; color: var(--warn); }
.reveal-icon svg { width: 22px; height: 22px; }

.reveal-panel-title {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bleu);
  margin-bottom: 6px;
}
.reveal-badge {
  font-family: var(--mono);
  font-size: 0.62rem;
  padding: 4px 11px;
  border-radius: 50px;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.badge-free { background: var(--surface2); color: var(--menthe-ink); border: 1px solid rgba(47, 125, 240, 0.4); }
.badge-paid { background: #fff5e6; color: var(--warn); border: 1px solid rgba(207, 138, 43, 0.3); }

.reveal-items { display: flex; flex-direction: column; gap: 4px; }
.reveal-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.reveal-item:last-child { border-bottom: none; }
.reveal-check { color: var(--menthe-ink); font-family: var(--mono); font-weight: 700; font-size: 0.8rem; flex-shrink: 0; margin-top: 1px; }
.reveal-lock { color: var(--warn); font-size: 0.85rem; flex-shrink: 0; margin-top: 1px; }
.reveal-item.locked-item { opacity: 0.6; }
.reveal-item strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }
.reveal-item span { font-size: 0.8rem; color: var(--text-muted); }

/* Score démo */
.score-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.score-circle { width: 80px; height: 80px; flex-shrink: 0; }
.gauge-bg { fill: none; stroke: #e4edf0; stroke-width: 8; }
.gauge-fill {
  fill: none; stroke: var(--danger);
  stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 220; stroke-dashoffset: 160;
  transform: rotate(-90deg); transform-origin: 50% 50%;
}
.gauge-text { font-family: var(--titre); font-size: 1.4rem; font-weight: 700; fill: var(--bleu); }
.gauge-sub { font-family: var(--mono); font-size: 0.58rem; fill: var(--danger); font-weight: 700; }
.score-info h4 { font-family: var(--titre); font-size: 0.92rem; color: var(--danger); margin-bottom: 4px; }
.score-info p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* ─── LIVRABLES ─── */
.livrables { padding: clamp(70px, 10vw, 100px) 0; }
.livrables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.livrable-item {
  background: linear-gradient(168deg, #f1f7f8, #e6f0f3);
  border: 1px solid rgba(10, 75, 99, 0.16);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--ombre-douce);
  transition: transform 0.25s, box-shadow 0.25s;
}
.livrable-item:hover { transform: translateY(-4px); box-shadow: var(--ombre-carte); }
.livrable-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--surface2);
  color: var(--menthe-ink);
  margin-bottom: 18px;
}
.livrable-icon svg { width: 26px; height: 26px; }
.livrable-item h3 {
  font-family: var(--titre);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--bleu);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.livrable-item p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }
.livrable-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6rem;
  padding: 4px 11px;
  border-radius: 50px;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.tag-free { background: var(--surface2); color: var(--menthe-ink); border: 1px solid rgba(47, 125, 240, 0.4); }
.tag-paid { background: #fff5e6; color: var(--warn); border: 1px solid rgba(207, 138, 43, 0.3); }

/* ─── REVENDEURS ─── */
.revendeurs { padding: clamp(70px, 10vw, 100px) 0; }
.revendeur-card {
  background: linear-gradient(168deg, #eff5fe, #e3edfc);
  border: 1px solid rgba(47, 125, 240, 0.22);
  border-left: 5px solid var(--menthe);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 52px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--ombre-douce);
}
@media (max-width: 768px) { .revendeur-card { grid-template-columns: 1fr; } }
.revendeur-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--menthe-ink);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.revendeur-card h3 {
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--bleu);
  margin-bottom: 20px;
}
.revendeur-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.revendeur-card p strong { color: var(--text); }
.revendeur-stats { display: flex; flex-direction: column; gap: 14px; }
.stat-row {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-label { font-size: 0.84rem; color: var(--text-muted); }
.stat-value { font-family: var(--mono); font-size: 1rem; font-weight: 700; color: var(--menthe-ink); }
.stat-value.danger { color: var(--danger); }
.stat-value.warn { color: var(--warn); }
.stat-arrow { font-family: var(--mono); font-size: 0.72rem; color: var(--text-muted); padding: 2px 0; text-align: center; }

/* ─── PROCESSUS ─── */
.processus { padding: clamp(70px, 10vw, 100px) 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: linear-gradient(168deg, #f1f7f8, #e6f0f3);
  border: 1px solid rgba(10, 75, 99, 0.16);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  position: relative;
  box-shadow: var(--ombre-douce);
}
.step-num {
  font-family: var(--titre);
  font-size: 2.6rem;
  font-weight: 700;
  color: rgba(10, 75, 99, 0.12);
  line-height: 1;
  margin-bottom: 16px;
}
.step-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--surface2);
  color: var(--menthe-ink);
  margin-bottom: 14px;
}
.step-icon svg { width: 25px; height: 25px; }
.step h3 { font-family: var(--titre); font-size: 1.08rem; font-weight: 700; color: var(--bleu); margin-bottom: 10px; }
.step p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.7; }
.step-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6rem;
  padding: 4px 11px;
  border-radius: 50px;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ─── TARIF ─── */
.tarif { padding: clamp(70px, 10vw, 100px) 0; }
.tarif-card {
  max-width: 560px;
  margin: 52px auto 0;
  border: 1px solid rgba(47, 125, 240, 0.22);
  background: linear-gradient(168deg, #eff5fe, #e3edfc);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--ombre-carte);
}
.tarif-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--menthe), var(--menthe-clair));
}
.tarif-header { padding: 36px 40px 28px; border-bottom: 1px solid var(--border); }
.tarif-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--menthe-ink);
  background: var(--surface2);
  border: 1px solid rgba(47, 125, 240, 0.4);
  padding: 5px 13px;
  display: inline-block;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  font-weight: 700;
  border-radius: 50px;
}
.tarif-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.price-amount { font-family: var(--titre); font-weight: 700; font-size: 3.4rem; color: var(--bleu); line-height: 1; letter-spacing: -0.02em; }
.price-unit { font-family: var(--mono); font-size: 0.85rem; color: var(--text-muted); }
.price-note { font-size: 0.78rem; color: var(--text-muted); }
.tarif-includes { padding: 28px 40px; border-bottom: 1px solid var(--border); }
.include-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 0.88rem; color: var(--text-dim); }
.include-check { color: var(--menthe-ink); font-family: var(--mono); font-weight: 700; font-size: 0.82rem; flex-shrink: 0; margin-top: 2px; }
.tarif-footer { padding: 28px 40px; }
.btn-primary {
  font-family: var(--titre);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--on-accent);
  background: var(--menthe);
  border: none;
  padding: 17px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.25s, background 0.2s;
  border-radius: 50px;
  width: 100%;
  box-shadow: 0 14px 32px -14px rgba(47, 125, 240, 0.75);
}
.btn-primary:hover { background: var(--menthe-clair); transform: translateY(-2px); box-shadow: 0 20px 44px -16px rgba(47, 125, 240, 0.8); }
.tarif-legal { font-size: 0.74rem; color: var(--text-muted); text-align: center; margin-top: 14px; line-height: 1.5; }

/* ─── FAQ ─── */
.faq { padding: clamp(70px, 10vw, 100px) 0; }
.faq-list { max-width: 760px; margin: 52px auto 0; }
.faq-item {
  border: 1px solid rgba(10, 75, 99, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(168deg, #f4f9fa, #edf4f6);
  margin-bottom: 12px;
  padding: 0 24px;
  transition: box-shadow 0.2s;
}
.faq-item.open { box-shadow: var(--ombre-douce); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-family: var(--titre);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--bleu);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-toggle { font-family: var(--mono); font-size: 1.2rem; color: var(--menthe-ink); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
}
.faq-item.open .faq-answer { max-height: 320px; padding-bottom: 22px; }

/* ─── FOOTER (teal foncé, comme la vitrine) ─── */
footer {
  background: var(--bleu2);
  padding: 40px clamp(20px, 5vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo { font-family: var(--mono); font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--menthe-clair); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge-dot { animation: none; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 12px 18px; }
  .nav-cta { font-size: 0.78rem; padding: 9px 16px; }
  footer { flex-direction: column; text-align: center; }
}

/* ─── Bande retour site mère ─── */
.home-band { background:var(--surface2); border-top:1px solid var(--border); }
.home-band-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; padding-top:30px; padding-bottom:30px; }
.home-band p { font-size:0.98rem; color:var(--text-dim); margin:0; }
.home-band p strong { color:var(--bleu); font-weight:700; }
.home-band-btn { display:inline-flex; align-items:center; gap:9px; font-family:var(--titre); font-weight:600; font-size:0.95rem; color:var(--on-accent); background:var(--menthe); padding:13px 26px; border-radius:50px; text-decoration:none; box-shadow:0 12px 28px -12px color-mix(in srgb, var(--menthe) 70%, transparent); transition:transform .2s, box-shadow .25s, background .2s; }
.home-band-btn:hover { background:var(--menthe-clair); color:var(--on-accent); transform:translateY(-2px); }
.home-band-btn .hb-arrow { transition:transform .2s; }
.home-band-btn:hover .hb-arrow { transform:translateX(-3px); }
@media (max-width:560px){ .home-band-inner{ flex-direction:column; text-align:center; } }
