/* Sans ceci, le font boosting de Chrome mobile GONFLE des textes au rendu
   (invisible dans les styles calcules) — vecu : nav de recruter.html eclatee a 375px. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Shared modern skin for every public agent profile. Functional media and CTA
   IDs stay untouched; colours adapt to the agent's professional family. */

body.agent-profile {
  --family-a: #7c3aed;
  --family-b: #2563eb;
  --family-c: #06b6d4;
  --bg: #090d2f;
  --surf: rgba(20, 27, 76, .8);
  --surf2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .13);
  --line2: rgba(255, 255, 255, .22);
  --txt: #fff;
  --muted: #bac1df;
  --faint: #929abc;
  --accent: var(--family-b);
  --grad: linear-gradient(120deg, var(--family-a), var(--family-b) 52%, var(--family-c));
  min-height: 100vh;
  color: var(--txt);
  background:
    radial-gradient(720px 620px at -8% 4%, color-mix(in srgb, var(--family-a) 34%, transparent), transparent 68%),
    radial-gradient(760px 600px at 104% 68%, color-mix(in srgb, var(--family-c) 25%, transparent), transparent 70%),
    #090d2f;
  overflow-x: hidden;
}

body.agent-profile::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .45;
  background-image: radial-gradient(rgba(255, 255, 255, .24) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(130deg, #000, transparent 72%);
}

body.agent-profile[data-family="creatif"] { --family-a: #d946ef; --family-b: #ff5b6e; --family-c: #ffd84d; }
body.agent-profile[data-family="marketing"] { --family-a: #7c3aed; --family-b: #ec4899; --family-c: #ffb84d; }
body.agent-profile[data-family="media"] { --family-a: #06b6d4; --family-b: #7c3aed; --family-c: #ec4899; }
body.agent-profile[data-family="quotidien"] { --family-a: #06b6d4; --family-b: #34d399; --family-c: #d9f43b; }
body.agent-profile[data-family="juridique"] { --family-a: #4338ca; --family-b: #2563eb; --family-c: #a78bfa; }
body.agent-profile[data-family="finance"] { --family-a: #059669; --family-b: #06b6d4; --family-c: #a3e635; }
body.agent-profile[data-family="business"] { --family-a: #7c3aed; --family-b: #2563eb; --family-c: #ff6b7a; }
body.agent-profile[data-family="vente"] { --family-a: #ff5b6e; --family-b: #ff9f43; --family-c: #7c3aed; }
body.agent-profile[data-family="tech"] { --family-a: #06b6d4; --family-b: #2563eb; --family-c: #7c3aed; }

body.agent-profile > .wrap,
body.agent-profile > header,
body.agent-profile > section,
body.agent-profile > footer,
body.agent-profile > nav { position: relative; z-index: 1; }

/* Compact generated profile */
body.agent-profile--compact > .wrap {
  max-width: 1180px;
  padding: 18px 24px 0;
}

body.agent-profile--compact .retour {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 13px;
  color: rgba(255, 255, 255, .74);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .18s ease, color .18s ease, background .18s ease;
}

body.agent-profile--compact .retour:first-of-type {
  padding-left: 50px;
  color: #fff;
  font-weight: 800;
}

body.agent-profile--compact .retour:first-of-type::before {
  content: "";
  position: absolute;
  left: 8px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background:url("logo-mark.png?v=8") center/contain no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 8px 20px -12px var(--family-b);
}

body.agent-profile--compact .retour + .retour { margin-left: 8px !important; }
body.agent-profile--compact .retour:hover { color: #fff; background: rgba(255, 255, 255, .12); transform: translateY(-1px); }

body.agent-profile--compact .hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
  min-height: calc(100vh - 150px);
  margin-top: 18px;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(520px 420px at 0% 10%, color-mix(in srgb, var(--family-a) 38%, transparent), transparent 68%),
    radial-gradient(520px 420px at 100% 90%, color-mix(in srgb, var(--family-c) 26%, transparent), transparent 70%),
    linear-gradient(145deg, rgba(22, 28, 76, .95), rgba(11, 16, 52, .94));
  box-shadow: 0 44px 110px -58px color-mix(in srgb, var(--family-a) 55%, #000);
}

body.agent-profile--compact .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .48;
  background-image: radial-gradient(rgba(255, 255, 255, .28) 1px, transparent 1px);
  background-size: 23px 23px;
  mask-image: linear-gradient(120deg, transparent 25%, #000 100%);
}

body.agent-profile--compact .scene {
  position: relative;
  width: min(100%, 410px);
  justify-self: center;
  border: 5px solid transparent;
  border-radius: 30px;
  background:
    linear-gradient(#f4dfc0, #f4dfc0) padding-box,
    var(--grad) border-box;
  box-shadow: 0 34px 74px -34px color-mix(in srgb, var(--family-b) 62%, transparent);
  transform: rotate(-1.2deg);
}

body.agent-profile--compact .scene::after {
  content: "●  En ligne · prêt à travailler";
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #fff;
  background: rgba(9, 13, 47, .62);
  box-shadow: 0 14px 32px -20px rgba(0, 0, 0, .8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: .01em;
}

body.agent-profile--compact .scene video {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  object-fit: cover;
  object-position: 50% 8%;
}

body.agent-profile--compact .hero > div:last-child { max-width: 600px; }
body.agent-profile--compact .fam {
  margin: 0 0 18px;
  padding: 8px 13px;
  border: 1px solid color-mix(in srgb, var(--family-c) 42%, transparent);
  border-radius: 999px;
  color: #fff;
  background: color-mix(in srgb, var(--family-a) 18%, transparent);
  font-size: 11px;
  letter-spacing: .13em;
}

body.agent-profile--compact h1 {
  margin: 0 0 8px;
  font-size: clamp(52px, 7vw, 94px);
  line-height: .92;
  letter-spacing: -.065em;
  background: linear-gradient(105deg, #fff 5%, color-mix(in srgb, var(--family-c) 72%, #fff) 58%, color-mix(in srgb, var(--family-b) 76%, #fff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.agent-profile--compact .metier {
  margin-bottom: 18px;
  color: color-mix(in srgb, var(--family-c) 76%, #fff);
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 750;
}

body.agent-profile--compact .desc {
  max-width: 54ch;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(16px, 1.5vw, 19px);
}

body.agent-profile--compact h2 { margin-bottom: 13px; color: rgba(255, 255, 255, .56); }
body.agent-profile--compact .missions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 30px;
}
body.agent-profile--compact .missions li {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px 10px 34px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  background: rgba(255, 255, 255, .065);
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
}
body.agent-profile--compact .missions li::before {
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  background: var(--family-c);
  box-shadow: 0 0 12px color-mix(in srgb, var(--family-c) 70%, transparent);
}

body.agent-profile--compact .cta { gap: 10px; }
body.agent-profile--compact .recruter,
body.agent-profile--compact .ecouter,
body.agent-profile--compact .second {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}
body.agent-profile--compact .recruter {
  padding: 13px 25px;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 18px 34px -20px color-mix(in srgb, var(--family-b) 72%, transparent);
}
body.agent-profile--compact .ecouter,
body.agent-profile--compact .second {
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
  background: rgba(255, 255, 255, .07);
}
body.agent-profile--compact .ecouter .rond { background: var(--family-c); box-shadow: 0 0 12px var(--family-c); }
body.agent-profile--compact footer { padding: 22px 8px 42px; color: rgba(255, 255, 255, .48); text-align: center; }

/* Rich story profile (Tom and any future editorial profile). */
body.agent-profile--story nav {
  top: 10px;
  width: min(1140px, calc(100% - 24px));
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(9, 13, 47, .76);
  backdrop-filter: blur(18px);
}
body.agent-profile--story .hero { padding-top: 72px; }
body.agent-profile--story .hgrid {
  min-height: 650px;
  padding: clamp(28px, 4vw, 54px);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 36px;
  background:
    radial-gradient(520px 420px at 0% 5%, color-mix(in srgb, var(--family-a) 38%, transparent), transparent 70%),
    radial-gradient(520px 420px at 100% 100%, color-mix(in srgb, var(--family-c) 25%, transparent), transparent 70%),
    rgba(16, 22, 66, .86);
  overflow: hidden;
}
body.agent-profile--story .portrait img { border: 5px solid transparent; background: linear-gradient(#f2dfc2, #f2dfc2) padding-box, var(--grad) border-box; }
body.agent-profile--story .eyebrow { color: #fff; background: color-mix(in srgb, var(--family-a) 18%, transparent); }
body.agent-profile--story .card,
body.agent-profile--story .feat,
body.agent-profile--story .cta-band {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .065);
  backdrop-filter: blur(12px);
}
body.agent-profile--story .feat:nth-child(3n+1) { border-top: 4px solid var(--family-a); }
body.agent-profile--story .feat:nth-child(3n+2) { border-top: 4px solid var(--family-b); }
body.agent-profile--story .feat:nth-child(3n) { border-top: 4px solid var(--family-c); }

@media (max-width: 900px) {
  body.agent-profile--compact > .wrap { padding: 12px 12px 0; }
  body.agent-profile--compact .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 32px;
    padding: 26px;
    border-radius: 28px;
  }
  body.agent-profile--compact .scene { width: min(100%, 430px); transform: none; }
  body.agent-profile--compact .hero > div:last-child { max-width: 680px; margin: 0 auto; text-align: center; }
  body.agent-profile--compact .desc { margin-left: auto; margin-right: auto; }
  body.agent-profile--compact .missions { text-align: left; }
  body.agent-profile--compact .cta { justify-content: center; }
}

@media (max-width: 560px) {
  body.agent-profile--compact .retour { font-size: 12px; padding: 0 10px; }
  body.agent-profile--compact .retour:first-of-type { padding-left: 44px; }
  body.agent-profile--compact .hero { padding: 16px 16px 26px; }
  body.agent-profile--compact .scene { border-radius: 24px; }
  body.agent-profile--compact .scene video { border-radius: 18px; }
  body.agent-profile--compact h1 { font-size: clamp(48px, 18vw, 72px); }
  body.agent-profile--compact .missions { grid-template-columns: 1fr; }
  body.agent-profile--compact .cta > * { width: 100%; }
  body.agent-profile--story .hgrid { border-radius: 26px; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  body.agent-profile .scene video { animation: none !important; }
  body.agent-profile .scene #scene { display: block; }
  body.agent-profile .retour,
  body.agent-profile .recruter { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LE DEROULEUR SUR LE COTE (04/09/2026)

   « On voit mal le derouleur sur le cote. » Mesure faite avant de toucher :
     · thème sombre  #2E376B sur #080F3A  ->  contraste 1,65
     · thème clair   #E7E9EE sur #F6F7F9  ->  contraste 1,13
   Un contour a 1,13, c'est un contour qu'on ne voit pas. Et la bordure de 3 px
   prise sur une largeur de 10 px ne laissait que QUATRE pixels de curseur.

   Reecrit : 13 px de large (9 px de curseur visible), et une couleur non plus
   fixe mais TRANSPARENTE — le curseur se pose donc correctement sur un panneau
   comme sur le fond de page, ce que `var(--surf3)` ne savait pas faire. La
   bordure reste, en transparent + `background-clip:padding-box`, pour garder
   l'air autour du curseur sans reboucher la gouttiere.
     · sombre  blanc a 34 %  ->  3,04     · clair  noir a 45 %  ->  3,14
   Au-dessus de 3:1, le seuil des elements d'interface non textuels.
   ═══════════════════════════════════════════════════════════════════════════ */
html{scrollbar-width:thin;scrollbar-color:rgba(9,9,11,.45) transparent}
:root[data-theme="dark"]{scrollbar-color:rgba(255,255,255,.34) transparent}
::-webkit-scrollbar{width:13px;height:13px}
::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(9,9,11,.45);background-clip:padding-box;
  border:3px solid transparent;border-radius:99px;min-height:40px}
::-webkit-scrollbar-thumb:hover{background:rgba(9,9,11,.62);background-clip:padding-box}
::-webkit-scrollbar-thumb:active{background:rgba(9,9,11,.74);background-clip:padding-box}
:root[data-theme="dark"] ::-webkit-scrollbar-thumb{background:rgba(255,255,255,.34);background-clip:padding-box}
:root[data-theme="dark"] ::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.5);background-clip:padding-box}
:root[data-theme="dark"] ::-webkit-scrollbar-thumb:active{background:rgba(255,255,255,.64);background-clip:padding-box}
