/* Lunaison : mise en page mobile uniquement (colonne de 480 px max, centrée sur grand écran). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nacre);
  color: var(--cacao);
  font-family: var(--police-texte);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--lien); }
button, input { font: inherit; color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--cacao); outline-offset: 3px; border-radius: 6px; }

.evitement {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--cacao); color: var(--nacre); padding: 10px 16px; border-radius: var(--pilule);
  text-decoration: none; font-weight: 500;
}
.evitement:focus { top: calc(12px + env(safe-area-inset-top)); }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Coque ---------- */
.appli {
  max-width: var(--largeur-max);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
}

.entete {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px var(--marge) 4px;
}
.logo {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--cacao); text-decoration: none; padding: 4px 8px;
}
.logo-phases { width: 104px; height: 12px; color: var(--vieux-rose); }
.logo-nom {
  font-family: var(--police-titre); font-weight: 300; font-size: 20px; line-height: 1;
  letter-spacing: 0.18em; padding-left: 0.18em;
}
.entete-reglages { position: absolute; right: 12px; top: 18px; }

.bouton-icone {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: var(--pilule); background: transparent; cursor: pointer;
  color: var(--texte-discret);
}
.bouton-icone svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bouton-icone:active { background: var(--piste); }

.contenu {
  flex: 1;
  padding: 16px var(--marge) calc(var(--hauteur-nav) + 28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--ecart);
  outline: none;
}

.vue { display: flex; flex-direction: column; gap: var(--ecart); }

/* ---------- Barre d'onglets ---------- */
.barre-onglets {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--largeur-max); z-index: 10;
  display: flex; gap: 4px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--blanc); border-top: 1px solid var(--trait);
}
.barre-onglets a {
  flex: 1; min-height: 48px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 6px 0; border-radius: var(--rayon-petit);
  text-decoration: none; color: var(--texte-discret);
  font-size: 11px; font-weight: 500; letter-spacing: 0.01em;
}
.barre-onglets svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.barre-onglets a[aria-current="page"] { background: var(--rose-poudre); color: var(--cacao); }

/* ---------- Éléments communs ---------- */
.carte { border-radius: var(--rayon); padding: 16px 18px; background: var(--blanc); }
.surtitre {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--texte-sur-rose);
}
.titre-serif {
  font-family: var(--police-titre); font-weight: 400; font-size: 30px; line-height: 1.12;
  text-wrap: balance;
}
.titre-serif em { font-style: italic; color: var(--lien); }
.texte-doux { font-size: 14px; line-height: 1.55; color: var(--texte-doux); }

.bouton {
  min-height: 48px; padding: 12px 22px; border-radius: var(--pilule); border: 0; cursor: pointer;
  font-size: 15px; font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.bouton-plein { background: var(--cacao); color: var(--nacre); }
.bouton-plein:active { background: #3A2925; }
.bouton-texte { background: transparent; color: var(--lien); text-decoration: underline; text-underline-offset: 3px; }
.bouton-contour { background: transparent; color: var(--cacao); box-shadow: inset 0 0 0 1px var(--cacao); text-decoration: none; }
.bouton-petit { min-height: 44px; padding: 10px 16px; font-size: 13px; }
.bouton-rond { background: var(--cacao); color: var(--nacre); flex: none; }
.bouton-rond:active { background: #3A2925; }
.avatar-k {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--cacao); color: var(--nacre);
  display: grid; place-items: center; font-family: var(--police-titre); font-size: 17px; line-height: 1;
}

/* ---------- Tâches (accueil et to-do) ---------- */
.liste { list-style: none; margin: 0; padding: 0; }
.tache { display: flex; align-items: center; gap: 2px; }
.tache-case {
  flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px;
}
.tache-texte { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tache input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0; cursor: pointer;
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--vieux-rose); background: var(--blanc);
  display: grid; place-items: center;
}
/* La case se remplit comme une lune */
.tache input[type="checkbox"]::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--vieux-rose);
  transform: scale(0); transition: transform 0.25s ease;
}
.tache input[type="checkbox"]:checked::after { transform: scale(1); }
.tache input[type="checkbox"]:focus-visible { outline: 2px solid var(--cacao); outline-offset: 3px; }
.tache.faite .tache-texte { text-decoration: line-through; color: var(--texte-discret); }
.etiquette-cat, .etiquette-suivante {
  flex: none; font-size: 11px; padding: 4px 10px; border-radius: var(--pilule); white-space: nowrap;
  background: var(--peche); color: var(--texte-sur-peche);
}
.etiquette-moi { background: var(--rose-poudre); color: var(--texte-sur-rose); }
.etiquette-suivante { background: var(--piste); color: var(--texte-discret); }
.tache-plus { color: var(--texte-discret); margin-right: -10px; }
.tache-plus svg { stroke-width: 2.4; }

