/* Charte « Vitre » (session VITRE1) : pages de l'espace élève (mes révisions, mes paiements, états du
   carnet, questionnaires, paiement, demandes). Chargée après app.css (base.html). Aucune vitre ici. Les
   listes sont des lignes séparées par des filets, sans carte à ombre ; les états s'écrivent en toutes
   lettres (plus de pilule ni de badge, sauf les filtres) ; la date d'une révision en grand, en orange.
   L'accueil connecté, les cours, les missions, l'offre et les tarifs ont leurs règles dans app.css et
   cours.css ; « Mon carnet » (gabarit_carnet) ne charge pas cette feuille. */

/* ---------- États en toutes lettres : plus de pilule ni de badge. ---------- */
.crt-pastille, .crt-badge, .crt-tag {
  padding: 0; background: none; border-radius: 0; color: var(--muted); font-weight: 700;
}
.crt-pastille-ok, .crt-badge-faite, .crt-badge-pret { color: var(--acc); }
.crt-pastille-danger, .crt-badge-annulee { color: var(--danger); }
.crt-tag { color: var(--carnet); }
.crt-tag-rev { color: var(--rev); }
.crt-d3-ombre { box-shadow: none; }

/* ---------- Mes révisions : une liste triée par date, la date en grand en orange. ---------- */
.crt-rev-page .crt-missions, .crt-rev-page .crt-rev-partagees { display: block; gap: 0; border-top: 1.5px solid var(--ink); }
.crt-rev-page .crt-mission, .crt-rev-page .crt-rev-partagees .crt-d3-ligne {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-content: start;
  padding: 16px 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none;
}
.crt-rev-page .crt-rev-partagees .crt-d3-ligne { display: flex; max-width: none; }
.crt-rev-page .crt-mission > * { grid-column: 2; }
.crt-rev-page .crt-mission > .crt-mission-jour { grid-column: 1; grid-row: 1 / span 8; }
.crt-rev-page .crt-mission:has(.crt-mission-lien:hover) { border-color: var(--line); }
.crt-rev-page .crt-mission:has(.crt-mission-lien:hover) h3 { text-decoration: underline; text-underline-offset: 3px; }
.crt-mission-jour { display: flex; flex-direction: column; color: var(--rev); font-weight: 700; font-size: 14px; line-height: 1.2; }
.crt-mission-jour b { font: 700 40px/1 var(--f-display); font-variant-numeric: lining-nums; }
@media (min-width: 900px) {
  .crt-rev-page .crt-mission { grid-template-columns: 96px minmax(0, 1fr); padding: 20px 0; }
  .crt-mission-jour b { font-size: 52px; }
}
.crt-rev-page .crt-mission h3 { font: 700 19px/1.3 var(--f-display); }
.crt-rev-page .crt-mission-suite { color: var(--rev); text-decoration: underline; text-underline-offset: 3px; }
.crt-rev-page .crt-calme { background: none; border: 0; border-left: 2px solid var(--rev); border-radius: 0; padding: 4px 0 4px 16px; }

/* ---------- Mes paiements : l'abonnement en lignes, les reçus en tableau à filets. ---------- */
.crt-pay-page .crt-d3-carte { background: none; border: 0; border-radius: 0; box-shadow: none; }
.crt-pay-page .crt-pay-abo { border-top: 1.5px solid var(--ink); padding: 18px 0 0; }
.crt-pay-page .crt-pay-tableau { border-top: 1.5px solid var(--ink); }
.crt-pay-page .crt-pay-tableau .crt-achat { padding-inline: 0; }
.crt-pay-page .crt-pay-tableau .crt-achat:last-child { border-bottom: 1px solid var(--line); }
.crt-pay-page .crt-pay-vide { border-top: 1px solid var(--line); padding: 14px 0; }
.crt-pay-page h1, .crt-pay-page h2 { font-family: var(--f-display); font-weight: 700; }
.crt-pay-echeance dd { font: 700 32px/1 var(--f-display); color: var(--rev); }
/* Les offres en lignes : nom et rythme à gauche, prix à droite, la conseillée en vert pâle. */
.crt-pay-offres { gap: 0; border-top: 1px solid var(--line); }
.crt-pay-offre {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 2px; align-items: baseline;
  padding: 14px 12px; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
}
.crt-pay-offre > * { grid-column: 1; }
.crt-pay-offre > .crt-pay-offre-prix { grid-column: 2; grid-row: 1; text-align: right; }
.crt-pay-offre > .btn, .crt-pay-offre > form { grid-column: 1 / -1; width: auto; justify-self: start; margin-top: 8px; }
.crt-pay-offre-reco { padding: 14px 12px; border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid var(--acc); background: var(--acc-soft); }
.crt-pay-offres-changer .crt-pay-offre, .crt-pay-offres-changer .crt-pay-offre-reco { padding: 10px 12px; }
.crt-pay-offre-prix b { font-weight: 700; }

/* ---------- Questionnaires : une question en grand, des réponses en lignes à filets. ---------- */
.crt-card.crt-pile { box-shadow: none; background: none; border: 0; border-radius: 0; padding: 0; }
.crt-q-page h1, .crt-q-page h2, .crt-q-page legend { font-family: var(--f-display); font-weight: 700; }
.crt-q-page .crt-seg.crt-options { gap: 0; border-top: 1px solid var(--line); }
.crt-q-page .crt-seg.crt-options label {
  border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; border-radius: 0; background: none; padding-left: 13px;
}
.crt-q-page .crt-seg.crt-options input:checked + label { background: var(--acc-soft); border-left-color: var(--acc); border-bottom-color: var(--line); }
.crt-q-page .crt-seg.crt-options label:hover { border-bottom-color: var(--line); border-left-color: var(--acc); }
.crt-q-encadre { background: none; border: 0; border-left: 2px solid var(--acc); border-radius: 0; padding: 4px 0 4px 16px; box-shadow: none; }

/* ---------- Merci, demandes, états du carnet, paiement : sans carte à ombre. ---------- */
.crt-wrap-espace .crt-card:not(.crt-fo-recap) { box-shadow: none; }
.crt-calme.crt-card, .crt-calme.crt-d3-carte { background: none; border: 0; border-left: 2px solid var(--acc); border-radius: 0; padding: 4px 0 4px 16px; }

/* ---------- Session MOB2 : l'espace sur téléphone. Zones de touche de 44 px (logo, menu ⋮, liens seuls
   sur leur ligne, titres cliquables des listes) ; la barre d'onglets du bas est dans nav-bas.css. ---------- */
@media (max-width: 760px) {
  .crt-panneau-entete .crt-panneau-logo, .crt-logo-seul { min-height: 44px; }
  /* Le tiroir du menu ⋮ (avec JavaScript ; sans, le menu en bas de page garde sa mise en page). */
  .crt-panneau-js .crt-panneau .crt-panneau-fermer { width: 44px; height: 44px; }
  .crt-panneau-js .crt-panneau .crt-panneau-lien { min-height: 44px; padding-block: 11px; box-sizing: border-box; }
  .crt-panneau-js .crt-panneau .crt-theme-choix { min-height: 44px; }
  .crt-panneau-js .crt-panneau-legal a { display: inline-block; padding-block: 13px; }
  .crt-lien-touche, .crt-back, .crt-voir-exemple, .crt-d3-pied a { display: inline-flex; align-items: center; min-height: 44px; }
  .crt-back { margin-bottom: 0; }
  .crt-mc-lien, .crt-mission-lien, .crt-d3-nom { display: block; padding-block: 8px; min-height: 44px; box-sizing: border-box; }
  .crt-compte-lien input { min-height: 44px; }
}
