/* ============================================================
   CYBERCHECK — Styles du diagnostic de sécurité express
   Thème cohérent avec le site (noir / émeraude).
   ============================================================ */

.cc-app { max-width: 760px; margin: 0 auto; }

/* ---------- Boutons ---------- */
.cc-btn {
  display: inline-block; padding: 11px 20px; border-radius: 10px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 600;
  text-decoration: none; text-align: center; border: 1px solid transparent;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.cc-btn:hover { transform: translateY(-1px); }
.cc-btn-primaire { background: #1ea567; color: #07130d; }
.cc-btn-primaire:hover { background: #25c077; box-shadow: 0 6px 18px rgba(30, 165, 103, .35); }
.cc-btn-fantome { background: transparent; color: #cfe3d8; border-color: rgba(184, 204, 193, .35); }
.cc-btn-fantome:hover { border-color: #1ea567; color: #3ddc97; }
.cc-btn-or { background: #ffd166; color: #221a04; }
.cc-btn-or:hover { background: #ffdd85; box-shadow: 0 6px 18px rgba(255, 209, 102, .3); }
.cc-btn-grand { padding: 14px 26px; font-size: 1.02rem; }
.cc-btn-block { display: block; width: 100%; }

/* ---------- Écran d'accueil ---------- */
.cc-intro { text-align: center; background: var(--bg-card); border: 1px solid rgba(30, 165, 103, .25); border-radius: 20px; padding: clamp(24px, 5vw, 44px); }
.cc-intro-img { width: 150px; height: 150px; object-fit: contain; }
.cc-intro h2 { font-family: 'Space Grotesk', sans-serif; color: var(--heading); font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 8px 0 12px; }
.cc-intro p { color: var(--text-soft); line-height: 1.65; max-width: 560px; margin: 0 auto 18px; }
.cc-intro-liste { list-style: none; padding: 0; margin: 0 auto 24px; max-width: 560px; text-align: left; }
.cc-intro-liste li { color: var(--text); line-height: 1.6; padding: 10px 14px 10px 40px; position: relative; background: rgba(30, 165, 103, .07); border: 1px solid rgba(30, 165, 103, .18); border-radius: 10px; margin-bottom: 8px; }
.cc-intro-liste li::before { content: "✔"; position: absolute; left: 14px; color: #3ddc97; font-weight: 700; }
.cc-intro-note { font-size: .8rem; color: var(--text-muted); margin-top: 16px; }

/* ---------- Questions ---------- */
.cc-progression { color: var(--text-muted); font-size: .84rem; margin-bottom: 8px; }
.cc-quiz h2, .cc-quiz > h2 { font-family: 'Space Grotesk', sans-serif; color: var(--heading); font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.45; margin: 20px 0 22px; }
.cc-barre {
  display: block; width: 100%; height: 7px; border: 0; border-radius: 99px; overflow: hidden;
  background: var(--track); appearance: none;
}
.cc-barre::-webkit-progress-bar { background: var(--track); border-radius: 99px; }
.cc-barre::-webkit-progress-value { background: linear-gradient(90deg, #1ea567, #3ddc97); border-radius: 99px; transition: width .4s ease; }
.cc-barre::-moz-progress-bar { background: linear-gradient(90deg, #1ea567, #3ddc97); border-radius: 99px; }
.cc-copy-buffer { position: fixed; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.cc-options { display: grid; gap: 12px; }
.cc-option {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  background: var(--bg); color: var(--text); border: 1px solid rgba(184, 204, 193, .25);
  padding: 15px 16px; border-radius: 13px; cursor: pointer; font-family: 'Inter', sans-serif; font-size: .95rem; line-height: 1.5;
  transition: border-color .15s, background .15s, transform .1s;
}
.cc-option:hover { border-color: #1ea567; transform: translateX(3px); }
.cc-option-lettre {
  flex: 0 0 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: rgba(30, 165, 103, .15); color: #3ddc97; font-weight: 700; font-family: 'Space Grotesk', sans-serif;
}

/* ---------- Résultat ---------- */
.cc-resultat-tete { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; background: var(--bg-card); border: 1px solid rgba(30, 165, 103, .25); border-radius: 20px; padding: 26px; margin-bottom: 26px; }
.cc-anneau { position: relative; width: 150px; height: 150px; flex: 0 0 150px; }
.cc-anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cc-anneau-fond { fill: none; stroke: var(--track); stroke-width: 12; }
.cc-anneau-barre { fill: none; stroke: #1ea567; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.cc-anneau-valeur { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #3ddc97; font-size: 2rem; line-height: 1; }
.cc-anneau-valeur span { font-size: .8rem; color: var(--text-muted); font-weight: 400; }
.cc-resultat-txt { flex: 1; min-width: 240px; }
.cc-niveau { font-size: 1.15rem; color: var(--heading); margin-bottom: 8px; }
.cc-niveau strong { color: #ffd166; }
.cc-resultat-txt p { color: var(--text-soft); line-height: 1.65; margin: 0; }

.cc-soustitre { font-family: 'Space Grotesk', sans-serif; color: var(--heading); font-size: 1.1rem; margin: 26px 0 14px; }
.cc-cats { display: grid; gap: 14px; }
.cc-cat { background: var(--bg-card); border: 1px solid rgba(30, 165, 103, .2); border-radius: 14px; padding: 14px 18px; }
.cc-cat-tete { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.cc-cat-tete span { color: var(--text); font-weight: 600; }
.cc-cat-tete strong { color: #3ddc97; font-family: 'Space Grotesk', sans-serif; }

.cc-recos { list-style: none; padding: 0; margin: 0; }
.cc-recos li { color: var(--text); line-height: 1.6; padding: 12px 16px 12px 40px; position: relative; background: rgba(255, 209, 102, .06); border: 1px solid rgba(255, 209, 102, .25); border-radius: 12px; margin-bottom: 10px; }
.cc-recos li::before { content: "→"; position: absolute; left: 16px; color: #ffd166; font-weight: 700; }
.cc-recos a { color: #3ddc97; text-decoration: underline; text-underline-offset: 3px; }

.cc-partage { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 26px 0 8px; }
.cc-partage-msg { color: #3ddc97; font-size: .88rem; font-weight: 600; }
.cc-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Formulaire de capture ---------- */
.cc-lead { background: var(--bg-card); border: 1px solid rgba(30, 165, 103, .35); border-radius: 20px; padding: clamp(22px, 4vw, 34px); margin-top: 30px; }
.cc-lead-tete { text-align: center; margin-bottom: 20px; }
.cc-lead-tete h3 { font-family: 'Space Grotesk', sans-serif; color: var(--heading); font-size: 1.25rem; margin: 0 0 8px; }
.cc-lead-tete p { color: var(--text-soft); line-height: 1.6; margin: 0; }
.cc-lead-tete strong { color: #ffd166; }
.cc-lead-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cc-lead-champ { display: flex; flex-direction: column; gap: 6px; }
.cc-lead-champ label { color: var(--text); font-size: .88rem; font-weight: 600; }
.cc-lead-champ label span { color: #ef4444; }
.cc-lead-champ input {
  padding: 11px 14px; background: var(--bg); border: 1px solid rgba(184, 204, 193, .3); border-radius: 10px;
  color: var(--text); font-family: 'Inter', sans-serif; font-size: .95rem;
}
.cc-lead-champ input:focus { outline: 2px solid #1ea567; border-color: transparent; }
.cc-lead .form-status { margin: 16px 0 0; }
.cc-lead .form-status.ok { color: #3ddc97; }
.cc-lead .form-status.err { color: var(--err-text); }
.cc-lead-note { font-size: .78rem; color: var(--text-muted); text-align: center; margin: 14px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .cc-lead-champs { grid-template-columns: 1fr; }
  .cc-resultat-tete { justify-content: center; text-align: center; }
  .cc-cta { justify-content: center; }
  .cc-partage { justify-content: center; }
}
