/* Le Moh — v2 « néon en 3D ». DA : nuit violette, néon violet, blanc, sobre ; beaucoup de mouvement.
   La scène 3D (scene.js) dessine l'anneau néon autour de la photo ; ui.js gère tout le reste. */

@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --night: #08060f;
  --panel: #0d0819;
  --violet: #8e3bff;
  --neon: #c77dff;
  --lilac: #e6d6ff;
  --white: #fbf8ff;
  --muted: #a99bc8;
  --line: rgba(214, 190, 255, 0.16);
  --line-hot: rgba(222, 186, 255, 0.72);

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --pad-top: clamp(56px, 12vh, 128px);
  --size: clamp(190px, 54vw, 250px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--night);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--night);
  color: var(--white);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* grain très léger */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

svg { width: 1em; height: 1em; display: block; flex: none; }
a { color: inherit; }

/* la scène 3D, fixe derrière tout */
.scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(100% - 32px, 560px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.wrap--top { padding-top: var(--pad-top); }
.wrap--bottom { padding-bottom: 48px; }

/* ------------------------------------------------------------------ portrait (emplacement de la 3D) */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait {
  position: relative;
  width: var(--size);
  height: var(--size);
  margin-bottom: 40px;
}

/* version sans 3D (ancien navigateur, animations réduites, 3D trop lente) */
.portrait-flat {
  position: absolute;
  inset: 0;
  transition: opacity 0.6s var(--ease);
}
html.js .portrait-flat { opacity: 0; }
html.flat .portrait-flat { opacity: 1; }
html.has-3d .portrait-flat { opacity: 0; }

.portrait-flat picture,
.face {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.face { object-fit: cover; }

.ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 3px solid #f1dcff;
  box-shadow:
    0 0 2px #fff,
    0 0 10px var(--neon),
    0 0 26px var(--violet),
    0 0 60px rgba(142, 59, 255, 0.55),
    inset 0 0 10px var(--neon),
    inset 0 0 26px rgba(142, 59, 255, 0.55);
}
html.flat .ring { animation: power 1.15s linear 0.1s both; }

/* ------------------------------------------------------------------ le nom : une enseigne qui s'allume lettre par lettre */
.name {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3.1rem, 15vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
  color: var(--white);
  text-shadow:
    0 0 1px #fff,
    0 0 16px rgba(199, 125, 255, 0.6),
    0 0 42px rgba(142, 59, 255, 0.55);
}

.name .ch { display: inline-block; }
.name .sp { display: inline-block; width: 0.28em; }

/* éteint au départ (avec JS seulement) */
html.js .name .ch {
  color: rgba(251, 248, 255, 0.1);
  text-shadow: none;
}
html.js.lit .name .ch {
  color: var(--white);
  text-shadow:
    0 0 1px #fff,
    0 0 16px rgba(199, 125, 255, 0.6),
    0 0 42px rgba(142, 59, 255, 0.55);
  animation: letter-on 0.8s steps(1, end) backwards;
  animation-delay: calc(var(--n) * 110ms);
}
.name .ch:nth-of-type(1) { --n: 0; }
.name .ch:nth-of-type(2) { --n: 1; }
.name .ch:nth-of-type(4) { --n: 2; }
.name .ch:nth-of-type(5) { --n: 3; }
.name .ch:nth-of-type(6) { --n: 4; }

/* une fois allumé, plus d'animation d'allumage (sinon le grésillement la relancerait) */
html.js.lit .name.steady .ch { animation: none; }
html.js.lit .name.steady .ch.buzz { animation: letter-buzz 0.36s steps(1, end) 1; }

/* ------------------------------------------------------------------ réseaux */
.socials {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 420px;
  margin: 38px 0 0;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  text-decoration: none;
  border-radius: 14px;
  outline: none;
}
html.js .social { opacity: 0; transform: translateY(16px) scale(0.7); }
html.js.ready .social {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.8s var(--spring);
  transition-delay: calc(var(--k) * 75ms);
}

.social-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-size: 21px;
  color: var(--white);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease), transform 0.35s var(--spring);
}

.social-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.social:hover .social-dot,
.social:focus-visible .social-dot {
  border-color: var(--line-hot);
  color: var(--lilac);
  box-shadow: 0 0 0 1px rgba(199, 125, 255, 0.3), 0 0 20px rgba(142, 59, 255, 0.6), inset 0 0 12px rgba(142, 59, 255, 0.35);
}
.social:hover .social-name,
.social:focus-visible .social-name { color: var(--lilac); }
.social:focus-visible .social-dot { outline: 2px solid var(--neon); outline-offset: 3px; }

