/* ── Page d'accueil TrimSync (refonte du 16/10/2026) ──
   La base (couleurs, polices, boutons, logo) vient de charte.css. Ici : la mise en page de l'accueil.
   Pas de fond animé : le produit suffit (DESIGN.md). */

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { overflow-x: hidden; }

/* ── En-tête ── */
.tete {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklch, var(--fond) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duree) var(--ease);
}
.tete.defile { border-bottom-color: var(--trait-doux); }
.tete-in { display: flex; align-items: center; gap: var(--e-5); min-height: 4.25rem; }
.tete-liens { display: flex; gap: var(--e-5); margin-left: var(--e-6); margin-right: auto; }
.tete-liens a, .tete-connexion { font-size: var(--t-petit); color: var(--texte-2); text-decoration: none; transition: color var(--duree-court) var(--ease); }
.tete-droite { display: flex; align-items: center; gap: var(--e-4); margin-left: auto; }
.langue {
  min-width: 2.5rem;
  min-height: 2.25rem;
  padding: 0 0.6em;
  background: none;
  border: 1px solid var(--trait);
  border-radius: var(--rayon-petit);
  color: var(--texte-2);
  font-size: var(--t-legende);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}
@media (hover: hover) {
  .tete-liens a:hover, .tete-connexion:hover { color: var(--texte); }
  .langue:hover { color: var(--texte); border-color: var(--texte-3); }
}
.burger { display: none; width: 2.75rem; height: 2.75rem; place-items: center; background: none; border: 0; color: var(--texte); cursor: pointer; margin-right: -0.5rem; }
.burger svg { width: 1.4rem; height: 1.4rem; }
.menu-mobile {
  display: none;
  position: fixed;
  inset: 4.25rem 0 auto 0;
  z-index: 19;
  background: var(--fond);
  border-bottom: 1px solid var(--trait-doux);
  padding: var(--e-4) var(--marge) var(--e-6);
}
.menu-mobile.ouvert { display: block; }
.menu-mobile a:not(.btn) { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--trait-doux); font-size: 1.125rem; color: var(--texte); text-decoration: none; }
.menu-mobile .btn { width: 100%; margin-top: var(--e-5); }
@media (max-width: 920px) {
  .tete-liens, .tete-connexion { display: none; }
  .burger { display: grid; }
  .tete-droite .btn { display: none; }
}

/* ── Bandeau après paiement ── */
.bandeau-paiement { background: var(--accent-doux); border-bottom: 1px solid var(--trait-doux); font-size: var(--t-petit); }
.bandeau-paiement .conteneur { display: flex; flex-wrap: wrap; gap: var(--e-3) var(--e-5); align-items: center; justify-content: center; padding-block: var(--e-3); }

/* ── Haut de page ── */
.haut { padding-block: clamp(3rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7.5rem); }
.haut-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.haut h1 { max-width: 9.5em; }
.haut .chapo { margin-top: var(--e-5); }
.actions { display: flex; flex-wrap: wrap; gap: var(--e-3); margin-top: var(--e-6); }
.haut .legende { margin-top: var(--e-4); }
@media (max-width: 960px) { .haut-in { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .actions .btn { width: 100%; } }

/* La journée du pro, qui se remplit au chargement */
.journee { padding: var(--e-5); }
.journee-tete { display: flex; justify-content: space-between; align-items: baseline; gap: var(--e-4); padding-bottom: var(--e-4); border-bottom: 1px solid var(--trait-doux); }
.journee-tete b { font-family: var(--police-titre); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; }
.journee ol { list-style: none; margin: 0; padding: 0; }
.journee li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; gap: var(--e-3); align-items: start; padding: var(--e-4) 0; border-bottom: 1px solid var(--trait-doux); }
.journee li:last-child { border-bottom: 0; padding-bottom: 0; }
.journee .heure { font-variant-numeric: tabular-nums; color: var(--texte-3); font-size: var(--t-petit); padding-top: 0.1em; }
.journee .qui { font-weight: 600; font-size: var(--t-petit); }
.journee .quoi { color: var(--texte-3); font-size: var(--t-legende); }
.journee li.libre .qui { color: var(--texte-2); font-weight: 500; }
.auto { display: flex; align-items: center; gap: 0.5em; margin-top: 0.35em; font-size: var(--t-legende); color: var(--accent-texte); }
.auto .s-mini { height: 0.74em; }
.etat-libre { color: var(--texte-2); background: var(--surface-2); }
.etat-libre::before { background: var(--texte-3); }
html.js .journee li.attend { opacity: 0; transform: translateY(8px); }
.journee li { transition: opacity 520ms var(--ease-sortie), transform 520ms var(--ease-sortie); }
@media (max-width: 520px) {
  .journee { padding: var(--e-4); }
  .journee li { grid-template-columns: 2.9rem minmax(0, 1fr); }
  .journee li > .etat { grid-column: 2; justify-self: start; }
}

