/* Compétences (panneaux), Parcours (git log, distinctions), Méthode (voir aussi les autres fichiers du dossier css/) */
/* ===== stack : panneaux dépliables ===== */
.panels { display: flex; gap: 10px; height: 650px; }
.pn { position: relative; flex: 1 1 0; min-width: 0; border-radius: 28px; border: 1px solid var(--hair); background: color-mix(in srgb, var(--surface) 88%, transparent); overflow: hidden; cursor: pointer; transition: flex-grow .7s var(--ease), background .4s, border-color .4s; }
.pn.on { flex-grow: 9; cursor: default; background: var(--surface); border-color: color-mix(in srgb, var(--gold) 40%, var(--hair)); }
.pn.ai.on { border-color: color-mix(in srgb, var(--blue) 55%, var(--hair)); }
.pn:not(.on):hover { background: var(--surface-2); }
.pn-tab { position: absolute; inset: 0; width: 100%; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 22px 0; transition: opacity .35s; }
.pn.on .pn-tab { opacity: 0; pointer-events: none; }
.pn-tab .no { font-family: var(--display); font-size: 22px; color: var(--ink-muted); }
.pn-tab .vt { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-size: 25px; letter-spacing: -.01em; white-space: nowrap; }
.pn-tab .ct { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: color-mix(in srgb, var(--gold) 22%, transparent); }
.pn.ai .pn-tab .ct { background: color-mix(in srgb, var(--blue) 26%, transparent); }
.pn-body { position: absolute; top: 0; left: 0; bottom: 0; width: min(780px, 100%); padding: clamp(22px, 2.4vw, 34px); display: flex; flex-direction: column; gap: 16px; opacity: 0; visibility: hidden; transition: opacity .3s; overflow-y: auto; scrollbar-width: thin; }
.pn.on .pn-body { opacity: 1; visibility: visible; transition: opacity .5s .25s; }
.pn-head { display: grid; gap: 6px; }
.pn-head .caps { color: var(--accent-ink); }
.pn-head h3 { font-size: clamp(32px, 3.6vw, 50px); font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.pn-head p { margin: 0; color: var(--ink-muted); font-size: 15.5px; max-width: 52ch; }
.pt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tcard { border: 1px solid var(--hair); border-radius: 18px; padding: 14px 16px; background: color-mix(in srgb, var(--ground) 40%, var(--surface)); display: grid; gap: 6px; align-content: start; min-width: 0; }
.tcard h4 { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.1; display: flex; align-items: center; gap: 9px; }
.tcard h4::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.pn.ai .tcard h4::before { background: var(--blue); }
.tcard p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.45; }
.tcard .used { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tcard .used button { min-height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--hair); background: transparent; color: var(--accent-ink); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; transition: all .25s; }
.tcard .used button:hover { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.pn.on .tcard { animation: fade .5s var(--ease) both; animation-delay: calc(var(--k) * 50ms + 250ms); }
@media (max-width: 980px) {
  .panels { flex-direction: column; height: auto; gap: 8px; }
  .pn, .pn.on { flex: none; border-radius: 22px; }
  .pn-tab { position: relative; inset: auto; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 0 18px; height: 62px; }
  .pn-tab .vt { writing-mode: horizontal-tb; transform: none; font-size: 22px; flex: 1; text-align: left; }
  .pn-tab .no { font-size: 15px; width: 26px; }
  .pn.on .pn-tab { opacity: 1; pointer-events: auto; }
  .pn-body { position: static; width: auto; max-height: 0; padding: 0 18px; opacity: 0; visibility: hidden; overflow: hidden; transition: max-height .6s var(--ease), padding .4s, opacity .3s; }
  .pn.on .pn-body { max-height: 2000px; padding: 4px 18px 20px; opacity: 1; visibility: visible; }
  .pn-head h3 { display: none; }
  .pt { grid-template-columns: 1fr; }
}

/* ===== parcours : historique git ===== */
.gitbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px 12px 18px; border-radius: 18px; border: 1px solid var(--hair); background: color-mix(in srgb, var(--surface) 85%, transparent); margin-bottom: 14px; }
.gitbar .pr { font-size: 14px; color: var(--ink-muted); }
.gitbar code { font: 500 15px var(--body); color: var(--ink); flex: 1; min-width: 0; }
.gitbar code b { color: var(--accent-ink); font-weight: 600; }
.gitbar code::after { content: ""; display: inline-block; width: 8px; height: 17px; margin-left: 3px; vertical-align: -3px; background: var(--gold); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.branches { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--hair); }
.branches button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-muted); font-size: 13.5px; font-weight: 500; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; transition: all .25s; }
.branches button i { width: 8px; height: 8px; border-radius: 50%; }
.branches button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.git { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.glog { list-style: none; margin: 0; padding: 8px 0; border-radius: 26px; border: 1px solid var(--hair); background: color-mix(in srgb, var(--surface) 85%, transparent); overflow: hidden; }
.cm { position: relative; }
.cm > button { width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 0 18px 0 0; min-height: 78px; border: 0; background: transparent; text-align: left; cursor: pointer; transition: background .25s; }
.cm > button:hover { background: color-mix(in srgb, var(--gold) 6%, transparent); }
.cm[aria-current="true"] > button { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.lane { position: relative; align-self: stretch; }
.lane svg { position: absolute; inset: 0; width: 56px; height: 100%; overflow: visible; }
.lane .l-e { stroke: var(--gold); } .lane .l-f { stroke: var(--line-art); }
.lane line, .lane path { stroke-width: 2; fill: none; }
.cm-main { min-width: 0; display: grid; gap: 3px; padding-block: 14px; }
.cm-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.hash { letter-spacing: .04em; }
.ref { padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.ref.e { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--accent-ink); }
.ref.f { background: var(--surface-2); color: var(--ink-muted); border: 1px solid var(--hair); }
.ref.h { background: var(--ink); color: var(--ground); }
.cm-msg { font-family: var(--display); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.2; }
.cm-org { font-size: 13.5px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-date { font-size: 12.5px; color: var(--ink-muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cm.hide { display: none; }
.gshow { position: sticky; top: 24px; border-radius: 26px; border: 1px solid var(--hair); background: var(--raise); overflow: hidden; min-width: 0; }
.gs-head { padding: 18px 22px; border-bottom: 1px solid var(--hair); display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.gs-head .l1 { color: var(--accent-ink); font-weight: 600; font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gs-head dl { margin: 6px 0 0; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 3px 10px; }
.gs-head dt { color: var(--ink-muted); } .gs-head dd { margin: 0; color: var(--ink); }
.gs-body { padding: 20px 22px 24px; display: grid; gap: 14px; }
.gs-body h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 300; line-height: 1.08; }
.gs-body > p { color: var(--ink-muted); font-size: 15px; }
.diff { border-radius: 14px; border: 1px solid var(--hair); overflow: hidden; font-size: 14px; }
.diff .dh { padding: 8px 14px; background: var(--surface-2); color: var(--ink-muted); font-size: 12.5px; border-bottom: 1px solid var(--hair); }
.diff div.add { display: grid; grid-template-columns: 22px minmax(0, 1fr); padding: 7px 14px 7px 8px; background: color-mix(in srgb, var(--ok) 9%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--ok) 12%, transparent); animation: typein .35s var(--ease) both; }
.diff div.add:last-child { border-bottom: 0; }
.diff div.add::before { content: "+"; color: var(--ok); font-weight: 700; text-align: center; }
.gshow.anim { animation: fade .45s var(--ease); }
@keyframes typein { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 900px) {
  .git { grid-template-columns: 1fr; }
  .gshow { position: static; margin: 4px 12px 12px 56px; border-radius: 20px; }
  .cm > button { grid-template-columns: 48px minmax(0, 1fr); padding-right: 14px; }
  .cm-date { display: none; }
  .lane svg { width: 48px; }
}
.honors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 44px; perspective: 1200px; }
@media (max-width: 820px) { .honors { grid-template-columns: 1fr; } }
.tk { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; position: relative; overflow: hidden; border-radius: 30px; border: 1px solid var(--hair); background: var(--surface); padding: clamp(24px, 3vw, 38px); min-height: 280px; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), border-color .3s; transform-style: preserve-3d; }
.tk.tilting { transition: transform .08s linear, border-color .3s; border-color: color-mix(in srgb, var(--gold) 45%, var(--hair)); }
.tk::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--gx) var(--gy), color-mix(in srgb, var(--gold) 22%, transparent), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.tk.tilting::before { opacity: 1; }
.tk .yr { position: absolute; right: -10px; bottom: -34px; font-family: var(--display); font-weight: 300; font-size: clamp(130px, 17vw, 210px); line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px var(--line-art); opacity: .5; pointer-events: none; user-select: none; }
.tk .top { display: flex; align-items: center; justify-content: space-between; gap: 14px; position: relative; }
.tk .kind { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.tk .seal { width: 84px; height: 84px; flex: none; color: var(--accent-ink); }
.tk .seal svg { width: 100%; height: 100%; overflow: visible; }
.tk .seal .ring { transform-origin: 50% 50%; animation: spin 28s linear infinite; }
.tk .seal text { font: 600 9.4px var(--body); letter-spacing: .24em; fill: currentColor; text-transform: uppercase; }
.tk .seal .core { fill: var(--gold); }
.tk h4 { position: relative; font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.04; letter-spacing: -.015em; align-self: end; }
.tk p { position: relative; margin: 0; color: var(--ink-muted); font-size: 15px; max-width: 46ch; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tk .seal .ring { animation: none; } }
.langs { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; color: var(--ink-muted); font-size: 15px; }
.langs b { font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--ink); margin-right: 8px; }

/* ===== méthode ===== */
.method { list-style: none; margin: 0; padding: 40px 0 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mline { position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 2px; background: var(--hair); overflow: hidden; }
.mline i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.mstep { position: relative; border: 1px solid var(--hair); border-radius: 26px; padding: 26px; background: color-mix(in srgb, var(--surface) 88%, transparent); display: flex; flex-direction: column; gap: 12px; overflow: hidden; transition: border-color .4s, transform .5s var(--ease), background .4s; min-width: 0; }
.mstep::before { content: ""; position: absolute; top: -41px; left: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--ground); border: 2px solid var(--ink-faint); transition: all .35s; }
.mstep .ghost { position: absolute; right: -6px; bottom: -28px; font-family: var(--display); font-weight: 300; font-size: 150px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--hair); pointer-events: none; transition: -webkit-text-stroke-color .4s; }
.mstep .mnum { font-size: 13px; font-weight: 600; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.mstep h3 { font-size: 30px; font-weight: 300; }
.mstep p { color: var(--ink-muted); font-size: 15px; }
.mliv { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 15px; position: relative; }
.mliv small { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 3px; }
.mtools { display: flex; flex-wrap: wrap; gap: 6px; position: relative; }
.mstep.on { border-color: color-mix(in srgb, var(--gold) 45%, var(--hair)); background: color-mix(in srgb, var(--gold) 7%, var(--surface)); }
.mstep.on::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 20%, transparent); }
.mstep.on .ghost { -webkit-text-stroke-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.mstep:hover { transform: translateY(-4px); }
@media (max-width: 980px) {
  .method { grid-template-columns: 1fr; padding: 0 0 0 34px; }
  .mline { left: 8px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .mline i { width: 100%; height: 100%; transform-origin: top; transform: scaleY(0); }
  .mstep::before { top: 28px; left: -33px; }
}

/* ===== contact ===== */
.c-lead { color: var(--ink-muted); margin-top: 16px; max-width: 44ch; font-size: 18px; }
.c-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.mail-orb { width: 150px; height: 150px; border-radius: 50%; border: 0; background: var(--gold); color: var(--on-gold); font-weight: 600; font-size: 15px; line-height: 1.25; cursor: pointer; padding: 18px; box-shadow: 0 24px 60px -20px color-mix(in srgb, var(--gold) 70%, transparent); transition: transform .4s var(--ease), background .3s; }
.mail-orb:hover { transform: scale(1.05) rotate(-3deg); }
.mail-orb.ok { background: var(--ok); }
.info { margin: 0; display: grid; border-top: 1px solid var(--hair); position: relative; }
.info > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--hair); font-size: 15.5px; }
.info dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); padding-top: 4px; }
.info dd { margin: 0; min-width: 0; }
.info code { font: 500 15px var(--body); user-select: all; overflow-wrap: anywhere; }
.live { display: inline-flex; align-items: center; gap: 10px; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
@media (max-width: 520px) { .info > div { grid-template-columns: 1fr; gap: 2px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