/* ------------------------------------------------------------------ bandeau qui défile */
.ticker-zone {
  overflow: hidden;
  padding: 40px 0;
  margin-top: 26px;
}
html.js .ticker-zone { opacity: 0; transition: opacity 1s var(--ease) 0.35s; }
html.js.ready .ticker-zone { opacity: 1; }

.ticker {
  width: 112%;
  margin-left: -6%;
  transform: rotate(-3.5deg);
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(142, 59, 255, 0.02), rgba(142, 59, 255, 0.09), rgba(142, 59, 255, 0.02));
  padding: 16px 0;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}

.ticker-item {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 9vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(230, 214, 255, 0.55);
}
.ticker-item--fill {
  color: var(--lilac);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 18px rgba(142, 59, 255, 0.55);
}
.ticker-star {
  font-size: clamp(1rem, 4vw, 1.6rem);
  color: var(--neon);
  filter: drop-shadow(0 0 6px rgba(199, 125, 255, 0.9));
}

/* ------------------------------------------------------------------ bienvenue */
.welcome {
  width: 100%;
  margin-top: 30px;
}

.welcome-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 8vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  perspective: 600px;
}
.welcome-title .w-ch { display: inline-block; transform-origin: 50% 100%; }
html.js .welcome-title .w-ch { opacity: 0; transform: translateY(0.5em) rotateX(-85deg); }
html.js .welcome-title.in .w-ch {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.9s var(--spring);
  transition-delay: calc(var(--i) * 45ms);
}

.welcome-text {
  position: relative;
  margin: 12px 0 0;
  min-height: 1.6em;
  font-size: 1.08rem;
  color: var(--muted);
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: blink 0.9s steps(1, end) infinite;
}
.caret.gone { opacity: 0; transition: opacity 0.6s; animation: none; }
html.js .welcome-text:not(.in) .caret { visibility: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ cartes en 3D */
.cards {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  text-align: left;
  perspective: 1100px;
}

.card {
  --rx: 0deg;
  --ry: 0deg;
  --rx-in: 0deg;
  --ty: 0px;
  --gx: 50%;
  --gy: 50%;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(36, 18, 70, 0.72), rgba(16, 9, 32, 0.8));
  text-decoration: none;
  outline: none;
  transform-style: preserve-3d;
  transform: translateY(var(--ty)) rotateX(calc(var(--rx-in) + var(--rx))) rotateY(var(--ry));
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s ease-out;
}
html.js .card { --rx-in: 38deg; --ty: 46px; opacity: 0; }
html.js .card.in {
  --rx-in: 0deg;
  --ty: 0px;
  opacity: 1;
  transition: opacity 0.6s var(--ease), transform 1s var(--spring), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  transition-delay: calc(var(--d) * 110ms);
}
html.js .card.in.settled { transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s ease-out, opacity 0.3s; }

/* reflet + lumière qui suivent le pointeur */
.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(320px circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.1), transparent 45%),
    radial-gradient(260px circle at var(--gx) var(--gy), rgba(199, 125, 255, 0.22), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.card:hover,
.card:focus-visible {
  border-color: var(--line-hot);
  box-shadow: 0 0 0 1px rgba(199, 125, 255, 0.28), 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(142, 59, 255, 0.4), inset 0 0 20px rgba(142, 59, 255, 0.16);
}
.card:hover .card-glare,
.card:focus-visible .card-glare { opacity: 1; }
.card:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

.card--live {
  border-color: rgba(214, 170, 255, 0.45);
  box-shadow: 0 0 20px rgba(142, 59, 255, 0.24), inset 0 0 16px rgba(142, 59, 255, 0.1);
}

/* les éléments de la carte flottent à des profondeurs différentes */
.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(142, 59, 255, 0.18);
  border: 1px solid rgba(214, 170, 255, 0.24);
  font-size: 22px;
  color: var(--lilac);
  transform: translateZ(34px);
}
.card--live .card-icon {
  background: linear-gradient(160deg, #a45bff, #6a1fd6);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 8px 24px rgba(106, 31, 214, 0.5);
}

.card-body { display: grid; gap: 2px; min-width: 0; transform: translateZ(20px); }

.card-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--white);
}

.card-text {
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--muted);
}

.card-out {
  font-size: 20px;
  color: var(--muted);
  transform: translateZ(26px);
  transition: color 0.25s var(--ease);
}
.card:hover .card-out,
.card:focus-visible .card-out { color: var(--lilac); }