/* ── Sections ── */
.bloc { padding-block: var(--e-9); border-top: 1px solid var(--trait-doux); }
.bloc-tete { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.bloc-tete .chapo { margin-top: var(--e-5); }
.bloc-tete.centre { margin-inline: auto; text-align: center; }
.bloc-tete.centre .chapo { margin-inline: auto; }

/* Ce qui ne passe plus par toi : une liste, pas des cartes */
.taches { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--trait); }
.taches li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--e-3) var(--e-6); align-items: baseline; padding: clamp(1.25rem, 2.6vw, 1.9rem) 0; border-bottom: 1px solid var(--trait); }
.taches .s-mini { height: 1.15rem; align-self: start; margin-top: clamp(0.35rem, 0.1rem + 0.6vw, 0.75rem); --inf-fond: var(--fond); }
.taches h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem); letter-spacing: -0.035em; line-height: 1.1; }
.taches p { color: var(--texte-2); }
.taches .offre { display: inline-block; margin-left: 0.4em; font-size: var(--t-legende); color: var(--accent-texte); white-space: nowrap; }
@media (max-width: 760px) {
  .taches li { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .taches li p { grid-column: 2; }
}

/* ── Le bot, à essayer ── */
.bot-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.bot-in .bloc-tete { margin-bottom: 0; }
.metiers { display: flex; flex-wrap: wrap; gap: var(--e-2); margin-top: var(--e-6); }
.metiers button {
  min-height: 2.5rem;
  padding: 0 1em;
  background: transparent;
  border: 1px solid var(--trait);
  border-radius: var(--rayon-petit);
  color: var(--texte-2);
  font-size: var(--t-petit);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--duree-court) var(--ease), border-color var(--duree-court) var(--ease), background-color var(--duree-court) var(--ease);
}
.metiers button[aria-pressed="true"] { color: var(--texte); border-color: var(--accent); background: var(--accent-doux); font-weight: 600; }
@media (hover: hover) { .metiers button:not([aria-pressed="true"]):hover { color: var(--texte); border-color: var(--texte-3); } }
.bot-note { margin-top: var(--e-5); }
@media (max-width: 960px) { .bot-in { grid-template-columns: 1fr; } }

