/* ===========================================================================
   AubeConnect — feuille de style v0.3 (warm + friendly)
   Palette : creme tres clair, peche, cuivre, encre adoucie, sapin tendre
   Type   : Cormorant Garamond (display) · Inter (texte) · IBM Plex Mono
   =========================================================================== */

:root {
  /* Couleurs douces */
  --creme:      #faf5e7;
  --creme-2:    #f4ecd5;
  --peche:      #f5d5b3;
  --peche-2:    #f1c19a;
  --rose:       #e8b6a3;
  --encre:      #2b2419;
  --encre-2:    #44382a;
  --gris:       #7a705e;
  --gris-2:     #aba18d;
  --cuivre:     #c47a3a;
  --cuivre-2:   #a25e22;
  --cuivre-3:   #e09a5a;
  --sapin:      #4a7556;
  --sapin-2:    #6b9077;
  --rouge:      #a23a3a;

  /* Typo */
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono:  "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;

  /* Espacements */
  --gutter: 28px;
  --max:    1240px;

  /* Bordures + ombres */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --line:   1px solid rgba(43,36,25,0.12);
  --line-2: 1px solid rgba(43,36,25,0.07);
  --shadow-1: 0 2px 4px rgba(196,122,58,0.04), 0 12px 32px -16px rgba(43,36,25,0.14);
  --shadow-2: 0 4px 8px rgba(196,122,58,0.06), 0 32px 64px -24px rgba(43,36,25,0.22);
  --shadow-warm: 0 8px 32px -8px rgba(196,122,58,0.18);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }

/* ----- Fond chaleureux ----- */
body {
  background:
    radial-gradient(1200px 700px at 90% -20%, rgba(245,213,179,0.55), transparent 55%),
    radial-gradient(900px 600px at -10% 110%, rgba(232,182,163,0.30), transparent 60%),
    radial-gradient(600px 400px at 50% 50%, rgba(255,250,240,0.30), transparent 70%),
    var(--creme);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--cuivre); color: var(--creme); }

/* ----- Helpers ----- */
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.012em; }
.mono  { font-family: var(--mono); font-size: 0.92em; }
.muted { color: var(--gris); }
.small { font-size: 0.85em; }
.num   { text-align: right; font-variant-numeric: tabular-nums; }
em     { font-style: italic; color: var(--cuivre-2); }

hr.rule {
  border: none; border-top: var(--line-2);
  margin: 64px 0; position: relative;
}
hr.rule::before {
  content: "✦";
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  color: var(--cuivre-3); background: var(--creme);
  padding: 0 18px; font-size: 1rem;
}

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.72rem; color: var(--cuivre-2);
  font-family: var(--mono); font-weight: 500;
  margin: 0 0 16px;
  background: rgba(196,122,58,0.08);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(196,122,58,0.18);
}
.kicker::before { content: "✦"; color: var(--cuivre); }

/* ============================================================
   Header
   ============================================================ */
