/* ==========================================================================
   Mise en page propre à chaque type de page, du téléphone au grand écran.

   LE CADRE (12/11) : seul endroit qui fixe les largeurs et les paliers des pages
   principales (Aujourd'hui, Mes journées, Calendrier, Médecin, Réglages).
   La colonne de contenu a la même largeur et la même place sur toutes ces pages :
   d'un onglet à l'autre, rien ne bouge. Les blocs s'empilent toujours dans une
   seule colonne (choix A du 12/11 : pas de colonnes côte à côte).
     téléphone  (< 760 px)    une colonne, barre d'onglets en bas
     tablette   (760–1023)    une colonne de 560 px centrée, barre en bas de même largeur
     ordinateur (≥ 1024)      la même colonne ; la barre d'onglets passe en haut,
                              de la largeur de la colonne
   Les pages de question (.question) ont leur propre colonne centrée, sans menu.
   ========================================================================== */
:root {
  --cadre-colonne: 560px;
  --cadre-haut: 20px;          /* écart entre le haut de la fenêtre et la barre (ordinateur) */
  --cadre-barre: calc(var(--cible-min) + 12px);   /* hauteur de la barre : onglet + marge intérieure */
}

/* La place de la barre de défilement est toujours réservée : une page courte
   et une page longue ont exactement la même largeur utile (sinon le contenu
   se décale de quelques pixels d'un onglet à l'autre). */
html { scrollbar-gutter: stable; }

.principale {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 10px) 20px calc(env(safe-area-inset-bottom) + 110px);
}

/* Barre d'onglets : en bas, de la largeur du contenu */
.onglets {
  position: fixed;
  left: 20px; right: 20px;
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  max-width: 440px; margin: 0 auto;            /* = colonne du téléphone (480 − 2 × 20) */
}

@media (min-width: 760px) {
  .principale { max-width: calc(var(--cadre-colonne) + 64px); padding-left: 32px; padding-right: 32px; }
  .onglets { max-width: var(--cadre-colonne); }
}

@media (min-width: 1024px) {
  /* La barre en haut : le contenu commence sous elle */
  .principale { padding-top: calc(var(--cadre-haut) + var(--cadre-barre) + 22px); padding-bottom: 48px; }
  .onglets { top: var(--cadre-haut); bottom: auto; }
}

/* --------------------------------------------------------------------------
   Pages de question (saisie/*.html)
   Une question reste dans une colonne lisible, quelle que soit la largeur.
   -------------------------------------------------------------------------- */
.question {
  max-width: 560px;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 10px) 0 calc(env(safe-area-inset-bottom) + 24px);
}

.question__barre {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
}
.question__barre > :first-child { grid-column: 1; justify-self: start; }
.question__barre > .question__progression { grid-column: 2; }
.question__barre > :last-child { grid-column: 3; justify-self: end; }
.question__progression { font-size: var(--taille-legende); color: var(--texte-discret); text-align: center; margin: 0; }

.question__scene {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px var(--marge-ecran) 0;
}
.question__titre { margin-top: 10px; }

/* Le contrôle de réponse occupe l'espace libre, centré verticalement */
.question__reponse {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0 8px;
}

.question__actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px var(--marge-ecran) 0;
}

/* Accueil d'un moment */
.accueil { display: flex; flex-direction: column; gap: 10px; padding-bottom: 40px; }
.accueil__sujets { font-family: var(--police-titre); font-size: 22px; line-height: 1.4; color: var(--texte-second); margin: 0; }

@media (min-width: 760px) {
  .question { justify-content: center; min-height: 100dvh; }
  .question__scene { flex: 0 1 auto; padding-top: 40px; }
  .question__reponse { flex: 0 1 auto; padding: 40px 0 24px; }
  .question__titre { font-size: 40px; }
}

/* --------------------------------------------------------------------------
   Aujourd'hui (le cadre est en tête de ce fichier)
   -------------------------------------------------------------------------- */
/* Barre du haut d'Aujourd'hui : ‹ titre › */
.jour-barre {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px;
}
.jour-barre__titre { font-family: var(--police-titre); font-weight: 400; font-size: 22px; margin: 0; text-align: center; }

.aujourdhui { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; }
.aujourdhui__haut { display: flex; flex-direction: column; gap: 14px; }

.merci { padding: 4px 4px 2px; }
.merci p { margin: 0; }
.merci .doux { font-size: var(--taille-petit); margin-top: 4px; }