.discussion { display: flex; flex-direction: column; height: clamp(30rem, 62vh, 36rem); overflow: hidden; }
.discussion-tete { display: flex; align-items: center; gap: var(--e-3); padding: var(--e-4) var(--e-5); border-bottom: 1px solid var(--trait-doux); }
.avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--texte); color: var(--fond); font-family: var(--police-titre); font-weight: 600; font-size: 0.9rem; letter-spacing: -0.02em; flex: none; }
.discussion-tete b { display: block; font-size: var(--t-petit); font-weight: 600; line-height: 1.3; }
.discussion-tete small { color: var(--texte-3); font-size: var(--t-legende); }
.messages { flex: 1; overflow-y: auto; padding: var(--e-5); display: flex; flex-direction: column; gap: var(--e-2); overscroll-behavior: contain; }
.bulle { max-width: 82%; padding: 0.6rem 0.9rem; border-radius: 1.1rem; font-size: var(--t-petit); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; animation: bulle-entre 260ms var(--ease-sortie); }
.bulle.client { align-self: flex-end; background: var(--accent); color: var(--sur-accent); border-bottom-right-radius: 0.35rem; }
.bulle.bot { align-self: flex-start; background: var(--surface-2); color: var(--texte); border-bottom-left-radius: 0.35rem; }
.bulle.ecrit { display: inline-flex; gap: 0.25rem; padding: 0.85rem 1rem; }
.bulle.ecrit i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--texte-3); animation: point 1.1s ease-in-out infinite; }
.bulle.ecrit i:nth-child(2) { animation-delay: 0.15s; }
.bulle.ecrit i:nth-child(3) { animation-delay: 0.3s; }
@keyframes point { 0%, 60%, 100% { opacity: 0.35; } 30% { opacity: 1; } }
@keyframes bulle-entre { from { opacity: 0; transform: translateY(6px); } }
.idees { display: flex; gap: var(--e-2); overflow-x: auto; padding: 0 var(--e-5) var(--e-3); scrollbar-width: none; }
.idees::-webkit-scrollbar { display: none; }
.idees button { flex: none; min-height: 2.25rem; padding: 0 0.9em; background: var(--surface); border: 1px solid var(--trait); border-radius: 999px; color: var(--texte-2); font-size: var(--t-legende); cursor: pointer; white-space: nowrap; }
@media (hover: hover) { .idees button:hover { color: var(--texte); border-color: var(--texte-3); } }
.saisie { display: flex; gap: var(--e-2); padding: var(--e-3) var(--e-4) var(--e-4); border-top: 1px solid var(--trait-doux); }
.saisie .champ { min-height: 2.75rem; border-radius: 999px; padding-inline: 1.1em; }
.envoyer { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--accent); color: var(--sur-accent); cursor: pointer; transition: transform var(--duree-ressort) var(--ressort); }
.envoyer:active { transform: scale(0.94); }
.envoyer svg { width: 1.1rem; height: 1.1rem; }
.envoyer:disabled { opacity: 0.4; }