header.site {
  border-bottom: var(--line-2);
  background: rgba(250,245,231,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
header.site .bar {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
}
.brand {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 600;
  color: var(--encre); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand .mark {
  width: 26px; height: 26px;
  color: var(--cuivre);
  transition: transform .5s cubic-bezier(.4,1.4,.5,1);
}
.brand:hover .mark { transform: rotate(72deg) scale(1.1); }

header nav { display: flex; gap: 24px; align-items: center; }
header nav a, header nav button.link {
  color: var(--encre-2); text-decoration: none;
  font-size: 0.94rem; font-weight: 500;
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--sans); position: relative;
  transition: color .2s ease;
}
header nav a:hover, header nav button.link:hover { color: var(--cuivre-2); }
header nav a.cta {
  background: var(--encre); color: var(--creme);
  padding: 10px 20px; border-radius: 999px; font-weight: 500;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
header nav a.cta:hover {
  background: var(--cuivre-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-warm);
}
header nav a.admin { color: var(--cuivre-2); }

.avatar-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 14px 4px 4px;
  border: 1px solid rgba(43,36,25,0.12);
  border-radius: 999px;
  text-decoration: none;
  color: var(--encre);
  font-size: 0.9rem; font-weight: 500;
  transition: all .2s ease;
  background: rgba(255,255,255,0.5);
}
.avatar-pill:hover { border-color: var(--cuivre); background: rgba(255,255,255,0.8); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 0.95rem; font-weight: 600;
  color: var(--creme);
  background: linear-gradient(135deg, var(--cuivre), var(--cuivre-2));
  flex-shrink: 0;
}
.avatar.lg { width: 56px; height: 56px; font-size: 1.4rem; }

/* ============================================================
   Layout
   ============================================================ */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter) 32px;
}
section { margin-bottom: 80px; }
section h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  letter-spacing: -0.012em; margin: 0 0 14px;
  line-height: 1.1;
}
section h3 { font-family: var(--serif); font-size: 1.45rem; margin: 0 0 8px; font-weight: 500; }
section p  { max-width: 70ch; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 24px 0 56px;
  position: relative;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  line-height: 1.02; letter-spacing: -0.018em;
  margin: 0 0 28px;
}
.hero h1 em { color: var(--cuivre-2); }
.hero .lede {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.5; max-width: 56ch; color: var(--encre-2);
  margin: 0 0 36px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Illustration cote droit */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1.05;
  background:
    radial-gradient(circle at 50% 55%, rgba(245,213,179,0.7), rgba(232,182,163,0.4) 50%, transparent 80%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hero-art svg { width: 92%; height: 92%; color: var(--cuivre-2); }

.hero-art .stamp {
  position: absolute; top: 8%; left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  background: var(--encre); color: var(--creme);
  padding: 6px 16px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.18em;
  box-shadow: var(--shadow-warm);
  z-index: 2;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 360px; margin: 0 auto; }
}

/* Compteurs : ligne de petits jetons chauds */
.counters {
  list-style: none; padding: 22px; margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  background: rgba(255,255,255,0.55);
  border-radius: var(--r-lg);
  border: var(--line-2);
  box-shadow: var(--shadow-1);
}
.counters li {
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 4px;
  border-radius: var(--r-md);
  transition: background .2s ease;
}
.counters li:hover { background: rgba(245,213,179,0.35); }
.counters .num {
  font-family: var(--serif); font-weight: 500;
  font-size: 2rem; color: var(--encre); line-height: 1;
}
.counters .lab {
  font-family: var(--mono);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gris);
}

/* ============================================================
   Boutons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid var(--encre);
  background: var(--encre); color: var(--creme);
  text-decoration: none; font-size: 0.96rem; font-weight: 500;
  font-family: var(--sans);
  border-radius: 999px; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-warm); }
.btn:active { transform: translateY(0); }
.btn.primary       { background: var(--encre); color: var(--creme); }
.btn.primary:hover { background: var(--cuivre-2); border-color: var(--cuivre-2); }
.btn.ghost {
  background: transparent; color: var(--encre);
  border-color: rgba(43,36,25,0.2);
}
.btn.ghost:hover { background: var(--encre); color: var(--creme); border-color: var(--encre); }
.btn.copper      { background: var(--cuivre); border-color: var(--cuivre); color: var(--creme); }
.btn.copper:hover{ background: var(--cuivre-2); border-color: var(--cuivre-2); }
.btn.small       { padding: 7px 16px; font-size: 0.84rem; }
.btn:disabled    { opacity: .5; cursor: not-allowed; transform: none; }

/* ============================================================
   Etapes (Methode)
   ============================================================ */
