
/* ---------- Univers 5 : Tour du Mont-Blanc, la montagne de nuit et le suivi GPS ---------- */
.u-tmb { --night: #0E1A2B; --slate: #1B2C44; --glacier: #EAF2F8; --ice: #9CC9E8; --trail: #FF6B2C; --dim: #A9B8CB; --gr-red: #D9302B;
  position: relative; background: var(--night); color: var(--glacier); font-family: "Barlow", system-ui, sans-serif; overflow: hidden;
  background-image: repeating-radial-gradient(ellipse at 78% 18%, transparent 0 34px, rgba(156,201,232,.06) 34px 35px), repeating-radial-gradient(ellipse at 12% 82%, transparent 0 40px, rgba(156,201,232,.05) 40px 41px); }
.tmb-ridge { display: block; width: 100%; height: 70px; transform: scaleY(-1); background: #0E1A2B; }
.u-tmb .tmb-ridge path { fill: #16263C; }
.u-tmb .inner { padding-block: 40px 88px; display: grid; gap: 48px; }
.u-tmb .u-label { color: var(--ice); }
.u-tmb .u-label .mono { font-family: var(--f-mono); }
.t-hero { display: grid; gap: 16px; }
.t-hero h2 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; text-transform: uppercase; font-size: clamp(44px, 8vw, 104px); line-height: .9; letter-spacing: -0.01em; max-width: 13ch; }
.t-hero h2 em { font-style: normal; color: var(--trail); }
.t-hero p { font-size: 19px; line-height: 1.6; max-width: 62ch; color: var(--dim); }

.t-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(234,242,248,.16); border-bottom: 1px solid rgba(234,242,248,.16); }
.t-stats > div { padding: 18px 18px 18px 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 6px; }
.t-stats > div + div { padding-left: 18px; border-left: 1px solid rgba(234,242,248,.16); }
.t-stats .v { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: clamp(36px, 4.6vw, 56px); line-height: 1; font-variant-numeric: tabular-nums; }
.t-stats .u { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 20px; color: var(--trail); text-transform: uppercase; }
.t-stats .k { grid-column: 1 / -1; font-size: 14.5px; color: var(--dim); margin-top: 6px; }

