/* Lot 336 (22/11/2026) : l'Espace à deux, « prévoir ensemble » (couple/index.php). Jetons --color-* du site (thèmes clair et
   sombre), cibles d'au moins 44 px, aucune couleur seule pour dire un état. */

.co-visuel-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Un changement de plan reçu : net, calme, comme un signal. */
.co-imprevu-recu { margin: 0 0 1rem; padding: .9rem 1rem; border: 2px solid var(--color-primary); border-radius: 12px; background: var(--color-surface); }
.co-imprevu-recu p { margin: 0 0 .4rem; }
.co-imprevu-recu .cp-bloc-titre { display: block; }
.co-imprevu-ligne strong { font-size: 1.1rem; overflow-wrap: anywhere; }
.co-imprevu-recu .btn { min-height: 44px; }
.co-imprevu-envoi { margin: .6rem 0 .4rem; }
.co-imprevu-envoi summary, .co-preparer summary, .co-motif-repere summary, .co-essayes-rappel summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.co-imprevu-envoi form { margin-top: .5rem; }
.co-imprevu-envoi .btn { min-height: 44px; }

/* Le point de la semaine : des étapes numérotées, une carte chacune. */
.co-semaine-jour { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .6rem 0 1rem; }
.co-semaine-jour select { min-height: 44px; padding: .3rem .6rem; border: 1px solid var(--color-border-strong, var(--color-border)); border-radius: 10px; font: inherit; background: var(--color-bg); color: var(--color-ink); }
.co-semaine { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.co-semaine h3 { margin-top: 0; }
.co-semaine ul { margin: .3rem 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.co-semaine-fait { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1.2rem 0; }
.co-semaine-fait .btn { min-height: 48px; }

/* Sorties et événements. */
.co-sortie h3 { margin: .2rem 0 .5rem; }
.co-sortie-passee { opacity: .9; }
.co-so-parts { list-style: none; margin: .5rem 0; padding: 0; display: grid; gap: .3rem; }
.co-so-part { margin-top: .5rem; }
.co-so-bilan { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .6rem 0; }
.co-so-bilan .btn { min-height: 44px; }

/* Qui porte quoi. */
.co-charge { margin: .4rem 0 .6rem; }
.co-taches, .co-maison { width: 100%; border-collapse: collapse; margin: .4rem 0 1rem; }
.co-taches th, .co-taches td, .co-maison th, .co-maison td { padding: .5rem .6rem; border: 1px solid var(--color-border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.co-taches thead th, .co-maison thead th { background: var(--color-bg); }
.co-taches th:last-child, .co-taches td:last-child { white-space: nowrap; width: 1%; }
.co-tache-ligne { border: 0; padding: 0; margin: 0 0 .4rem; display: grid; grid-template-columns: 1fr 11rem 6rem; gap: .5rem; }
.co-tache-ligne select, .co-maison-ligne input { min-height: 44px; }
.co-tache-ligne select { width: 100%; padding: .3rem .5rem; border: 1px solid var(--color-border-strong, var(--color-border)); border-radius: 10px; font: inherit; background: var(--color-bg); color: var(--color-ink); }
.co-tache-ligne .cp-champ { margin: 0; }
.co-tache-ligne + .co-tache-ligne label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* La carte sensorielle. */
.co-maison-ligne { border: 0; padding: 0; margin: 0 0 .8rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.co-maison-ligne legend { font-weight: 700; padding: 0; margin-bottom: .2rem; }
.co-maison-ligne .cp-champ { margin: 0; }

/* Avant d'en parler ; déjà essayé ; ce qui revient → mode d'emploi. */
.co-preparer { margin: 0 0 .8rem; }
.co-essayes { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.co-essayes p { margin: .2rem 0; }
.co-essayes-rappel { margin: 0 0 1rem; }
.co-essayes-rappel ul { margin: .3rem 0; padding-left: 1.2rem; }
.co-motif-repere { margin: .3rem 0 .6rem; }
.co-motif-repere form { margin-top: .3rem; }

@media (max-width: 560px) {
  .co-tache-ligne { grid-template-columns: 1fr 1fr; padding-bottom: .6rem; border-bottom: 1px solid var(--color-border); }
  .co-tache-ligne .cp-champ:first-of-type { grid-column: 1 / -1; }   /* la légende (cachée) est le premier enfant */
  .co-tache-ligne + .co-tache-ligne label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .co-maison-ligne { grid-template-columns: 1fr; }
  .co-maison thead { display: none; }
  .co-maison tr, .co-maison th, .co-maison td { display: block; }
  .co-maison td[data-qui]::before { content: attr(data-qui) " : "; font-weight: 600; color: var(--color-ink-soft); }
}
@media print { .co-imprevu-envoi, .co-semaine-jour, .co-semaine-fait, .co-so-part, .co-so-bilan, .co-preparer, .co-motif-repere { display: none !important; } }