.how {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.how-step {
  background: rgba(255,255,255,0.6);
  border: var(--line-2);
  border-radius: var(--r-lg);
  padding: 28px 24px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.how-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-warm);
}
.how-step .n {
  font-family: var(--serif); font-weight: 500;
  font-size: 4rem; color: var(--peche);
  line-height: 1;
  position: absolute; top: 8px; right: 18px;
  z-index: 0;
}
.how-step h3 { font-size: 1.25rem; margin: 4px 0 8px; position: relative; z-index: 1; }
.how-step p  { margin: 0; font-size: 0.94rem; color: var(--gris); position: relative; z-index: 1; }

/* ============================================================
   Calculatrice
   ============================================================ */
.calc {
  background:
    radial-gradient(circle at 80% 20%, rgba(245,213,179,0.5), transparent 60%),
    rgba(255,255,255,0.7);
  border: var(--line-2);
  border-radius: var(--r-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-1);
}
.calc h2 { margin-top: 0; }
.calc-inputs label { display: block; margin: 16px 0; }
.calc-inputs input, .calc-inputs select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(43,36,25,0.14);
  background: var(--creme);
  border-radius: 999px;
  font-family: var(--sans); font-size: 1rem;
  transition: all .2s ease;
}
.calc-inputs input:focus, .calc-inputs select:focus {
  outline: none;
  border-color: var(--cuivre);
  box-shadow: 0 0 0 4px rgba(196,122,58,0.18);
}
.calc-out {
  background: linear-gradient(135deg, var(--encre), var(--encre-2));
  color: var(--creme);
  border-radius: var(--r-lg);
  padding: 36px;
  font-family: var(--mono);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.calc-out::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(196,122,58,0.25), transparent 60%);
  pointer-events: none;
}
.calc-out::after {
  content: "✦";
  position: absolute; top: 16px; right: 20px;
  color: var(--cuivre-3); font-size: 1.2rem;
}
.calc-out .lab {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; color: var(--gris-2);
  display: block; margin-bottom: 8px; position: relative;
}
.calc-out .val {
  font-family: var(--serif); font-weight: 500;
  font-size: 3.6rem; line-height: 1;
  color: var(--creme); margin: 0; position: relative;
  letter-spacing: -0.02em;
}
.calc-out .sub {
  font-size: 0.84rem; color: var(--gris-2);
  margin-top: 16px; line-height: 1.5; position: relative;
}

@media (max-width: 800px) {
  .calc { grid-template-columns: 1fr; padding: 28px; }
}

/* ============================================================
   Catalogue services — cartes amicales
   ============================================================ */
.catalog-head {
  display: flex; justify-content: space-between; align-items: end;
  flex-wrap: wrap; gap: 18px; margin-bottom: 28px;
}
.catalog-head h2 { margin: 0; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.svc-card {
  background: rgba(255,255,255,0.6);
  border: var(--line-2);
  border-radius: var(--r-lg);
  padding: 22px 22px 18px;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 70%, rgba(245,213,179,0.4));
  opacity: 0; transition: opacity .25s ease;
}
.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-warm);
  border-color: rgba(196,122,58,0.4);
}
.svc-card:hover::before { opacity: 1; }
.svc-card > * { position: relative; }

.svc-card .top { display: flex; gap: 14px; align-items: flex-start; }
.svc-mark {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600;
  font-size: 1.4rem; color: var(--creme);
  flex-shrink: 0;
  box-shadow: 0 4px 12px -4px currentColor;
}
.svc-card .meta { flex: 1; min-width: 0; }
.svc-card .name {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  color: var(--encre); line-height: 1.15;
}
.svc-card .slug {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--gris); margin-top: 2px;
}
.svc-card .rate {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.8rem; color: var(--cuivre-2);
  line-height: 1; align-self: center;
}
.svc-card .rate small {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--gris); letter-spacing: 0.1em; text-transform: uppercase;
  display: block; margin-top: 4px;
}
.svc-card .desc { color: var(--gris); font-size: 0.92rem; flex: 1; margin: 0; }
.svc-card .go {
  font-family: var(--mono); font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--cuivre-2);
  display: inline-flex; align-items: center; gap: 6px;
  border-top: var(--line-2); padding-top: 12px;
  font-weight: 500;
}
.svc-card .go::after { content: "→"; transition: transform .2s ease; }
.svc-card:hover .go::after { transform: translateX(4px); }

