:root {
  /* Couleurs de marque — Charte Niuweb v2.0 */
  --vert-profond: #0F3D3E;
  --vert-vif:     #16A085;
  --ambre:        #E8A04B;
  --creme:        #F0E9DD;
  --encre:        #1C2A2B;
  --gris:         #6E7A79;

  /* Tokens sémantiques — LIGHT (défaut) */
  --bg:        #F0E9DD;
  --w:         #FBF7EF;
  --ink:       #1C2A2B;
  --g:         #6E7A79;
  --gl:        rgba(28,42,43,0.12);
  --accent:    #16A085;
  --warm:      #E8A04B;
  --warm-ink:  #b9762a;
  --strong:    #0F3D3E;
  --on-strong: #F0E9DD;
  --shadow:    rgba(15,61,62,0.10);

  /* Verre — light */
  --glass-hi:     rgba(255,255,255,0.55);
  --glass-border: rgba(255,255,255,0.45);
}
body.dark {
  --bg:        #0B1716;
  --w:         #13211F;
  --ink:       #ECE4D6;
  --g:         #93A19F;
  --gl:        rgba(236,228,214,0.14);
  --accent:    #2BC4A4;
  --warm:      #EBAE5E;
  --warm-ink:  #EBAE5E;
  --strong:    #0A2A2A;
  --on-strong: #ECE4D6;
  --shadow:    rgba(0,0,0,0.45);

  --glass-hi:     rgba(255,255,255,0.14);
  --glass-border: rgba(255,255,255,0.12);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Work Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 16px 84px;
  overflow-x: hidden;
  position: relative;
  transition: background .4s ease, color .4s ease;
}

.wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .6s ease;
  animation: slowZoom 45s ease-in-out infinite alternate;
}
body.has-wp .wallpaper { opacity: 1; }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.05); } }

.wp-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease, background .4s ease;
  background:
    linear-gradient(180deg, rgba(240,233,221,0.55) 0%, rgba(240,233,221,0.32) 50%, rgba(240,233,221,0.6) 100%),
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(22,160,133,0.14) 0%, transparent 60%);
}
body.dark .wp-overlay {
  background:
    linear-gradient(180deg, rgba(10,30,30,0.68) 0%, rgba(8,24,24,0.45) 50%, rgba(10,30,30,0.74) 100%),
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(43,196,164,0.12) 0%, transparent 60%);
}
body.has-wp .wp-overlay { opacity: 1; }

.ambiance {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity .6s ease;
  background:
    radial-gradient(ellipse at 80% 12%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 88%, color-mix(in srgb, var(--warm) 8%, transparent) 0%, transparent 50%);
}
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity .6s ease;
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink) 3%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 3%, transparent) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 0%, transparent 80%);
}
body.has-wp .ambiance,
body.has-wp .grid-bg { opacity: 0; }

.glass {
  background: color-mix(in srgb, var(--w) 62%, transparent);
  backdrop-filter: blur(36px) saturate(1.9);
  -webkit-backdrop-filter: blur(36px) saturate(1.9);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 0 -1px 0 rgba(0,0,0,0.05),
    0 8px 32px var(--shadow);
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}

.controls {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 200;
  display: flex;
  gap: 8px;
  align-items: center;
}
.ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  color: var(--ink);
  border-radius: 100px;
  font-family: 'Work Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .2s ease, background .4s ease, color .4s ease;
}
.ctrl-btn.icon-only { width: 38px; padding: 0; }
.ctrl-btn:hover { transform: translateY(-2px); }
.ctrl-btn:active { transform: scale(0.95); }
.ctrl-btn svg { width: 15px; height: 15px; }

.wp-switcher {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 9px 13px;
  border-radius: 100px;
}
.wp-dot {
  width: 26px;
  height: 5px;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  background: color-mix(in srgb, var(--g) 38%, transparent);
  transition: background .3s ease, width .3s ease;
}
.wp-dot:hover { background: color-mix(in srgb, var(--g) 60%, transparent); }
.wp-dot.active { background: var(--accent); width: 34px; }
.wp-dot.charte.active { background: var(--warm); }

.credit {
  position: fixed;
  bottom: 18px;
  right: 16px;
  z-index: 200;
  font-size: 10.5px;
  color: var(--g);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease, color .2s ease;
}
body.has-wp .credit { opacity: 1; pointer-events: auto; }
.credit a { color: inherit; text-decoration: none; }
.credit a:hover { color: var(--accent); }

.card { position: relative; z-index: 10; width: 100%; max-width: 400px; }