/* ---------- Accueil : phrase du jour ---------- */
.phrase {
  background: var(--rose-poudre); border-radius: var(--rayon-grand);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 8px;
}
.phrase .titre-serif em { color: var(--texte-sur-rose); }
.phrase-autre {
  align-self: flex-start; margin: 4px 0 -6px -10px;
  min-height: 44px; padding: 0 10px; border: 0; background: transparent; cursor: pointer;
  font-size: 13px; color: var(--texte-sur-rose); text-decoration: underline; text-underline-offset: 3px;
}
.phrase.change .titre-serif, .phrase.change .texte-doux { animation: apparition 0.5s ease both; }
@keyframes apparition { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Accueil : ma journée ---------- */
.journee { display: flex; flex-direction: column; gap: 6px; }
.journee-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.journee-tete h2 { font-size: 16px; font-weight: 500; }
.journee-tete a { font-size: 13px; padding: 10px 0; }
.progression { display: flex; align-items: center; gap: 10px; padding: 2px 0 4px; }
.progression-piste { flex: 1; height: 6px; border-radius: var(--pilule); background: var(--piste); overflow: hidden; }
.progression-barre { height: 100%; border-radius: var(--pilule); background: var(--vieux-rose); transition: width 0.4s ease; }
.progression-texte { font-size: 12px; color: var(--texte-discret); white-space: nowrap; }

.journee-note { font-size: 13px; color: var(--texte-discret); padding-top: 4px; }
.journee-choisir { align-self: flex-start; margin-top: 4px; }
.journee-bravo {
  margin-top: 6px; padding: 12px 14px; border-radius: var(--rayon-petit); background: var(--rose-poudre);
  font-family: var(--police-titre); font-style: italic; font-size: 19px; line-height: 1.3; color: var(--texte-sur-rose);
}

/* ---------- Accueil : lunaison en cours ---------- */
.lunaison {
  background: var(--peche); border-radius: var(--rayon); padding: 16px 18px;
  display: flex; align-items: center; gap: 14px; color: var(--cacao); text-decoration: none;
}
.lunaison-lune { width: 38px; height: 38px; flex: none; color: var(--vieux-rose); }
.lunaison-textes { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.lunaison-titre { font-size: 15px; font-weight: 500; }
.lunaison-detail { font-size: 13px; color: var(--texte-sur-peche); }
.lunaison-fleche { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--texte-sur-peche); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lunaison-jalons { display: flex; gap: 6px; margin-top: 8px; }
.lunaison-jalons span { flex: 1; height: 4px; border-radius: var(--pilule); background: rgba(74, 53, 48, 0.14); }
.lunaison-jalons span.passe { background: var(--vieux-rose); }

/* ---------- To-do ---------- */
.page-tete { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.surtitre-discret { color: var(--texte-discret); }
.titre-page { font-family: var(--police-titre); font-weight: 400; font-size: 34px; line-height: 1.1; outline: none; }
.liste-titre {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-discret); font-weight: 500;
  outline: none;
}
.liste-sous { font-size: 12px; color: var(--texte-discret); margin: 2px 0 4px; }
.liste-carte .liste-titre + .liste { margin-top: 4px; }
.liste-vide { font-size: 14px; color: var(--texte-discret); padding: 10px 0 6px; }

.filtres { display: flex; gap: 6px; overflow-x: auto; margin: 0 calc(-1 * var(--marge)); padding: 2px var(--marge); scrollbar-width: none; }
.filtres::-webkit-scrollbar { display: none; }
.filtre {
  flex: none; min-height: 40px; padding: 0 14px; border-radius: var(--pilule); cursor: pointer;
  border: 1px solid #E2D2CA; background: var(--blanc); color: var(--cacao); font-size: 13px; font-weight: 500;
}
.filtre[aria-pressed="true"] { background: var(--cacao); border-color: var(--cacao); color: var(--nacre); }

.place-vide {
  width: 100%; min-height: 44px; margin: 2px 0; padding: 0 12px; display: flex; align-items: center; gap: 10px;
  border: 1px dashed #D9C3BA; border-radius: var(--rayon-petit); background: transparent; cursor: pointer;
  font-size: 15px; color: var(--texte-doux); text-align: left;
}
.place-vide svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--lien); stroke-width: 1.8; stroke-linecap: round; }
.form-place { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.form-place input, .ajout-ligne input {
  flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px;
  border: 1px solid #E2D2CA; border-radius: var(--pilule); background: var(--nacre); font-size: 16px;
}
.form-place input::placeholder, .ajout-ligne input::placeholder { color: var(--texte-discret); opacity: 1; }
.form-place .bouton-icone:last-child { margin-right: -10px; }

.conseil, .moment { border-radius: var(--rayon); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.conseil { background: var(--peche); }
.conseil-tete { display: flex; gap: 10px; align-items: flex-start; }
.conseil-tete p { font-size: 14px; line-height: 1.45; color: var(--texte-doux); }
.conseil-tete strong { font-weight: 500; color: var(--cacao); }
.conseil-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.en-route .conseil-actions { margin-top: 4px; }
.en-route h2 { font-size: 16px; font-weight: 500; margin-bottom: 4px; }

.moment { background: var(--rose-poudre); padding: 16px 18px; }
.moment-tete { display: flex; align-items: center; gap: 10px; }
.moment-idee { font-family: var(--police-titre); font-size: 21px; line-height: 1.25; }
.moment .bouton { align-self: flex-start; }
.moment-ok { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--texte-sur-rose); min-height: 44px; }
.moment-ok svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ajout-tache {
  background: var(--blanc); border-radius: var(--rayon); padding: 12px; display: flex; flex-direction: column; gap: 10px;
}
.ajout-ligne { display: flex; gap: 8px; align-items: center; }
.choix-cat { display: flex; flex-wrap: wrap; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.puce { position: relative; cursor: pointer; }
.puce input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.puce span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--pilule);
  border: 1px solid #E2D2CA; font-size: 13px; color: var(--cacao);
}
.puce input:checked + span { background: var(--peche); border-color: var(--peche); font-weight: 500; }
.puce input:focus-visible + span { outline: 2px solid var(--cacao); outline-offset: 2px; }
.note-demain { font-size: 13px; color: var(--texte-discret); text-align: center; }