/* Couleurs de marque (cyclees par index) */
.svc-mark.c0 { background: linear-gradient(135deg, #c47a3a, #a25e22); color: rgba(0,0,0,0.18); }
.svc-mark.c1 { background: linear-gradient(135deg, #6b9077, #4a7556); color: rgba(0,0,0,0.18); }
.svc-mark.c2 { background: linear-gradient(135deg, #e8b6a3, #d9876b); color: rgba(0,0,0,0.18); }
.svc-mark.c3 { background: linear-gradient(135deg, #d4ad6a, #b08838); color: rgba(0,0,0,0.18); }
.svc-mark.c4 { background: linear-gradient(135deg, #8e9eab, #5a6a78); color: rgba(0,0,0,0.18); }
.svc-mark.c5 { background: linear-gradient(135deg, #c896b8, #9a6585); color: rgba(0,0,0,0.18); }
.svc-mark.c6 { background: linear-gradient(135deg, #e4a373, #c47a3a); color: rgba(0,0,0,0.18); }
.svc-mark.c7 { background: linear-gradient(135deg, #88a896, #5e8470); color: rgba(0,0,0,0.18); }
.svc-mark span { color: var(--creme); }

/* ============================================================
   Formulaires
   ============================================================ */
.form-page { max-width: 480px; margin: 24px auto; }
.form-page h1 { font-family: var(--serif); font-size: 2.6rem; margin: 0 0 6px; font-weight: 500; letter-spacing: -0.012em; }

.card {
  background: rgba(255,255,255,0.7);
  padding: 30px;
  border-radius: var(--r-lg);
  border: var(--line-2);
  margin: 20px 0;
  box-shadow: var(--shadow-1);
}

label {
  display: block;
  margin: 16px 0;
  font-family: var(--mono); font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gris); font-weight: 500;
}
input, select, textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 12px 16px;
  border: 1px solid rgba(43,36,25,0.14);
  background: var(--creme);
  border-radius: var(--r-sm);
  font-family: var(--sans); font-size: 0.96rem;
  color: var(--encre);
  text-transform: none; letter-spacing: normal;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input.mono { font-family: var(--mono); }
input.num  { text-align: right; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cuivre);
  box-shadow: 0 0 0 4px rgba(196,122,58,0.16);
  background: #fff;
}
input:disabled { background: var(--creme-2); color: var(--gris); }

.inline { display: inline-block; }
.row.gap { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.row.gap input, .row.gap select { width: auto; margin-top: 0; }

/* ============================================================
   Dashboard
   ============================================================ */
.dash h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0; font-weight: 500; letter-spacing: -0.012em;
}
.dash h2 { margin: 56px 0 18px; }

.dash-head {
  display: flex; justify-content: space-between; align-items: center;
  border-radius: var(--r-lg);
  padding: 28px 32px;
  margin-bottom: 36px;
  flex-wrap: wrap; gap: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(245,213,179,0.45), transparent 60%),
    rgba(255,255,255,0.6);
  border: var(--line-2);
  box-shadow: var(--shadow-1);
}
.dash-head .left { display: flex; align-items: center; gap: 18px; }
.dash-head .left .info p { margin: 4px 0 0; color: var(--gris); font-size: 0.94rem; }
.dash-head .left .info .greet { color: var(--cuivre-2); font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; }

.code-big {
  font-family: var(--mono); font-size: 1rem;
  background: var(--encre); color: var(--creme);
  padding: 6px 16px; border-radius: 999px;
  letter-spacing: 0.2em; font-weight: 500;
  display: inline-block; margin-top: 4px;
}

.kpi {
  display: flex; flex-direction: column; align-items: flex-end;
  padding: 16px 26px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(196,122,58,0.12), rgba(245,213,179,0.25));
  border: 1px solid rgba(196,122,58,0.25);
}
.kpi .lab { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; color: var(--cuivre-2); letter-spacing: 0.14em; }
.kpi .val { font-family: var(--serif); font-size: 2.6rem; color: var(--encre); font-weight: 500; line-height: 1; margin-top: 4px; }
.kpi .val small { font-family: var(--mono); font-size: 0.9rem; color: var(--cuivre-2); margin-left: 6px; font-weight: 400; }

.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}
.stat {
  padding: 18px 22px;
  background: rgba(255,255,255,0.6);
  border: var(--line-2);
  border-radius: var(--r-md);
  transition: transform .15s ease, border-color .2s ease;
}
.stat:hover { transform: translateY(-2px); border-color: rgba(196,122,58,0.3); }
.stat .lab { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; color: var(--gris); letter-spacing: 0.12em; display: block; margin-bottom: 8px; }
.stat .val { font-family: var(--serif); font-size: 2rem; color: var(--encre); font-weight: 500; line-height: 1; }

/* Liens trackes */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.link-card {
  background: rgba(255,255,255,0.65);
  border: var(--line-2);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.link-card:hover {
  border-color: rgba(196,122,58,0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
}
.link-card .head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.link-card .head-l { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.link-card .name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--encre); }
.link-card .rate {
  font-family: var(--mono); font-size: 0.82rem; color: var(--cuivre-2);
  background: rgba(196,122,58,0.1);
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(196,122,58,0.2);
}
.link-card .svc-mark { width: 40px; height: 40px; font-size: 1.15rem; border-radius: 12px; }
.link-card .url {
  font-family: var(--mono); font-size: 0.78rem;
  background: var(--creme-2);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: var(--line-2);
  color: var(--encre-2);
  word-break: break-all;
  user-select: all;
  line-height: 1.4;
}
.link-card .actions { display: flex; gap: 10px; align-items: center; }
.copy-btn {
  background: var(--encre); color: var(--creme);
  border: none; border-radius: 999px;
  padding: 7px 16px; font-size: 0.8rem;
  font-family: var(--sans); font-weight: 500;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.copy-btn:hover { background: var(--cuivre-2); transform: translateY(-1px); }
.copy-btn.copied { background: var(--sapin); }
.copy-btn::before { content: "⎘"; font-size: 0.95rem; }
.copy-btn.copied::before { content: "✓"; }

/* Etat vide stylise */
.empty {
  background: rgba(255,255,255,0.6);
  border: 2px dashed rgba(196,122,58,0.3);
  border-radius: var(--r-lg);
  padding: 56px 28px;
  text-align: center;
  margin: 18px 0;
}
.empty svg { width: 80px; height: 80px; color: var(--cuivre-3); margin: 0 auto 18px; opacity: 0.85; }
.empty h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--encre); margin: 0 0 6px; font-weight: 500; }
.empty p { color: var(--gris); margin: 0 auto; max-width: 44ch; }

/* ============================================================
   Tableaux
   ============================================================ */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 14px 0 28px;
  font-size: 0.92rem;
  background: rgba(255,255,255,0.55);
  border: var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
}
th, td {
  padding: 13px 16px;
  border-bottom: var(--line-2);
  text-align: left; vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(245,213,179,0.22); }
th {
  font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gris); font-weight: 500;
  background: var(--creme-2);
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 500;
  background: var(--creme-2); color: var(--gris);
  border: 1px solid rgba(43,36,25,0.1);
}
.badge::before { content: "●"; font-size: 0.6rem; }
.badge.actif,
.badge.valide,
.badge.paye { background: rgba(74,117,86,0.12); color: var(--sapin); border-color: rgba(74,117,86,0.3); }
.badge.en_attente,
.badge.demande,
.badge.en_traitement { background: rgba(196,122,58,0.14); color: var(--cuivre-2); border-color: rgba(196,122,58,0.34); }
.badge.refuse,
.badge.suspendu,
.badge.rejete { background: rgba(162,58,58,0.1); color: var(--rouge); border-color: rgba(162,58,58,0.28); }
.badge.admin { background: var(--encre); color: var(--creme); border-color: var(--encre); }
.badge.nouveau { background: rgba(196,122,58,0.14); color: var(--cuivre-2); border-color: rgba(196,122,58,0.34); }
.badge.en_cours { background: var(--creme-2); color: var(--gris); border-color: rgba(43,36,25,0.18); }
.badge.resolu { background: rgba(74,117,86,0.12); color: var(--sapin); border-color: rgba(74,117,86,0.3); }

/* Reponse de l'equipe a un retour beta */
.reply {
  margin-top: 12px; padding: 12px 14px;
  background: var(--creme-2); border-left: 2px solid var(--cuivre);
  border-radius: 8px;
}

/* Bande beta sur l'accueil */
.beta-band {
  max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter);
  border: 1px solid rgba(196,122,58,0.3); border-radius: 16px;
  background: rgba(196,122,58,0.06);
}

/* Vignettes de captures d'ecran */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thumb {
  display: block; width: 96px; height: 72px; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(43,36,25,0.15); background: var(--creme-2);
}
.thumb.sm { width: 64px; height: 48px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { border-color: var(--cuivre); }

/* ============================================================
   Flash + toast
   ============================================================ */
.flashes { max-width: var(--max); margin: 16px auto 0; padding: 0 var(--gutter); }
.flash {
  padding: 14px 20px; border-radius: var(--r-md); margin: 8px 0;
  font-family: var(--sans); font-size: 0.94rem;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-1);
}
.flash::before { content: "✦"; font-size: 1rem; }
.flash.ok    { background: rgba(74,117,86,0.12);  color: var(--sapin);  border-left: 3px solid var(--sapin); }
.flash.error { background: rgba(162,58,58,0.10); color: var(--rouge); border-left: 3px solid var(--rouge); }
.flash.message { background: rgba(255,255,255,0.75); color: var(--encre); border-left: 3px solid var(--cuivre); }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--encre); color: var(--creme);
  padding: 12px 22px; border-radius: 999px;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500;
  box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.3,1.4,.5,1);
  z-index: 100;
  display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast::before { content: "✓"; color: var(--cuivre-3); }

/* ============================================================
   Footer
   ============================================================ */
footer.site {
  margin-top: 96px;
  border-top: var(--line-2);
  background: var(--creme-2);
  padding: 40px var(--gutter) 28px;
  font-size: 0.88rem;
  color: var(--gris);
}
footer.site .grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
  padding-bottom: 28px;
  border-bottom: var(--line-2);
}
footer.site .grid h4 {
  font-family: var(--mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--encre); margin: 0 0 12px;
}
footer.site .grid p { margin: 6px 0; max-width: 36ch; }
footer.site .grid a {
  display: block; color: var(--gris); text-decoration: none; margin: 6px 0;
  transition: color .15s ease;
}
footer.site .grid a:hover { color: var(--cuivre-2); }
footer.site .bottom {
  max-width: var(--max); margin: 20px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 0.78rem;
}
footer.site .brand-mini {
  font-family: var(--serif); font-size: 1.2rem; color: var(--encre);
  display: inline-flex; align-items: center; gap: 8px;
}
footer.site .brand-mini svg { width: 18px; height: 18px; color: var(--cuivre); }

@media (max-width: 800px) {
  footer.site .grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(2deg); }
}
.fade-up    { animation: fadeUp .7s ease both; }
.fade-up.d1 { animation-delay: .10s; }
.fade-up.d2 { animation-delay: .18s; }
.fade-up.d3 { animation-delay: .26s; }
.floaty     { animation: float 8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