/* ── Tout dans le téléphone ── */
.tel-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.points { list-style: none; margin: var(--e-6) 0 0; padding: 0; display: grid; gap: var(--e-4); }
.points li { display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--e-3); align-items: start; color: var(--texte-2); }
.points svg { width: 1.25rem; height: 1.25rem; color: var(--accent-texte); margin-top: 0.15rem; }
.points b { color: var(--texte); font-weight: 600; }
.ecrans { display: flex; gap: var(--e-5); justify-content: center; align-items: flex-start; }
.ecrans .ecran:last-child { margin-top: var(--e-8); }
@media (max-width: 960px) { .tel-in { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ecrans .ecran:last-child { display: none; } }

/* Un écran d'appli, sans cadre de téléphone dessiné */
.ecran { width: min(100%, 20rem); border-radius: 2rem; overflow: hidden; background: var(--fond); color: var(--texte); border: 1px solid var(--trait); display: flex; flex-direction: column; font-size: 0.9375rem; box-shadow: 0 30px 60px oklch(0 0 0 / 0.35); }
/* Les vraies captures de l'appli (17/10/2026) : l'image remplit le cadre du téléphone */
.ecran-vrai { margin: 0; background: #f7f8f9; }
.ecran-vrai img { display: block; width: 100%; height: auto; }
.ecran-corps { padding: 1.1rem 1rem 0.4rem; flex: 1; }
.ecran-titre { display: flex; justify-content: space-between; align-items: end; margin: 0.2rem 0.2rem 0.9rem; }
.ecran-titre small { display: block; color: var(--texte-3); font-size: var(--t-legende); }
.ecran-titre b { font-family: var(--police-titre); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.rond { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--texte-2); font-size: var(--t-legende); font-weight: 600; }
.prochain { background: var(--surface); border: 1px solid var(--trait-doux); border-radius: 1rem; padding: 0.95rem; box-shadow: var(--ombre); }
.prochain .petit-titre { font-size: var(--t-legende); color: var(--texte-3); display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.prochain .nom { font-family: var(--police-titre); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; margin: 0.35rem 0 0.1rem; }
.prochain .detail { color: var(--texte-2); font-size: var(--t-petit); }
.prochain .auto .s-mini { --inf-fond: var(--surface); }
.gestes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.85rem; }
.gestes .btn { --h: 2.4rem; font-size: var(--t-legende); }
.liste-jour { list-style: none; margin: 1rem 0 0; padding: 0; }
.liste-jour li { display: grid; grid-template-columns: 2.8rem 1fr auto; gap: 0.55rem; align-items: center; padding: 0.7rem 0.2rem; border-top: 1px solid var(--trait-doux); }
.liste-jour .h { color: var(--texte-3); font-variant-numeric: tabular-nums; font-size: var(--t-petit); }
.liste-jour .n { font-weight: 600; font-size: var(--t-petit); line-height: 1.3; }
.liste-jour .n small { display: block; font-weight: 400; color: var(--texte-3); font-size: var(--t-legende); }
.onglets-bas { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--trait-doux); padding: 0.55rem 0.5rem 1.1rem; background: var(--surface); }
.onglets-bas span { display: grid; justify-items: center; gap: 0.2rem; font-size: 0.6875rem; color: var(--texte-3); font-weight: 500; }
.onglets-bas span.actif { color: var(--accent-texte); }
.onglets-bas svg { width: 1.3rem; height: 1.3rem; }
.salon-tete { display: flex; gap: 0.8rem; align-items: center; padding: 0.3rem 0.2rem 1rem; }
.salon-logo { width: 2.8rem; height: 2.8rem; border-radius: 0.85rem; background: var(--texte); color: var(--fond); display: grid; place-items: center; font-family: var(--police-titre); font-weight: 600; letter-spacing: -0.03em; }
.salon-tete b { display: block; font-family: var(--police-titre); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.salon-tete small { color: var(--texte-3); font-size: var(--t-legende); }
.etape { font-size: var(--t-legende); color: var(--texte-3); margin: 0.4rem 0.2rem 0.3rem; display: flex; justify-content: space-between; }
.progression { height: 3px; border-radius: 3px; background: var(--trait-doux); margin: 0 0.2rem 1.1rem; overflow: hidden; }
.progression i { display: block; height: 100%; width: 33%; background: var(--accent); border-radius: inherit; }
.resa-q { font-family: var(--police-titre); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.03em; margin: 0 0.2rem 0.85rem; line-height: 1.15; }
.prestations { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.prestations li { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 0.8rem; align-items: center; padding: 0.8rem 0.9rem; border: 1px solid var(--trait); border-radius: 0.9rem; background: var(--surface); }
.prestations b { font-weight: 600; font-size: var(--t-petit); }
.prestations .prix { font-weight: 600; font-variant-numeric: tabular-nums; font-size: var(--t-petit); }
.prestations small { color: var(--texte-3); font-size: var(--t-legende); grid-column: 1; }
.prestations li.choisie { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-doux); }
.resa-pied { padding: 0.9rem 1rem 1.2rem; border-top: 1px solid var(--trait-doux); background: var(--surface); }
.resa-pied .btn { width: 100%; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── Prêt en dix minutes ── */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e-6); counter-reset: etape; }
.etapes li { padding-top: var(--e-5); border-top: 1px solid var(--trait); counter-increment: etape; }
.etapes li::before { content: counter(etape); display: block; font-family: var(--police-titre); font-size: 3.25rem; font-weight: 500; line-height: 1; letter-spacing: -0.04em; color: var(--texte-3); margin-bottom: var(--e-5); }
.etapes h3 { margin-bottom: var(--e-2); }
.etapes p { color: var(--texte-2); }
.etapes code { font-family: inherit; color: var(--texte); background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 5px; font-size: 0.95em; }
@media (max-width: 860px) { .etapes { grid-template-columns: 1fr; gap: var(--e-5); } }

/* ── Tarifs ── */
.offres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-4); align-items: stretch; max-width: 52rem; margin-inline: auto; }
.offre-carte { display: flex; flex-direction: column; padding: var(--e-6); border-radius: var(--rayon-grand); border: 1px solid var(--trait-doux); background: var(--surface); }
.offre-carte.mise { border-color: color-mix(in oklch, var(--accent) 55%, var(--trait)); box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 30%, transparent); }
.offre-nom { display: flex; justify-content: space-between; align-items: baseline; gap: var(--e-3); }
.offre-nom h3 { font-size: 1.25rem; }
.offre-nom span { font-size: var(--t-legende); color: var(--accent-texte); font-weight: 600; }
.prix-ligne { margin: var(--e-5) 0 var(--e-2); display: flex; align-items: baseline; gap: 0.55rem; }
.prix-ligne b { font-family: var(--police-titre); font-size: 3.25rem; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.prix-ligne span { color: var(--texte-3); }
.offre-resume { color: var(--texte-2); font-size: var(--t-petit); min-height: 3em; }
.offre-carte ul { list-style: none; margin: var(--e-5) 0 var(--e-6); padding: var(--e-5) 0 0; border-top: 1px solid var(--trait-doux); display: grid; gap: var(--e-3); flex: 1; }
.offre-carte li { display: grid; grid-template-columns: 1.1rem 1fr; gap: var(--e-2); font-size: var(--t-petit); color: var(--texte-2); }
.offre-carte li svg { width: 1rem; height: 1rem; color: var(--accent-texte); margin-top: 0.2rem; }
.offre-carte .btn { width: 100%; }
.offre-pied { margin-top: var(--e-3); text-align: center; }
.offres-note { margin-top: var(--e-6); text-align: center; }
@media (max-width: 960px) { .offres { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } .offre-resume { min-height: 0; } }

/* ── Questions ── */
.questions { max-width: 46rem; margin-inline: auto; border-top: 1px solid var(--trait); }
.questions details { border-bottom: 1px solid var(--trait); }
.questions summary { display: flex; justify-content: space-between; align-items: center; gap: var(--e-4); padding: var(--e-5) 0; cursor: pointer; list-style: none; font-family: var(--police-titre); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: ''; flex: none; width: 0.65rem; height: 0.65rem; border-right: 1.75px solid var(--texte-3); border-bottom: 1.75px solid var(--texte-3); transform: translateY(-25%) rotate(45deg); transition: transform var(--duree) var(--ease); }
.questions details[open] summary::after { transform: translateY(15%) rotate(-135deg); }
.questions details p { padding-bottom: var(--e-5); color: var(--texte-2); max-width: 40em; }
.questions a { color: var(--texte); }

/* ── Dernier appel ── */
.notif { display: grid; grid-template-columns: 2.4rem 1fr; gap: var(--e-3); align-items: center; padding: 0.8rem 0.9rem; border-radius: 1.1rem; background: var(--surface); border: 1px solid var(--trait-doux); }
.notif .ico { width: 2.4rem; height: 2.4rem; border-radius: 0.6rem; background: var(--nuit-2); display: grid; place-items: center; border: 1px solid var(--trait); }
.notif .ico .s-mini { height: 0.95rem; --inf-fond: var(--nuit-2); }
.notif small { display: block; color: var(--texte-3); font-size: 0.75rem; }
.notif b { display: block; font-size: var(--t-petit); }
.notif span { display: block; color: var(--texte-2); font-size: var(--t-legende); }

/* ── Pied de page ── */
.pied { border-top: 1px solid var(--trait-doux); padding-block: var(--e-8) var(--e-6); }
.pied-in { display: grid; grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr)); gap: var(--e-6); }
.pied p { color: var(--texte-3); font-size: var(--t-petit); margin-top: var(--e-3); max-width: 22em; }
.pied h4 { margin: 0 0 var(--e-3); font-size: var(--t-legende); font-weight: 600; color: var(--texte-3); }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e-2); }
.pied ul a { color: var(--texte-2); text-decoration: none; font-size: var(--t-petit); }
@media (hover: hover) { .pied ul a:hover { color: var(--texte); } }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--e-3); margin-top: var(--e-7); padding-top: var(--e-5); border-top: 1px solid var(--trait-doux); }
.pied-bas a { color: inherit; }
@media (max-width: 760px) { .pied-in { grid-template-columns: 1fr 1fr; } .pied-in > div:first-child { grid-column: 1 / -1; } }