/* ------------------------------------------------------------------ contact : un tube de lumière court autour du cadre */
.contact {
  width: 100%;
  margin-top: 64px;
  padding: 28px 20px 22px;
  border-radius: 28px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    conic-gradient(from var(--angle), rgba(214, 190, 255, 0.14) 0 58%, rgba(236, 210, 255, 0.95) 74%, rgba(142, 59, 255, 0.6) 82%, rgba(214, 190, 255, 0.14) 92%) border-box;
  animation: spin-border 6s linear infinite;
}
html.js .contact { opacity: 0; transform: translateY(30px) scale(0.97); }
html.js .contact.in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.9s var(--spring); }

.contact-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.contact-text {
  margin: 6px 0 0;
  color: var(--muted);
  text-wrap: balance;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.mail,
.copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font: 600 1rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.35s var(--spring);
}
.mail svg,
.copy svg { font-size: 19px; }

.mail {
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(160deg, rgba(164, 91, 255, 0.95), rgba(106, 31, 214, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 22px rgba(142, 59, 255, 0.38);
}
/* reflet qui traverse le bouton */
.mail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: shine 4.5s var(--ease) 2.5s infinite;
}
.mail:hover,
.mail:focus-visible {
  box-shadow: 0 0 0 1px rgba(230, 214, 255, 0.5), 0 0 34px rgba(142, 59, 255, 0.65);
  transform: translateY(-2px) scale(1.02);
}

.copy {
  color: var(--lilac);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.copy:hover,
.copy:focus-visible { border-color: var(--line-hot); background: rgba(142, 59, 255, 0.12); transform: translateY(-2px); }
.copy .copy-done { display: none; }
.copy.is-done .copy-icon { display: none; }
.copy.is-done .copy-done { display: block; color: #d7ffe9; }

.mail:focus-visible,
.copy:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

/* étincelles quand l'adresse est copiée */
.spark-bit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #f4e6ff;
  box-shadow: 0 0 8px var(--neon), 0 0 14px var(--violet);
  pointer-events: none;
}

.toast {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--lilac);
}

.foot {
  margin-top: 40px;
  font-size: 0.82rem;
  color: rgba(169, 155, 200, 0.75);
}

/* ------------------------------------------------------------------ halo qui suit la souris (ordinateur) */
.cursor { display: none; }
html.has-cursor .cursor {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  pointer-events: none;
}
.cursor-ring {
  position: absolute;
  left: -17px;
  top: -17px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(230, 214, 255, 0.55);
  box-shadow: 0 0 14px rgba(142, 59, 255, 0.45), inset 0 0 10px rgba(142, 59, 255, 0.25);
  transition: transform 0.35s var(--spring), background-color 0.3s, border-color 0.3s, opacity 0.3s;
}
.cursor-dot {
  position: absolute;
  left: -90px;
  top: -90px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(142, 59, 255, 0.16), transparent);
}
.cursor.is-hot .cursor-ring { transform: scale(1.7); background: rgba(142, 59, 255, 0.12); border-color: rgba(240, 220, 255, 0.85); }
.cursor.is-down .cursor-ring { transform: scale(0.8); }
.cursor.is-away { opacity: 0; }

