/* Orvok — pages dédiées (Agents, Tarifs, Mon offre, Commencer, Contact). S'appuie sur les tokens de site.css. */
.pg { background: var(--bg); }
.pg-top { height: var(--nav-h); }
.pg-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 6.2vw, 92px); line-height: 1.02; letter-spacing: -.038em; text-wrap: balance; }
.pg-title em { font-style: normal; color: var(--ink-3); }
.pg .lead { max-width: 640px; }
.hp { position: absolute; left: -9999px; }

/* ---------------- Agents ---------------- */
.pg-hero { padding: calc(var(--nav-h) + clamp(64px, 10vw, 140px)) 0 clamp(56px, 7vw, 96px); text-align: center; }
.pg-hero .lead { margin: 22px auto 0; }
.pg-team { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(14px, 3vw, 40px); margin-top: clamp(40px, 5vw, 64px); list-style: none; }
.pg-team a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; }
.pg-team b { margin-top: 10px; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: -.01em; }
.pg-team small { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pf-mini { position: relative; display: block; width: clamp(76px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45); transition: transform .7s var(--expo); }
.pg-team a:hover .pf-mini { transform: translateY(-6px) scale(1.04); }
.pf-mini .ch { position: absolute; left: -22%; top: -6%; width: 144%; height: auto; }
.pf-mails, .pf-mails.pf-mini { background: radial-gradient(70% 55% at 50% 30%, #49bde9 0%, #1f8a66 48%, #0a4c69 100%); }
.pf-juridique { background: radial-gradient(70% 55% at 50% 30%, #ffffff 0%, #ececf1 50%, #c3c5cc 100%); }
.pf-admin { background: radial-gradient(70% 55% at 50% 30%, #f3dc9a 0%, #e9c46a 46%, #d39e00 100%); }
.pf-donnees { background: radial-gradient(70% 55% at 50% 30%, #1c4a3b 0%, #12261f 48%, #020a18 100%); }
.pf-rh { background: radial-gradient(70% 55% at 50% 30%, #f1fbff 0%, #b5e1f2 48%, #6aaecb 100%); }

.ag-sec { padding: clamp(72px, 10vw, 140px) 0; }
.ag-dark { background: #0c0d0b; color: #f6f5f1; }
.ag-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.ag-grid.flip .pf { order: 2; }
.pf { position: relative; aspect-ratio: 4 / 5; border-radius: 34px; overflow: hidden; isolation: isolate; box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .55); }
.pf::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .14) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .3) 100%); pointer-events: none; }
.pf .figwrap { z-index: 0; }
.pf-no { position: absolute; z-index: 2; top: 18px; right: 20px; font: 500 13px/1 ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; letter-spacing: .08em; color: rgba(255, 255, 255, .85); }
.pf-role { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 8px 13px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.pf-juridique .pf-role, .pf-admin .pf-role, .pf-rh .pf-role { color: #151513; background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.pf-juridique .pf-no, .pf-admin .pf-no, .pf-rh .pf-no { color: rgba(0, 0, 0, .55); }
.ag-info .kicker { margin-bottom: 0; }
.ag-dark .kicker { color: var(--accent-2); }
.ag-name { margin-top: 10px; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(72px, 8vw, 124px); line-height: .92; letter-spacing: -.02em; }
.ag-desc { margin-top: 18px; max-width: 30ch; font-family: var(--font-display); font-size: clamp(21px, 2vw, 28px); font-weight: 500; line-height: 1.22; letter-spacing: -.025em; color: var(--ink-2); text-wrap: pretty; }
.ag-dark .ag-desc { color: #a1a1a6; }
.ag-info h3 { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ag-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: clamp(28px, 3.4vw, 44px); }
.ag-does, .ag-day { list-style: none; margin-top: 10px; }
.ag-does li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.4; letter-spacing: -.012em; }
.ag-day li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.ag-day time { font: 500 13px/1.5 ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; color: var(--accent); }
.ag-day p { font-size: 15px; line-height: 1.4; letter-spacing: -.012em; }
.ag-dark :is(.ag-does li, .ag-day li) { border-color: rgba(255, 255, 255, .1); color: #e5e5ea; }
.ag-dark .ag-day time { color: var(--accent-2); }
.ag-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: end; margin-top: 30px; }
.ag-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; list-style: none; }
.ag-tools li { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 9px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-card); font-size: 14px; font-weight: 500; letter-spacing: -.01em; }
.ag-tools img { width: 22px; height: 22px; object-fit: contain; }
.ag-dark .ag-tools li { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: #f6f5f1; }
.ag-dark .ag-tools img { padding: 2px; border-radius: 6px; background: #fff; }
.ag-never { padding: 14px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; background: var(--surface); box-shadow: var(--shadow-card); }
.ag-never b { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9a7a00; }
.ag-dark .ag-never { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: #e5e5ea; }
.ag-dark .ag-never b { color: #e9c46a; }

.pg-band { padding: clamp(72px, 9vw, 120px) 0; background: var(--surface); }
.pg-band-in { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 28px; }
.pg-band-in .h2 { max-width: 16ch; }
.pg-band-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-after { padding-top: 0; }

/* ---------------- Tarifs : comparatif ---------------- */
.pg-compare { background: var(--surface); }
.cmp-wrap { margin-top: clamp(28px, 3.5vw, 44px); overflow-x: auto; border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line); }
.cmp { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; letter-spacing: -.012em; }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp thead th { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; background: var(--bg); }
.cmp thead th small { display: block; margin-top: 2px; font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--ink-2); }
.cmp tbody th { font-weight: 500; color: var(--ink); }
.cmp td { color: var(--ink-2); }
.cmp .hl { background: var(--ink); color: #fff; }
.cmp .hl small { color: #a1a1a6; }
.cmp tbody tr:last-child :is(th, td) { border-bottom: 0; }
.cmp tbody td:nth-child(3) { color: var(--ink); font-weight: 500; background: rgba(31, 138, 102, .05); }
.cmp-note { margin-top: 22px; text-align: center; color: var(--ink-2); }
.cmp-note a { color: var(--accent); font-weight: 500; }

/* ---------------- Formulaires (Commencer, Contact) ---------------- */
.pg-form-sec { padding: calc(var(--nav-h) + clamp(48px, 8vw, 110px)) 0 clamp(72px, 9vw, 120px); }
.fm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.fm-side .lead { margin-top: 22px; }
.fm-steps { margin-top: clamp(32px, 4vw, 48px); list-style: none; display: grid; gap: 4px; }
.fm-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.fm-steps b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; }
.fm-steps li:first-child b { background: #e9c46a; color: #151513; }
.fm-steps h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.fm-steps p { margin-top: 2px; font-size: 15px; color: var(--ink-2); }
.fm-card { position: sticky; top: calc(var(--nav-h) + 24px); padding: clamp(24px, 3vw, 40px); border-radius: 32px; background: var(--surface); box-shadow: var(--shadow-lift); }
.fm { display: grid; gap: 18px; }
.fm-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fm-field { display: grid; gap: 8px; min-width: 0; border: 0; }
.fm-field > label, .fm-field legend { font-size: 13px; font-weight: 600; letter-spacing: -.005em; color: var(--ink-2); }
.fm-field legend { margin-bottom: 8px; }
.fm-field input, .fm-field select, .fm-field textarea { width: 100%; padding: 0 16px; height: 50px; border: 0; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font: 400 16px var(--font-body); letter-spacing: -.015em; color: var(--ink); outline: none; transition: box-shadow .25s, background .25s; -webkit-appearance: none; appearance: none; }
.fm-field textarea { height: auto; padding: 14px 16px; line-height: 1.45; resize: vertical; }
.fm-field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 17px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.fm-field :is(input, select, textarea):focus { background-color: #fff; box-shadow: inset 0 0 0 2px var(--accent); }
.fm-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fm-chip { position: relative; cursor: pointer; }
.fm-chip input { position: absolute; opacity: 0; pointer-events: none; }
.fm-chip span { display: block; padding: 12px 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 600; letter-spacing: -.015em; transition: box-shadow .25s, background .25s, transform .4s var(--expo); }
.fm-chip small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.fm-chip:hover span { background: #ececf0; }
.fm-chip input:checked + span { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.fm-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fm-error { padding: 12px 14px; border-radius: 12px; font-size: 14px; color: #a32d24; background: rgba(239, 90, 79, .1); }
.fm-note { margin-top: -4px; text-align: center; font-size: 13px; color: var(--ink-3); }
.fm-legal { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.fm-legal a { color: var(--ink-2); }
.fm-done { display: grid; justify-items: center; gap: 12px; padding: 30px 10px; text-align: center; }
.fm-done[hidden] { display: none; }
.fm-done svg { width: 64px; height: 64px; stroke: var(--ok); }
.fm-done h2 { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -.03em; }
.fm-done p { max-width: 34ch; color: var(--ink-2); }
.ct-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(32px, 4vw, 48px); list-style: none; }
.ct-cards li { padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-card); }
.ct-cards h3 { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ct-cards p { margin-top: 6px; font-size: 15px; font-weight: 500; letter-spacing: -.015em; }
.ct-cards a { color: var(--accent); }

@media (max-width: 900px) {
  .ag-grid, .fm-grid { grid-template-columns: 1fr; }
  .ag-grid.flip .pf { order: 0; }
  .pf { max-width: 460px; width: 100%; margin: 0 auto; }
  .fm-card { position: static; }
}
@media (max-width: 640px) {
  .ag-cols, .ag-foot, .fm-row, .ct-cards { grid-template-columns: 1fr; }
  .pg-team { gap: 14px 18px; }
  .pg-team b { font-size: 22px; }
}

/* ---------------- Animations des pages ---------------- */
.pg-team.orbit { position: relative; display: block; height: clamp(230px, 24vw, 300px); perspective: 1400px; transform-style: preserve-3d; }
.pg-team.orbit li { position: absolute; left: 50%; top: 22px; width: 140px; margin-left: -70px; transform-style: preserve-3d; will-change: transform, opacity; }
.pg-team.orbit a { align-items: center; }
.ag-sec .pf, .ag-sec .pf.tilt { transition: rotate .6s var(--soft), box-shadow .6s var(--soft), scale .2s linear; }
.ag-sec .pf.tilt.tilting { transition: rotate .12s linear, scale .2s linear; }
.cmp .sweep { background-image: linear-gradient(100deg, transparent 30%, rgba(143, 214, 184, .35) 50%, transparent 70%); background-size: 250% 100%; background-repeat: no-repeat; animation: cmp-sweep 1.6s .4s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes cmp-sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.fm-steps { position: relative; }
.fm-steps::before { content: ""; position: absolute; left: 17px; top: 34px; bottom: 34px; width: 2px; border-radius: 2px; background: linear-gradient(#e9c46a, #1f8a66); transform-origin: top; transform: scaleY(0); transition: transform 1.6s cubic-bezier(.16, 1, .3, 1) .3s; }
.fm-steps.drawn::before { transform: scaleY(1); }
.fm-steps b { position: relative; z-index: 1; }
.fm-done svg circle { stroke-dasharray: 176; stroke-dashoffset: 176; animation: done-draw 1s .1s cubic-bezier(.16, 1, .3, 1) forwards; }
.fm-done svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: done-draw .6s .7s cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes done-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .fm-steps::before { transform: none; } .fm-done svg :is(circle, path) { animation: none; stroke-dashoffset: 0; } }
.pg-team.orbit { margin-top: clamp(64px, 7vw, 100px); }
/* Orbite : seuls les portraits de devant portent leur nom, les textes ne se croisent jamais. */
.pg-team.orbit li b, .pg-team.orbit li small { transition: opacity .35s linear; }
.pg-team.orbit li.far b, .pg-team.orbit li.far small { opacity: 0; }

/* Étiquettes des agents dans la DA Orvok : Inter en minuscules, logo Orvok, numéro en italique */
.pf-role { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 11px; font-size: 14px; font-weight: 500; letter-spacing: -.012em; text-transform: none; }
.pf-role::before { content: ""; flex: none; width: 12px; height: 12px; background: currentColor; -webkit-mask: url(../assets/logos/orvok-mark.svg) center / contain no-repeat; mask: url(../assets/logos/orvok-mark.svg) center / contain no-repeat; }
.pf-no { top: 13px; right: 18px; font: italic 400 22px/1 var(--font-serif, "Instrument Serif", Georgia, serif); letter-spacing: 0; }
.ag-info h3 { font-size: 14px; font-weight: 500; letter-spacing: -.01em; text-transform: none; color: var(--ink-2); }
.ag-dark .ag-info h3 { color: rgba(255, 255, 255, .6); }
.ag-never b { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; text-transform: none; }
.pg-team small { font-size: 13.5px; font-weight: 500; letter-spacing: -.01em; text-transform: none; }
.ag-foot { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.ag-never { max-width: 380px; }
