/* persona.css — sélection du persona du recruteur (secteurs → titres → curseurs).
   S'appuie sur les tokens Lagon : --edge, --edge-soft, --pop, --accent, --ink… */

/* ---- 1. Ligne des secteurs (pastilles rondes) --------------------------- */
.persona-sectors {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 22px 18px; margin: 26px 0 6px; padding-top: 22px;
}
.sector-dot {
  position: relative; width: 48px; height: 48px; border: 0; padding: 0;
  background: transparent; cursor: pointer; border-radius: 50%;
  transition: transform .16s cubic-bezier(.2,.7,.3,1);
}
.sector-dot .sector-face {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 2px var(--edge), 0 4px 0 var(--edge-soft);
  transition: box-shadow .16s ease, transform .16s ease;
}
.sector-dot:hover { transform: translateY(-4px); }
.sector-dot:hover .sector-face { box-shadow: inset 0 0 0 2px var(--edge), 0 7px 0 var(--edge-soft); }
.sector-dot:active .sector-face { box-shadow: inset 0 0 0 2px var(--edge), 0 1px 0 var(--edge-soft); transform: translateY(3px); }
.sector-dot:focus-visible { outline: none; }
/* état sélectionné : anneau encre + halo de la couleur (pas la « reco ») */
.sector-dot.on .sector-face {
  box-shadow: inset 0 0 0 3px var(--ink),
              0 0 0 4px color-mix(in srgb, var(--c) 45%, transparent),
              0 4px 0 var(--edge-soft);
}

/* badge « Recommandé » au-dessus de la pastille — PAS de contour lumineux */
.rec-badge {
  position: absolute; left: 50%; top: -18px; transform: translateX(-50%);
  white-space: nowrap; font-family: var(--font-display); font-weight: 700;
  font-size: 10px; letter-spacing: .01em; line-height: 1;
  padding: 4px 8px; border-radius: 999px;
  background: var(--pop); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--edge), 0 3px 0 var(--edge-soft);
  pointer-events: none; z-index: 2;
}
.rec-badge::after {
  content: ''; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%) rotate(45deg);
  width: 7px; height: 7px; background: var(--pop);
  box-shadow: 2px 2px 0 -1px var(--edge);
}

/* étiquette nom du secteur (survol / focus / sélection) */
.sector-tip {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%) translateY(-3px);
  white-space: nowrap; font-size: 11px; font-weight: 650; color: var(--ink);
  background: var(--bg); padding: 3px 8px; border-radius: 8px;
  box-shadow: inset 0 0 0 1.5px var(--edge);
  opacity: 0; pointer-events: none; transition: opacity .14s ease, transform .14s ease; z-index: 3;
}
.sector-dot:hover .sector-tip,
.sector-dot:focus-visible .sector-tip,
.sector-dot.on .sector-tip { opacity: 1; transform: translateX(-50%) translateY(0); }

.sector-caption {
  text-align: center; margin-top: 14px; min-height: 20px;
  font-family: var(--font-display); font-weight: 700; color: var(--ink-soft);
  letter-spacing: -.01em;
}

/* ---- 2. Cartes des 7 titres -------------------------------------------- */
.persona-titles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px; margin-top: 22px;
  animation: screenIn .3s cubic-bezier(.2,.7,.3,1) both;
}
.title-card {
  position: relative; text-align: left; cursor: pointer; border: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px; border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--edge), 0 5px 0 var(--edge-soft);
  transition: transform .14s ease, box-shadow .14s ease;
}
.title-card:hover { transform: translateY(-3px) rotate(.4deg); box-shadow: inset 0 0 0 2px var(--edge), 0 8px 0 var(--edge-soft); }
.title-card:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--edge), 0 1px 0 var(--edge-soft); }
.title-card .tc-name { flex: 1; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.title-card .tc-go {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  box-shadow: inset 0 0 0 2px var(--edge-soft); flex: none;
}
/* badge « Recommandé » sur une carte : posé en haut à droite, sobre */
.rec-badge.flat {
  left: auto; right: 12px; top: -10px; transform: none;
}
.rec-badge.flat::after { display: none; }

/* ---- 3. Modale de réglage (curseurs) ----------------------------------- */
.persona-modal { max-width: 460px; }
.persona-recap {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
  padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface); box-shadow: inset 0 0 0 2px var(--edge-soft);
}
.persona-recap .pr-dot { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px var(--edge); }
.persona-recap .pr-titre { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--ink); }
.persona-recap .pr-secteur { font-size: 12px; color: var(--ink-soft); }

.slider-block { margin-bottom: 22px; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.slider-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); letter-spacing: -.01em; }
.slider-val {
  font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--ink);
  background: var(--pop); padding: 2px 8px; border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--edge);
}
.slider-ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--ink-soft); }

.persona-modal input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 16px;
  background: var(--surface); border-radius: 999px; cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--edge);
}
.persona-modal input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); border: 0;
  box-shadow: inset 0 0 0 2px var(--edge), 0 3px 0 color-mix(in srgb, var(--accent) 62%, var(--ink));
}
.persona-modal input[type="range"]::-webkit-slider-thumb:active { box-shadow: inset 0 0 0 2px var(--edge), 0 1px 0 color-mix(in srgb, var(--accent) 62%, var(--ink)); }
.persona-modal input[type="range"]::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent);
  border: 2px solid var(--edge); box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 62%, var(--ink));
}
.persona-modal input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.persona-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.persona-actions .btn { min-width: 108px; justify-content: center; }
