/* ===== Effets « wahou » (js/fx-*.js) ===== */

/* Clone du robot qu'on fait voler, sauter, courir */
.fx-robot { position: fixed; left: 0; top: 0; z-index: 9000; width: 96px; pointer-events: none; will-change: transform; filter: drop-shadow(5px 5px 0 var(--ink)); }
.fx-robot svg { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .fx-robot { width: 56px; filter: drop-shadow(3px 3px 0 var(--ink)); } }

/* 1. Le robot est parti dans une autre fenêtre (ou dans la mini-fenêtre) */
.mascot.fx-away { visibility: hidden; opacity: 0; pointer-events: none; }
.mascot.fx-run-in { animation: fxRunIn .8s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes fxRunIn { from { translate: 140% 0; rotate: 20deg; } 70% { translate: -8% 0; rotate: -6deg; } }
.mascot.fx-run-off { animation: fxRunOff 1.5s ease-in-out; }
@keyframes fxRunOff { 40% { translate: 160% 0; rotate: 25deg; } 60% { translate: 160% 0; } 100% { translate: 0 0; } }

/* 5. robot.danse() depuis la console */
.mascot.fx-dance { animation: fxDance .6s ease-in-out 4; }
@keyframes fxDance { 25% { rotate: -14deg; translate: 0 -12px; } 50% { rotate: 0deg; translate: 0 0; } 75% { rotate: 14deg; translate: 0 -12px; } }

/* Gravité : blocs décrochés (Ctrl+Z) et bande VHS du rembobinage */
.fx-fallen { position: relative; z-index: 40; will-change: transform; }
.fx-vhs { position: fixed; inset: 0; z-index: 9500; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 28px 32px;
  font: 700 clamp(20px, 4vw, 40px)/1 "Share Tech Mono", ui-monospace, monospace; color: #fff; text-shadow: 3px 0 #ff5a5f, -3px 0 #5cb8ff;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 2px, transparent 2px 4px); animation: fxVhs .25s steps(2) infinite; }
.fx-vhs span { align-self: flex-end; font-size: .6em; }
@keyframes fxVhs { 50% { transform: translateY(3px) skewX(-1deg); } }
.mascot.fx-sneeze { animation: fxSneeze .6s ease; }
@keyframes fxSneeze { 30% { scale: 1.1 .9; rotate: -8deg; } 50% { scale: .9 1.12; rotate: 10deg; translate: 0 -10px; } }

/* Mode plateforme */
.fx-player { width: 48px; z-index: 9100; filter: drop-shadow(3px 3px 0 var(--ink)); }
.fx-star { position: fixed; left: 0; top: 0; z-index: 9100; pointer-events: none; font: 900 28px/1 var(--display); color: var(--yellow);
  -webkit-text-stroke: 2px var(--ink); animation: fxStar 1s ease-in-out infinite; }
.fx-star.got { animation: fxStarGot .6s ease-in forwards; }
@keyframes fxStar { 50% { translate: 0 -6px; rotate: 15deg; } }
@keyframes fxStarGot { to { scale: 3; opacity: 0; } }
.fx-pad { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 9200; translate: -50% 0; display: flex; gap: 10px; }
.fx-pad button { width: 52px; height: 52px; border: var(--line); border-radius: 50%; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink);
  font: 900 20px/1 var(--body); color: var(--ink); touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.fx-pad button[data-k="quit"] { background: var(--pink); }
@media (hover: hover) and (pointer: fine) { .fx-pad { opacity: .55; } .fx-pad:hover { opacity: 1; } }

/* Lampe à rayons X */
.fx-lens { position: fixed; left: 0; top: 0; z-index: 9300; width: 240px; height: 240px; border-radius: 50%; overflow: hidden; pointer-events: none;
  border: 3px solid var(--ink); box-shadow: 0 0 0 4px var(--green), 6px 6px 0 7px var(--ink); background: #0f1a14; }
.fx-lens pre { margin: 0; padding: 30px 26px; white-space: pre-wrap; word-break: break-all; font: 11px/1.45 "Share Tech Mono", ui-monospace, monospace; color: #9ff2c2; }
.fx-lens pre b { color: #ffd93d; font-weight: 400; } .fx-lens pre i { color: #ffa8d9; font-style: normal; } .fx-lens pre u { color: #8fd0ff; text-decoration: none; }

/* Le robot grignote, gonfle, s'écrase */
.mascot.fx-munch { animation: fxMunch .3s steps(2) infinite; }
@keyframes fxMunch { 50% { scale: 1.04 .94; } }
.mascot.fx-puff { animation: fxPuff .8s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fxPuff { 40% { scale: 1.35; } }
.mascot.fx-shrink { animation: fxShrink .8s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fxShrink { 40% { scale: .6; } }
.mascot.fx-squash { animation: fxSquash .6s ease; transform-origin: 100% 100%; }
@keyframes fxSquash { 30% { scale: .55 1.15; } 70% { scale: 1.1 .95; } }

/* Écran de veille */
.fx-saver { position: fixed; inset: 0; z-index: 9800; background: rgba(23, 20, 31, .92); cursor: none; }
.fx-saver .fx-dvd { position: absolute; filter: drop-shadow(4px 4px 0 #000); }
.fx-saver.corner { animation: fxCorner .5s ease 3; }
@keyframes fxCorner { 50% { background: rgba(157, 6, 191, .9); } }

@media (prefers-reduced-motion: reduce) { .fx-vhs, .fx-star, .mascot.fx-sneeze, .mascot.fx-munch, .mascot.fx-puff, .mascot.fx-shrink, .mascot.fx-squash { animation: none; } }
@media print { .fx-vhs, .fx-star, .fx-pad, .fx-lens, .fx-saver { display: none !important; } .fx-fallen { transform: none !important; } }

/* Ombres qui suivent le soleil (7 h à 20 h) */
.fx-sun .card, .fx-sun .box, .fx-sun .job, .fx-sun .tile, .fx-sun .skill-group, .fx-sun .contact-card, .fx-sun .stat, .fx-sun .facts li {
  box-shadow: var(--fx-sx) var(--fx-sy) 0 var(--ink); transition: box-shadow 2s ease; }

/* Mode sombre du système : on tamise un peu le papier */
@media (prefers-color-scheme: dark) { body::after { content: ""; position: fixed; inset: 0; z-index: 45; pointer-events: none; background: rgba(23, 20, 31, .07); } }

/* 3 h du matin : tout s'inverse, les titres chuchotent, seul le robot reste normal */
.fx-3am body::after { content: ""; position: fixed; inset: 0; z-index: 49; pointer-events: none; background: #fff; mix-blend-mode: difference; }
.fx-3am .big, .fx-3am .name, .fx-3am .section-title { text-transform: lowercase; letter-spacing: .02em; opacity: .75; }

/* Batterie faible, tournis, danse au micro */
.mascot.fx-tired { animation: fxTired 5s ease-in-out infinite; filter: drop-shadow(5px 5px 0 var(--ink)) saturate(.4); }
.mascot.fx-tired .eye { transform: scaleY(.45); animation: none; }
@keyframes fxTired { 50% { translate: 0 8px; rotate: 4deg; } }
.mascot.fx-dizzy { animation: fxDizzy 3s ease-in-out; }
@keyframes fxDizzy { 10%, 30% { rotate: -25deg; } 20%, 40% { rotate: 25deg; } 55% { rotate: 95deg; translate: 20px 30px; } 80% { rotate: 95deg; translate: 20px 30px; } 100% { rotate: 0deg; translate: 0 0; } }
.mascot.fx-groove { animation: fxDance .5s ease-in-out infinite; }

/* Petites pastilles d'état (micro, musique) */
.fx-pill { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 9400; padding: 9px 14px; border: var(--line); border-radius: 999px;
  background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font: 800 13px var(--body); color: var(--ink); cursor: pointer; }
.fx-music-pill { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); background: var(--violet); }
.fx-music [role="tab"]::after { content: "♪"; position: absolute; top: 4px; right: 8px; font-size: 12px; }

/* Fenêtres : accord micro, gâteau, scanner */
.fx-consent, .fx-cake-card, .fx-scan-card { border: var(--line); background: var(--paper); box-shadow: 6px 6px 0 var(--ink); color: var(--ink); }
.fx-consent { position: fixed; right: 16px; bottom: 160px; z-index: 9500; width: min(340px, calc(100vw - 32px)); padding: 16px; font: 500 14px/1.5 var(--body); }
.fx-consent p { margin: 6px 0 12px; }
.fx-consent div { display: flex; gap: 8px; }
.fx-consent button, .fx-blow { min-height: 44px; padding: 8px 14px; border: var(--line); background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font: 800 14px var(--body); color: var(--ink); cursor: pointer; }
.fx-consent button + button { background: #fff; }
.fx-cake, .fx-scan { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 16px; background: rgba(23, 20, 31, .45); }
.fx-cake-card, .fx-scan-card { position: relative; width: min(420px, 100%); padding: 22px; text-align: center; }
.fx-cake-card small { font: italic 900 20px/1.1 var(--display); text-transform: uppercase; text-shadow: -3px 2px 0 var(--pink); }
.fx-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 2px solid var(--ink); background: var(--yellow); font: 900 16px/1 var(--body); cursor: pointer; color: var(--ink); }
.fx-cake-art { margin: 24px auto 12px; width: 220px; }
.fx-candles { display: flex; justify-content: space-around; padding: 0 18px; }
.fx-candle { position: relative; width: 14px; height: 54px; padding: 0; border: 2px solid var(--ink); background: repeating-linear-gradient(-45deg, #fff 0 6px, var(--pink) 6px 12px); cursor: pointer; }
.fx-candle i { position: absolute; left: 50%; bottom: 100%; width: 14px; height: 22px; margin-left: -7px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #fff 0 20%, var(--yellow) 30%, var(--orange) 70%); animation: fxFlame .3s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.fx-candle.out i { animation: fxSmoke 1s ease-out forwards; }
@keyframes fxFlame { to { transform: scale(.9, 1.1) rotate(4deg); } }
@keyframes fxSmoke { to { opacity: 0; transform: translateY(-20px) scale(.4); filter: grayscale(1); } }
.fx-layer { height: 44px; border: var(--line); border-top: 0; background: var(--orange); }
.fx-layer.a { border-top: var(--line); background: var(--yellow); border-radius: 6px 6px 0 0; }
.fx-layer.b { background: var(--pink); width: calc(100% + 30px); margin-left: -15px; }
.fx-scan-card { text-align: left; width: min(560px, 100%); }
.fx-scan-card pre { margin: 10px 0 0; padding: 12px; max-height: 60vh; overflow: auto; background: #17141f; color: #9ff2c2; white-space: pre-wrap; word-break: break-all;
  font: 12px/1.5 "Share Tech Mono", ui-monospace, monospace; }
.fx-drop { position: fixed; inset: 12px; z-index: 9600; display: grid; place-items: center; pointer-events: none; border: 4px dashed var(--ink); background: rgba(116, 227, 166, .35);
  font: italic 900 clamp(22px, 4vw, 40px)/1.1 var(--display); text-transform: uppercase; text-align: center; color: var(--ink); }

/* Faux écran bleu */
.fx-bsod { position: fixed; inset: 0; z-index: 10050; display: grid; align-items: center; padding: 8vh 10vw; background: #0078d7; color: #fff;
  font: 300 clamp(16px, 2.2vw, 24px)/1.45 "Segoe UI", system-ui, sans-serif; cursor: none; }
.fx-bsod div { max-width: 820px; }
.fx-bsod .face { margin: 0 0 24px; font-size: clamp(80px, 12vw, 150px); line-height: 1; }
.fx-bsod .small { font-size: .65em; }

@media (prefers-reduced-motion: reduce) { .mascot.fx-tired, .mascot.fx-dizzy, .mascot.fx-groove, .fx-candle i { animation: none; } }
@media print { .fx-pill, .fx-consent, .fx-cake, .fx-scan, .fx-drop, .fx-bsod { display: none !important; } .fx-3am body::after, body::after { display: none; } }

/* Retour du visiteur : post-it et poussière */
.fx-postit { position: fixed; top: 110px; right: 6vw; z-index: 60; width: 190px; padding: 16px 14px 12px; border: 0; background: #ffe873; color: var(--ink);
  box-shadow: 4px 6px 0 rgba(23, 20, 31, .35); font: 700 15px/1.35 var(--body); text-align: left; transform: rotate(3deg); cursor: pointer; }
.fx-postit::before { content: ""; position: absolute; top: -10px; left: 50%; width: 60px; height: 20px; margin-left: -30px; background: rgba(255, 168, 217, .75); transform: rotate(-4deg); }
.fx-postit small { display: block; margin-top: 8px; text-align: right; font: italic 900 13px var(--display); }
.fx-postit.peel { transition: transform .45s ease-in, opacity .45s; transform: rotate(40deg) translate(80px, -60px); opacity: 0; }
.fx-dust { position: fixed; inset: 0; z-index: 48; pointer-events: none; transition: opacity .8s; }
.fx-dust.gone { opacity: 0; }

/* La plante du robot */
.fx-plant { position: fixed; right: 122px; bottom: 14px; z-index: 50; width: 44px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(3px 3px 0 var(--ink)); }
.fx-plant svg { display: block; width: 100%; height: auto; }
.fx-plant.grow { animation: fxGrow .7s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 50% 100%; }
@keyframes fxGrow { 40% { scale: 1.25 .8; } 70% { scale: .92 1.12; } }
@media (max-width: 860px) { .fx-plant { right: 70px; bottom: 10px; width: 30px; filter: drop-shadow(2px 2px 0 var(--ink)); } }

/* Snake dans l'URL : copie lisible en haut de page */
.fx-urlbar { position: fixed; top: calc(8px + env(safe-area-inset-top, 0px)); left: 50%; z-index: 9400; translate: -50% 0; max-width: calc(100vw - 32px); padding: 8px 14px;
  border: var(--line); background: var(--ink); color: var(--green); box-shadow: 4px 4px 0 var(--yellow); text-align: center; cursor: pointer; }
.fx-urlbar small { display: block; color: var(--paper); font: 700 11px var(--body); }
.fx-urlbar b { display: block; font: 400 22px/1.2 ui-monospace, monospace; letter-spacing: 1px; white-space: nowrap; overflow: hidden; }

/* Konami : Game Boy */
.fx-gb .container, .fx-gb .mascot, .fx-gb .fx-plant { filter: url(#fx-gb); }
.fx-gb body { background-color: #9bbc0f; }

/* Hors ligne : parapluie et mini-jeu */
.fx-offline .mascot::after { content: "☂️"; position: absolute; top: -34px; left: -18px; font-size: 44px; rotate: -18deg; }
.fx-runner { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 9400; translate: -50% 0; width: min(600px, calc(100vw - 32px));
  border: var(--line); background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.fx-runner canvas { display: block; width: 100%; height: auto; touch-action: manipulation; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { .fx-plant.grow, .fx-postit.peel { animation: none; transition: none; } }
@media print { .fx-postit, .fx-dust, .fx-plant, .fx-urlbar, .fx-runner { display: none !important; } }

/* « build » : le site se code sous tes yeux (couleurs en dur : site.css est coupé pendant l'effet) */
.fx-b-hide { visibility: hidden !important; }
.fx-editor { position: fixed; top: 0; right: 0; bottom: 0; z-index: 9700; width: min(46vw, 640px); display: flex; flex-direction: column;
  background: #1e1b26; color: #e8e3f4; border-left: 3px solid #17141f; box-shadow: -8px 0 0 rgba(23, 20, 31, .25); transition: transform .35s ease-in; }
.fx-editor.gone { transform: translateX(105%); }
.fx-ed-bar { display: flex; align-items: center; gap: 2px; padding: 8px 8px 0; background: #17141f; font: 600 12px/1 ui-monospace, monospace; }
.fx-ed-bar span { padding: 8px 12px; border-radius: 6px 6px 0 0; color: #8d86a0; }
.fx-ed-bar span.on { background: #1e1b26; color: #ffd93d; }
.fx-ed-bar button { margin: 0 0 6px auto; padding: 6px 12px; border: 2px solid #ffd93d; border-radius: 6px; background: transparent; color: #ffd93d; font: 700 12px ui-monospace, monospace; cursor: pointer; }
.fx-editor pre { flex: 1; margin: 0; padding: 14px 16px; overflow: hidden; white-space: pre-wrap; word-break: break-all; font: 12px/1.5 "Share Tech Mono", ui-monospace, monospace; color: #b8f2cf; }
.fx-editor pre i { display: inline-block; width: 8px; height: 15px; vertical-align: -3px; background: #ffd93d; animation: fxCaret .8s steps(1) infinite; }
@keyframes fxCaret { 50% { opacity: 0; } }
@media (max-width: 760px) { .fx-editor { top: auto; left: 0; width: auto; height: 42vh; border-left: 0; border-top: 3px solid #17141f; } .fx-editor.gone { transform: translateY(105%); } }

@media (prefers-reduced-motion: reduce) { .mascot.fx-run-in, .mascot.fx-run-off, .mascot.fx-dance { animation: none; } }
@media print { .fx-robot { display: none !important; } }

/* Appel vidéo du robot (écran façon téléphone, couleurs en dur : toujours sombre) */
.fx-call { position: fixed; inset: 0; z-index: 9800; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: calc(56px + env(safe-area-inset-top, 0px)) 24px calc(48px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(circle at 50% 30%, #3b3552, #17141f 70%); color: #fff; font-family: var(--body); animation: fxCallIn .35s ease-out; transition: opacity .3s; }
.fx-call.gone { opacity: 0; }
@keyframes fxCallIn { from { opacity: 0; transform: translateY(30px); } }
.fx-call-top { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.fx-call-top b { font-size: 30px; font-weight: 700; }
.fx-call-top span { color: #c9c2dc; font-size: 16px; }
.fx-call-avatar { width: 128px; height: 128px; margin-bottom: 14px; border-radius: 50%; display: grid; place-items: center; background: #ffd93d; overflow: hidden;
  box-shadow: 0 0 0 0 rgba(255, 217, 61, .5); animation: fxRing 1.4s ease-out infinite; }
.fx-call-avatar svg, .fx-call-face svg, .fx-chat-av svg { width: 78%; height: auto; }
@keyframes fxRing { 70% { box-shadow: 0 0 0 26px rgba(255, 217, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 217, 61, 0); } }
.fx-call-actions { display: flex; gap: min(30vw, 120px); }
.fx-call-actions button { display: flex; flex-direction: column; align-items: center; gap: 10px; border: 0; background: none; color: #fff; font: 600 14px var(--body); cursor: pointer; }
.fx-call-actions i { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 28px; }
.fx-call-actions .no i { background: #ff3b30; }
.fx-call-actions .yes i { background: #34c759; animation: fxShake 1.2s ease-in-out infinite; }
@keyframes fxShake { 0%, 60%, 100% { transform: rotate(0); } 10%, 30%, 50% { transform: rotate(-12deg); } 20%, 40% { transform: rotate(12deg); } }
.fx-call.live { justify-content: center; gap: 24px; background: radial-gradient(circle at 50% 40%, #5f4bb6, #1e1b26 75%); }
.fx-call-face { width: min(70vw, 300px); aspect-ratio: 1; max-width: 100%; border-radius: 28px; display: grid; place-items: center; background: #ffd93d; }
.fx-call-face.talk svg { animation: fxTalk .26s ease-in-out 8 alternate; }
@keyframes fxTalk { to { transform: scale(1.04, .96) translateY(4px); } }
.fx-call-sub { min-height: 4.5em; max-width: 34ch; margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, .55); text-align: center; font-size: 17px; line-height: 1.45; }
.fx-call-self { position: absolute; top: calc(20px + env(safe-area-inset-top, 0px)); right: 16px; width: 92px; height: 128px; border-radius: 14px; display: grid; place-items: center;
  background: #2a2635; border: 2px solid rgba(255, 255, 255, .25); text-align: center; font-size: 14px; line-height: 1.3; }
.fx-call-self small { color: #a59fb8; font-size: 11px; }
.fx-call-time { position: absolute; top: calc(24px + env(safe-area-inset-top, 0px)); left: 20px; font-variant-numeric: tabular-nums; color: #c9c2dc; }
.fx-call-end { width: 68px; height: 68px; border: 0; border-radius: 50%; background: #ff3b30; color: #fff; font-size: 26px; cursor: pointer; }

/* Chat de rendez-vous avec Bip */
.fx-chat { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 9600; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 40px));
  display: flex; flex-direction: column; border: var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); overflow: hidden;
  animation: fxCallIn .3s ease-out; }
.fx-chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #ffd93d; color: #17141f; border-bottom: var(--line); }
.fx-chat-head b { display: block; font-size: 16px; }
.fx-chat-head small { font-size: 12px; opacity: .8; }
.fx-chat-head button { margin-left: auto; width: 34px; height: 34px; border: 2px solid #17141f; border-radius: 50%; background: #fff; color: #17141f; font-size: 20px; line-height: 1; cursor: pointer; }
.fx-chat-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #17141f; overflow: hidden; }
.fx-chat-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; }
.fx-msg { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; animation: fxMsg .2s ease-out; }
@keyframes fxMsg { from { opacity: 0; transform: translateY(6px); } }
.fx-msg.bot { align-self: flex-start; background: #ece8f6; color: #17141f; border-bottom-left-radius: 4px; }
.fx-msg.me { align-self: flex-end; background: #6c4ee0; color: #fff; border-bottom-right-radius: 4px; }
.fx-msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.fx-msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8d86a0; animation: fxDot 1s infinite; }
.fx-msg.typing i:nth-child(2) { animation-delay: .15s; } .fx-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes fxDot { 30% { transform: translateY(-5px); opacity: .5; } }
.fx-msg.card { max-width: 100%; display: flex; flex-direction: column; gap: 10px; background: #fff8d6; border: 2px solid #17141f; }
.fx-msg.card pre { margin: 0; white-space: pre-wrap; font: 12.5px/1.45 ui-monospace, monospace; }
.fx-msg.card div { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-msg.card small { color: #5a536b; user-select: all; }
.fx-chat-btn { padding: 8px 12px; border: 2px solid #17141f; border-radius: 10px; background: #34c759; color: #17141f; font: 700 14px var(--body); text-decoration: none; cursor: pointer; }
.fx-chat-btn.alt { background: #fff; }
.fx-chat-choices { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 0 12px; }
.fx-chat-choices:not(:empty) { padding-bottom: 8px; }
.fx-chat-choices button { padding: 7px 12px; border: 2px solid #6c4ee0; border-radius: 999px; background: transparent; color: inherit; font: 600 14px var(--body); cursor: pointer; }
.fx-chat-choices button:hover { background: #6c4ee0; color: #fff; }
.fx-chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: var(--line); }
.fx-chat-form input { flex: 1; min-width: 0; padding: 9px 12px; border: 2px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: 16px var(--body); }
.fx-chat-form button { width: 42px; border: 0; border-radius: 50%; background: #6c4ee0; color: #fff; font-size: 18px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .fx-call, .fx-call-avatar, .fx-call-actions .yes i, .fx-call-face.talk svg, .fx-chat, .fx-msg, .fx-msg.typing i { animation: none; } }
@media print { .fx-call, .fx-chat { display: none !important; } }

/* Phishing : l'e-mail piégé, le piratage, le robot hors service */
.fx-mail { position: fixed; z-index: 9500; width: min(330px, calc(100vw - 24px)); padding: 12px 14px; border: var(--line); border-radius: 12px; background: #fff; color: #17141f;
  box-shadow: 6px 6px 0 var(--ink); font: 14px/1.4 var(--body); animation: fxMsg .3s ease-out; }
.fx-mail-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 13px; }
.fx-mail-top span { color: #6a6478; }
.fx-mail dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 0 0 8px; font-size: 13px; }
.fx-mail dt { color: #6a6478; }
.fx-mail dd { margin: 0; overflow-wrap: anywhere; }
.fx-mail p { margin: 0 0 10px; }
.fx-mail-bait { display: block; width: 100%; padding: 9px; border: 0; border-radius: 8px; background: #1a73e8; color: #fff; font: 700 14px var(--body); cursor: pointer; }
.fx-mail-warn { margin-top: 10px; }
.fx-mail-warn i { display: block; height: 4px; margin-bottom: 8px; border-radius: 2px; background: #ff5a5f; transform-origin: left; animation: fxFuse 7s linear forwards; }
@keyframes fxFuse { to { transform: scaleX(0); } }
.fx-mail-warn button { width: 100%; padding: 9px; border: var(--line); border-radius: 8px; background: var(--yellow); color: #17141f; font: 800 14px var(--body); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.fx-mail.decided .fx-mail-warn, .fx-mail.decided .fx-mail-bait { pointer-events: none; }
.fx-mail.decided .fx-mail-warn { display: none; }
.fx-mail.flags .fx-flag { position: relative; outline: 2.5px solid #ff3b30; outline-offset: 1px; border-radius: 3px; background: #ffe3e2; }
.fx-mail.flags .fx-mail-bait { color: #17141f; }
.fx-mail.flags .fx-flag::after { content: attr(data-n); position: absolute; top: -10px; right: -10px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: #ff3b30; color: #fff; font: 800 11px/1 var(--body); }
.fx-mail.trash { animation: fxTrash .6s ease-in forwards; }
@keyframes fxTrash { to { opacity: 0; transform: translateY(40px) scale(.3) rotate(12deg); } }
.fx-mail.pwned { animation: fxPwnMail .9s steps(6) forwards; }
@keyframes fxPwnMail { 30% { filter: invert(1); transform: skewX(8deg); } 60% { filter: hue-rotate(140deg); transform: skewX(-10deg) translateX(6px); } to { opacity: 0; filter: invert(1); } }
.mascot.fx-pwned .eye { display: none; }
.mascot.fx-pwned svg { animation: fxGlitch .22s steps(2) infinite; }
@keyframes fxGlitch { 0% { filter: hue-rotate(160deg) saturate(2); transform: translate(-3px, 1px); } 50% { filter: invert(.85); transform: translate(3px, -2px) skewX(6deg); } 100% { filter: none; transform: none; } }
.fx-hack { position: fixed; z-index: 9500; width: min(360px, calc(100vw - 24px)); margin: 0; padding: 10px 12px; border: 2px solid #39ff14; border-radius: 6px; background: #0b0a10; color: #39ff14;
  font: 12px/1.5 "Share Tech Mono", ui-monospace, monospace; white-space: pre-wrap; box-shadow: 0 0 18px rgba(57, 255, 20, .35); transition: opacity .3s; }
.fx-hack.gone { opacity: 0; }
.mascot.fx-down { animation: none; rotate: 88deg; translate: -12% 6%; transition: rotate .7s cubic-bezier(.5, -0.4, .6, 1.4), translate .7s; cursor: pointer; }
.mascot.fx-down svg { animation: none; filter: grayscale(1) brightness(.85); }
.mascot.fx-down:hover { transform: none; }
.fx-hs { position: fixed; z-index: 9400; translate: -50% -50%; rotate: -12deg; padding: 4px 10px; border: 2px solid #17141f; background: #ffd93d;
  background-image: repeating-linear-gradient(45deg, transparent 0 8px, rgba(23, 20, 31, .14) 8px 16px); color: #17141f; font: 900 13px/1.2 var(--display); letter-spacing: .06em;
  white-space: nowrap; pointer-events: none; box-shadow: 3px 3px 0 #17141f; }
.fx-hs.boot { rotate: 0deg; background: #74e3a6; letter-spacing: 0; font-family: var(--body); }
.fx-hs i { display: block; height: 4px; margin-top: 4px; background: #17141f; transform-origin: left; animation: fxBoot 2.1s ease-in-out forwards; }
@keyframes fxBoot { from { transform: scaleX(0); } }
.fx-smoke { position: fixed; z-index: 9400; pointer-events: none; font-size: 22px; animation: fxSmoke 1.6s ease-out forwards; }
@keyframes fxSmoke { to { opacity: 0; transform: translate(-14px, -60px) scale(1.8); } }
@media (prefers-reduced-motion: reduce) { .fx-mail, .fx-mail-warn i, .mascot.fx-pwned svg, .fx-hs i { animation: none; } .mascot.fx-down { transition: none; } }
@media print { .fx-mail, .fx-hack, .fx-hs, .fx-smoke { display: none !important; } }

/* « retro » : le site version page perso de 1997 (couleurs en dur : un seul look, volontairement) */
.fx-retro body { background: #000 !important; color: #fff !important; font-family: "Times New Roman", Times, serif !important; cursor: crosshair;
  background-image: radial-gradient(1px 1px at 12px 18px, #fff, transparent), radial-gradient(1px 1px at 61px 77px, #ffff80, transparent),
    radial-gradient(1.5px 1.5px at 98px 32px, #fff, transparent), radial-gradient(1px 1px at 140px 120px, #aaf, transparent), radial-gradient(1px 1px at 33px 140px, #fff, transparent) !important;
  background-size: 160px 160px !important; padding-top: 34px; padding-bottom: 30px; }
.fx-retro body::before, .fx-retro .panel::before { display: none !important; }
.fx-retro .container * { font-family: "Times New Roman", Times, serif !important; font-style: normal !important; text-transform: none !important; letter-spacing: 0 !important;
  text-shadow: none !important; box-shadow: none !important; border-radius: 0 !important; transform: none !important; animation: none !important; }
.fx-retro .container h1, .fx-retro .container h2, .fx-retro .container h3, .fx-retro .big, .fx-retro .section-title, .fx-retro .tab b, .fx-retro .logo {
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive !important; font-weight: 700 !important; color: #ffff00 !important; }
.fx-retro .big { font-size: clamp(30px, 6vw, 56px) !important; text-align: center; color: #ff00ff !important; }
.fx-retro .section-title { display: block !important; text-align: center; text-decoration: underline; }
.fx-retro .panel, .fx-retro .below { background: transparent !important; border: 0 !important; }
.fx-retro .card, .fx-retro .box, .fx-retro .stat, .fx-retro .tile, .fx-retro .job, .fx-retro .contact-card, .fx-retro .skill-group, .fx-retro .pola, .fx-retro .chip, .fx-retro .label, .fx-retro .pill, .fx-retro .facts li, .fx-retro .logo {
  background: #000080 !important; color: #fff !important; border: 4px ridge #c0c0c0 !important; }
.fx-retro .container p, .fx-retro .container li, .fx-retro .container span, .fx-retro .container small, .fx-retro .lede { color: #fff !important; }
.fx-retro .container a:not(.logo) { color: #0000ff !important; text-decoration: underline !important; background: #fff !important; }
.fx-retro .logo, .fx-retro .logo * { color: #ffff00 !important; text-decoration: none !important; }
.fx-retro .facts li { color: #fff !important; }
.fx-retro .container a:visited { color: #800080 !important; }
.fx-retro .tab, .fx-retro .btn, .fx-retro .subtab, .fx-retro .container button { background: #c0c0c0 !important; color: #000 !important; border: 3px outset #fff !important; }
.fx-retro .tab b, .fx-retro .tab small, .fx-retro .btn *, .fx-retro .container button * { color: #000 !important; }
.fx-retro .tab[aria-selected="true"], .fx-retro .btn:active, .fx-retro .container button:active { border-style: inset !important; }
.fx-retro .portrait-frame img { filter: none !important; opacity: 1 !important; image-rendering: pixelated; }
.fx-retro .tape, .fx-retro .sticker { display: none !important; }
.fx-retro .mascot { filter: none !important; image-rendering: pixelated; }
.fx-retro .mascot svg { animation: fxGif 1s steps(1) infinite !important; }
@keyframes fxGif { 50% { rotate: 8deg; } }
.fx-retro-ui { position: fixed; left: 0; right: 0; z-index: 9300; pointer-events: none; font-family: "Times New Roman", Times, serif; }
.fx-retro-top { top: 0; height: 34px; display: flex; align-items: center; overflow: hidden; background: #000080; border-bottom: 3px ridge #c0c0c0; color: #ffff00; font-size: 18px; font-weight: 700; }
.fx-retro-top span { white-space: nowrap; padding-left: 100%; animation: fxMarquee 18s linear infinite; }
@keyframes fxMarquee { to { transform: translateX(-100%); } }
.fx-retro-bottom { bottom: 0; height: 26px; display: flex; align-items: center; gap: 10px; padding: 0 8px; background: #c0c0c0; border-top: 2px outset #fff; color: #000; font: 13px "MS Sans Serif", Tahoma, sans-serif; pointer-events: auto; }
.fx-retro-bottom i { font-style: normal; padding: 1px 6px; border: 2px inset #fff; }
.fx-retro-bottom button { margin-left: auto; padding: 1px 10px; background: #c0c0c0; border: 2px outset #fff; font: 700 12px Tahoma, sans-serif; cursor: pointer; }
.fx-retro-bottom button:active { border-style: inset; }
.fx-retro-badges { position: fixed; z-index: 9300; right: 10px; bottom: 170px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font: 700 12px "Times New Roman", serif; }
.fx-retro-badges > * { padding: 4px 8px; border: 2px outset #c0c0c0; background: #c0c0c0; color: #000; }
.fx-retro-counter b { display: inline-block; margin-left: 4px; padding: 0 3px; background: #000; color: #39ff14; font: 700 15px "Courier New", monospace; letter-spacing: 2px; }
.fx-retro-wip { background: repeating-linear-gradient(-45deg, #ffd700 0 10px, #000 10px 20px) !important; color: #fff !important; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; animation: fxBlink 1s steps(1) infinite; }
@keyframes fxBlink { 50% { opacity: .2; } }
.fx-retro-spark { position: fixed; z-index: 9400; pointer-events: none; color: #ffff80; font-size: 14px; animation: fxSpark .8s ease-out forwards; }
@keyframes fxSpark { to { opacity: 0; transform: translateY(14px) scale(.4); } }
.fx-retro-loading .container { animation: fxDialup 2.2s steps(14) both; }
@keyframes fxDialup { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 760px) { .fx-retro-badges { display: none; } }
@media (prefers-reduced-motion: reduce) { .fx-retro-top span, .fx-retro-wip, .fx-retro .mascot svg, .fx-retro-loading .container { animation: none !important; } .fx-retro-top span { padding-left: 8px; } }
@media print { .fx-retro-ui, .fx-retro-badges { display: none !important; } }