/* ── Les tâches (17/10/2026) : la photo d'une pro au travail, et chaque tâche arrive en notification dessus ──
   Grand écran : la photo reste à côté de la liste pendant qu'on la fait défiler (js/mouvement.js montre la
   notification de la tâche atteinte, les deux dernières restent). Téléphone, animations réduites, sans script :
   la photo entre le titre et la liste, avec sa première notification posée dessus. Les cartes débordent sous la
   photo : elles ne cachent ni le visage ni les mains de la pro. */
.taches-grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); grid-template-areas: "tete visuel" "liste visuel"; column-gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.taches-grille > .bloc-tete { grid-area: tete; }
.taches-grille > .taches { grid-area: liste; }
.taches-grille .taches li { grid-template-columns: 2.6rem minmax(0, 1fr); }
.taches-grille .taches li p { grid-column: 2; }
.taches-visuel { grid-area: visuel; position: sticky; top: 7rem; padding-bottom: 4.5rem; }
.taches-photo-boite { overflow: hidden; border-radius: 24px; aspect-ratio: 4 / 5; background: var(--surface); }
.taches-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
html.mouvement .taches-photo { scale: 1.08; } /* de la marge pour la profondeur au défilement */
.taches-notifs { position: absolute; left: -2.75rem; bottom: 1.5rem; width: min(calc(100% + 1rem), 21rem); display: flex; flex-direction: column; gap: 0.6rem; }
.taches-notifs .notif { box-shadow: 0 1px 0 oklch(1 0 0 / 0.05) inset, 0 28px 60px oklch(0 0 0 / 0.55); }
.taches-notifs .notif:nth-child(n+3) { display: none; }
html.mouvement .taches-notifs .notif { display: none; }
html.mouvement .taches-notifs .notif.vue { display: grid; animation: notif-arrive 520ms var(--ease-sortie) both; }
@keyframes notif-arrive { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
@media (max-width: 960px) {
  .taches-grille { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tete" "visuel" "liste"; }
  .taches-visuel { position: relative; top: auto; padding-bottom: 0; margin-bottom: var(--e-8); }
  .taches-photo-boite { aspect-ratio: 4 / 3.4; }
  .taches-notifs { left: auto; right: -0.25rem; bottom: -2.25rem; width: min(calc(100% - 1.25rem), 21rem); }
  .taches-notifs .notif:nth-child(n+2), html.mouvement .taches-notifs .notif.vue:nth-child(n+2) { display: none; }
  html.mouvement .taches-notifs .notif:first-child { display: grid; }
}

/* ── Haut de page vivant (16/10/2026) : la photo d'une pro au travail, la journée posée dessus ── */
.haut-visuel { position: relative; padding-bottom: 3rem; }
.haut-photo { display: block; width: 80%; margin-left: auto; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 24px; background: var(--surface); }
.haut-visuel .journee { position: absolute; left: 0; bottom: 0; width: min(100%, 25.5rem); box-shadow: 0 1px 0 oklch(1 0 0 / 0.05) inset, 0 40px 80px oklch(0 0 0 / 0.5); }
/* La journée garde sa hauteur : un nouvel événement arrive en haut, le plus ancien sort par le bas */
.journee ol { height: 22.5rem; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
/* L'arrivée elle-même est jouée par le script (transform et opacité seulement) ; « à l'instant » s'efface en douceur */
.journee li[data-fil] .qui::after { content: attr(data-instant); margin-left: 0.5em; font-size: var(--t-legende); font-weight: 500; color: var(--accent-texte); opacity: 0; transition: opacity 600ms var(--ease); }
.journee li.nouveau .qui::after { opacity: 1; }
.journee-tete .legende { display: inline-block; } /* le compteur défile quand un rendez-vous arrive */
@media (max-width: 960px) {
  .haut-photo { width: 100%; aspect-ratio: 4 / 3.4; }
  .haut-visuel { padding-bottom: 0; }
  .haut-visuel .journee { position: relative; width: calc(100% - 1.25rem); margin: -7rem 0 0 auto; }
}
@media (max-width: 520px) { .journee ol { height: 24rem; } }

/* ── La bande des métiers ── */
.bande-metiers { padding-block: 0 var(--e-9); }
.bande-titre { color: var(--texte-3); font-size: var(--t-petit); margin-bottom: var(--e-4); }
.tuiles-metiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--e-3); }
.tuiles-metiers a { position: relative; display: block; border-radius: var(--rayon-grand); overflow: hidden; aspect-ratio: 3 / 4; color: var(--craie); text-decoration: none; background: var(--surface); transition: transform var(--duree-ressort) var(--ressort); }
.tuiles-metiers a:active { transform: scale(0.98); }
.tuiles-metiers img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-sortie); }
.tuiles-metiers a::after { content: ''; position: absolute; inset: 45% 0 0 0; background: linear-gradient(to top, oklch(0.1 0.005 230 / 0.82), transparent); pointer-events: none; }
.tuiles-metiers span { position: absolute; left: 1rem; bottom: 0.9rem; z-index: 1; font-family: var(--police-titre); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; }
@media (hover: hover) and (pointer: fine) { .tuiles-metiers a:hover img { transform: scale(1.05); } }
@media (max-width: 760px) {
  .tuiles-metiers { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; margin-inline: calc(-1 * var(--marge)); padding-inline: var(--marge); scrollbar-width: none; }
  .tuiles-metiers::-webkit-scrollbar { display: none; }
  .tuiles-metiers li { scroll-snap-align: start; }
}