.moments { display: flex; flex-direction: column; gap: 8px; }
.moments__titre { font-size: var(--taille-legende); padding: 0 4px; margin: 0; color: var(--texte-doux); font-weight: 400; }
.moments__liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.moment {
  height: 58px;
  border-radius: var(--rayon-cible);
  border: 1.5px solid var(--bordure);
  background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none;
}
.moment__nom { font-size: 16px; }
.moment__etat { font-size: var(--taille-legende); color: var(--texte-discret); }
.moment.est-fait { background: var(--surface-calme); border-color: transparent; }
.moment.est-suivant { background: var(--accent-pale); border-color: var(--accent); }
.moment.est-suivant .moment__etat { color: var(--accent-texte); }

/* Tablette et ordinateur : des moments plus grands, deux par ligne ; la card dessous */
@media (min-width: 760px) {
  .aujourdhui { padding-top: 24px; }
  .moments__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .moment { height: 84px; }
  .moment__nom { font-size: 19px; }
  .moment__etat { font-size: 14px; }
}

/* --------------------------------------------------------------------------
   Mes journées (liseuse.html) : titre et état vide. La card à période : css/periode.css
   -------------------------------------------------------------------------- */
.entete__titre { font-family: var(--police-titre); font-weight: 400; font-size: 34px; line-height: 1.1; margin: 14px 0 0; }

/* Rien de noté */
.vide { padding-top: 18vh; display: flex; flex-direction: column; gap: 12px; }
.vide .titre, .vide .aide { margin: 0; }
.vide .bouton { margin-top: 12px; }

/* --------------------------------------------------------------------------
   Calendrier : sept colonnes, un point par jour (le même que sur la card)
   -------------------------------------------------------------------------- */
.mois { padding-top: 16px; }
.mois__semaine, .mois__jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.mois__semaine span { text-align: center; font-size: var(--taille-legende); color: var(--texte-discret); padding-bottom: 6px; }

.jour-mois {
  min-height: 52px;
  border-radius: var(--rayon-cible);
  border: 1.5px solid transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  text-decoration: none;
  color: var(--texte-discret);
}
.jour-mois__numero { font-size: 17px; line-height: 1; }
/* Un jour noté se touche : il a la forme des cibles */
.jour-mois[href] { background: var(--surface); border-color: var(--bordure); color: var(--encre); }
.jour-mois[aria-current="date"] { border-color: var(--accent-fort); }
.jour-mois[aria-current="date"] .jour-mois__numero { font-weight: 700; }
.jour-mois.est-futur { opacity: .45; }
.jour-mois[data-statut="vide"] .carte__point { visibility: hidden; }

/* Légende des points (.legende, dans base.css, est un autre élément : un petit texte) */
.calendrier-legende { list-style: none; margin: 0; padding: 20px 2px 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: var(--taille-petit); color: var(--texte-doux); }
.calendrier-legende__ligne { display: flex; align-items: center; gap: 8px; }

@media (min-width: 760px) {
  .jour-mois { min-height: 64px; }
}

/* Variante : le contrôle commence en haut (listes, texte) au lieu d'être centré */
.question__reponse--haut { justify-content: flex-start; padding-top: 24px; }

/* --------------------------------------------------------------------------
   Tension
   -------------------------------------------------------------------------- */
