/* AËLYA, styles de l'application, repris tels quels du prototype validé par le client.
   Orientation retenue : chaleureuse (classe o-chaleureuse sur <html>) ; lecteur : pochette (l-pochette).
   Retirés : cadre de téléphone, fausse barre d'état, notification simulée, rendu figé des captures, réglages du prototype. */

@font-face { font-family: 'AE Outfit'; src: url('../assets/fonts/Outfit.ttf') format('truetype'); font-weight: 100 900; font-display: block; }
@font-face { font-family: 'AE Nunito'; src: url('../assets/fonts/Nunito.ttf') format('truetype'); font-weight: 200 1000; font-display: block; }

:root {
  --foret: #123b2c;
  --foret-2: #0c2a1f;
  --foret-3: #1b4a38;
  --or1: #ffd84d;
  --or2: #f7931e;
  --or: linear-gradient(135deg, #ffd84d 0%, #fbb534 55%, #f7931e 100%);
  --rouge: #b3261e;
  --titre: 'AE Outfit', 'Outfit', system-ui, sans-serif;
  --texte: 'AE Nunito', 'Nunito', system-ui, sans-serif;
  --haut-statut: env(safe-area-inset-top, 0px);
  --bas-sur: max(env(safe-area-inset-bottom, 0px), 16px);
  --rayon: 24px;
  --ressort: cubic-bezier(.2, .9, .25, 1.15);
  --doux: cubic-bezier(.25, .8, .25, 1);
}

/* ---------- Orientation épurée ---------- */
html.o-epuree {
  --fond: #eef3ef;
  --fond-bas: #e3ece6;
  --surface: #ffffff;
  --surface-2: #f3f7f4;
  --encre: #123b2c;
  --encre-2: #45594f;
  --dore: #8a4a06;
  --piste: rgba(18, 59, 44, .13);
  --arc-piste: #d3ded7;
  --arc-cours: #123b2c;
  --bouton: #123b2c;
  --bouton-texte: #ffffff;
  --bouton-2: #dde7e0;
  --bouton-2-texte: #123b2c;
  --pastille: #e7eee9;
  --pastille-texte: #3c5046;
  --cours-fond: #123b2c;
  --cours-texte: #ffffff;
  --ombre: 0 1px 1px rgba(18, 59, 44, .05), 0 2px 6px -2px rgba(18, 59, 44, .08), 0 18px 36px -22px rgba(18, 59, 44, .38);
  --ombre-forte: 0 2px 4px rgba(18, 59, 44, .08), 0 28px 50px -24px rgba(12, 42, 31, .55);
  --aube: rgba(255, 200, 70, .42);
  --champ: #ffffff;
  --champ-bord: #74867c;
}

/* ---------- Orientation chaleureuse (retenue pour l'application) ---------- */
html.o-chaleureuse {
  --fond: #f8f4ec;
  --fond-bas: #f3ece0;
  --surface: #fffdf9;
  --surface-2: #f6f0e5;
  --encre: #123b2c;
  --encre-2: #57503f;
  --dore: #8a4a06;
  --piste: rgba(18, 59, 44, .13);
  --arc-piste: rgba(255, 255, 255, .22);
  --arc-cours: #ffffff;
  --bouton: #123b2c;
  --bouton-texte: #ffffff;
  --bouton-2: #ece4d6;
  --bouton-2-texte: #123b2c;
  --pastille: #f1eadd;
  --pastille-texte: #514a3a;
  --cours-fond: #123b2c;
  --cours-texte: #ffffff;
  --ombre: 0 1px 1px rgba(70, 48, 10, .05), 0 2px 6px -2px rgba(70, 48, 10, .08), 0 18px 36px -22px rgba(70, 48, 10, .34);
  --ombre-forte: 0 2px 4px rgba(18, 59, 44, .10), 0 30px 54px -24px rgba(12, 42, 31, .55);
  --aube: rgba(255, 205, 80, .0);
  --champ: #ffffff;
  --champ-bord: #8a7f6a;
}

/* ---------- Orientation fond (demande du client) ---------- */
html.o-fond {
  --fond: #0e3325;
  --fond-bas: #0b2a1f;
  --surface: rgba(9, 34, 25, .64);
  --surface-2: rgba(255, 255, 255, .10);
  --encre: #ffffff;
  --encre-2: rgba(255, 255, 255, .80);
  --dore: #ffd27a;
  --piste: rgba(255, 255, 255, .22);
  --arc-piste: rgba(255, 255, 255, .20);
  --arc-cours: #ffffff;
  --bouton: #ffffff;
  --bouton-texte: #123b2c;
  --bouton-2: rgba(255, 255, 255, .14);
  --bouton-2-texte: #ffffff;
  --pastille: rgba(255, 255, 255, .14);
  --pastille-texte: #ffffff;
  --cours-fond: #ffffff;
  --cours-texte: #123b2c;
  --ombre: inset 0 0 0 1px rgba(255, 255, 255, .13), 0 18px 40px -24px rgba(0, 0, 0, .6);
  --ombre-forte: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 60px -26px rgba(0, 0, 0, .7);
  --aube: rgba(255, 205, 80, .0);
  --champ: rgba(255, 255, 255, .10);
  --champ-bord: rgba(255, 255, 255, .55);
}

/* L'administration garde les mêmes couleurs dans les trois orientations */
html.bureau.o-epuree, html.bureau.o-chaleureuse, html.bureau.o-fond {
  --fond: #f3f6f4; --fond-bas: #f3f6f4; --surface: #ffffff; --surface-2: #f3f7f4;
  --encre: #123b2c; --encre-2: #45594f; --piste: rgba(18, 59, 44, .13);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--fond); }
body {
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.4;
  color: var(--encre);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic-plein { fill: currentColor; stroke: none; }
.masque { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-etats]:not(.on), [data-bloc]:not(.on) { display: none !important; }
:focus-visible { outline: 3px solid #f7931e; outline-offset: 3px; border-radius: 12px; }

/* ---------- Le téléphone ---------- */
.ecran {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--fond) 0%, var(--fond-bas) 100%);
  overflow-x: hidden;
}
.ecran { padding-top: var(--haut-statut); }

/* Couche de décor : aube (épurée), fond du client (fond) */
.decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.decor::before {
  content: '';
  position: absolute;
  left: -30%; right: -30%; top: calc(var(--haut-statut) - 40px); height: 420px;
  background: radial-gradient(50% 50% at 50% 62%, var(--aube) 0%, rgba(255, 214, 110, .12) 45%, rgba(255, 205, 80, 0) 100%);
  opacity: calc(.4 + var(--soleil, 0) * .6);
  transition: opacity 1.2s var(--doux);
}
.decor::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.23 0 0 0 0 0.17 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.o-fond .ecran { background: #0c2a1f; }
html.o-fond .decor { background: #0c2a1f url('../assets/web/fond.webp') center top / cover no-repeat; }
html.o-fond .decor::before {
  top: 0; left: 0; right: 0; height: auto; bottom: 0; opacity: 1;
  background: linear-gradient(180deg, rgba(6, 26, 19, .28) 0%, rgba(6, 26, 19, .18) 40%, rgba(6, 26, 19, .52) 100%);
}
html.o-fond .decor::after { opacity: .25; }


/* ---------- Barre du haut ---------- */
.barre {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  flex: none;
  padding: 0 16px 0 12px;
}
.retour {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0 14px 0 6px;
  border-radius: 22px;
  font-weight: 750;
  font-size: 17px;
  text-decoration: none;
  color: var(--encre);
}
.retour .ic { width: 26px; height: 26px; stroke-width: 2.2; }
.barre-titre { font-family: var(--titre); font-weight: 600; font-size: 17px; color: var(--encre); }
html.o-chaleureuse[data-page='renforcement'] .barre-titre { color: #ffffff; }
.marque { display: flex; align-items: center; gap: 9px; padding-left: 6px; text-decoration: none; }
.marque img { width: 30px; height: auto; }
.marque span { font-family: var(--titre); font-weight: 600; font-size: 17px; letter-spacing: 2.4px; color: var(--encre); }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--titre); font-weight: 600; font-size: 15px; letter-spacing: .4px;
  text-decoration: none;
  color: var(--encre);
  background: var(--surface);
  box-shadow: var(--ombre);
}
html.o-fond .avatar { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* ---------- Mise en page ---------- */
.page { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; padding: 0 20px; }
.pied {
  position: sticky;
  bottom: 0;
  z-index: 8;
  flex: none;
  display: grid;
  gap: 10px;
  padding: 14px 20px var(--bas-sur);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, var(--fond-bas) 22px);
}
html.o-fond .pied { background: none; }
.titre-ecran { font-family: var(--titre); font-weight: 600; font-size: 34px; line-height: 1.06; letter-spacing: -.8px; }
.sous { color: var(--encre-2); font-weight: 600; font-size: 17px; }
.etiquette { font-weight: 750; font-size: 15px; color: var(--encre-2); }

/* ---------- Boutons ---------- */
.action, .action-2, .action-danger {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 20px;
  font-family: var(--texte);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .1px;
  text-decoration: none;
  text-align: center;
  transition: transform .18s var(--ressort), box-shadow .2s var(--doux), background-color .2s;
}
.action { background: var(--bouton); color: var(--bouton-texte); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 14px 26px -16px rgba(12, 42, 31, .7); }
.action-2 { background: var(--bouton-2); color: var(--bouton-2-texte); }
html.o-fond .action-2 { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.action-danger { background: var(--rouge); color: #fff; }
.action:active, .action-2:active, .action-danger:active, .tuile:active, .lire:active { transform: scale(.97); }
.action[aria-disabled='true'], .action:disabled { background: var(--piste); color: var(--encre-2); box-shadow: none; cursor: not-allowed; }
.lien-texte { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; font-weight: 800; font-size: 17px; color: var(--encre); text-decoration: none; }

/* ---------- Arc du jour ---------- */
.arc-bloc { position: relative; width: 316px; margin: 0 auto; }
.arc { display: block; width: 100%; height: auto; overflow: visible; }
.arc path { fill: none; stroke-width: 13; stroke-linecap: round; }
.arc .a-piste { stroke: var(--arc-piste); }
.arc .a-cours { stroke: var(--arc-cours); }
.arc .a-fait { filter: drop-shadow(0 3px 6px rgba(247, 147, 30, .35)); }
.arc .a-nouveau { stroke-dasharray: var(--long) var(--long); stroke-dashoffset: var(--long); animation: remplir 1.1s .35s var(--doux) forwards; }
@keyframes remplir { to { stroke-dashoffset: 0; } }
.arc-centre { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; }
.jour-n { display: block; font-family: var(--titre); font-weight: 600; font-size: 60px; line-height: .95; letter-spacing: -2px; }
.jour-sur { display: block; margin-top: 6px; font-weight: 700; font-size: 17px; color: var(--encre-2); }

/* ---------- Journée ---------- */
.entete-jour { position: relative; padding: 14px 0 26px; }
.activites { display: grid; gap: 14px; padding-bottom: 28px; }
.tuile {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 28px;
  align-items: center;
  column-gap: 14px;
  min-height: 94px;
  padding: 16px 14px 16px 16px;
  border-radius: var(--rayon);
  background: var(--surface);
  box-shadow: var(--ombre);
  text-decoration: none;
  color: var(--encre);
  transition: transform .18s var(--ressort), box-shadow .25s var(--doux);
}
html.o-fond .tuile { backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1); }
.tuile-texte { min-width: 0; }
.tuile-nom { display: block; font-family: var(--titre); font-weight: 600; font-size: 18.5px; line-height: 1.15; letter-spacing: -.2px; }
.tuile-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 7px; font-weight: 700; font-size: 15px; color: var(--encre-2); }
.tuile-fleche { color: var(--encre-2); justify-self: end; }
.tuile-fleche .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.pastille {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  font-weight: 800; font-size: 14px;
  background: var(--pastille);
  color: var(--pastille-texte);
  white-space: nowrap;
}
.pastille.p-cours { background: var(--cours-fond); color: var(--cours-texte); }
.pastille.p-fait { background: var(--or); color: #123b2c; }
.pastille .ic { width: 15px; height: 15px; stroke-width: 2.8; }
.reprise { font-weight: 750; color: var(--encre-2); }

/* médaillons taillés dans le fond du client */
.medaillon {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 19px;
  display: grid; place-items: center;
  color: #ffffff;
  background: #0d3324 url('../assets/web/fond_petit.webp') no-repeat;
  background-size: calc(210px * var(--k, 1)) auto;
  background-position: calc(var(--mx) * var(--k, 1)) calc(var(--my) * var(--k, 1));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 6px 14px -8px rgba(12, 42, 31, .6);
}
.medaillon .ic { width: 27px; height: 27px; stroke-width: 1.8; }
/* recadrages choisis par calcul : une traînée dorée visible, le pictogramme blanc à 4,5:1 au moins */
.m-marche { --mx: 0px; --my: -52px; }
.m-renforcement { --mx: -120px; --my: -296px; }
.m-respiration { --mx: -140px; --my: -232px; }
.m-meditation { --mx: -4px; --my: -20px; } /* 16/11 : recadré sur une traînée dorée, comme les trois autres */
.medaillon .coche {
  position: absolute; right: -5px; bottom: -5px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--or);
  color: #123b2c;
  box-shadow: 0 0 0 3px var(--surface-plein, #ffffff);
}
html.o-chaleureuse { --surface-plein: #fffdf9; }
html.o-fond { --surface-plein: #12382a; }
.medaillon .coche .ic { width: 14px; height: 14px; stroke-width: 3; }

.tuile.t-fait .tuile-nom { opacity: .92; }
.tuile .barre-prog { grid-column: 1 / -1; margin-top: 14px; }
.tuile .suite { display: none; }

/* ---------- Écran Journée, variante D retenue ---------- */
.tuile { grid-template-columns: 52px minmax(0, 1fr) auto; min-height: 76px; padding: 12px 12px 12px 14px; column-gap: 12px; }
.tuile .medaillon { width: 52px; height: 52px; border-radius: 17px; --k: .8966; }
.tuile-nom { font-size: 17px; }
.tuile-sous { display: block; margin-top: 4px; font-weight: 700; font-size: 14.5px; color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tuile-sous b { font-family: var(--titre); font-weight: 600; color: #8a4a06; font-variant-numeric: tabular-nums; }
/* Boutons de la charte (.action / .action-2) en taille carte */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 15px; border-radius: 15px;
      font-family: var(--texte); font-weight: 800; font-size: 15px; white-space: nowrap; }
.bt .ic { width: 17px; height: 17px; stroke-width: 2.4; }
.bt-1 { background: var(--bouton); color: var(--bouton-texte); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 10px 18px -12px rgba(12, 42, 31, .7); }
.bt-2 { background: var(--bouton-2); color: var(--bouton-2-texte); }
.bt-1 .ic-lecture, .bt .ic.lecture { fill: currentColor; }
.bas-cours { grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 12px; }
.bas-cours .barre-prog { height: 5px; }
.bt-large { width: 100%; min-height: 48px; border-radius: 16px; font-size: 16px; }
/* Fait / à faire : différence nette sans changer le fond blanc */
.tuile.t-fait { box-shadow: none; background: var(--surface); outline: 1.5px solid var(--piste); outline-offset: -1.5px; }
.tuile.t-fait .tuile-nom { color: var(--encre-2); }
.tuile.t-fait .tuile-sous { color: color-mix(in srgb, var(--encre-2) 75%, transparent); }
.tuile.t-afaire, .tuile.t-cours { box-shadow: var(--ombre-forte, var(--ombre)); }

/* Bandeau du client (chaleureuse) */
html.o-chaleureuse .entete-jour,
html.o-chaleureuse .bandeau {
  margin: calc(-1 * (var(--haut-statut) + 56px)) -20px 0;
  padding: calc(var(--haut-statut) + 56px + 8px) 20px 64px;
  color: #ffffff;
  background: #0d3324 url('../assets/web/fond.webp') center 38% / cover no-repeat;
  border-radius: 0 0 36px 36px;
  box-shadow: inset 0 -80px 80px -60px rgba(6, 26, 19, .55);
}
html.o-chaleureuse .entete-jour .jour-sur { color: rgba(255, 255, 255, .84); }
html.o-chaleureuse[data-page='journee'] .statut,
html.o-chaleureuse[data-page='journee'] .marque span,
html.o-chaleureuse[data-page='apres'] .statut,
html.o-chaleureuse[data-page='apres'] .retour { color: #ffffff; }
html.o-chaleureuse[data-page='journee'] .avatar { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Avant le lancement */
.avant { text-align: center; padding: 6px 8px 0; }
.avant .arc-centre { bottom: 10px; }
.avant .arc-centre img { width: 74px; margin: 0 auto; }
.avant h1 { margin-top: 30px; font-family: var(--titre); font-weight: 600; font-size: 32px; line-height: 1.1; letter-spacing: -.6px; }
.avant p { margin-top: 12px; }
.date-lancement {
  display: inline-flex; flex-direction: column; align-items: center;
  margin-top: 28px; padding: 18px 28px; border-radius: 26px;
  background: var(--surface); box-shadow: var(--ombre);
}
html.o-fond .date-lancement { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.date-lancement b { font-family: var(--titre); font-weight: 600; font-size: 26px; letter-spacing: -.3px; }
.date-lancement span { font-weight: 700; font-size: 15px; color: var(--encre-2); margin-top: 2px; }
html.o-chaleureuse .avant-zone { margin: calc(-1 * (var(--haut-statut) + 56px)) -20px 0; padding: calc(var(--haut-statut) + 56px) 20px 34px; color: #fff; background: #0d3324 url('../assets/web/fond.webp') center 40% / cover; border-radius: 0 0 36px 36px; }
html.o-chaleureuse .avant-zone .jour-sur { color: rgba(255, 255, 255, .84); }

/* ---------- Barres de progression ---------- */
.barre-prog { position: relative; height: 6px; border-radius: 3px; background: var(--piste); overflow: hidden; }
.barre-prog i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); border-radius: 3px; background: var(--encre); transition: width .25s linear; }

/* ---------- Lecteur audio ---------- */
.lecteur { padding-top: 4px; }
.lect-tete { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.lect-tete h1 { font-family: var(--titre); font-weight: 600; font-size: 28px; line-height: 1.08; letter-spacing: -.5px; }
.lect-tete .sous { margin-top: 5px; }
.lect-tete .surtitre { margin-bottom: 4px; font-weight: 800; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: var(--encre-2); }
html.o-chaleureuse.l-temps .lect-tete .surtitre, html.o-chaleureuse.l-vignette .lect-tete .surtitre { color: rgba(255, 255, 255, .86); }
.vignette { display: none; flex: none; width: 74px; height: 92px; border-radius: 16px; overflow: hidden; box-shadow: var(--ombre); }
.vignette img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.pochette { display: none; }
.temps-grand { display: none; }
.lect-centre { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 0; }
.lect-bas { padding-bottom: 6px; }
.temps-ligne { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--titre); font-weight: 500; font-size: 15px; color: var(--encre-2); font-variant-numeric: tabular-nums; }
.commandes { display: flex; justify-content: center; margin-top: 18px; }
.lire {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bouton);
  color: var(--bouton-texte);
  box-shadow: 0 18px 30px -16px rgba(12, 42, 31, .75), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: transform .18s var(--ressort);
}
.lire .ic { width: 32px; height: 32px; }
.lire .i-pause { display: none; }
.en-lecture .lire .i-lecture, .lire.en-lecture .i-lecture { display: none; }
.en-lecture .lire .i-pause, .lire.en-lecture .i-pause { display: block; }
.lire .i-lecture { margin-left: 4px; }

/* lecteur « temps » : le temps écoulé en très grand */
html.l-temps .temps-grand { display: block; text-align: center; }
html.l-temps .temps-grand b { display: block; font-family: var(--titre); font-weight: 500; font-size: 104px; line-height: .9; letter-spacing: -4px; font-variant-numeric: tabular-nums; }
html.l-temps .temps-grand span { display: block; margin-top: 14px; font-family: var(--titre); font-weight: 500; font-size: 20px; color: var(--encre-2); font-variant-numeric: tabular-nums; }
html.l-temps .lect-centre { padding: 24px 0; }

/* lecteur « pochette » : le visuel en grand */
html.l-pochette .pochette, [data-page='marche'] .pochette {
  display: block;
  width: 100%;
  max-width: 272px;
  aspect-ratio: 1 / 1.24; /* logo entier en haut et nom de l'activité visibles (point du 13/11) */
  margin: 6px auto 0;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(12, 42, 31, .12), 0 34px 60px -26px rgba(12, 42, 31, .7);
}
html.l-pochette .pochette img, [data-page='marche'] .pochette img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
html.l-pochette .lect-tete, [data-page='marche'] .lect-tete { margin-top: 26px; }
html.l-pochette .lect-centre { flex: 0; }
html.l-pochette .lect-bas { margin-top: auto; padding-top: 22px; }

/* lecteur « vignette » : le visuel en petit */
html.l-vignette .vignette { display: block; }
html.l-vignette .temps-grand { display: block; text-align: center; }
html.l-vignette .temps-grand b { display: block; font-family: var(--titre); font-weight: 500; font-size: 64px; line-height: 1; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
html.l-vignette .temps-grand span { display: block; margin-top: 8px; font-family: var(--titre); font-weight: 500; font-size: 18px; color: var(--encre-2); }

html.o-fond .lire { box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .7); }

/* ---------- Marche ---------- */
.visuel-tete {
  position: relative;
  height: 210px;
  margin-top: 4px;
  border-radius: 28px;
  overflow: hidden;
  background: #0d3324;
  box-shadow: var(--ombre-forte);
}
.visuel-tete img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 57%; }
html.o-chaleureuse .visuel-tete {
  margin: calc(-1 * (var(--haut-statut) + 56px)) -20px 0;
  height: calc(var(--haut-statut) + 56px + 220px);
  border-radius: 0 0 36px 36px;
  box-shadow: none;
}
html.o-chaleureuse .visuel-tete img { object-position: 50% 52%; }
html.o-chaleureuse .visuel-tete::after { content: ''; position: absolute; inset: 0 0 auto; height: 150px; background: linear-gradient(180deg, #10392a 0%, #10392a 52%, rgba(16, 57, 42, 0) 100%); }
html.o-fond .visuel-tete { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 24px 50px -26px rgba(0, 0, 0, .7); }
.duree-ligne { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; }
.duree-ligne b { font-family: var(--titre); font-weight: 600; font-size: 34px; letter-spacing: -.8px; line-height: 1; }
.duree-ligne span { font-weight: 700; color: var(--encre-2); }
.question { margin-top: 18px; padding: 18px 18px 20px; border-radius: var(--rayon); background: var(--surface); box-shadow: var(--ombre); }
html.o-fond .question, html.o-fond .audios { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.question .etiquette { color: var(--dore); display: flex; align-items: center; gap: 8px; }
.question .etiquette .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.question p { margin-top: 8px; font-family: var(--titre); font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -.2px; }
.audios { margin-top: 12px; border-radius: var(--rayon); background: var(--surface); box-shadow: var(--ombre); padding: 6px 0; }
.piste-audio { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 10px 16px; min-height: 68px; }
.piste-audio + .piste-audio { border-top: 1px solid var(--piste); }
.lire.petit { width: 48px; height: 48px; box-shadow: none; }
.lire.petit .ic { width: 20px; height: 20px; }
.lire.petit .i-lecture { margin-left: 2px; }
.pa-nom { display: block; font-weight: 800; font-size: 17px; }
.pa-barre { display: block; margin-top: 8px; height: 4px; }
.pa-temps { font-family: var(--titre); font-weight: 500; font-size: 15px; color: var(--encre-2); font-variant-numeric: tabular-nums; }
.piste-audio:not(.active) .pa-barre { display: none; }

/* ---------- Renforcement (vidéo) ---------- */
.video-page { padding: 0 16px; }
.cadre-video {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: calc(100svh - 190px);
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: #e9ebe8;
  box-shadow: var(--ombre-forte);
}
.cadre-video video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; background: #e9ebe8; }
.video-lire {
  position: absolute; left: 50%; top: 46%;
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .94);
  color: #123b2c;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55);
  transition: opacity .25s, transform .18s var(--ressort);
}
.video-lire .ic { width: 32px; height: 32px; }
.video-lire .i-lecture { margin-left: 4px; }
.video-lire .i-pause { display: none; }
.en-lecture .video-lire { opacity: 0; }
.en-lecture .video-lire:focus-visible, .en-lecture .cadre-video:hover .video-lire { opacity: 1; }
.en-lecture .video-lire .i-lecture { display: none; }
.en-lecture .video-lire .i-pause { display: block; }
.video-zone { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-bas {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 18px 16px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(10, 25, 18, 0), rgba(10, 25, 18, .72));
}
.video-bas .barre-prog { background: rgba(255, 255, 255, .32); height: 5px; }
.video-bas .barre-prog i { background: #ffffff; }
.video-temps { display: flex; justify-content: space-between; margin-top: 9px; font-family: var(--titre); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.video-titre { font-family: var(--titre); font-weight: 600; font-size: 17px; letter-spacing: -.1px; }
[data-page='renforcement'] .pied { padding-top: 12px; }

/* ---------- Après « J'ai terminé » ---------- */
.apres-tete { text-align: center; padding: 8px 0 24px; }
.apres-tete .arc-bloc { width: 250px; }
.apres-tete .arc-centre { bottom: 0; }
.sceau {
  width: 64px; height: 64px; margin: 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--or);
  color: #123b2c;
  box-shadow: 0 16px 30px -14px rgba(247, 147, 30, .8);
  animation: sceau .6s .9s var(--ressort) both;
}
.sceau .ic { width: 30px; height: 30px; stroke-width: 2.6; }
@keyframes sceau { from { transform: scale(.4); } to { transform: scale(1); } }
.apres-tete h1 { margin-top: 22px; font-family: var(--titre); font-weight: 600; font-size: 30px; line-height: 1.1; letter-spacing: -.6px; }
.apres-tete p { margin-top: 8px; }
.restantes h2 { font-weight: 800; font-size: 15px; color: var(--encre-2); margin: 0 4px 12px; }
.restantes .activites { padding-bottom: 12px; }
html.o-chaleureuse .apres-tete.bandeau { padding-bottom: 34px; margin-bottom: 22px; }
html.o-chaleureuse .apres-tete.bandeau .sous { color: rgba(255, 255, 255, .86); }
.toutes .apres-tete { padding-top: 40px; }
.toutes .arc-bloc { width: 300px; }
.toutes .arc-centre img { width: 72px; margin: 0 auto; }
.recap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.recap > div:not(.tuile) { display: flex; align-items: center; gap: 10px; padding: 12px 12px; border-radius: 18px; background: var(--surface); box-shadow: var(--ombre); font-weight: 800; font-size: 15px; line-height: 1.2; }
html.o-fond .recap > div:not(.tuile) { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.recap .ic-fait { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--or); color: #123b2c; }
.recap .ic-fait .ic { width: 14px; height: 14px; stroke-width: 3; }

/* Journée terminée : le soleil se lève. Une seule séquence d'environ 2,5 s, puis la lumière respire.
   Les styles de base sont l'état final : capture et mouvement réduit l'affichent sans animation. */
.toutes .arc-bloc { isolation: isolate; }
.lever {
  position: absolute; left: 50%; bottom: -70px; z-index: -1; width: min(390px, 100vw); height: 370px; transform: translateX(-50%); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 140px), rgba(0, 0, 0, .55) calc(100% - 70px), transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 140px), rgba(0, 0, 0, .55) calc(100% - 70px), transparent 100%);
}
.lever .halo {
  position: absolute; left: 50%; bottom: -60px; width: 370px; height: 320px; margin-left: -185px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 102, .66), rgba(255, 190, 60, .28) 55%, rgba(255, 190, 60, 0));
  opacity: .8;
}
html.o-epuree .lever .halo { background: radial-gradient(closest-side, rgba(255, 196, 64, .55), rgba(255, 180, 50, .22) 55%, rgba(255, 180, 50, 0)); }
.lever .onde { position: absolute; left: 50%; bottom: 0; width: 140px; height: 140px; margin-left: -70px; border-radius: 50%; border: 1.5px solid rgba(255, 200, 80, .9); opacity: 0; }
html.o-epuree .lever .onde { border-color: rgba(232, 150, 30, .7); }
.lever .lueurs i {
  position: absolute; left: calc(50% + var(--x)); bottom: calc(var(--y) + 70px); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%; background: #ffd84d; box-shadow: 0 0 8px 2px rgba(255, 196, 64, .75); opacity: 0;
}
html.o-epuree .lever .lueurs i { background: #fbb534; box-shadow: 0 0 6px 1px rgba(247, 147, 30, .6); }
.toutes .arc-centre { overflow: hidden; }

html.jour-complet .toutes .arc .a-nouveau { animation: remplir 1.1s .35s var(--doux) forwards, eclat 1.3s 1.4s ease-out; }
html.jour-complet .toutes .arc .a-fait:not(.a-nouveau) { animation: eclat 1.3s 1.4s ease-out; }
html.jour-complet .lever .halo { animation: halo-lever 1.7s 1.1s var(--doux) both, halo-souffle 6s 2.8s ease-in-out infinite; }
html.jour-complet .lever .onde { animation: onde 1.9s 1.35s cubic-bezier(.2, .7, .3, 1) forwards; }
html.jour-complet .lever .onde.o2 { animation-delay: 1.75s; }
html.jour-complet .lever .lueurs i { animation: lueur var(--t) var(--d) ease-out forwards; }
html.jour-complet .toutes .arc-centre img { animation: soleil-monte 1s 1s var(--doux) both; }
html.jour-complet .toutes .apres-tete h1 { animation: apparait .7s 1.5s var(--doux) both; }
html.jour-complet .toutes .apres-tete .sous { animation: apparait .7s 1.65s var(--doux) both; }
html.jour-complet .toutes .recap div { animation: apparait .55s 1.85s var(--doux) both; }
html.jour-complet .toutes .recap div:nth-child(2) { animation-delay: 1.95s; }
html.jour-complet .toutes .recap div:nth-child(3) { animation-delay: 2.05s; }
html.jour-complet .toutes .recap div:nth-child(4) { animation-delay: 2.15s; }
html.jour-complet .toutes .recap .ic-fait { animation: coche-pop .45s 2s var(--ressort) both; }
html.jour-complet .toutes .recap div:nth-child(2) .ic-fait { animation-delay: 2.1s; }
html.jour-complet .toutes .recap div:nth-child(3) .ic-fait { animation-delay: 2.2s; }
html.jour-complet .toutes .recap div:nth-child(4) .ic-fait { animation-delay: 2.3s; }
html.jour-complet:not(.o-fond) .decor::before { animation: aube 2.4s 1.2s var(--doux) both; }

@keyframes eclat {
  0%, 100% { filter: drop-shadow(0 3px 6px rgba(247, 147, 30, .35)); }
  40% { filter: drop-shadow(0 0 12px rgba(255, 205, 90, .95)); }
}
@keyframes halo-lever { from { opacity: 0; transform: scale(.3); } 60% { opacity: 1; } to { opacity: .8; transform: scale(1); } }
@keyframes halo-souffle { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }
@keyframes onde { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(2.9); } }
@keyframes lueur { from { opacity: 0; transform: none; } 20% { opacity: .95; } to { opacity: 0; transform: translate(var(--dx), -120px); } }
@keyframes soleil-monte { from { transform: translateY(100%); } }
@keyframes apparait { from { opacity: 0; transform: translateY(10px); } }
@keyframes coche-pop { from { transform: scale(.3); } }
@keyframes aube { from { opacity: .5; } }

/* ---------- Connexion, accord, compte ---------- */
.accueil-logo { display: grid; place-items: center; padding-top: 70px; }
.accueil-logo img { width: 132px; }
.carte-forme {
  margin-top: auto;
  padding: 26px 22px 22px;
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--ombre-forte);
}
html.o-fond .carte-forme, html.o-fond .liste-compte, html.o-fond .profil, html.o-fond .feuille { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.carte-forme h1 { font-family: var(--titre); font-weight: 600; font-size: 30px; letter-spacing: -.6px; line-height: 1.1; }
.carte-forme p { margin-top: 8px; color: var(--encre-2); font-weight: 600; }
.champ-lab { display: block; margin: 22px 0 8px; font-weight: 800; font-size: 15px; color: var(--encre-2); }
.champ {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1.5px solid var(--champ-bord);
  background: var(--champ);
  font-weight: 700;
  font-size: 17px;
  color: var(--encre);
  outline: none;
}
.champ:focus { border-color: var(--encre); box-shadow: 0 0 0 4px rgba(247, 147, 30, .28); }
.champ::placeholder { color: var(--encre-2); opacity: .85; }
.carte-forme .action { margin-top: 14px; }
.picto-rond {
  width: 72px; height: 72px; border-radius: 24px;
  display: grid; place-items: center;
  --k: 1.2414; --mx: -120px; --my: -296px;
  background: var(--foret-2) url('../assets/web/fond_petit.webp') no-repeat;
  background-size: calc(210px * var(--k)) auto;
  background-position: calc(var(--mx) * var(--k)) calc(var(--my) * var(--k));
  color: #ffffff;
  box-shadow: 0 16px 30px -16px rgba(12, 42, 31, .7);
}
.picto-rond .ic { width: 32px; height: 32px; }
.adresse { display: inline-block; margin-top: 12px; padding: 8px 14px; border-radius: 12px; background: var(--surface-2); font-weight: 800; color: var(--encre); }
html.o-epuree[data-page='connexion'] .accueil-logo { padding-top: 96px; }

.accord-zone { margin-top: auto; }
.accord-liste { display: grid; gap: 12px; margin: 20px 0 6px; padding: 0; list-style: none; }
.accord-liste li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-weight: 650; font-size: 16.5px; line-height: 1.35; }
.accord-liste .ic { width: 22px; height: 22px; margin-top: 1px; color: var(--encre); stroke-width: 2.1; }
.case {
  display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: center;
  margin-top: 18px; min-height: 64px; padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-2);
  font-weight: 800; font-size: 17px;
  cursor: pointer;
}
.case input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.case .boite { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--encre); display: grid; place-items: center; color: transparent; transition: background-color .15s; }
.case .boite .ic { width: 18px; height: 18px; stroke-width: 3; }
.case input:checked + .boite { background: var(--encre); color: var(--fond-bas); }
html.o-fond .case input:checked + .boite { color: #123b2c; }
.case input:focus-visible + .boite { outline: 3px solid #f7931e; outline-offset: 3px; }

.profil { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 18px; border-radius: var(--rayon); background: var(--surface); box-shadow: var(--ombre); }
.profil .avatar { width: 58px; height: 58px; font-size: 20px; box-shadow: none; background: var(--surface-2); flex: none; }
.profil b { display: block; font-family: var(--titre); font-weight: 600; font-size: 21px; }
.profil div > span { display: block; margin-top: 2px; font-weight: 650; color: var(--encre-2); overflow-wrap: anywhere; }
.liste-compte { margin-top: 14px; border-radius: var(--rayon); background: var(--surface); box-shadow: var(--ombre); overflow: hidden; }
.ligne-compte { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 0 18px; font-weight: 800; font-size: 17px; text-decoration: none; color: var(--encre); text-align: left; }
.ligne-compte + .ligne-compte { border-top: 1px solid var(--piste); }
.ligne-compte .tuile-fleche { margin-left: auto; }
.ligne-compte.danger { color: var(--rouge); }
html.o-fond .ligne-compte.danger { color: #ffb4ab; }
.voile { position: absolute; inset: 0; z-index: 40; background: rgba(8, 24, 18, .45); animation: fondu .3s both; }
html.o-fond .voile { background: rgba(0, 0, 0, .55); }
.feuille {
  position: absolute; z-index: 41; left: 8px; right: 8px; bottom: 8px;
  padding: 26px 22px var(--bas-sur);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: 0 -10px 50px -20px rgba(0, 0, 0, .4);
  animation: monte .4s var(--doux) both;
}
html.o-fond .feuille { background: rgba(10, 36, 27, .92); }
html.o-chaleureuse .feuille { background: #fffdf9; }
.feuille h2 { font-family: var(--titre); font-weight: 600; font-size: 25px; letter-spacing: -.4px; line-height: 1.15; }
.feuille p { margin-top: 10px; color: var(--encre-2); font-weight: 650; }
.feuille .boutons { display: grid; gap: 10px; margin-top: 22px; }
@keyframes fondu { from { opacity: 0; } }
@keyframes monte { from { transform: translateY(100%); } }
.fin-centre { margin: auto 0; text-align: center; display: grid; justify-items: center; gap: 14px; }
.fin-centre h1 { font-family: var(--titre); font-weight: 600; font-size: 30px; letter-spacing: -.6px; line-height: 1.12; }

/* Toast commun */
.toast {
  position: fixed; z-index: 90; left: 50%; bottom: 28px;
  transform: translate(-50%, 0);
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-radius: 18px;
  background: #123b2c; color: #ffffff;
  font-weight: 800; font-size: 15px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
  animation: toast .4s var(--ressort) both;
}
.toast .ic { width: 20px; height: 20px; color: #ffd84d; stroke-width: 2.6; }
@keyframes toast { from { transform: translate(-50%, 140%); } }
.ecran .toast { position: absolute; bottom: calc(var(--bas-sur) + 84px); white-space: nowrap; }

/* ---------- Animation d'entrée (une seule, sur la journée) ---------- */
.activites .tuile { animation: entree .5s var(--doux) both; }
.activites .tuile:nth-child(2) { animation-delay: .05s; }
.activites .tuile:nth-child(3) { animation-delay: .1s; }
.activites .tuile:nth-child(4) { animation-delay: .15s; }
@keyframes entree { from { transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .arc .a-nouveau { stroke-dashoffset: 0; }
}


/* =====================================================================
   Administration (1280 px), identique dans les trois orientations
   ===================================================================== */
html.bureau, html.bureau body { background: #f3f6f4; }
html.bureau body { font-size: 15px; color: #123b2c; min-width: 1280px; }
.admin { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.nav-admin {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 26px 16px 20px;
  background: #123b2c;
  color: #ffffff;
}
.nav-admin .logo-admin { display: flex; align-items: center; gap: 12px; padding: 0 10px 28px; }
.nav-admin .logo-admin img { width: 34px; }
.nav-admin .logo-admin b { display: block; font-family: var(--titre); font-weight: 600; font-size: 18px; letter-spacing: 2.6px; }
.nav-admin .logo-admin span { display: block; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .78); }
.nav-admin a.nav-lien {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 12px; margin-bottom: 4px;
  border-radius: 12px;
  font-weight: 750; font-size: 15px;
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
}
.nav-admin a.nav-lien .ic { width: 20px; height: 20px; }
.nav-admin a.nav-lien:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-admin a.nav-lien[aria-current='page'] { background: rgba(255, 255, 255, .12); color: #ffffff; } /* 26/11 (Dom) : trait jaune retiré */
.nav-admin .moi { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 14px 10px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.nav-admin .moi .avatar { width: 38px; height: 38px; font-size: 13px; background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.nav-admin .moi b { display: block; font-size: 14px; }
.nav-admin .moi a { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .78); }
.admin-main { padding: 34px 44px 60px; min-width: 0; }
.admin-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.fil { font-size: 14px; font-weight: 700; color: #4d6157; margin-bottom: 6px; }
.fil a { color: #4d6157; text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.admin-tete h1 { font-family: var(--titre); font-weight: 600; font-size: 32px; letter-spacing: -.6px; line-height: 1.1; display: flex; align-items: center; gap: 14px; }
.admin-tete .sous-titre { margin-top: 6px; font-size: 15px; font-weight: 650; color: #4d6157; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  border-radius: 12px;
  font-weight: 800; font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, transform .15s var(--ressort);
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; stroke-width: 2.1; }
.btn-1 { background: #123b2c; color: #ffffff; }
.btn-1:hover { background: #0c2a1f; }
.btn-2 { background: #ffffff; color: #123b2c; box-shadow: inset 0 0 0 1.5px #7d8f85; }
.btn-2:hover { background: #f3f6f4; }
.btn-texte { min-height: 36px; padding: 0 10px; color: #123b2c; font-weight: 800; }
.btn-texte:hover { background: #e9efeb; }
.btn-danger-txt { color: #a3221a; }
.btn[disabled], .btn[aria-disabled='true'] { background: #dfe6e2; color: #4d6157; cursor: not-allowed; box-shadow: none; }
.groupe-btn { display: flex; gap: 10px; align-items: center; }
.panneau { background: #ffffff; border-radius: 16px; box-shadow: 0 0 0 1px #dde5e0, 0 8px 24px -18px rgba(18, 59, 44, .3); }
.statut-pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 14px; font-weight: 800; font-size: 13.5px; font-family: var(--texte); letter-spacing: 0; }
.statut-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.s-publiee { background: #e3f1e8; color: #1c5a3b; }
.s-brouillon { background: #f1ede4; color: #6b4e12; }
.s-actif { background: #e3f1e8; color: #1c5a3b; }
.s-inactif { background: #eceeed; color: #4f5753; }
.filtres { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: #e5ebe7; width: max-content; }
.filtres button { min-height: 34px; padding: 0 14px; border-radius: 9px; font-weight: 800; font-size: 14px; color: #3f5249; }
.filtres button[aria-pressed='true'] { background: #ffffff; color: #123b2c; box-shadow: 0 1px 3px rgba(18, 59, 44, .18); }
.barre-outils { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.barre-outils .compte { font-weight: 700; color: #4d6157; }
table.tab { width: 100%; border-collapse: collapse; }
.tab th { text-align: left; font-size: 13px; font-weight: 800; color: #4d6157; padding: 12px 16px; border-bottom: 1px solid #e3e9e5; white-space: nowrap; }
.tab td { padding: 0 16px; height: 56px; border-bottom: 1px solid #edf1ee; font-weight: 650; vertical-align: middle; }
.tab tr:last-child td { border-bottom: 0; }
.tab tbody tr { transition: background-color .15s; }
.tab tbody tr:hover { background: #f7faf8; }
.tab tr.ligne-lien { cursor: pointer; }
.tab tr.surligne { background: #fff8e5; }
.tab .num { font-family: var(--titre); font-weight: 600; font-size: 16px; }
.tab .discret { color: #4d6157; font-weight: 650; }
.tab .ok { display: inline-flex; align-items: center; gap: 6px; color: #1c5a3b; font-weight: 750; }
.tab .manque { display: inline-flex; align-items: center; gap: 6px; color: #8a4a06; font-weight: 750; }
.tab .ok .ic, .tab .manque .ic { width: 17px; height: 17px; stroke-width: 2.4; }
.defile-tab { max-height: calc(100vh - 240px); overflow: auto; border-radius: 16px; }
.tab thead th { position: sticky; top: 0; background: #ffffff; z-index: 1; }
.interrupteur { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 750; font-size: 14px; color: #123b2c; }
.interrupteur .rail { position: relative; width: 44px; height: 26px; border-radius: 13px; background: #75837b; transition: background-color .2s; flex: none; }
.interrupteur .rail::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ressort); }
.interrupteur[aria-checked='true'] .rail { background: #123b2c; }
.interrupteur[aria-checked='true'] .rail::after { transform: translateX(18px); }

/* Édition d'une journée */
.edition { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.bloc { padding: 22px 24px; }
.bloc + .bloc { margin-top: 16px; }
.bloc-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.bloc-tete .medaillon { width: 40px; height: 40px; border-radius: 13px; --k: .6897; }
.bloc-tete .medaillon .ic { width: 20px; height: 20px; }
.bloc-tete h2 { font-family: var(--titre); font-weight: 600; font-size: 19px; }
.bloc-tete .duree-lue { margin-left: auto; font-weight: 750; color: #4d6157; font-size: 14px; }
.champ-admin { display: grid; gap: 7px; margin-bottom: 16px; }
.champ-admin label { font-weight: 800; font-size: 13.5px; color: #3f5249; }
.champ-admin input, .champ-admin textarea {
  width: 100%;
  border: 1.5px solid #7d8f85;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 650;
  font-size: 15px;
  background: #ffffff;
  color: #123b2c;
  outline: none;
}
.champ-admin textarea { resize: vertical; min-height: 74px; line-height: 1.4; font-size: 16px; }
.champ-admin input:focus, .champ-admin textarea:focus { border-color: #123b2c; box-shadow: 0 0 0 3px rgba(247, 147, 30, .25); }
.champ-court { width: 120px !important; }
.unite { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #4d6157; }
.fichier {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 14px;
  background: #f5f8f6; box-shadow: inset 0 0 0 1px #e1e8e4;
}
.fichier + .fichier { margin-top: 10px; }
.fichier .fic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #ffffff; color: #123b2c; box-shadow: inset 0 0 0 1px #dbe3de; }
.fichier .fic .ic { width: 20px; height: 20px; }
.fichier .nom-fic { display: block; font-weight: 800; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fichier .meta-fic { display: block; margin-top: 2px; font-weight: 650; font-size: 13.5px; color: #4d6157; }
.fichier .meta-fic b { color: #123b2c; font-weight: 800; }
.fichier.vide { background: #fffaf0; box-shadow: inset 0 0 0 1.5px #a26a12; border: 0; }
.fichier.vide .fic { background: #fff4dc; color: #8a4a06; box-shadow: none; }
.fichier.vide .nom-fic { color: #6b3a05; }
.fichier.charge .meta-fic { color: #123b2c; }
.fichier input[type='file'] { display: none; }
.cote { position: sticky; top: 24px; }
.cote .bloc h3 { font-family: var(--titre); font-weight: 600; font-size: 17px; margin-bottom: 14px; }
.liste-verif { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.liste-verif li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; }
.liste-verif .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.liste-verif .v-ok { color: #1c5a3b; }
.liste-verif .v-non { color: #8a4a06; }
.info-pub { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e3e9e5; font-weight: 650; color: #4d6157; font-size: 14px; }
.info-pub b { color: #123b2c; }
.cote .btn { width: 100%; margin-top: 16px; min-height: 48px; }
.modale-voile { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(10, 30, 22, .42); animation: fondu .2s both; }
.modale { width: 460px; padding: 28px; border-radius: 20px; background: #ffffff; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5); animation: pop .25s var(--ressort) both; }
@keyframes pop { from { transform: scale(.94); } }
.modale h2 { font-family: var(--titre); font-weight: 600; font-size: 23px; letter-spacing: -.3px; }
.modale p { margin-top: 10px; font-weight: 650; color: #3f5249; line-height: 1.5; }
.modale .groupe-btn { justify-content: flex-end; margin-top: 24px; }
.modale .champ-admin { margin-top: 18px; margin-bottom: 0; }
.bureau .avatar { color: #123b2c; }
.bureau .nav-admin .avatar { color: #ffffff; }
.bureau .toast { left: auto; right: 32px; bottom: 32px; transform: none; }
@keyframes toastb { from { transform: translateY(140%); } }
.bureau .toast { animation-name: toastb; }
.export-grille { display: grid; gap: 20px; max-width: 1000px; }
.export-carte { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: end; }
.export-carte .colonnes { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.colonnes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.colonnes li { display: flex; gap: 10px; font-weight: 650; color: #3f5249; }
.colonnes code { font-family: var(--titre); font-weight: 600; font-size: 14px; color: #123b2c; background: #eef3f0; padding: 2px 8px; border-radius: 6px; }
.apercu-csv td, .apercu-csv th { font-size: 13.5px; height: 44px; }
.apercu-csv td { font-family: var(--titre); font-weight: 500; }

/* ---------- Compléments ---------- */
.page-forme { padding-bottom: var(--bas-sur); }
/* Accord : fenêtre remontée (commentaire du 16/11), autres orientations ; chaleureuse : section « Retours du 20/11 » */
html:not(.o-chaleureuse)[data-page='accord'] .carte-forme { margin-top: 28px; }
html:not(.o-chaleureuse)[data-page='accord'] .accueil-logo { padding-top: 36px; }
html:not(.o-chaleureuse)[data-page='accord'] .accueil-logo img { width: 104px; }
html.o-chaleureuse[data-page='connexion'] .statut,
html.o-chaleureuse[data-page='accord'] .statut { color: #ffffff; }
html.o-fond .accueil-logo img, html.o-chaleureuse .accueil-logo img { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }

/* Bandeau du client derrière le haut des activités (chaleureuse) */
.bandeau-fond { display: none; }
html.o-chaleureuse .bandeau-fond {
  display: block;
  position: absolute; z-index: 0;
  left: 0; right: 0;
  top: calc(-1 * (var(--haut-statut) + 56px));
  height: calc(var(--haut-statut) + 56px + var(--bandeau-h, 150px));
  background: #0d3324 url('../assets/web/fond.webp') center 40% / cover no-repeat;
  border-radius: 0 0 36px 36px;
}
html.o-chaleureuse .page > *:not(.bandeau-fond) { position: relative; z-index: 1; }
html.o-chaleureuse[data-page='renforcement'] { --bandeau-h: 210px; }
html.o-chaleureuse[data-page='compte'] { --bandeau-h: 70px; }
html.o-chaleureuse.l-temps[data-page='respiration'], html.o-chaleureuse.l-temps[data-page='meditation'] { --bandeau-h: 116px; }
html.o-chaleureuse.l-vignette[data-page='respiration'], html.o-chaleureuse.l-vignette[data-page='meditation'] { --bandeau-h: 128px; }
html.o-chaleureuse.l-pochette[data-page='respiration'] .bandeau-fond, html.o-chaleureuse.l-pochette[data-page='meditation'] .bandeau-fond { display: none; }
html.o-chaleureuse.l-pochette[data-page='respiration'] .retour, html.o-chaleureuse.l-pochette[data-page='meditation'] .retour,
html.o-chaleureuse.l-pochette[data-page='respiration'] .statut, html.o-chaleureuse.l-pochette[data-page='meditation'] .statut { color: #123b2c; }
html.o-chaleureuse[data-page='renforcement'] .statut, html.o-chaleureuse[data-page='renforcement'] .retour,
html.o-chaleureuse[data-page='respiration'] .statut, html.o-chaleureuse[data-page='respiration'] .retour,
html.o-chaleureuse[data-page='meditation'] .statut, html.o-chaleureuse[data-page='meditation'] .retour,
html.o-chaleureuse[data-page='compte'] .statut, html.o-chaleureuse[data-page='compte'] .retour { color: #ffffff; }
html.o-chaleureuse.l-temps .lect-tete, html.o-chaleureuse.l-vignette .lect-tete { color: #ffffff; }
html.o-chaleureuse.l-temps .lect-tete .sous, html.o-chaleureuse.l-vignette .lect-tete .sous { color: rgba(255, 255, 255, .86); }
html.o-chaleureuse[data-page='compte'] .titre-ecran { color: #ffffff; }

/* Temps sous la barre : seulement avec la pochette */
html.l-temps .temps-ligne, html.l-vignette .temps-ligne { display: none; }

/* Aperçu des activités avant le lancement */
.apercu-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 34px; padding: 18px 10px; border-radius: var(--rayon); background: var(--surface); box-shadow: var(--ombre); }
html.o-fond .apercu-acts { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.apercu-acts div { display: grid; justify-items: center; gap: 9px; font-weight: 800; font-size: 13.5px; color: var(--encre); }
.apercu-acts .medaillon { width: 52px; height: 52px; border-radius: 17px; --k: .8966; }
.apercu-acts .medaillon .ic { width: 24px; height: 24px; }
html.o-chaleureuse .avant-zone .arc-centre img { filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .35)); }

.fic-export { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #eef3f0; color: #123b2c; }
.fic-export .ic { width: 20px; height: 20px; }
.titre-apercu, .bloc h2 { font-family: var(--titre); font-weight: 600; font-size: 19px; }
.compte-zone .titre-ecran { margin-top: 6px; }

/* Lecteur : le temps et les commandes réunis sur une surface */
.lect-carte {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 24px 0 6px;
  padding: 26px 22px 24px;
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--ombre);
}
html.o-fond .lect-carte { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
html.l-pochette .lect-carte { flex: none; margin-top: 16px; padding: 20px 20px 20px; }
html.l-pochette .lect-bas { margin-top: 0; padding-top: 0; }
html.l-pochette .lect-tete, [data-page='marche'] .lect-tete { margin-top: 22px; }
html.l-pochette .commandes { margin-top: 12px; }
html.l-pochette .lire:not(.petit) { width: 72px; height: 72px; }
html.l-temps .lect-centre, html.l-vignette .lect-centre { padding: 10px 0 18px; }
html.l-vignette .lect-carte { margin-top: 20px; }

/* Profil */
.profil .avatar { background: var(--foret); color: #ffffff; }
html.o-fond .profil .avatar { background: #ffffff; color: #123b2c; }

/* Connexion épurée : une fenêtre sur le fond du client */
html.o-epuree .accueil-logo {
  margin-top: 6px;
  padding-top: 0;
  height: 380px;
  border-radius: 36px;
  background: #0d3324 url('../assets/web/fond.webp') center 26% / cover no-repeat;
  box-shadow: var(--ombre-forte);
}
html.o-epuree .accueil-logo img { width: 128px; filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .35)); }
html.o-epuree[data-page='connexion'] .accueil-logo { padding-top: 0; }
html.o-epuree .page-forme .carte-forme { background: transparent; box-shadow: none; padding: 24px 4px 4px; border-radius: 0; }
html.o-epuree[data-page='accord'] .accueil-logo { height: 200px; }
html.o-epuree[data-page='accord'] .accueil-logo img { width: 84px; }
html.o-epuree[data-page='accord'] .picto-rond { display: none; }
html.o-epuree[data-page='accord'] .carte-forme h1 { margin-top: 0 !important; }

/* Avant le lancement : centré dans la hauteur */
[data-page='journee'] .avant.on { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 60px; }
html.o-chaleureuse [data-page='journee'] .avant.on, html.o-chaleureuse[data-page='journee'] .avant.on { justify-content: flex-start; padding-bottom: 0; }

/* Mention Noxcod (connexion, compte, administration) */
.credit { margin-top: auto; padding: 28px 0 calc(var(--bas-sur) + 18px); text-align: center; font-size: 13px; font-weight: 600; color: var(--encre-2); }
.page-forme .credit { padding-bottom: 18px; }
.credit a { color: var(--encre); font-weight: 800; text-decoration: none; }
.credit a:hover, .credit a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
.nav-admin .credit-admin { padding: 14px 10px 0; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.nav-admin .credit-admin a { color: #ffffff; font-weight: 800; text-decoration: none; }
.nav-admin .credit-admin a:hover, .nav-admin .credit-admin a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }

/* =====================================================================
   Retours du point du 20/11/2026 (faits d'abord sur le prototype, repris ici à l'identique)
   ===================================================================== */

/* 1. Bienvenue, Vérifiez vos emails, Avant de commencer : même mise en page (point du 20/11 ; Dom, 21 et 23/11 :
   bandeau plus petit, pas la moitié de l'écran ; logo de la même taille partout ; fenêtre toujours au même
   endroit). Tout est fixe, identique sur les trois écrans et sur tous les téléphones : logo de 120 px de large,
   32 px sous la barre d'état ; la fenêtre commence 32 px sous le logo ; le bandeau s'arrête 56 px sous le haut de
   la fenêtre. La plus haute des trois fenêtres (« Avant de commencer ») tient sur un iPhone SE. */
html.o-chaleureuse .page-forme { padding-bottom: 16px; }
html.o-chaleureuse .page-forme > .accueil-logo {
  margin: calc(-1 * var(--haut-statut)) -20px 0;
  height: auto;
  padding: calc(var(--haut-statut) + 32px) 0 88px;
  display: grid;
  place-items: center;
  background: #0d3324 url('../assets/web/fond.webp') center 30% / cover no-repeat;
  border-radius: 0 0 36px 36px;
}
html.o-chaleureuse .page-forme > .accueil-logo img { width: 120px; }
html.o-chaleureuse .page-forme > .carte-forme { margin: -56px 0 0; position: relative; }
html.o-chaleureuse .page-forme > .credit { margin-top: auto; }

/* 2. Journée — 26/11 (Dom) : « resserrer, comme classiquement sur une app » : liste serrée, écart fixe de 14 px,
   les tuiles partent du haut (la première mord sur le bandeau) ; l'écart adaptatif du 21/11 est abandonné.
   Ancien commentaire : 2. Journée (point du 20/11, puis Dom le 21/11 : « plus haut et augmenter l'espacement », « adaptatif par
   rapport à la taille d'écran ») : la première tuile mord sur le bandeau (28 px), puis les quatre tuiles se
   répartissent sur la hauteur disponible (justify-content: space-between) : l'écart entre elles grandit ou
   rétrécit avec l'écran (14 px au moins), et il n'y a plus de trou en bas. Au-delà d'une hauteur de bloc qui suit aussi l'écran
   (470 à 520 px), l'écart cesse de grandir et le reste va sous le bloc ; la barre d'accueil de l'iPhone garde sa marge. La page est limitée à la hauteur de
   l'écran pour que le bloc puisse s'étirer ; si la place manque, elle défile. */
html.o-chaleureuse[data-page='journee']:not([data-etat='avant']) .ecran:has(> .page > .entete-jour) { overflow-x: clip; }
html.o-chaleureuse[data-page='journee']:not([data-etat='avant']) .page:has(> .entete-jour) { flex: 1 1 0; min-height: 0; }
html.o-chaleureuse[data-page='journee']:not([data-etat='avant']) .page:has(> .entete-jour) > .entete-jour { flex: none; margin-bottom: -28px; }
html.o-chaleureuse[data-page='journee']:not([data-etat='avant']) .page:has(> .entete-jour) > .activites {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  padding-bottom: 0;
  margin-top: 0;
}
html.o-chaleureuse[data-page='journee']:not([data-etat='avant']) .page:has(> .entete-jour)::after { content: ''; flex: 1 0 calc(var(--bas-sur) + 14px); }

/* 4. Écrans d'activité : même mise en page pour les quatre (pochette, puis titre et durée). Une seule taille de
   titre (28 px) : le plus long, « Respiration synchronisée », mesure 304 px pour 335 px disponibles à 375 px. */
.lect-tete h1 { font-size: 28px; }
[data-page='marche'] .lect-tete .sous { margin-top: 5px; }
[data-page='marche'] .question { margin-top: 20px; }

/* 6. Lecteur : barre de progression à faire glisser au doigt (zone tactile de 44 px) et sauts de 15 s */
.curseur {
  position: relative;
  display: block;
  height: 44px;
  margin: -19px 0;
  touch-action: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
}
.curseur .barre-prog { position: absolute; left: 0; right: 0; top: 50%; margin-top: -3px; }
.curseur .poignee {
  position: absolute; top: 50%; left: calc(var(--p, 0) * 100%);
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--encre);
  box-shadow: 0 1px 4px rgba(12, 42, 31, .35);
  transition: transform .15s var(--doux);
}
.curseur.glisse .poignee { transform: scale(1.3); }
.curseur.glisse .barre-prog i { transition: none; }
.curseur:focus-visible { outline: 3px solid #f7931e; outline-offset: 2px; border-radius: 12px; }
.saut {
  position: relative;
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--bouton-2-texte);
  background: var(--bouton-2);
  transition: transform .18s var(--ressort);
}
.saut:active { transform: scale(.94); }
.saut .ic { width: 34px; height: 34px; stroke-width: 1.7; }
.saut .ic text { font-family: var(--texte); font-weight: 900; font-size: 7.4px; fill: currentColor; stroke: none; }
.commandes { align-items: center; gap: 28px; }
html.l-pochette .commandes { margin-top: 14px; }

/* Marche : la barre et les sauts apparaissent sous la piste en cours */
.piste-audio { row-gap: 0; }
.pa-commandes { display: none; grid-column: 1 / -1; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; column-gap: 12px; margin-top: 8px; }
.piste-audio.active .pa-commandes { display: grid; }
.piste-audio .pa-barre { display: none !important; }
.pa-commandes .curseur { margin: 0; }
.pa-commandes .curseur .barre-prog { height: 4px; margin-top: -2px; }
.pa-commandes .saut { width: 44px; height: 44px; }
.pa-commandes .saut .ic { width: 30px; height: 30px; }

/* Vidéo (21/11, Dom : écran inchangé hors lecteur) : seulement la barre à faire glisser et les sauts de 15 s */
.video-bas { padding: 40px 14px 10px; }
.video-bas .curseur { margin: -14px 2px -12px; }
.video-bas .curseur .barre-prog { height: 5px; margin-top: -2.5px; }
.video-bas .poignee { background: #ffffff; }
.video-temps { align-items: center; margin-top: 4px; }
.video-temps .sauts { display: flex; gap: 20px; }
.video-bas .saut { width: 46px; height: 46px; color: #ffffff; background: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.video-bas .saut .ic { width: 31px; height: 31px; }

/* 5. Journée terminée (point du 20/11, puis Dom le 21/11 : « reprendre le même format que le premier écran,
   juste le picto qui change à gauche ») : les quatre activités sont les tuiles de l'écran Journée (même taille,
   nom et durée), en colonne ; seul le picto de gauche change : il porte la coche, comme sur l'écran Journée. */
.toutes.on { display: flex; flex-direction: column; flex: 1 0 auto; }
.recap { display: flex; flex-direction: column; gap: 14px; margin: auto 0; padding: 4px 0 18px; }
.recap .tuile { cursor: default; }


/* 9. Téléphone tourné à l'horizontale : le contenu garde une largeur de téléphone, centré */
@media (orientation: landscape) and (max-height: 560px) {
  html:not(.cadre):not(.capture):not(.bureau), html:not(.cadre):not(.capture):not(.bureau) body { background: #e7dfcf; }
  html:not(.cadre):not(.capture):not(.bureau) .ecran {
    max-width: 440px;
    margin: 0 auto;
    box-shadow: 0 0 0 1px rgba(18, 59, 44, .06), 0 0 48px -16px rgba(12, 42, 31, .4);
  }
  /* journée : pas de page limitée à la hauteur de l'écran (retour 2), la colonne suit le contenu qui défile */
  html:not(.cadre):not(.capture):not(.bureau)[data-page='journee'] .page:has(> .entete-jour) { flex: 1 0 auto; }
}

/* 6. Avant le programme (26/11, Dom : « uniforme ») : mêmes tuiles que l'écran Journée, en liste serrée ; la
   première mord sur le bandeau comme sur l'écran Journée. Remplace la carte à quatre petites cases. */
.apercu-acts:has(> .tuile) { display: flex; flex-direction: column; gap: 14px; margin-top: -28px; padding: 0; background: none; box-shadow: none; position: relative; }
html.o-fond .apercu-acts:has(> .tuile) { backdrop-filter: none; -webkit-backdrop-filter: none; }
.apercu-acts > .tuile { cursor: default; display: flex; justify-items: normal; font-size: inherit; font-weight: inherit; }
.apercu-acts > .tuile .tuile-texte { justify-items: start; text-align: left; }
html.o-chaleureuse .avant:has(.apercu-acts > .tuile) .avant-zone { padding-bottom: 58px; }

/* 7. Après une activité (26/11, Dom : « l'écran après ne sert à rien ; tu animes puis tu repars sur la home ») :
   seule l'animation reste (coche, arc, lever de soleil en fin de journée), centrée ; puis retour à la journée. */
html[data-page='apres'] .restantes, html[data-page='apres'] .recap, html[data-page='apres'] .fin-actions,
html[data-page='apres'] .barre .retour, html[data-page='apres'] .pied, html[data-page='apres'] a.action[data-bloc] { display: none !important; }
html[data-page='apres'] section[data-bloc].on { display: flex; flex-direction: column; justify-content: center; min-height: 100%; }
html[data-page='apres'] .apres-tete { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; border-radius: 0; box-sizing: border-box; }
html[data-page='apres'] .ecran { overflow: hidden; }

/* 8. Administration : barre d'avancement des envois de médias (27/11, retour de Samuel) */
.fichier .barre-envoi { display: block; margin-top: 8px; max-width: 320px; }
.fichier .barre-envoi.indeterminee i { width: 35%; animation: barre-va-vient 1.4s ease-in-out infinite; }
@keyframes barre-va-vient { from { left: -35%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .fichier .barre-envoi.indeterminee i { animation-duration: 4s; } }
