/* =========================================================
   Mes projets web — Tristan Bossard
   Refonte moderne · thème clair/sombre · vanilla CSS
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Marque (vert émeraude/forêt, hérité de l'identité d'origine) */
  --brand-700: #1c6758;
  --brand-600: #226f5e;
  --brand-500: #3d8361;
  --brand-400: #4fa07c;
  --brand-300: #7cc4a2;

  /* Thème clair (par défaut) */
  --bg: #f4f6f3;
  --bg-soft: #ffffff;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef2ee;
  --ink: #11221c;
  --ink-soft: #45564f;
  --ink-faint: #76837d;
  --line: #e2e8e3;
  --line-strong: #d2dbd4;
  --accent: var(--brand-600);
  --accent-ink: #0f4438;
  --accent-soft: rgba(34, 111, 94, 0.1);
  --shadow-sm: 0 1px 2px rgba(17, 34, 28, 0.06), 0 2px 8px rgba(17, 34, 28, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(17, 34, 28, 0.22);
  --shadow-lg: 0 28px 60px -22px rgba(17, 34, 28, 0.3);
  --ring: rgba(63, 131, 97, 0.4);
  --grain-opacity: 0.035;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-display: "Bricolage Grotesque", "Poppins", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0a0f0d;
  --bg-soft: #0e1512;
  --bg-elev: #121a16;
  --surface: #121a16;
  --surface-2: #19231e;
  --ink: #e9f1ec;
  --ink-soft: #a9bbb2;
  --ink-faint: #71857b;
  --line: #1f2b25;
  --line-strong: #2a382f;
  --accent: var(--brand-300);
  --accent-ink: #aef0cd;
  --accent-soft: rgba(124, 196, 162, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 64px -24px rgba(0, 0, 0, 0.7);
  --ring: rgba(124, 196, 162, 0.45);
  --grain-opacity: 0.05;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  -webkit-font-smoothing: antialiased;
}

/* Grain global subtil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

/* =========================================================
   NAVBAR (sticky compacte)
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
  box-shadow: var(--shadow-sm);
}
.brand small {
  color: var(--ink-faint);
  font-weight: 500;
  font-family: var(--font-body);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.25s var(--ease), border-color 0.25s, color 0.25s, background 0.25s;
}
.icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease), border-color 0.25s, color 0.25s;
}
.nav-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}
@media (max-width: 560px) {
  .nav-link span {
    display: none;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  opacity: 0.55;
}
.hero::before {
  width: 460px;
  height: 460px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, var(--brand-400), transparent 70%);
}
.hero::after {
  width: 520px;
  height: 520px;
  bottom: -240px;
  right: -160px;
  background: radial-gradient(circle, var(--brand-700), transparent 70%);
  opacity: 0.4;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin: 1.1rem 0 1rem;
  max-width: 16ch;
}
.hero h1 .grad {
  background: linear-gradient(115deg, var(--brand-400), var(--brand-700) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="dark"] .hero h1 .grad {
  background: linear-gradient(115deg, var(--brand-300), var(--brand-400) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 56ch;
}
.hero p.lead em {
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
}

/* Stats */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 5vw, 3rem);
  margin-top: 2.2rem;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat .num .suffix {
  color: var(--accent);
}
.stat .label {
  font-size: 0.82rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
  font-weight: 600;
}

/* =========================================================
   BARRE DE FILTRES (sticky sous la nav)
   ========================================================= */
.toolbar {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-block: 1px solid var(--line);
  padding-block: 0.85rem;
  margin-top: 1rem;
}
.toolbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.search {
  position: relative;
  flex: 1 1 280px;
  min-width: 0;
}
.search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  font-size: 0.95rem;
  pointer-events: none;
}
.search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.7rem 3.2rem 0.7rem 2.7rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search input::placeholder {
  color: var(--ink-faint);
}
.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.search kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-faint);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.12rem 0.45rem;
}
.search .clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--surface-2);
  color: var(--ink-soft);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  place-items: center;
  cursor: pointer;
  font-size: 0.7rem;
}
.search.has-value kbd { display: none; }
.search.has-value .clear { display: grid; }

.pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pill {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.pill .count {
  font-size: 0.74rem;
  background: var(--surface-2);
  color: var(--ink-faint);
  border-radius: var(--radius-pill);
  padding: 0.05rem 0.5rem;
  transition: all 0.25s;
}
.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.pill.active {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .pill.active {
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #04130d;
}
.pill.active .count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
[data-theme="dark"] .pill.active .count {
  background: rgba(0, 0, 0, 0.18);
  color: #04130d;
}

/* =========================================================
   SECTIONS & GRILLE
   ========================================================= */
main {
  padding-block: clamp(2rem, 5vw, 3.5rem) 4rem;
}
.category-section {
  margin-bottom: 3.5rem;
}
.category-section[hidden] {
  display: none;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
}
.section-head .tally {
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-weight: 600;
}
.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  align-self: center;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

/* ---------- Carte ---------- */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
  opacity: 0;
  transform: translateY(22px);
}
.project-card.revealed {
  opacity: 1;
  transform: none;
}
.project-card[hidden] {
  display: none;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.4s var(--ease);
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 100% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.card-media img {
  width: 64%;
  height: 64%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
  filter: drop-shadow(0 8px 18px rgba(17, 34, 28, 0.14));
}
.project-card:hover .card-media img {
  transform: scale(1.07) translateY(-2px);
}
/* Fallback si l'image ne charge pas */
.card-media .fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-700));
  letter-spacing: -0.03em;
}
.card-media.broken img { display: none; }
.card-media.broken .fallback { display: grid; }

.chip {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--accent);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.25rem 1.4rem;
  flex: 1;
}
.card-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.card-body p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.4rem;
}
.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}
.btn i { font-size: 0.85rem; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .btn-primary {
  color: #04130d;
  background: linear-gradient(135deg, var(--brand-300), var(--brand-500));
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Etat vide ---------- */
.empty {
  display: none;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ink-faint);
}
.empty.show {
  display: block;
}
.empty .emoji {
  font-size: 3rem;
  margin-bottom: 0.8rem;
}
.empty h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.empty button {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent);
  font-weight: 700;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.empty button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-inner .copy {
  color: var(--ink-faint);
  font-size: 0.88rem;
}
.footer-links {
  display: flex;
  gap: 0.6rem;
}
.footer-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 1.05rem;
  transition: transform 0.25s var(--ease), color 0.25s, border-color 0.25s;
}
.footer-links a:hover {
  transform: translateY(-3px);
  color: var(--accent);
  border-color: var(--accent);
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 95;
}
.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover {
  transform: translateY(-3px);
}

/* =========================================================
   TOAST / POPUP
   ========================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 140%);
  z-index: 200;
  max-width: min(440px, calc(100vw - 2rem));
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.95rem 1.2rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease);
  font-size: 0.9rem;
}
.toast.show {
  transform: translate(-50%, 0);
}
.toast strong {
  font-family: var(--font-display);
}
.toast p {
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

/* ---------- Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .project-card {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .projects {
    grid-template-columns: 1fr;
  }
  .toolbar {
    top: 64px;
  }
  .brand small {
    display: none;
  }
  .hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero h1,
  .hero p.lead {
    margin-inline: auto;
  }
  .stats {
    gap: 1.6rem;
    justify-content: center;
  }
  .stat {
    text-align: center;
  }
  .toolbar-inner {
    justify-content: center;
  }
  .pills {
    width: 100%;
    justify-content: center;
  }
  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}

/* =========================================================
   AJOUTS — portfolio mobile (statuts + bouton désactivé)
   ========================================================= */

/* Chip de statut coloré */
.chip[data-status="online"] {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.chip[data-status="proto"] {
  color: #b26a00;
  border-color: color-mix(in srgb, #d98a00 40%, transparent);
}
[data-theme="dark"] .chip[data-status="proto"] {
  color: #f4b94a;
}
.chip[data-status="wip"] {
  color: var(--ink-faint);
}
.chip .chip-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
  background: currentColor;
}
.chip[data-status="online"] .chip-dot {
  animation: pulse 2.4s infinite;
  box-shadow: 0 0 0 0 var(--accent);
}

/* Bouton désactivé "Bientôt" */
.btn-soon {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--ink-faint);
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  cursor: not-allowed;
}
.btn-soon i { font-size: 0.8rem; }

/* Bouton prototype (Figma) */
.btn-proto {
  color: #fff;
  background: linear-gradient(135deg, #8a5cf6, #6d3fd4);
  box-shadow: var(--shadow-sm);
}
.btn-proto:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =========================================================
   IDENTITÉ MOBILE — teinte émeraude/teal (différencie du web)
   Ces overrides arrivent après les tokens : ils gagnent dans la cascade.
   ========================================================= */
:root {
  --brand-700: #0c6b5d;
  --brand-600: #11897a;
  --brand-500: #15a08c;
  --brand-400: #2fbfa3;
  --brand-300: #74e2c6;
}

/* Popup repositionnée en bas à droite */
.toast {
  left: auto;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  transform: translateY(180%);
}
.toast.show {
  transform: translateY(0);
}
/* Sur petit écran, on laisse de la marge pour le bouton "haut" */
@media (max-width: 600px) {
  .toast {
    right: 1rem;
    left: 1rem;
    bottom: 5rem;
    max-width: none;
  }
}