/* ── Le message de l'agenda dans la démo du bot : le rendez-vous est posé ── */
.systeme { align-self: center; display: inline-flex; align-items: center; gap: 0.5em; margin: 0.4rem 0; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--accent-doux); color: var(--accent-texte); font-size: var(--t-legende); font-weight: 600; animation: bulle-entre 260ms var(--ease-sortie); }
.systeme .s-mini { height: 0.72em; --inf-fond: var(--accent-doux); }

/* ── Retouches d'après emil-design-eng, apple-design et ui-ux-pro-max (16/10/2026) ── */
/* Les petits boutons de la démo s'enfoncent sous le doigt, comme les grands */
.metiers button, .idees button { transition: color var(--duree-court) var(--ease), border-color var(--duree-court) var(--ease), background-color var(--duree-court) var(--ease), transform var(--duree-ressort) var(--ressort); }
.metiers button:active, .idees button:active { transform: scale(0.97); }
/* Sur écran tactile, les suggestions font 44 px de haut (taille minimale d'une cible au doigt) */
@media (pointer: coarse) { .idees button { min-height: 2.75rem; } .metiers button { min-height: 2.75rem; } }
/* Animations réduites : plus de mouvement, mais les apparitions gardent un court fondu */
@media (prefers-reduced-motion: reduce) {
  html.js [data-entree] { opacity: 0; transform: none; transition: opacity 200ms ease !important; transition-delay: 0ms !important; }
  html.js [data-entree].visible { opacity: 1; }
}

/* ── Le mouvement : GSAP et Lenis (js/mouvement.js, 16/10/2026) ── */
/* Lenis fait défiler la page lui-même : le défilement doux du navigateur doit se taire (règles de lenis.css) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
/* Les caches des lignes de titre laissent passer les jambages (p, q) et les accents, sans changer la mise en page :
   le titre découpé passe en colonne flexible, où les marges négatives des caches ne se chevauchent pas */
:is(h1, h2):has(> .ligne-mask) { display: flex; flex-direction: column; } /* seulement une fois les caches posés : le découpage mesure les lignes avant */
.ligne-mask { padding: 0.12em 0 0.2em; margin: -0.12em 0 -0.2em; }
/* Les trois étapes : un trait lagon court sur le filet du haut, le numéro s'allume quand le trait part */
.etapes li { position: relative; --rempli: 0; }
html.mouvement .etapes li::after { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent); transform: scaleX(var(--rempli)); transform-origin: left center; }
.etapes li::before { transition: color 500ms var(--ease); }
html.mouvement .etapes li.atteinte::before { color: var(--accent-texte); }