.panel {
  background: color-mix(in srgb, var(--w) 68%, transparent);
  backdrop-filter: blur(44px) saturate(1.9) brightness(1.04);
  -webkit-backdrop-filter: blur(44px) saturate(1.9) brightness(1.04);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  padding: 40px 26px 34px;
  position: relative;
  overflow: hidden;
  animation: fadeUp .65s .05s ease both;
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 0 -1px 0 rgba(0,0,0,0.06),
    0 20px 60px var(--shadow),
    0 4px 16px var(--shadow);
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85) 50%, transparent);
  pointer-events: none;
}
body.dark .panel::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3) 50%, transparent); }
.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--strong) 0%, var(--accent) 55%, var(--warm) 100%);
  opacity: .9;
}

.avatar-wrap { position: relative; width: 92px; height: 92px; margin: 0 auto 18px; }
.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: .55;
}
.avatar-ring::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warm);
}
.avatar-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.55);
  box-shadow: 0 6px 20px var(--shadow);
}
body.dark .avatar-inner { border-color: rgba(255,255,255,0.18); }
.avatar-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-align: center;
  color: var(--ink);
  transition: color .4s ease;
}
.studio {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-size: 10.5px;
  color: var(--g);
  text-align: center;
  margin-top: 8px;
  transition: color .4s ease;
}
.studio b { color: var(--accent); font-weight: 600; }

.role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--g);
  text-align: center;
  margin: 16px 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.role::before, .role::after { content: ''; width: 22px; height: 1px; background: var(--gl); }

.bio {
  font-size: 14px;
  color: var(--g);
  text-align: center;
  line-height: 1.7;
  margin: 0 auto 20px;
  max-width: 300px;
  transition: color .4s ease;
}

.tags { display: flex; justify-content: center; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 5px 13px;
  border-radius: 100px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .4s ease;
}
.badge i { font-size: 10px; }
.badge-v {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
.badge-o {
  background: color-mix(in srgb, var(--warm) 14%, transparent);
  color: var(--warm-ink);
  border: 1px solid color-mix(in srgb, var(--warm) 30%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.divider {
  height: 1px;
  margin: 0 -2px 24px;
  background: linear-gradient(90deg, transparent, var(--gl) 20%, var(--gl) 80%, transparent);
  transition: background .4s ease;
}

.gc {
  background: color-mix(in srgb, var(--w) 45%, transparent);
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    0 2px 10px var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .25s ease, background .4s ease;
}
.gc::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  pointer-events: none;
}
body.dark .gc::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}
.gc:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--glass-border));
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    0 12px 30px var(--shadow);
}
.gc:active { transform: scale(0.97); }

.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.plat-link { display: flex; align-items: center; gap: 11px; padding: 13px 15px; text-decoration: none; color: var(--ink); }
.plat-link i { flex-shrink: 0; color: var(--accent); font-size: 1rem; width: 18px; text-align: center; }
.plat-label { display: flex; flex-direction: column; }
.plat-label span:first-child { font-size: 10px; color: var(--g); font-weight: 400; transition: color .4s ease; }
.plat-label span:last-child { font-family: 'Fraunces', serif; font-size: .92rem; font-weight: 600; color: var(--ink); transition: color .4s ease; }

.cta-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: 'Work Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 8px 24px color-mix(in srgb, var(--accent) 40%, transparent);
}
.cta-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, transparent 50%);
  pointer-events: none;
}
.cta-main:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 14px 36px color-mix(in srgb, var(--accent) 50%, transparent);
}
.cta-main:active { transform: scale(0.98); }
.cta-main .arrow { margin-left: auto; font-size: .8rem; opacity: .8; }

.links-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 100px;
  text-decoration: none;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--w) 30%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.link-btn:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.link-btn:active { transform: scale(0.97); }
.link-btn i { font-size: .82rem; }

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--g);
  margin: 18px 0 12px;
}
.section-label .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.section-label.warm .dot { background: var(--warm); }

.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 15px 8px 13px;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
}
.tool-tile i { font-size: 1.1rem; color: var(--accent); transition: color .25s ease; }
.tool-tile:hover i { color: var(--warm-ink); }
.tool-tile span {
  font-family: 'Work Sans', sans-serif;
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  transition: color .4s ease;
}

.socials { display: flex; justify-content: center; gap: 10px; }
.soc {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1rem;
  color: var(--g);
  text-decoration: none;
  transition: color .25s ease, transform .2s ease;
}
.soc:hover { transform: translateY(-3px); color: var(--accent); }
.soc:active { transform: scale(0.94); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.panel > * { animation: fadeUp .55s ease both; }
.avatar-wrap { animation-delay: .10s; }
.name { animation-delay: .15s; }
.studio { animation-delay: .17s; }
.role { animation-delay: .20s; }
.bio { animation-delay: .24s; }
.tags { animation-delay: .27s; }
.divider { animation-delay: .29s; }
.platforms { animation-delay: .33s; }
.cta-main { animation-delay: .37s; }
.links-row { animation-delay: .40s; }

@supports not (backdrop-filter: blur(1px)) {
  .panel { background: color-mix(in srgb, var(--w) 94%, transparent); }
  .gc, .glass, .link-btn { background: color-mix(in srgb, var(--w) 90%, transparent); }
}