/* ------------------------------------------------------------------ choix pour écrire un mail */
.mailbox {
  width: min(100% - 32px, 380px);
  max-width: none;
  padding: 0;
  border: 1px solid var(--line-hot);
  border-radius: 26px;
  background: linear-gradient(180deg, #1d0f3a, #120a24);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(199, 125, 255, 0.25), 0 0 40px rgba(142, 59, 255, 0.45), 0 30px 80px rgba(0, 0, 0, 0.6);
}
.mailbox::backdrop {
  background: rgba(8, 6, 15, 0.72);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.mailbox[open] { animation: pop 0.32s var(--spring); }
.mailbox[open]::backdrop { animation: fade 0.28s ease; }
body:has(.mailbox[open]) { overflow: hidden; }

.mailbox-inner { position: relative; padding: 24px 20px 16px; text-align: center; }

.mailbox-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.mailbox-address {
  margin: 6px 0 18px;
  font-weight: 600;
  color: var(--lilac);
  -webkit-user-select: all;
          user-select: all;
}

.mailbox-list { display: grid; gap: 8px; }

.mailbox-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font: 600 1rem/1.2 var(--body);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.mailbox-option svg { font-size: 20px; color: var(--lilac); }
.mailbox-option span { flex: 1; }
.mailbox-option .mailbox-arrow { font-size: 18px; color: var(--muted); }
.mailbox-option:hover,
.mailbox-option:focus-visible {
  border-color: var(--line-hot);
  background: rgba(142, 59, 255, 0.14);
  box-shadow: 0 0 18px rgba(142, 59, 255, 0.3);
}
.mailbox-option:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.mailbox-copy.is-done { border-color: rgba(190, 255, 220, 0.5); }
.mailbox-copy.is-done svg { color: #d7ffe9; }

.mailbox-close {
  margin-top: 12px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 600 0.95rem/1 var(--body);
  cursor: pointer;
  outline: none;
}
.mailbox-close:hover,
.mailbox-close:focus-visible { color: var(--lilac); }
.mailbox-close:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

/* ------------------------------------------------------------------ keyframes */
@keyframes power {
  0%   { opacity: 0.06; }
  7%   { opacity: 0.9; }
  10%  { opacity: 0.12; }
  17%  { opacity: 0.85; }
  20%  { opacity: 0.22; }
  33%  { opacity: 0.22; }
  37%  { opacity: 1; }
  43%  { opacity: 0.6; }
  49%, 100% { opacity: 1; }
}

@keyframes letter-on {
  0%   { color: rgba(251, 248, 255, 0.1); text-shadow: none; }
  12%  { color: var(--white); text-shadow: 0 0 14px rgba(199, 125, 255, 0.7); }
  20%  { color: rgba(251, 248, 255, 0.15); text-shadow: none; }
  40%  { color: var(--white); text-shadow: 0 0 14px rgba(199, 125, 255, 0.7); }
  48%  { color: rgba(251, 248, 255, 0.35); text-shadow: none; }
  60%  { color: var(--white); text-shadow: 0 0 1px #fff, 0 0 16px rgba(199, 125, 255, 0.6), 0 0 42px rgba(142, 59, 255, 0.55); }
}

@keyframes letter-buzz {
  0%   { color: rgba(251, 248, 255, 0.25); text-shadow: none; }
  25%  { color: var(--white); }
  50%  { color: rgba(251, 248, 255, 0.4); text-shadow: none; }
  75%  { color: var(--white); }
}

@keyframes blink { 50% { opacity: 0; } }

@keyframes spin-border { to { --angle: 360deg; } }

@keyframes shine {
  0%   { left: -60%; }
  35%, 100% { left: 130%; }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ------------------------------------------------------------------ grand écran */
@media (min-width: 720px) {
  :root { --size: 270px; }
  .wrap { width: min(100% - 48px, 660px); }
  .socials { gap: 12px; max-width: 460px; }
  .social-dot { width: 58px; height: 58px; font-size: 23px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card--live { grid-column: 1 / -1; padding: 22px 22px 22px 20px; }
  .card--live .card-icon { width: 58px; height: 58px; font-size: 27px; border-radius: 17px; }
  .card--live .card-title { font-size: 1.18rem; }
  .card:not(.card--live) { grid-template-columns: 1fr auto; align-items: start; align-content: start; row-gap: 14px; }
  .card:not(.card--live) .card-icon { grid-column: 1; grid-row: 1; }
  .card:not(.card--live) .card-out { grid-column: 2; grid-row: 1; }
  .card:not(.card--live) .card-body { grid-column: 1 / -1; grid-row: 2; }
  .contact { padding: 32px 28px 24px; }
}

@media (max-width: 359px) {
  .socials { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
}

/* ------------------------------------------------------------------ version calme (l'appareil demande moins d'animations)
   On garde les apparitions en fondu et la lumière, on enlève le grésillement, les bascules 3D et les rebonds. */
html.calm.js.lit .name .ch { animation: letter-fade 0.7s var(--ease) backwards; animation-delay: calc(var(--n) * 110ms); }
html.calm .ring { animation: none !important; }
html.calm.js .social { transform: none; }
html.calm.js.ready .social { transition: opacity 0.6s var(--ease); transition-delay: calc(var(--k) * 75ms); }
html.calm.js .welcome-title .w-ch { transform: none; }
html.calm.js .welcome-title.in .w-ch { transition: opacity 0.6s var(--ease); transition-delay: calc(var(--i) * 40ms); }
html.calm.js .card { --rx-in: 0deg; --ty: 14px; }
html.calm.js .card.in { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.25s, box-shadow 0.25s; transition-delay: calc(var(--d) * 110ms); }
html.calm.js .contact { transform: translateY(14px); }
html.calm.js .contact.in { transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.calm .contact { animation-duration: 14s; }
html.calm .mail::after { animation: none; }
html.calm .social-dot,
html.calm .mail,
html.calm .copy { transition-timing-function: var(--ease); }
html.calm .mailbox[open] { animation: fade 0.25s ease; }

@keyframes letter-fade {
  from { color: rgba(251, 248, 255, 0.1); text-shadow: none; }
}