.tension { display: flex; align-items: flex-end; gap: 10px; }
.tension__champ { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tension__etiquette { font-size: var(--taille-petit); color: var(--texte-second); }
.tension__barre { font-family: var(--police-titre); font-size: 44px; color: var(--rond-vide); padding-bottom: 18px; }
.tension__unite { text-align: center; margin: 10px 0 0; }

.mesures__titre { margin: 0 0 8px; color: var(--texte-doux); }
.mesures { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mesures__ligne {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 2px;
  border-bottom: 1px solid var(--separateur);   /* une ligne, pas une boîte : ce n'est pas cliquable */
}
.mesures__valeur { font-family: var(--police-titre); font-size: 28px; }

/* --------------------------------------------------------------------------
   Glycémie
   -------------------------------------------------------------------------- */
.glycemie { display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* --------------------------------------------------------------------------
   Zones du corps : le dessin à gauche, la liste à droite.
   La vue affichée (face / dos) dépend du bouton coché, en CSS seul.
   Zones du dessin placées en % : le dessin garde ses proportions à toute taille.
   -------------------------------------------------------------------------- */
.silhouettes { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.silhouettes__corps { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; width: 100%; }
.silhouettes__dessin { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 4px; }
.silhouette { position: relative; width: 96px; height: 204px; }
.silhouettes__legende { margin: 0; text-align: center; font-size: var(--taille-legende); }

/* Une seule vue visible à la fois */
.silhouette--dos, .silhouettes__legende--dos { display: none; }
.silhouettes:has(#vue-dos:checked) .silhouette--face,
.silhouettes:has(#vue-dos:checked) .silhouettes__legende--face,
.silhouettes:has(#vue-dos:checked) .zones-liste--face { display: none; }
.silhouettes:has(#vue-dos:checked) .silhouette--dos,
.silhouettes:has(#vue-dos:checked) .silhouettes__legende--dos { display: block; }
.silhouettes:has(#vue-dos:checked) .zones-liste--dos { display: flex; }

/* La liste : le nom à gauche, la case à cocher à droite.
   Colonnes : nom | Gauche | Droite. Une zone unique a une seule case, centrée sous les deux. */
.zones-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.zones-liste--dos { display: none; }
.zone-ligne, .zone-entete {
  display: grid; grid-template-columns: minmax(0, 1fr) 52px 52px; align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--separateur);
}
.zone-entete { min-height: 32px; font-size: var(--taille-legende); color: var(--texte-discret); text-align: center; border-bottom: none; padding-top: 6px; }
.zone-ligne__nom { padding-left: 2px; }
/* Zone unique : toute la ligne se touche */
.zone-ligne__cible { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 104px; align-items: center; min-height: 48px; cursor: pointer; }
.zone-ligne__cible .case-a-cocher { justify-self: center; }
/* Partie double : chaque case a sa propre cible de 48 px */
.zone-ligne__case { display: grid; place-items: center; min-height: 48px; cursor: pointer; }

@media (min-width: 760px) {
  .silhouettes__corps { grid-template-columns: 132px minmax(0, 1fr); gap: 28px; }
  .silhouette { width: 132px; height: 280px; }
}

/* Une zone non choisie garde un contour lisible (le fond seul, 1,3:1, ne se voyait presque pas) */
.zone { position: absolute; background: var(--point-vide); box-shadow: inset 0 0 0 1.5px var(--rond-vide); cursor: pointer; transition: background .15s; }
.zone input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.zone:has(input:checked) { background: var(--accent); box-shadow: none; }
.zone:has(input:focus-visible) { outline: 3px solid var(--accent-fort); outline-offset: 2px; }
.zone--tete    { left: 36.25%; top: 0;      width: 27.5%;  height: 12.94%; border-radius: 50%; }
.zone--cou     { left: 43.13%; top: 13.53%; width: 13.75%; height: 3.53%;  border-radius: 5px; }
.zone--torse   { left: 23.75%; top: 17.65%; width: 52.5%;  height: 18.82%; border-radius: 18px; }
.zone--ventre  { left: 26.25%; top: 37.06%; width: 47.5%;  height: 14.71%; border-radius: 15px; }
.zone--bassin  { left: 25%;    top: 52.35%; width: 50%;    height: 10.59%; border-radius: 13px; }
.zone--bras-g  { left: 7.5%;   top: 18.24%; width: 13.75%; height: 38.24%; border-radius: 9px; }
.zone--bras-d  { left: 78.75%; top: 18.24%; width: 13.75%; height: 38.24%; border-radius: 9px; }
.zone--jambe-g { left: 27.5%;  top: 63.53%; width: 21.25%; height: 31.76%; border-radius: 13px; }
.zone--jambe-d { left: 51.25%; top: 63.53%; width: 21.25%; height: 31.76%; border-radius: 13px; }
.zone--pied-g  { left: 23.75%; top: 95.88%; width: 25%;    height: 4.12%;  border-radius: 6px; }
.zone--pied-d  { left: 51.25%; top: 95.88%; width: 25%;    height: 4.12%;  border-radius: 6px; }

/* --------------------------------------------------------------------------
   Traitements ponctuels
   -------------------------------------------------------------------------- */
.ponctuels { display: flex; flex-direction: column; gap: 16px; }
.ponctuels__raccourcis { display: flex; flex-direction: column; gap: 10px; }
.ajout { display: flex; gap: 8px; }
.ajout__nom { flex: 1.4; }
.ajout__dose { flex: 1; }
.prises { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.prise {
  display: flex; align-items: center; gap: 10px;
  background: var(--accent-pale);
  border-radius: var(--rayon-cible);
  padding: 6px 6px 6px 16px;
}
.prise__nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prise__heure { height: 40px; border: 1.5px solid var(--accent-passe); border-radius: var(--rayon-cible); background: var(--surface); padding: 0 8px; font-size: 16px; }
.prise__retirer { height: 40px; border: none; background: transparent; color: var(--accent-profond); padding: 0 10px; font-size: var(--taille-petit); }

/* --------------------------------------------------------------------------
   Relance
   -------------------------------------------------------------------------- */
.relance { justify-content: center; gap: 18px; padding-top: 60px; }
.relance__signe { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-pale); display: grid; place-items: center; }
.relance__signe span { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.relance__titre { font-size: 32px; line-height: 1.18; }
.relance__question { font-family: var(--police-titre); font-size: 24px; line-height: 1.3; color: var(--texte-second); margin: 0; }
.relance .doux { margin: 0; }
.question__actions--espace { gap: 10px; }

/* Lien « 3 réponses en attente · y répondre » sur Aujourd'hui */
.reprendre { justify-content: flex-start; gap: 10px; height: 52px; font-size: var(--taille-petit); color: var(--accent-profond); background: var(--accent-pale); border-radius: var(--rayon-cible); }
.reprendre::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ==========================================================================
   Première ouverture (bienvenue/)
   Mêmes pages que les questions (.question) ; seuls quelques éléments en plus.
   ========================================================================== */

/* Bienvenue : trois promesses, chacune précédée d'un point orange */
.promesses { list-style: none; margin: 0; padding: 0 0 24px; display: flex; flex-direction: column; gap: 16px; }
.promesse {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--police-titre); font-size: 22px; line-height: 1.35; color: var(--texte-second);
}
.promesse::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; transform: translateY(-3px); }
.question__note { text-align: center; margin: 8px 0 0; }

/* Texte courant d'une étape */
.paragraphe { font-size: var(--taille-texte); color: var(--texte-second); margin: 0 0 20px; text-wrap: pretty; }

/* Encart (installer sur iPhone) : un fond, pas de contour — ce n'est pas cliquable */
.encart { background: var(--accent-pale); border-radius: var(--rayon-cible); padding: 18px 20px; }
.encart__titre { font-size: var(--taille-texte); font-weight: 700; color: var(--accent-profond); margin: 0 0 6px; }
.encart__texte { font-size: var(--taille-petit); color: var(--texte-second); margin: 0 0 12px; }
.encart__etapes { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: var(--taille-petit); }

/* Ce qui est toujours suivi (pas de case) */
.socle { margin: 0 0 16px; font-size: var(--taille-petit); color: var(--texte-doux); padding-left: 2px; }

/* Réponse à cocher (plusieurs choix) : même ligne que .reponse, mais une case carrée à droite */
.reponse__case {
  position: relative;
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: var(--rayon-case);
  border: 2px solid var(--rond-vide);
  background: var(--surface);
}
.reponse--case:has(input:checked) .reponse__case { background: var(--accent-fort); border-color: var(--accent-fort); }
.reponse--case:has(input:checked) .reponse__case::before {
  content: ''; position: absolute; left: 7px; top: 2px;
  width: 7px; height: 14px;
  border: solid var(--sur-accent); border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.reponse--compacte { min-height: 58px; }

/* Champs de texte empilés, avec étiquette au-dessus (traitement : nom, dose) */
.champs { display: flex; flex-direction: column; gap: 18px; }
.champs__ligne { display: flex; flex-direction: column; gap: 8px; }
.champs__etiquette { font-size: var(--taille-petit); color: var(--texte-second); }
.champ--grand { height: 60px; width: 100%; font-size: 20px; }
.champ::placeholder { color: var(--texte-discret); }

/* Liste de lignes qui se touchent (traitements notés, récapitulatif) */
.reglages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.reglage {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px;
  padding: 10px 16px 10px 18px;
  border-radius: var(--rayon-cible);
  border: 1.5px solid var(--bordure);
  background: var(--surface);
  text-decoration: none;
}
.reglage__textes { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reglage__etiquette { font-size: var(--taille-legende); letter-spacing: .04em; color: var(--texte-discret); }
.reglage__titre { font-size: var(--taille-texte); }
.reglage__detail { font-size: var(--taille-petit); color: var(--texte-doux); }
.reglage__action { font-size: var(--taille-petit); color: var(--accent-texte); flex-shrink: 0; }
.ajouter-lien { align-self: flex-start; margin-top: 4px; color: var(--accent-texte); padding: 0 6px; }

/* La question telle qu'elle sera posée (repères) */
.exemple { margin: 4px 0 0; font-size: var(--taille-petit); color: var(--texte-doux); text-wrap: pretty; }

/* --------------------------------------------------------------------------
   Titre de page avec un bouton à droite (Mes journées → Calendrier)
   -------------------------------------------------------------------------- */
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; }
.entete-ligne .entete__titre { margin: 0; }
.bouton-calendrier {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  height: var(--cible-min); padding: 0 14px;
  border-radius: var(--rayon-cible); background: var(--surface-douce);
  color: var(--encre); text-decoration: none; font-size: var(--taille-petit);
}
.bouton-calendrier svg { fill: none; stroke: currentColor; stroke-width: 1.6; }

/* Retour discret en haut d'une page ouverte depuis une autre (Calendrier → Mes journées) */
.retour-lien {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--cible-min); padding: 0 6px; margin-top: 6px;
  color: var(--texte-doux); text-decoration: none; font-size: 16px;
}
.retour-lien span[aria-hidden] { font-size: 26px; line-height: 1; }

/* --------------------------------------------------------------------------
   Réglages (reglages.html et reglages/)
   -------------------------------------------------------------------------- */
.reglages-page__aide { margin: 8px 0 0; font-size: var(--taille-petit); color: var(--texte-second); text-wrap: pretty; }
.reglages-page__section {
  margin: 26px 2px 8px;
  font-size: var(--taille-legende); font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
  color: var(--texte-discret);
}
.reglages-page__lien {
  display: flex; align-items: center;
  min-height: var(--cible-min); padding: 0 6px; margin-top: 4px;
  color: var(--accent-texte); text-decoration: none; font-size: 16px;
}
.reglages-page__lien--doux { color: var(--texte-onglet); margin-top: 0; }
.reglages-page__vide { padding: 4px 6px; color: var(--texte-doux); }

/* Ligne qui mène à un écran : chevron à droite */
.reglage__chevron { font-size: 24px; line-height: 1; color: var(--accent-texte); flex-shrink: 0; }
/* Ligne de choix (fiche d'un traitement) : un peu plus grande */
.reglage--choix { min-height: 64px; border-width: 2px; }
.reglage--choix .reglage__titre { font-size: var(--taille-reponse); }
/* Ligne qui ne mène nulle part (encore) : fond calme, sans contour */
.reglage--inactif { background: var(--surface-calme); border-color: transparent; }
.reglage--inactif .reglage__action { color: var(--texte-discret); }

/* Rien n'est effacé (arrêt) */
.encart__texte--seul { margin: 0; }
.proposition { display: flex; flex-direction: column; padding-bottom: 8px; }
.proposition[hidden] { display: none; }
.proposition .bouton { width: 100%; }
.proposition .encart__texte { font-size: var(--taille-texte); }

/* Suppression : ce qui sera effacé, écrit en clair */
.suppression { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.avertissement {
  background: var(--surface);
  border: 2px solid var(--accent-fort);
  border-radius: var(--rayon-cible);
  padding: 16px 18px;
}
.avertissement__titre { margin: 0 0 6px; font-weight: 700; }
.avertissement__texte { margin: 0; color: var(--texte-second); font-size: var(--taille-petit); text-wrap: pretty; }
.suppression__plutot { margin: 0; font-size: var(--taille-petit); color: var(--texte-second); }
.suppression__plutot a { color: var(--accent-texte); }

/* Données d'essai (essai.html, page de test) */
.essai { gap: 12px; }
.essai .encart { margin: 0; }
.essai .doux { margin: 0 0 8px; font-size: var(--taille-petit); }

/* --------------------------------------------------------------------------
   Corriger ou compléter un jour passé (corriger/ et saisie/…&corriger=1)
   -------------------------------------------------------------------------- */
/* Pendant une correction, pas de « Je répondrai plus tard » : « Annuler » en haut suffit */
.est-correction #passer { display: none; }

/* La valeur notée jusqu'ici, sous l'échelle de douleur */
.douleur__avant { margin: 0; font-size: 16px; color: var(--texte-second); }

/* Réponses de suite qu'une correction retirerait : listées avant d'enregistrer */
.retrait { display: flex; flex-direction: column; gap: 10px; padding: 0 var(--marge-ecran) 24px; text-align: left; }
.retrait__liste { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.retrait__ligne { display: flex; justify-content: space-between; gap: 12px; color: var(--texte-second); font-size: var(--taille-petit); }

/* Liste des réponses d'un moment */
.correction__groupe .reglages-page__section { margin-top: 22px; }
.correction__groupe:first-child .reglages-page__section { margin-top: 4px; }
.reglage--a-remplir .reglage__titre { color: var(--accent-texte); font-weight: 700; font-size: var(--taille-petit); }

/* Le dernier fichier pour le médecin date d'avant la correction */
.correction__encart { margin-bottom: 18px; }
.correction__encart .encart__texte { margin-bottom: 6px; }
.correction__encart-lien { color: var(--accent-profond); font-weight: 700; font-size: var(--taille-petit); }

/* Sous la card d'un jour passé (Mes journées, Aujourd'hui) */
.corriger-jour { display: flex; align-items: center; justify-content: center; gap: 10px; }
.corriger-jour svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; flex-shrink: 0; }
.retrait .avertissement__titre { text-align: left; }

/* --------------------------------------------------------------------------
   Sauvegarde (sauvegarde/)
   -------------------------------------------------------------------------- */
.sauvegarde__etapes { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 12px; font-size: var(--taille-texte); color: var(--texte-second); }
.resume { margin: 0 0 14px; background: var(--surface); border: 1.5px solid var(--bordure-fine); border-radius: var(--rayon-cible); padding: 4px 16px; }
.resume__ligne { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--separateur); }
.resume__ligne:first-child { border-top: none; }
.resume dt { color: var(--texte-doux); }
.resume dd { margin: 0; text-align: right; }
.sauvegarde__nom { margin: 0; font-size: var(--taille-petit); color: var(--texte-second); }
/* Choisir le fichier : le champ natif est caché, la ligne entière est le bouton */
.sauvegarde__fichier { position: relative; width: 100%; cursor: pointer; }
.sauvegarde__fichier input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bienvenue__sauvegarde { color: var(--accent-texte); }

/* --------------------------------------------------------------------------
   Fenêtre de confirmation (modifier un jour passé : js/confirmer-jour.js)
   -------------------------------------------------------------------------- */
.confirmation {
  width: min(360px, calc(100vw - 40px)); box-sizing: border-box;
  border: none; border-radius: 22px; padding: 26px 22px 14px;
  background: var(--surface); color: var(--encre);
  box-shadow: var(--ombre-flottante);
}
.confirmation::backdrop { background: rgba(43, 38, 34, .45); }
.confirmation__titre { margin: 0 0 8px; }
.confirmation .aide { margin: 0 0 20px; }
.confirmation__actions { display: flex; flex-direction: column; gap: 4px; }
.confirmation__actions .bouton { width: 100%; }

.sauvegarde__consigne { margin: 10px 0 0; font-size: var(--taille-texte); font-weight: 700; color: var(--texte-second); text-wrap: pretty; }

.correction__fini { margin-top: 28px; width: 100%; }

/* DIAGNOSTIC TEMPORAIRE (25/10, Réglages) — à retirer avant diffusion */
.diagnostic { margin-top: 28px; }
.diagnostic__aide { margin: 0 0 8px; font-size: var(--taille-petit); }
.diagnostic__essai { margin-top: 16px; }
.diagnostic .bouton { width: 100%; }
.diagnostic__texte { margin: 0; font-size: var(--taille-petit); white-space: pre-line; overflow-wrap: anywhere; }

/* --- Rappel (bienvenue/rappel.html, 10/11) --- */
.rappel__etiquette { font-size: var(--taille-petit); color: var(--texte-doux); margin-bottom: -4px; }
.champ--heure { height: 76px; width: 100%; font-family: var(--police-titre, inherit); font-size: 40px; text-align: center; border-color: var(--accent-fort); }
.question__reponse--haut:has(.champ--heure) { display: flex; flex-direction: column; gap: 14px; }
.rappel__supprime { text-decoration: underline; font-size: var(--taille-petit); }
.rappel__etat { margin: 0; font-size: var(--taille-petit); color: var(--accent-profond); }

/* --- Médecin : durée et préparation d'un long PDF (10/11) --- */
.medecin__durees { grid-template-columns: 1.45fr 1fr 1fr 1fr; margin: 0 0 12px; }
.medecin__durees .vues__lien { white-space: nowrap; text-align: center; padding: 0 4px; }
.preparation { display: flex; flex-direction: column; gap: 10px; }
.preparation[hidden] { display: none; }
.preparation__barre { height: 10px; border-radius: 5px; background: var(--surface); overflow: hidden; }
.preparation__rempli { height: 100%; width: 0; background: var(--accent-fort); transition: width .2s; }
