/* © Pam Redjimi · CONCORDIA. Les Colombes — styles.
   Thème clair, pensé pour la marche en plein soleil. */

:root {
  --ciel: oklch(97.5% 0.011 250);
  --ciel-profond: oklch(94% 0.02 252);
  --encre: oklch(28% 0.045 262);
  --encre-douce: oklch(45% 0.03 262);
  --concordia: oklch(51% 0.14 262);
  --concordia-nuit: oklch(42% 0.13 262);
  --eveil: oklch(76% 0.13 172);
  --eveil-encre: oklch(38% 0.09 172);
  --rayonnement: oklch(61% 0.19 295);
  --soleil-encre: oklch(52% 0.13 45);
  --blanc-plume: oklch(99% 0.004 250);
  --ombre: 0 2px 12px oklch(51% 0.14 262 / 8%), 0 1px 3px oklch(51% 0.14 262 / 6%);
  --sortie: cubic-bezier(0.22, 1, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", system-ui, sans-serif;
  background: var(--ciel);
  color: var(--encre);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.vue {
  min-height: 100dvh;
  padding: calc(14px + env(safe-area-inset-top)) 20px 24px;
  display: flex; flex-direction: column;
  max-width: 520px; margin: 0 auto;
}
.vue.avec-onglets { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
[hidden] { display: none !important; }
.cord { font-variant-numeric: tabular-nums; }

/* ---------- scène ciel + colombe ---------- */
.scene-ciel {
  position: relative; margin: 10px -20px 0; padding: 22px 20px 14px; text-align: center;
  background: linear-gradient(180deg, oklch(88% 0.05 245), oklch(94% 0.03 248) 55%, var(--ciel));
}
.scene-ciel.entree { margin-top: 0; padding-top: calc(30px + env(safe-area-inset-top)); }
.soleil-deco { position: absolute; top: 16px; right: 24px; width: 52px; height: 52px; }
.nuage { position: absolute; height: 18px; border-radius: 999px; background: var(--blanc-plume);
  opacity: 0.95; box-shadow: 0 4px 10px oklch(51% 0.14 262 / 6%); }
.nuage::before { content: ""; position: absolute; top: -9px; left: 22%; width: 45%; height: 16px;
  background: inherit; border-radius: 999px; }
.colombe-hero { width: min(62vw, 250px); height: auto; aspect-ratio: 240/200;
  animation: respiration 4s var(--sortie) infinite; }
@keyframes respiration { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }
.nom-colombe { font-size: 19px; font-weight: 700; }
.nom-colombe small { display: block; font-size: 12.5px; font-weight: 600; color: var(--encre-douce); margin-top: 2px; }

.scene-ciel h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; margin-top: 4px; }
.slogan { font-size: 15px; color: var(--encre-douce); font-weight: 500; margin: 6px auto 8px; max-width: 32ch; }

/* ---------- entrée ---------- */
.carte-auth { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.champ label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.champ input {
  width: 100%; font: inherit; font-size: 17px; color: var(--encre);
  background: var(--blanc-plume); border: 1.5px solid oklch(87% 0.02 252);
  border-radius: 14px; padding: 13px 14px; outline: none;
}
.champ input:focus { border-color: var(--concordia); box-shadow: 0 0 0 3px oklch(51% 0.14 262 / 15%); }
.erreur { color: oklch(52% 0.15 30); font-size: 14px; font-weight: 600; }
.lien-bascule { color: var(--concordia); font-weight: 700; font-size: 15px; padding: 8px; }

/* ---------- boutons ---------- */
.bouton-principal {
  background: var(--concordia); color: var(--blanc-plume);
  font-size: 18px; font-weight: 700; padding: 16px; border-radius: 20px;
  box-shadow: var(--ombre); display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform 150ms var(--sortie), background 150ms var(--sortie);
}
.bouton-principal:active { background: var(--concordia-nuit); transform: scale(0.98); }
.bouton-principal .ic { width: 24px; height: 24px; }
.grande-action { margin-top: 18px; }
.petite-note { margin-top: 12px; font-size: 12.5px; color: var(--encre-douce); text-align: center; }

/* ---------- accueil ---------- */
.salutation { display: flex; justify-content: space-between; align-items: baseline; }
.bonjour { font-size: 22px; font-weight: 700; }
.jauges { display: flex; justify-content: center; gap: 18px; margin-top: 14px; }
.jauge { display: flex; align-items: center; gap: 10px; }
.jauge svg { width: 54px; height: 54px; }
.jauge .valeurs b { font-size: 15px; display: block; }
.jauge .valeurs span { font-size: 11.5px; font-weight: 600; color: var(--encre-douce); }
#arc-endurance { transition: stroke-dashoffset 600ms var(--sortie); }

/* ---------- marche ---------- */
.session-titre { text-align: center; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--encre-douce); }
.anneau-pas { position: relative; width: min(70vw, 260px); aspect-ratio: 1; margin: 16px auto 0; }
.anneau-pas svg.cercle { width: 100%; height: 100%; transform: rotate(-90deg); }
#arc-pas { transition: stroke-dashoffset 400ms var(--sortie); }
.anneau-pas .centre { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; }
.anneau-pas .pas { font-size: clamp(44px, 15vw, 58px); font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.anneau-pas .label-pas { font-size: 13px; font-weight: 600; color: var(--encre-douce); margin-top: 4px; }
.mesures { display: flex; justify-content: center; gap: 8px; margin-top: 14px;
  font-size: 14px; font-weight: 600; color: var(--encre-douce); }
.mesures b { color: var(--encre); font-weight: 700; }
.mesures .point { color: oklch(75% 0.02 252); }
.compagnon-session { display: flex; align-items: center; gap: 12px; margin-top: 16px;
  background: var(--blanc-plume); border-radius: 18px; padding: 12px 14px; box-shadow: var(--ombre); }
.compagnon-session svg { width: 74px; height: 60px; flex: none; }
.compagnon-session p { font-size: 13.5px; line-height: 1.45; color: var(--encre-douce); }
.compagnon-session p b { color: var(--encre); }
.actions-session { display: flex; gap: 12px; margin-top: auto; }
.actions-session .bouton-principal { flex: 1; }
.btn-fin { flex: 1; background: var(--eveil); color: oklch(22% 0.06 172);
  font-weight: 700; font-size: 17px; padding: 16px; border-radius: 20px; box-shadow: var(--ombre); }

/* ---------- pastille de gain ---------- */
.pastille-gain { display: inline-flex; align-items: center; gap: 5px;
  background: oklch(93% 0.05 172); color: var(--eveil-encre);
  font-size: 14px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }

/* ---------- ensemble / nid ---------- */
.nid-entete { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.nid-entete h3 { font-size: 22px; font-weight: 700; }
.nid-entete span { font-size: 13px; font-weight: 600; color: var(--encre-douce); }
.grand-nid { margin-top: 12px; background: var(--blanc-plume); border-radius: 22px;
  padding: 16px 18px 14px; box-shadow: var(--ombre); text-align: center; }
.grand-nid svg { width: 150px; height: 104px; }
.grand-nid .montant { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; margin-top: 2px; }
.grand-nid .montant small { font-size: 16px; font-weight: 700; color: var(--eveil-encre); margin-left: 5px; }
.grand-nid .sous { font-size: 12.5px; color: var(--encre-douce); font-weight: 600; margin-top: 3px; }
.historique { margin-top: 16px; }
.historique h4 { font-size: 14px; font-weight: 700; color: var(--encre-douce); margin-bottom: 6px; }
.mouvement { display: flex; align-items: center; gap: 12px; padding: 10px 4px;
  border-bottom: 1px solid oklch(90% 0.015 252); }
.mouvement:last-child { border-bottom: 0; }
.mouvement .icone { flex: none; width: 38px; height: 38px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; background: oklch(93% 0.05 172); }
.mouvement .icone svg { width: 21px; height: 21px; color: var(--eveil-encre); }
.mouvement .icone.grise { background: var(--ciel-profond); }
.mouvement .icone.grise svg { color: var(--encre-douce); }
.mouvement .quoi { flex: 1; }
.mouvement .quoi b { font-size: 14.5px; font-weight: 600; display: block; }
.mouvement .quoi span { font-size: 12px; color: var(--encre-douce); font-weight: 500; }
.mouvement .combien { font-size: 15px; font-weight: 800; color: var(--eveil-encre); }
.mouvement .combien.zero { color: var(--encre-douce); font-weight: 600; font-size: 12.5px; }
.carte-vide { margin-top: 16px; background: var(--blanc-plume); border-radius: 22px;
  padding: 22px 18px; box-shadow: var(--ombre); text-align: center; }
.carte-vide .mini-colombe { width: 110px; height: 92px; }
.carte-vide p { font-size: 14.5px; line-height: 1.55; color: var(--encre-douce); margin-top: 8px; }
.carte-vide p b { color: var(--encre); }

/* ---------- onglets ---------- */
.onglets { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-around; align-items: flex-start;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  background: var(--blanc-plume); border-top: 1px solid oklch(88% 0.02 252); }
.onglet { display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; color: var(--encre-douce); width: 76px; padding: 2px 0; }
.onglet.actif { color: var(--concordia); }
.onglet svg { width: 26px; height: 26px; }