/* Visionneuse 3D */
.t-viewer { display: grid; gap: 0; }
.tmb-3d { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 20px 20px 0 0; overflow: hidden; touch-action: pan-y; cursor: grab;
  background: radial-gradient(120% 90% at 50% 0%, #2A4566 0%, #15253B 55%, #0B1523 100%); border: 1px solid rgba(156,201,232,.18); border-bottom: 0; }
.tmb-3d.grab { cursor: grabbing; }
.tmb-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tmb-fallback { position: absolute; inset: 12% 20%; display: none; }
.tmb-3d.no-gl .tmb-fallback { display: block; }
.tmb-fallback svg { width: 100%; height: 100%; }
.tmb-labels { position: absolute; inset: 0; pointer-events: none; }
.tmb-lbl { position: absolute; left: 0; top: 0; white-space: nowrap; font: 600 12.5px "Barlow", sans-serif; color: var(--glacier); background: rgba(14,26,43,.72); border: 1px solid rgba(234,242,248,.2); padding: 3px 8px; border-radius: 6px; margin: -30px 0 0 -12px; }
.tmb-lbl::after { content: ""; position: absolute; left: 10px; bottom: -6px; width: 1px; height: 6px; background: rgba(234,242,248,.6); }
.tmb-lbl.peak { background: var(--glacier); color: var(--night); font-weight: 700; }
.tmb-hud { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); left: 14px; background: rgba(11,21,35,.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(234,242,248,.14); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; min-width: 0; max-width: calc(100% - 28px); }
.hud-top { display: flex; align-items: center; gap: 8px; color: var(--dim); }
.hud-top .mono { font-size: 11px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--trail); box-shadow: 0 0 0 0 rgba(255,107,44,.6); animation: recPulse 1.6s ease-out infinite; }
@keyframes recPulse { to { box-shadow: 0 0 0 8px rgba(255,107,44,0); } }
.hud-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 18px; }
.hud-stats div { display: grid; gap: 2px; min-width: 0; }
.hud-stats .mono { font-size: 10.5px; color: var(--dim); }
.hud-stats b { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-stats small { font-size: 14px; color: var(--dim); margin-left: 3px; font-weight: 600; }
.hud-seg { font-size: 13.5px; color: var(--glacier); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmb-ctrl { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; }
.tmb-ctrl .hint { font-size: 12.5px; color: var(--dim); background: rgba(11,21,35,.6); padding: 4px 10px; border-radius: 999px; }
.tmb-play { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--trail); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px -6px rgba(255,107,44,.7); }
.tmb-play .i-play { display: none; }
.tmb-play:not(.is-playing) .i-play { display: block; }
.tmb-play:not(.is-playing) .i-pause { display: none; }
.tmb-play:focus-visible { outline: 3px solid var(--glacier); outline-offset: 3px; }

/* Profil altimétrique */
.tmb-prof { position: relative; height: 150px; background: #0B1523; border: 1px solid rgba(156,201,232,.18); border-top: 1px solid rgba(234,242,248,.1); border-radius: 0 0 20px 20px; cursor: ew-resize; touch-action: none; padding: 0; margin: 0; }
.tmb-prof svg { position: absolute; left: 0; right: 0; top: 18px; bottom: 26px; width: 100%; height: calc(100% - 44px); }
.tmb-prof:focus-visible { outline: 3px solid var(--trail); outline-offset: 2px; }
.tmb-ticks span { white-space: nowrap; position: absolute; bottom: 6px; transform: translateX(-50%); font: 500 11px var(--f-mono); color: var(--dim); }
.tmb-ticks span:first-child { transform: none; margin-left: 8px; }
.tmb-ticks span:last-child { transform: translateX(-100%); margin-left: -8px; }
.tmb-cols { position: absolute; left: 0; right: 0; top: 18px; bottom: 26px; pointer-events: none; }
.tmb-cols span { position: absolute; transform: translate(-50%, -6px); font-size: 11px; color: var(--dim); text-align: center; line-height: 1.15; white-space: nowrap; }
.tmb-cols b { display: block; color: var(--glacier); font-weight: 600; }
.tmb-mark { position: absolute; top: 18px; bottom: 26px; width: 0; border-left: 1px dashed rgba(255,107,44,.8); pointer-events: none; }
.tmb-mark::after { content: ""; position: absolute; left: -7px; bottom: var(--b, 0%); width: 12px; height: 12px; margin-bottom: -6px; border-radius: 50%; background: var(--trail); border: 2px solid #fff; }
.tmb-note { font-size: 13px; color: var(--dim); margin-top: 10px; }

/* Compétences : balisage GR blanc et rouge */
.t-skills { display: grid; gap: 24px; }
.t-skills-head h3 { font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 4.6vw, 52px); line-height: .95; }
.t-skills-head p { color: var(--dim); margin-top: 8px; font-size: 17px; }
.t-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.t-card { background: var(--slate); border: 1px solid rgba(234,242,248,.1); border-radius: 16px; padding: 22px; display: grid; gap: 10px; align-content: start; transition: transform .3s ease, border-color .3s ease; }
.t-card:hover { transform: translateY(-4px); border-color: rgba(255,107,44,.5); }
.blaze { display: block; width: 34px; height: 16px; background: linear-gradient(#fff 0 45%, transparent 45% 55%, var(--gr-red) 55%); border-radius: 2px; }
.t-card h4 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.t-card .trail { font-size: 15.5px; line-height: 1.55; color: var(--glacier); }
.t-card .work { font-size: 14.5px; line-height: 1.5; color: var(--dim); border-top: 1px dashed rgba(234,242,248,.18); padding-top: 10px; }
.t-card .work b { display: block; font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--trail); margin-bottom: 4px; }

/* Vidéo */
.t-video { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 22px; padding: 34px 30px; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--glacier); background: linear-gradient(180deg, #2A4566, #13233A); border: 1px solid rgba(156,201,232,.2); min-height: 200px; }
.t-video-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.t-play { position: relative; width: 78px; height: 78px; border-radius: 50%; background: var(--trail); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255,107,44,.18); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.t-video:hover .t-play { transform: scale(1.1); }
.t-video-txt { position: relative; display: grid; gap: 6px; }
.t-video-txt .mono { color: var(--ice); font-size: 12px; }
.t-video-txt b { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: clamp(26px, 3.6vw, 40px); text-transform: uppercase; line-height: 1; }
.t-video-txt .go { font-weight: 600; color: var(--trail); }

/* Tuile du sommaire et grille à 5 */
.tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.t-tmb { background: #0E1A2B; color: #EAF2F8; background-image: repeating-radial-gradient(ellipse at 90% 10%, transparent 0 14px, rgba(156,201,232,.12) 14px 15px); }
.t-tmb strong { font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase; color: #FF6B2C; }

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-tmb { grid-column: span 2; }
  .t-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .t-stats > div:nth-child(n+3) { border-top: 1px solid rgba(234,242,248,.16); }
  .t-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmb-3d { aspect-ratio: 4 / 3; }
}
@media (max-width: 620px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .t-tmb { grid-column: auto; }
  .t-cards { grid-template-columns: minmax(0, 1fr); }
  .tmb-3d { aspect-ratio: 4 / 5; border-radius: 16px 16px 0 0; }
  .tmb-prof { border-radius: 0 0 16px 16px; height: 130px; }
  .tmb-cols span:nth-child(2), .tmb-ticks span:nth-child(4) { display: none; }
  .tmb-labels .tmb-lbl:nth-child(2), .tmb-labels .tmb-lbl:nth-child(4) { display: none; }
  .hud-stats { gap: 12px; }
  .hud-stats b { font-size: 22px; }
  .tmb-ctrl .hint { display: none; }
  .t-video { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .t-play { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .rec { animation: none; }
  .t-card, .t-play { transition: none; }
}

/* ---------- Verre liquide (Mont-Blanc) ---------- */
.u-tmb { font-family: var(--f-sys, system-ui); background-color: #0B1422;
  background-image: radial-gradient(50% 40% at 85% 5%, rgba(100, 210, 255, .28), transparent 70%), radial-gradient(45% 35% at 0% 50%, rgba(94, 92, 230, .25), transparent 70%), radial-gradient(40% 30% at 80% 95%, rgba(255, 107, 44, .2), transparent 70%); }
.tmb-ridge { display: none; }
.u-tmb .inner { padding-block: 96px; }
.t-hero h2, .t-skills-head h3, .t-card h4, .t-video-txt b, .t-stats .v, .t-stats .u, .hud-stats b { font-family: var(--f-sys, system-ui); text-transform: none; letter-spacing: -0.035em; }
.t-hero h2 { font-weight: 700; line-height: .98; }
.t-hero h2 em { background: linear-gradient(100deg, #64D2FF, #FF9F0A 70%, #FF6B2C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-stats, .t-card, .t-video, .tmb-3d, .tmb-prof { -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 20px 50px -20px rgba(0, 0, 0, .6); }
.t-stats { border: 1px solid rgba(255, 255, 255, .14); border-radius: 26px; background: rgba(255, 255, 255, .06); padding: 4px 8px; }
.t-stats > div { padding: 18px; }
.t-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 26px; position: relative; isolation: isolate; transition: transform .6s var(--ease, ease), border-color .6s; }
.t-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .14), transparent 45%); }
.t-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .28); }
.t-card:hover::after { opacity: 1; }
.t-card h4 { font-size: 22px; font-weight: 700; }
.t-card .work b { font-family: var(--f-sys, system-ui); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.blaze { width: 28px; height: 14px; border-radius: 4px; }
.tmb-3d { border-radius: 28px 28px 0 0; border: 1px solid rgba(255, 255, 255, .14); border-bottom: 0; }
.tmb-prof { border-radius: 0 0 28px 28px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .14); }
.tmb-hud { border-radius: 20px; background: rgba(20, 30, 48, .5); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.tmb-lbl { border-radius: 999px; padding: 3px 10px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); background: rgba(14, 26, 43, .55); font-family: var(--f-sys, system-ui); }
.tmb-lbl::after { left: 14px; }
.tmb-ctrl .hint { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-family: var(--f-sys, system-ui); }
.t-video { border-radius: 30px; }
.t-video-txt .mono { color: #64D2FF; }
.t-tmb { background: var(--g-bg); background-image: none; color: var(--ink); }
.t-tmb strong { color: var(--ink); text-transform: none; font-family: var(--f-sys, system-ui); font-weight: 700; }
@media (max-width: 620px) {
  .u-tmb .inner { padding-block: 64px; }
  .tmb-3d { border-radius: 22px 22px 0 0; }
  .tmb-prof { border-radius: 0 0 22px 22px; }
}
