/* ============ ESYA Coaching — thème clair « High Performance Kinetic » ============
   Tokens extraits des planches Stitch : blanc #ffffff / crème #fcf9f8, lime #abd600,
   noir #1c1b1b, gris #747a60, gris clair #f0eded, police Inter, angles très arrondis. */
:root {
  --bg: #fcf9f8;
  --card: #ffffff;
  --card-soft: #f7f5f2;
  --text: #1c1b1b;
  --muted: #747a60;
  --line: #f0eded;
  --accent: #abd600;
  --accent-fonce: #7a9a00;
  --accent-soft: #f4fadb;
  --noir: #1c1b1b;
  --vert: #5a8a00;
  --vert-soft: #eef6d8;
  --orange: #c07b23;
  --c-glucides: #d9a05b;
  --c-proteines: #e05b5b;
  --c-lipides: #7b9be8;
  --c-fibres: #6aa84f;
  --c-sucre: #e86fa4;
  --c-sodium: #6fb8e8;
  --c-eau: #5aa9e6;
  --radius: 24px;
  --shadow: 0 2px 10px rgba(28, 27, 27, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; min-height: 100dvh;
}
.app { max-width: 560px; margin: 0 auto; padding: 16px 16px 130px; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: var(--text); }

/* ============ En-tête ============ */
.header { display: flex; align-items: center; gap: 12px; padding: 8px 4px 4px; }
.header .marque { font-weight: 800; letter-spacing: 0.02em; font-size: 1.15rem; }
.header .marque b { color: var(--accent-fonce); }
.header-titles { flex: 1; min-width: 0; }
.header .sous-titre { color: var(--muted); font-size: 0.85rem; margin-top: 1px; }
.grand-titre { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; padding: 10px 4px 4px; }
.grand-titre::after { content: ""; display: block; width: 44px; height: 4px; background: var(--accent); border-radius: 999px; margin-top: 6px; }
.sous-grand-titre { color: var(--muted); padding: 2px 4px 14px; font-size: 0.92rem; line-height: 1.45; }
.chip-rond {
  background: var(--card); border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--line);
  min-width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 0 12px; font-weight: 700; font-size: 1rem;
}
.chip-rond.icone-seule { padding: 0; width: 44px; }
.pastille-etat { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-fonce); font-size: 0.8rem; font-weight: 700; }
.pastille-etat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ============ Cartes ============ */
.carte {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 20px; margin-bottom: 14px;
}
.carte-noire { background: var(--noir); color: #fff; border: none; }
.carte-noire .carte-titre { color: #fff; }
.carte-titre { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 800; }
.carte-titre .fleche { margin-left: auto; color: var(--muted); }
.badge-type {
  margin-left: auto; font-size: 0.75rem; font-weight: 800; padding: 5px 11px; letter-spacing: 0.04em;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-fonce); white-space: nowrap; text-transform: uppercase;
}
.badge-type.high { background: #fdf3e7; color: #d9862b; }
.badge-type.low { background: #e9f0fd; color: #4a72d4; }
.badge-type.modere { background: var(--vert-soft); color: var(--vert); }
.badge-type.repos { background: var(--line); color: var(--muted); }

/* ============ Objectif calorique ============ */
.kcal-ligne { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.kcal-gros { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.kcal-cible { color: var(--muted); font-size: 1.1rem; font-weight: 600; }
.kcal-restant { margin-left: auto; color: var(--muted); font-size: 1rem; font-weight: 600; }
.barre-progression { height: 8px; border-radius: 999px; background: var(--line); margin-top: 12px; overflow: hidden; }
.barre-progression > div { height: 100%; border-radius: 999px; background: var(--accent); transition: width 0.4s ease; width: 0; }
.barre-progression > div.depasse { background: #d43a3a; }
.seance-du-jour { display: flex; align-items: center; gap: 8px; margin-top: 12px; background: var(--card-soft); border-radius: 14px; padding: 10px 13px; font-weight: 600; font-size: 0.9rem; }
.seance-du-jour b { color: var(--accent-fonce); }

/* ============ Anneaux repas ============ */
.repas-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }
.repas-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.anneau-wrap { position: relative; width: 74px; height: 74px; }
.anneau-wrap svg { transform: rotate(-90deg); }
.anneau-fond { fill: none; stroke: var(--line); stroke-width: 5; }
.anneau-prog { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 0.4s ease; }
.anneau-centre {
  position: absolute; inset: 8px; border-radius: 50%; background: var(--card-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; overflow: hidden;
}
.anneau-centre img { width: 100%; height: 100%; object-fit: cover; }
.anneau-plus {
  position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--noir); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700;
  border: 2px solid var(--card);
}
.repas-nom { font-size: 0.83rem; font-weight: 700; margin-top: 4px; text-align: center; }
.repas-kcal { font-size: 0.78rem; color: var(--muted); }

/* ============ Macros ============ */

/* ============ Eau ============ */
.eau-quantite { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.eau-quantite .gros { font-size: 2rem; font-weight: 800; color: var(--accent-fonce); }
.eau-quantite .cible { color: var(--muted); font-weight: 600; }
.eau-verres { display: flex; gap: 6px; margin-top: 14px; }
.eau-verre { flex: 1; aspect-ratio: 0.75; border-radius: 8px 8px 12px 12px; background: var(--line); position: relative; overflow: hidden; }
.eau-verre > div { position: absolute; bottom: 0; left: 0; right: 0; background: #dcedaa; transition: height 0.3s ease; }
.eau-verre.plein > div { background: var(--accent); }
.eau-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.btn-eau {
  display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--card-soft);
  border: 1px solid var(--line); padding: 12px 10px; border-radius: 14px; font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.btn-eau:active { background: var(--accent-soft); }
.btn-eau.moins { color: var(--muted); text-transform: none; grid-column: 1 / -1; padding: 9px; }

/* ============ Activités / séances ============ */
.neat-note { color: var(--muted); font-size: 0.87rem; margin-top: 6px; line-height: 1.45; }
.neat-liste { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.neat-item {
  display: flex; align-items: center; gap: 12px; background: var(--card-soft);
  border-radius: 16px; padding: 13px 14px; font-weight: 600; text-align: left; width: 100%;
}
.neat-item .coche {
  margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #d9d6d0;
  display: flex; align-items: center; justify-content: center; color: transparent; font-size: 0.9rem; flex-shrink: 0;
}
.neat-item.fait { background: var(--accent-soft); }
.neat-item.fait .coche { background: var(--accent); border-color: var(--accent); color: var(--noir); }

.jours-defilants { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.jours-defilants::-webkit-scrollbar { display: none; }
.jour-carte {
  min-width: 68px; padding: 12px 8px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 700; box-shadow: var(--shadow);
}
.jour-carte .nom { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.jour-carte .num { font-size: 1.25rem; }
.jour-carte .point { width: 6px; height: 6px; border-radius: 50%; background: transparent; margin-top: 2px; }
.jour-carte .point.actif { background: var(--accent-fonce); }
.jour-carte.selection { background: var(--accent); border-color: var(--accent); }
.jour-carte.selection .nom { color: var(--noir); }

.seance-carte { border-radius: 20px; }
.seance-entete { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag-type { background: var(--accent); color: var(--noir); font-size: 0.7rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; }
.seance-entete .meta { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.seance-carte h3 { font-size: 1.15rem; font-weight: 800; margin-top: 8px; }
.seance-carte .note { color: var(--muted); font-size: 0.9rem; line-height: 1.5; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.seance-pied { display: flex; gap: 14px; margin-top: 10px; font-size: 0.87rem; font-weight: 600; color: var(--muted); }
.btn-suppr { margin-left: auto; color: var(--muted); font-size: 1.05rem; padding: 6px 8px; flex-shrink: 0; }

/* ============ Bilan (check-in 6 étapes) ============ */
.etapes-barre { display: flex; gap: 6px; margin: 4px 2px 16px; }
.etapes-barre span { flex: 1; height: 5px; border-radius: 999px; background: var(--line); }
.etapes-barre span.faite { background: var(--accent); }
.etape-titre { font-size: 1.35rem; font-weight: 800; margin: 4px 2px 14px; line-height: 1.3; }
.groupe-jour { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 10px; }
.groupe-jour .nom-jour { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.options-ligne { display: flex; gap: 8px; }
.option-btn {
  flex: 1; padding: 11px 6px; border-radius: 12px; background: var(--card-soft); border: 1px solid var(--line);
  font-weight: 600; font-size: 0.85rem;
}
.option-btn.choisi { background: var(--noir); color: var(--accent); border-color: var(--noir); font-weight: 700; }
.question { font-size: 1.02rem; font-weight: 700; margin: 18px 2px 10px; }
.curseur-emojis { display: flex; justify-content: space-between; font-size: 1.5rem; padding: 4px 6px; }
.curseur-emojis button { opacity: 0.35; transition: 0.15s; font-size: 1.6rem; }
.curseur-emojis button.choisi { opacity: 1; transform: scale(1.25); }
input[type="range"] { width: 100%; accent-color: var(--accent-fonce); }
.mesure-ligne { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px 10px 10px 14px; margin-bottom: 10px; }
.mesure-ligne .infos { flex: 1; }
.mesure-ligne .infos b { display: block; font-size: 0.95rem; }
.mesure-ligne .infos button { color: var(--accent-fonce); font-size: 0.8rem; font-weight: 700; padding: 2px 0; }
.mesure-ligne input { width: 96px; border: none; outline: none; background: var(--card-soft); border-radius: 12px; padding: 12px; font-weight: 800; font-size: 1.05rem; text-align: center; }
.victoire-ligne { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.victoire-num { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--noir); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.victoire-ligne input { flex: 1; border: 1px solid var(--line); outline: none; background: var(--card); border-radius: 14px; padding: 13px 14px; font-size: 0.95rem; }
.zone-texte { width: 100%; min-height: 100px; border: 1px solid var(--line); outline: none; resize: vertical; background: var(--card); border-radius: 18px; padding: 15px; font-size: 0.98rem; line-height: 1.5; }
.note-globale { font-size: 2.6rem; font-weight: 800; text-align: center; color: var(--accent-fonce); }
.bilan-nav { display: flex; gap: 10px; margin-top: 18px; }
.bilan-envoye { text-align: center; padding: 26px 10px; }
.bilan-envoye .grand { font-size: 3rem; }
.bilan-envoye h3 { margin: 10px 0 6px; }

/* ============ Progrès ============ */
.filtres { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.filtres::-webkit-scrollbar { display: none; }
.filtre {
  white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-weight: 700; font-size: 0.88rem; box-shadow: var(--shadow); color: var(--muted);
}
.filtre.actif { background: var(--accent); color: var(--noir); border-color: var(--accent); }
.mesure-actuelle { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.mesure-actuelle .libelle { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mesure-actuelle .valeur { font-size: 2.6rem; font-weight: 800; }
.mesure-actuelle .unite { color: var(--muted); font-weight: 700; }
.delta { font-size: 0.9rem; font-weight: 700; margin-top: 2px; }
.delta.baisse { color: var(--accent-fonce); }
.delta.hausse { color: var(--orange); }
.graphique { margin-top: 14px; }
.graphique svg { width: 100%; height: 130px; }
.hist-ligne { display: flex; align-items: baseline; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.hist-ligne:last-child { border-bottom: none; }
.hist-ligne .date { color: var(--muted); }
.hist-ligne b { margin-left: auto; font-size: 1.05rem; }
.hist-ligne b small { color: var(--muted); font-weight: 600; }
.stat-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.stat-tuile { background: var(--card-soft); border-radius: 18px; padding: 15px; }
.stat-tuile .valeur { font-size: 1.45rem; font-weight: 800; }
.stat-tuile .libelle { color: var(--muted); font-size: 0.8rem; font-weight: 600; margin-top: 2px; }

/* Calendrier */
.cal-nav { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.cal-nav h3 { flex: 1; font-size: 1.1rem; font-weight: 800; text-transform: capitalize; }
.cal-nav button { width: 38px; height: 38px; border-radius: 50%; background: var(--card-soft); font-size: 1.1rem; font-weight: 700; }
.cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 14px; }
.cal-entete { text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 4px 0; }
.cal-case { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; font-weight: 600; font-size: 0.92rem; position: relative; background: none; }
.cal-case:disabled { color: #cfccc6; }
.cal-case .point { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-fonce); position: absolute; bottom: 6px; }
.cal-case.aujourdhui { background: var(--accent-soft); color: var(--accent-fonce); font-weight: 800; }

/* ============ Ressources ============ */
.ressource-carte { display: flex; gap: 14px; align-items: center; }
.ressource-emoji { width: 58px; height: 58px; border-radius: 18px; background: var(--card-soft); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }
.ressource-carte h3 { font-size: 1rem; font-weight: 800; }
.ressource-carte .meta { color: var(--muted); font-size: 0.85rem; margin-top: 3px; line-height: 1.4; }
.note-coach { background: var(--accent-soft); border: 1px solid #e3f0b6; border-radius: 18px; padding: 14px 16px; margin-bottom: 10px; }
.note-coach .date { font-size: 0.75rem; font-weight: 700; color: var(--accent-fonce); text-transform: uppercase; letter-spacing: 0.05em; }
.note-coach p { margin-top: 4px; line-height: 1.5; font-size: 0.95rem; }
.recette-carte { display: flex; gap: 14px; align-items: center; }
.recette-emoji { width: 62px; height: 62px; border-radius: 18px; background: var(--card-soft); display: flex; align-items: center; justify-content: center; font-size: 2rem; flex-shrink: 0; }
.recette-infos { flex: 1; min-width: 0; }
.recette-infos h3 { font-size: 1rem; font-weight: 800; }
.recette-meta { color: var(--muted); font-size: 0.84rem; margin-top: 3px; }
.recette-macros { display: flex; gap: 10px; margin-top: 6px; font-size: 0.8rem; font-weight: 700; flex-wrap: wrap; }
.recette-macros .mg { color: var(--c-glucides); }
.recette-macros .mp { color: var(--c-proteines); }
.recette-macros .ml { color: var(--c-lipides); }

/* ============ Navigation basse ============ */
.nav-basse {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 28px); max-width: 560px; display: flex; align-items: center; gap: 10px; z-index: 50;
}
.nav-pilule {
  flex: 1; display: flex; background: rgba(28, 27, 27, 0.96); backdrop-filter: blur(12px);
  border-radius: 999px; box-shadow: 0 8px 26px rgba(28, 27, 27, 0.28); padding: 7px;
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 2px; border-radius: 999px; font-size: 0.64rem; font-weight: 700; color: #b8b6b2;
}
.nav-btn .nav-ico { font-size: 1.15rem; line-height: 1; filter: grayscale(1); opacity: 0.7; }
.nav-btn.actif { color: var(--accent); }
.nav-btn.actif .nav-ico { filter: none; opacity: 1; }

/* ============ Modales / feuilles ============ */
.voile { position: fixed; inset: 0; background: rgba(28, 27, 27, 0.5); z-index: 100; display: none; align-items: flex-end; justify-content: center; }
.voile.visible { display: flex; }
.feuille {
  background: var(--bg); width: 100%; max-width: 560px; border-radius: 28px 28px 0 0;
  max-height: 92vh; max-height: 92dvh; overflow-y: auto; padding: 20px 16px 40px;
  animation: monter 0.25s ease;
}
@keyframes monter { from { transform: translateY(60px); opacity: 0.5; } to { transform: translateY(0); opacity: 1; } }
.feuille-entete { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.feuille-entete h2 { flex: 1; text-align: center; font-size: 1.15rem; font-weight: 800; }
.btn-fermer { width: 42px; height: 42px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.espace-42 { width: 42px; flex-shrink: 0; }

.segments { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.segments::-webkit-scrollbar { display: none; }
.segment { flex: 1 0 auto; padding: 10px 13px; border-radius: 999px; font-weight: 700; font-size: 0.88rem; color: var(--muted); white-space: nowrap; }
.segment.actif { background: var(--noir); color: var(--accent); }

.champ-recherche { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; margin-bottom: 14px; }
.champ-recherche input { flex: 1; border: none; outline: none; background: none; font-size: 1rem; }
.champ-recherche input::placeholder { color: var(--muted); }

.liste-aliments { display: flex; flex-direction: column; gap: 8px; }
.aliment-ligne { display: flex; align-items: center; gap: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; text-align: left; width: 100%; }
.aliment-vignette { width: 50px; height: 50px; border-radius: 14px; background: var(--card-soft); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; overflow: hidden; }
.aliment-vignette img { width: 100%; height: 100%; object-fit: cover; }
.aliment-infos { flex: 1; min-width: 0; }
.aliment-infos .nom { font-weight: 700; font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aliment-infos .kcal { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.aliment-infos .kcal .flamme { color: var(--accent-fonce); }
.btn-etoile { font-size: 1.3rem; color: #d9d6d0; padding: 6px; flex-shrink: 0; }
.btn-etoile.favori { color: #e8b70e; }
.liste-vide { text-align: center; color: var(--muted); padding: 30px 20px; font-weight: 600; line-height: 1.5; }

.choix-repas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.choix-repas button { padding: 10px 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 0.78rem; color: var(--muted); display: flex; flex-direction: column; gap: 3px; align-items: center; }
.choix-repas button .emo { font-size: 1.2rem; }
.choix-repas button.actif { background: var(--noir); color: var(--accent); border-color: var(--noir); }

.editeur-aliment { text-align: center; padding: 8px 0 4px; }
.editeur-aliment .grand-emoji { font-size: 3.2rem; }
.editeur-aliment h3 { font-size: 1.25rem; font-weight: 800; margin-top: 8px; }
.editeur-aliment .par-100 { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.quantite-ligne { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 20px 0 8px; }
.btn-quantite { width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); font-size: 1.3rem; font-weight: 700; }
.quantite-input { width: 110px; text-align: center; font-size: 1.6rem; font-weight: 800; border: 1px solid var(--line); outline: none; background: var(--card); border-radius: 16px; padding: 10px; }
.unites-rapides { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 12px 0 6px; }
.unites-rapides button { background: var(--card-soft); border: 1px solid var(--line); border-radius: 12px; padding: 7px 12px; font-weight: 600; font-size: 0.84rem; }
.recap-macros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0; }
.recap-macros > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; }
.recap-macros .val { font-weight: 800; font-size: 1.02rem; }
.recap-macros .lib { color: var(--muted); font-size: 0.7rem; font-weight: 700; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.03em; }

.btn-principal {
  width: 100%; background: var(--accent); color: var(--noir); font-weight: 800; font-size: 1rem;
  padding: 16px; border-radius: 999px; box-shadow: 0 6px 18px rgba(171, 214, 0, 0.4);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.btn-principal:disabled { opacity: 0.45; box-shadow: none; }
.btn-secondaire { width: 100%; background: var(--card); color: var(--text); font-weight: 700; font-size: 0.95rem; padding: 14px; border-radius: 999px; border: 1px solid var(--line); }

.zone-dictee textarea { width: 100%; min-height: 110px; border: 1px solid var(--line); outline: none; resize: vertical; background: var(--card); border-radius: 18px; padding: 16px; font-size: 1rem; line-height: 1.5; }
.exemple-dictee { color: var(--muted); font-size: 0.84rem; margin: 10px 4px 14px; line-height: 1.5; }
.resultat-analyse { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ligne-micro { display: flex; gap: 10px; margin-top: 10px; }
.btn-micro { width: 54px; height: 54px; border-radius: 50%; background: var(--noir); color: var(--accent); font-size: 1.3rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.btn-micro.actif { background: #d43a3a; color: #fff; animation: pulsation 1s infinite; }
@keyframes pulsation { 50% { transform: scale(1.08); } }

.zone-photo { text-align: center; }
.photo-apercu { width: 100%; aspect-ratio: 4/3; border-radius: 20px; background: var(--card-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; margin-bottom: 14px; border: 2px dashed #d9d6d0; }
.photo-apercu img { width: 100%; height: 100%; object-fit: cover; }
.note-photo { color: var(--muted); font-size: 0.84rem; margin-top: 10px; line-height: 1.5; }

.repas-section { margin-bottom: 18px; }
.repas-section h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; display: flex; align-items: baseline; gap: 8px; }
.repas-section h3 small { color: var(--muted); font-weight: 600; }

/* Formulaires (onboarding, séance) */
.champ-bloc { margin-bottom: 12px; }
.champ-bloc label { display: block; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.champ-bloc input, .champ-bloc select { width: 100%; border: 1px solid var(--line); outline: none; background: var(--card); border-radius: 14px; padding: 14px; font-size: 1rem; font-weight: 600; }
.champ-double { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.logo-onboarding { text-align: center; padding: 10px 0 16px; }
.logo-onboarding .marque { font-size: 2rem; font-weight: 800; }
.logo-onboarding .marque b { color: var(--accent-fonce); }
.logo-onboarding p { color: var(--muted); margin-top: 6px; line-height: 1.5; }

.toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--noir); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600;
  font-size: 0.9rem; opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 200;
  max-width: calc(100% - 40px); text-align: center;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast b { color: var(--accent); }

.vue { display: none; }
.vue.active { display: block; }

@media (min-width: 640px) {
  .app { padding-top: 28px; }
  .feuille { border-radius: 28px; margin-bottom: 24px; }
  .voile { align-items: center; }
}
