/* La porte d'entrée d'OnPsy (15-09-2026).
   Les couleurs et les polices de l'application elle-même (page.html), pas celles de TimeKraft : c'est l'outil du
   cabinet. L'élément qu'on retient est la page de rapport à gauche, dont les lignes s'écrivent une fois au chargement ;
   tout le reste reste calme. Aucun style en ligne dans le HTML : tout vit ici. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --fond: #F5F8FB; --surface: #FFFFFF; --encre: #182B36; --gris: #5E707C;
  --action: #087E8B; --action-fort: #066A75; --selection: #E6F4F5; --ligne: #E1E8EE;
  --vert: #1F7A5C; --vert-fond: #E4F3ED; --rouge: #A8322B; --rouge-fond: #FBEFEE;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --doc: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

body.porte-corps {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--encre);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.porte { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }

/* ── À gauche : la marque, l'accroche, une page de rapport ─────────────── */
.porte-visuel {
  background: var(--encre);
  color: #FFFFFF;
  padding: 44px 56px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.porte-logo { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.porte-logo i { font-style: normal; color: #5FC4CE; }
.porte-logo small { display: block; font-size: 12px; font-weight: 500; color: #9FB4C0; margin-top: 3px; letter-spacing: 0; }

.porte-accroche { margin-top: auto; padding-top: 48px; max-width: 30rem; }
.porte-accroche h1 {
  font-family: var(--doc);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 16px;
}
.porte-accroche p { font-size: 15.5px; line-height: 1.65; color: #C3D1D9; margin: 0; max-width: 26rem; }

.porte-feuille {
  margin-top: 44px;
  max-width: 30rem;
  height: 15.5rem;
  background: var(--surface);
  color: var(--encre);
  border-radius: 12px 12px 0 0;
  padding: 30px 34px 0;
  box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, .55);
}
.f-rub { margin-bottom: 20px; }
.f-rub h3 {
  font-family: var(--doc);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 9px;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* la même étiquette que dans l'application quand une rubrique est marquée relue */
.f-rub h3 em {
  font-family: var(--ui);
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--vert);
  background: var(--vert-fond);
  border-radius: 20px;
  padding: 1px 9px;
}
.f-l {
  display: block;
  height: 8px;
  margin: 7px 0;
  border-radius: 4px;
  background: #E7EDF2;
  transform-origin: left center;
  animation: ecrit .7s cubic-bezier(.2, .7, .2, 1) both;
}
.l1 { width: 92%; animation-delay: .25s; }
.l2 { width: 64%; animation-delay: .38s; }
.l3 { width: 88%; animation-delay: .6s; }
.l4 { width: 95%; animation-delay: .72s; }
.l5 { width: 52%; animation-delay: .84s; }
.l6 { width: 80%; animation-delay: 1.04s; }
.l7 { width: 58%; animation-delay: 1.16s; }
@keyframes ecrit { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── À droite : le formulaire ─────────────────────────────────────────── */
.porte-panneau { display: flex; align-items: center; justify-content: center; padding: 48px 40px; }
.porte-carte { width: 100%; max-width: 22rem; }
.porte-titre { font-family: var(--doc); font-size: 28px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.porte-sous { color: var(--gris); margin: 8px 0 28px; line-height: 1.6; }

.porte-alerte, .porte-info { border-radius: 8px; padding: 11px 13px; font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.porte-alerte { background: var(--rouge-fond); border-left: 3px solid var(--rouge); color: var(--rouge); }
.porte-info { background: var(--selection); border-left: 3px solid var(--action); color: var(--action-fort); }

.porte-etiquette { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.porte-champ {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
  color: var(--encre);
  background: var(--fond);
  border: 1px solid var(--ligne);
  border-radius: 10px;
  margin-bottom: 18px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.porte-champ:focus { border-color: var(--action); background: var(--surface); box-shadow: 0 0 0 3px rgba(8, 126, 139, .16); }
.porte-champ.dernier { margin-bottom: 26px; }

.porte-bouton {
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--action);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease;
}
.porte-bouton:hover { background: var(--action-fort); }
.porte-bouton:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }

.porte-pied { font-size: 12.5px; color: var(--gris); margin: 36px 0 0; line-height: 1.6; }

/* ── Sur téléphone : la marque en bandeau, la page de rapport disparaît ── */
@media (max-width: 860px) {
  .porte { grid-template-columns: 1fr; }
  .porte-visuel { padding: 26px 24px 28px; }
  .porte-accroche { padding-top: 22px; }
  .porte-accroche h1 { font-size: 27px; }
  .porte-accroche p { font-size: 14.5px; }
  .porte-feuille { display: none; }
  .porte-panneau { padding: 32px 24px 44px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .f-l { animation: none; }
  .porte-champ, .porte-bouton { transition: none; }
}