/* Feuille d'actions d'une tâche */
.titre-feuille { font-family: var(--police-titre); font-weight: 400; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; margin-bottom: 4px; }
.feuille-actions-tache { gap: 8px; }
.action-ligne {
  min-height: 52px; padding: 0 18px; border: 0; border-radius: var(--rayon-petit); background: var(--blanc);
  text-align: left; font-size: 16px; cursor: pointer;
}
.action-ligne:active { background: var(--piste); }
.action-danger { color: #8E3B43; }
.feuille-actions-tache .bouton-texte { align-self: center; margin-top: 4px; }

/* ---------- Vision board ---------- */
.intro-vision { padding: 0 4px; margin-top: -8px; }

/* Respiration avant de commencer */
.respiration { align-items: stretch; }
.respiration .texte-doux { padding: 0 4px; }
.souffle {
  position: relative; height: 260px; display: grid; place-items: center; margin: 4px 0;
}
.souffle-cercle {
  width: 210px; height: 210px; border-radius: 50%; background: var(--rose-poudre);
  box-shadow: 0 0 0 14px rgba(242, 212, 210, 0.45);
  transform: scale(0.62); transition: transform 4s ease-in-out;
}
.souffle[data-phase="inspire"] .souffle-cercle { transform: scale(1); transition-duration: 4s; }
.souffle[data-phase="expire"] .souffle-cercle { transform: scale(0.62); transition-duration: 6s; }
.souffle[data-phase="fin"] .souffle-cercle { transform: scale(0.8); background: var(--peche); box-shadow: 0 0 0 14px rgba(247, 217, 196, 0.5); transition-duration: 1.2s; }
.souffle-texte {
  position: absolute; font-family: var(--police-titre); font-style: italic; font-size: 30px; color: var(--texte-sur-rose);
}
.souffle-compte { text-align: center; font-size: 13px; color: var(--texte-discret); min-height: 20px; margin-top: -8px; }
.respiration-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.respiration-actions .bouton-plein { width: 100%; }

/* Mosaïque sur deux colonnes */
.mosaique { list-style: none; margin: 0; padding: 0; column-count: 2; column-gap: 10px; }
.mosaique li { break-inside: avoid; margin-bottom: 10px; }
.tuile {
  width: 100%; display: flex; flex-direction: column; border: 0; border-radius: 20px; padding: 16px;
  color: var(--cacao); text-align: left; cursor: pointer; overflow: hidden; position: relative;
}
.tuile:active { transform: scale(0.98); }
.fond-rose { background: var(--rose-poudre); }
.fond-peche { background: var(--peche); }
.fond-blanc { background: var(--blanc); }
.fond-lin { background: #EADDD6; }
.fond-nacre { background: var(--nacre); }
.tuile-texte { min-height: 104px; justify-content: center; }
.tuile-mot { align-items: center; text-align: center; font-family: var(--police-titre); font-size: 36px; line-height: 1.1; overflow-wrap: anywhere; }
.tuile-phrase { font-family: var(--police-titre); font-style: italic; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.tuile.exemple { cursor: default; }
.tuile.exemple:active { transform: none; }

.tuile-image { padding: 0; background: var(--piste); }
.tuile-image img { width: 100%; height: auto; max-height: 300px; object-fit: cover; display: block; }
.tuile-legende {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px);
  padding: 4px 10px; border-radius: var(--pilule); background: var(--nacre);
  font-family: var(--police-titre); font-size: 16px; line-height: 1.3; color: var(--cacao);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tuile-image.image-perdue { min-height: 104px; }
.tuile-image.image-perdue img { display: none; }

.tuile-vide { min-height: 118px; justify-content: space-between; gap: 18px; border: 1px dashed #D9BDB6; }
.tuile-vide svg { width: 20px; height: 20px; fill: none; stroke: var(--vieux-rose); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tuile-vide-titre { font-family: var(--police-titre); font-size: 19px; line-height: 1.2; }
.tuile-vide-texte { justify-content: center; min-height: 104px; }
.tuile-vide-texte .tuile-vide-titre { font-style: italic; color: var(--texte-doux); }

.vision-actions { display: flex; gap: 10px; }
.vision-actions .bouton { flex: 1; min-width: 0; gap: 6px; padding-left: 8px; padding-right: 8px; font-size: 13.5px; white-space: nowrap; }
.vision-actions svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ajout-image { position: relative; cursor: pointer; }
.ajout-image:focus-within { outline: 2px solid var(--cacao); outline-offset: 3px; }
.fichier-cache { position: absolute; inset: 0; opacity: 0; width: 1px; height: 1px; overflow: hidden; }

/* Feuilles du vision board */
.apercu-image { width: 100%; max-height: 38vh; object-fit: cover; border-radius: var(--rayon-petit); }
.facultatif { font-weight: 400; color: var(--texte-discret); }
.champ textarea {
  min-height: 96px; padding: 12px 14px; border-radius: var(--rayon-petit); resize: vertical;
  border: 1px solid #D9C3BA; background: var(--blanc); font: inherit; font-size: 16px; color: inherit;
}
.champ textarea:focus-visible { outline: 2px solid var(--cacao); outline-offset: 1px; }
.champ-legende { font-size: 14px; font-weight: 500; padding: 0; margin-bottom: 6px; width: 100%; }
.puce-bouton {
  min-height: 36px; padding: 0 12px; border-radius: var(--pilule); border: 1px solid #E2D2CA;
  background: var(--blanc); font-size: 13px; color: var(--cacao); cursor: pointer;
}
.puce-bouton:active { background: var(--peche); }

/* ---------- Objectifs ---------- */
.horizons {
  display: flex; gap: 4px; padding: 4px; border-radius: var(--pilule); background: var(--rose-poudre);
}
.horizon {
  flex: 1; min-height: 44px; border: 0; border-radius: var(--pilule); background: transparent;
  font-size: 14px; color: var(--texte-sur-rose); cursor: pointer; white-space: nowrap;
}
.horizon[aria-pressed="true"] { background: var(--blanc); color: var(--cacao); font-weight: 500; box-shadow: 0 1px 3px rgba(74, 53, 48, 0.08); }
.horizon:focus-visible { outline: 2px solid var(--cacao); outline-offset: 2px; }

.liste-objectifs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.objectif-carte { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; }
.objectif-carte:active { background: var(--piste); }
.objectif-carte:focus-visible { outline: 2px solid var(--cacao); outline-offset: 2px; }
.objectif-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.objectif-titre { font-family: var(--police-titre); font-weight: 500; font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.objectif-echeance { flex: none; font-size: 12px; color: var(--texte-discret); }
.objectif-carte .progression-piste { flex: none; display: block; }
.objectif-carte .progression-barre { display: block; }
.objectif-suivante { font-size: 13px; line-height: 1.4; color: var(--texte-doux); }
.objectifs-vide { display: flex; flex-direction: column; gap: 6px; }
.titre-moyen { font-size: 22px; line-height: 1.25; }
.note-limite { font-size: 13px; line-height: 1.45; color: var(--texte-discret); text-align: center; padding: 0 12px; }
.icone-bouton { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.bouton-plein[data-nouvel] { gap: 8px; }

.atteints summary { min-height: 44px; display: flex; align-items: center; font-size: 14px; color: var(--lien); cursor: pointer; }
.atteints .liste-objectifs { margin-top: 4px; }
.atteints .objectif-carte { background: transparent; border: 1px solid var(--trait); }

.lien-conseils { font-size: 14px; color: var(--lien); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }

/* Détail d'un objectif */
.lien-retour {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -8px 0 -10px -6px;
  font-size: 14px; color: var(--lien); text-decoration: none;
}
.retour-fleche { width: 18px; height: 18px; transform: rotate(180deg); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vue-objectif .titre-page { overflow-wrap: anywhere; }
.pourquoi { border-left: 2px solid var(--rose-poudre); padding: 2px 0 2px 14px; }
.pourquoi p:last-child { font-family: var(--police-titre); font-style: italic; font-size: 19px; line-height: 1.3; margin-top: 4px; }
.vue-objectif .liste-carte { display: flex; flex-direction: column; gap: 8px; }
.actions-objectif { display: flex; flex-direction: column; gap: 8px; }
.champ select {
  min-height: 48px; padding: 0 14px; border-radius: var(--rayon-petit); border: 1px solid #D9C3BA;
  background: var(--blanc); font: inherit; font-size: 16px; color: inherit;
}
.champ select:focus-visible { outline: 2px solid var(--cacao); outline-offset: 1px; }
#champ-pourquoi { min-height: 72px; }
.erreur { font-size: 14px; color: #8E3B43; }

/* ---------- Installer l'appli ---------- */
.installer {
  border: 1px dashed #D9C3BA; border-radius: var(--rayon); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px; background: transparent;
}
.installer-tete { display: flex; align-items: flex-start; gap: 12px; }
.installer-tete p { flex: 1; font-size: 14px; color: var(--texte-doux); }
.installer-tete strong { display: block; color: var(--cacao); font-weight: 500; }
.installer .bouton-icone { margin: -10px -10px 0 0; flex: none; }
.installer .bouton-icone svg { width: 18px; height: 18px; }
.installer .bouton { align-self: flex-start; min-height: 44px; padding: 10px 18px; font-size: 14px; }

/* ---------- Écrans à venir ---------- */
.bientot {
  margin-top: 8vh; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 0 12px;
}
.bientot svg { width: 120px; height: 14px; color: var(--vieux-rose); }
.bientot .texte-doux { max-width: 30ch; }

/* ---------- Feuille (premier lancement, réglages) ---------- */
.feuille {
  width: 100%; max-width: var(--largeur-max); max-height: 100dvh;
  margin: auto auto 0; padding: 0; border: 0;
  border-radius: 28px 28px 0 0; background: var(--nacre); color: var(--cacao);
}
.feuille::backdrop { background: rgba(74, 53, 48, 0.45); }
.feuille[open] { animation: monte 0.35s ease both; }
@keyframes monte { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.feuille-corps {
  padding: 28px var(--marge) calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 16px;
}
.feuille-corps .surtitre { color: var(--texte-sur-rose); }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font-size: 14px; font-weight: 500; }
.champ input {
  min-height: 48px; padding: 12px 14px; border-radius: var(--rayon-petit);
  border: 1px solid #D9C3BA; background: var(--blanc); font-size: 16px;
}
.champ input:focus-visible { outline: 2px solid var(--cacao); outline-offset: 1px; }
.aide { font-size: 13px; color: var(--texte-discret); }
.feuille-actions { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.feuille-actions .bouton-plein { width: 100%; }

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