/* Section « Vos remarques » du portail : un seul fil, comme une messagerie. Briques destinées au produit (couleurs
   du client par les jetons du portail). Provenance par la couleur : AIT en turquoise, la personne qui lit à droite. */
#remarques .intro { max-width: 44rem; }
#remarques :is(button, input, textarea, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Qui écrit */
.identite { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; margin: 0 0 0.75rem; color: var(--doux); font-size: 0.9375rem; }
.identite b { color: var(--texte); }
.identite label { font-weight: 600; color: var(--texte); }
.identite input { font: inherit; padding: 0.5rem 0.7rem; min-height: 2.75rem; border: 2px solid var(--texte); background: var(--fond); color: var(--texte); max-width: 14rem; }
.bandeau-michael { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; max-width: 46rem; margin: 0 0 1rem; padding: 0.55rem 0.9rem; background: var(--accent2-fond); color: var(--accent2-fond-texte); font-weight: 600; }
.bandeau-michael button { min-height: 2.75rem; padding: 0.25rem 0.8rem; border: 2px solid currentColor; background: transparent; color: inherit; font: inherit; cursor: pointer; }

/* Boutons */
.bouton { cursor: pointer; font: inherit; color: var(--texte); }
.bouton--plein { background: var(--texte); color: var(--fond); }
.bouton--plein:hover { background: var(--accent-fond); border-color: var(--accent-fond); color: var(--accent-fond-texte); }
.bouton[disabled] { opacity: 0.45; cursor: not-allowed; }
.bouton svg, .icone svg { width: 1.15em; height: 1.15em; flex: none; }
.lien { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; cursor: pointer; }
.petit { min-height: 2.75rem; padding: 0.3rem 0.8rem; border: 1px solid var(--trait); background: var(--fond); color: var(--texte); font: inherit; font-size: 0.875rem; cursor: pointer; }
.petit:hover { border-color: var(--texte); }
.icone { display: inline-grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border: 2px solid var(--texte); border-radius: 50%; background: var(--fond); color: var(--texte); font: inherit; cursor: pointer; }
.icone--plein { background: var(--texte); color: var(--fond); }
.icone--leger { border-color: transparent; background: none; color: var(--doux); }
.icone--leger:hover { color: var(--texte); border-color: var(--trait); }
.outils { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.outils .pousser { margin-left: auto; }

/* La conversation */
.conversation { border: 2px solid var(--texte); background: var(--fond); max-width: 46rem; margin-top: 0.5rem; }
.messages { list-style: none; margin: 0; padding: 0.75rem 0.75rem 0.5rem; display: flex; flex-direction: column; gap: 0.55rem; }
.messages .vide { color: var(--doux); padding: 0.5rem 0.25rem; max-width: none; }
.replie { align-self: center; max-width: none; }
.precedents { min-height: 2.75rem; padding: 0.3rem 0.9rem; border: 1px dashed var(--doux); border-radius: 999px; background: none; color: var(--texte); font: inherit; font-size: 0.875rem; cursor: pointer; }
.msg { display: flex; flex-direction: column; align-items: flex-start; align-self: flex-start; max-width: min(88%, 34rem); min-width: 0; border-radius: 12px; transition: background-color 0.4s; }
.msg--moi { align-self: flex-end; align-items: flex-end; }
.msg.surbrillance { background: color-mix(in srgb, var(--accent-fond) 14%, transparent); }
@media (prefers-reduced-motion: reduce) { .msg { transition: none; } }
.auteur { margin: 0 0 0.15rem 0.3rem; font-size: 0.8125rem; font-weight: 700; }
.badge-ait { display: inline-block; margin-left: 0.35rem; padding: 0 0.45rem; border-radius: 999px; background: var(--accent2-fond); color: var(--accent2-fond-texte); font-size: 0.75rem; font-weight: 700; line-height: 1.5; vertical-align: 0.05em; }
.bulle-ligne { display: flex; align-items: flex-start; gap: 0.35rem; max-width: 100%; }
.msg--moi .bulle-ligne { flex-direction: row-reverse; }
.bulle { min-width: 0; padding: 0.55rem 0.8rem; border: 1.5px solid var(--trait); border-radius: 16px 16px 16px 4px; background: var(--fond); overflow-wrap: anywhere; }
.msg--moi .bulle { background: var(--surface); border-color: var(--surface); border-radius: 16px 16px 4px 16px; }
.msg--ait .bulle { border-left: 4px solid var(--accent2-fond); }
.msg--moi.msg--ait .bulle { border-left: 1.5px solid var(--surface); border-right: 4px solid var(--accent2-fond); }
.bulle .texte { margin: 0; white-space: pre-line; }
/* Le message cité, en tête de la bulle (comme une réponse WhatsApp) */
.citation { display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem; width: 100%; min-height: 2.75rem; margin: 0 0 0.4rem; padding: 0.3rem 0.6rem; border: 0; border-left: 3px solid var(--accent-fond); border-radius: 6px; background: color-mix(in srgb, var(--texte) 6%, transparent); color: var(--texte); font: inherit; font-size: 0.8125rem; text-align: left; cursor: pointer; }
.citation b { font-weight: 700; }
.citation span { color: var(--doux); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.citation--retiree { display: block; min-height: 0; font-style: italic; color: var(--doux); cursor: default; }
.heure-ligne { display: flex; align-items: center; gap: 0.6rem; margin: 0 0.3rem; color: var(--doux); font-size: 0.75rem; }
.heure-ligne .repondre { font-size: 0.8125rem; color: var(--texte); }
.msg--masque .bulle, .msg--masque .auteur { opacity: 0.5; }
.masque-ligne { margin: 0 0 0.15rem 0.3rem; font-size: 0.8125rem; font-weight: 700; }
.actions-msg { flex: none; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: none; color: var(--doux); font: inherit; font-size: 1.2rem; cursor: pointer; }
.actions-msg:hover, .actions-msg[aria-expanded="true"] { background: var(--surface); color: var(--texte); }
.menu { margin-top: 0.25rem; }
.transcription { margin: 0.05rem 0.3rem 0; font-size: 0.875rem; }
.transcription summary { display: inline-flex; align-items: center; min-height: 2.75rem; cursor: pointer; color: var(--texte); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; list-style: none; }
.transcription summary::-webkit-details-marker { display: none; }
.transcription p { margin: 0 0 0.25rem; padding-left: 0.6rem; border-left: 3px solid var(--trait); color: var(--doux); max-width: 30rem; }
.a-venir { margin: 0.2rem 0.3rem 0; color: var(--doux); font-size: 0.8125rem; }
.brouillon .bulle { border: 2px dashed var(--texte); background: var(--fond); }
.brouillon .etiquette { margin: 0 0 0.35rem; font-size: 0.8125rem; font-weight: 700; }
.brouillon textarea { display: block; width: 100%; min-height: 6rem; font: inherit; padding: 0.6rem 0.75rem; border: 2px solid var(--texte); background: var(--fond); color: var(--texte); }

/* Écoute */
.lecteur { display: flex; align-items: center; gap: 0.6rem; min-width: min(16rem, 62vw); }
.jouer { display: inline-grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid var(--texte); background: var(--fond); color: var(--texte); font: inherit; font-size: 0.9rem; cursor: pointer; }
.jouer[aria-pressed="true"] { background: var(--texte); color: var(--fond); }
.temps { flex: none; color: var(--doux); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
/* Barre de lecture : un trait fin, une zone de toucher de 44 px. */
.position { -webkit-appearance: none; appearance: none; flex: 1 1 auto; min-width: 4rem; height: 2.75rem; margin: 0; background: transparent; cursor: pointer; }
.position::-webkit-slider-runnable-track { height: 0.3rem; border-radius: 1rem; background: var(--trait); }
.position::-moz-range-track { height: 0.3rem; border-radius: 1rem; background: var(--trait); }
.position::-moz-range-progress { height: 0.3rem; border-radius: 1rem; background: var(--accent-fond); }
.position::-webkit-slider-thumb { -webkit-appearance: none; width: 1.1rem; height: 1.1rem; margin-top: -0.4rem; border-radius: 50%; background: var(--accent-fond); border: 2px solid var(--fond); }
.position::-moz-range-thumb { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--accent-fond); border: 2px solid var(--fond); }

/* La barre d'écriture, en bas du fil */
.barre { border-top: 1px solid var(--trait); padding: 0.6rem 0.75rem 0.75rem; }
.ecrire-en-tant { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.4rem; margin: 0 0 0.25rem; color: var(--doux); font-size: 0.875rem; }
.ecrire-en-tant b { color: var(--texte); }
.ecrire-en-tant .lien { font-size: 0.875rem; color: var(--texte); }
.ecrire-en-tant .badge-ait { margin-left: 0.1rem; }
.qui-etes-vous { margin: 0 0 0.6rem; }
.qui-titre { margin: 0 0 0.4rem; font-weight: 700; }
.choix { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.choix-nom { min-height: 2.75rem; padding: 0.3rem 1rem; border: 2px solid var(--texte); border-radius: 999px; background: var(--fond); color: var(--texte); font: inherit; font-weight: 600; cursor: pointer; }
.choix-nom[aria-pressed="true"] { background: var(--texte); color: var(--fond); }
.champ--ligne { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem; margin: 0.6rem 0 0; }
.champ--ligne label { width: 100%; margin: 0; }
.champ--ligne input { flex: 1 1 10rem; }
.qui-etes-vous > .lien { font-size: 0.875rem; margin-top: 0.25rem; }
.repondre-a { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.5rem; }
.repondre-a .citation { flex: 1 1 auto; margin: 0; cursor: default; }
.champ { margin: 0 0 0.6rem; }
.champ label { display: block; font-weight: 600; margin: 0 0 0.3rem; }
.champ .aide { font-weight: 400; color: var(--doux); font-size: 0.875rem; }
.champ input { display: block; width: 100%; max-width: 18rem; font: inherit; color: var(--texte); background: var(--fond); border: 2px solid var(--texte); padding: 0.55rem 0.75rem; min-height: 2.75rem; }
.saisie { display: flex; align-items: flex-end; gap: 0.5rem; }
.saisie textarea { flex: 1 1 auto; min-width: 0; min-height: 2.75rem; max-height: 9rem; resize: none; font: inherit; line-height: 1.4; padding: 0.55rem 0.9rem; border: 2px solid var(--texte); border-radius: 1.4rem; background: var(--fond); color: var(--texte); }
.enreg { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; padding: 0.6rem 0.8rem; border: 2px dashed var(--accent-fond); }
.enreg .point { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--accent-fond); animation: battement 1s ease-in-out infinite; }
@keyframes battement { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .enreg .point { animation: none; } }
.enreg .chrono { font-weight: 700; font-variant-numeric: tabular-nums; }
.enreg .sur { color: var(--doux); font-size: 0.875rem; }
.apercu-titre { margin: 0 0 0.25rem; font-weight: 600; font-size: 0.9375rem; }
.erreur { color: var(--accent); font-weight: 600; margin: 0.5rem 0 0; }
.erreur .bouton { margin-left: 0.5rem; }

/* Les données */
.donnees { margin: 0.25rem 0 0; max-width: 46rem; font-size: 0.9375rem; }
.donnees summary { display: inline-flex; align-items: center; min-height: 2.75rem; cursor: pointer; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.donnees dl { margin: 0.25rem 0 0; padding: 0.75rem 1rem; border-left: 3px solid var(--trait); }
.donnees dt { font-weight: 700; margin-top: 0.6rem; }
.donnees dt:first-child { margin-top: 0; }
.donnees dd { margin: 0.1rem 0 0; color: var(--doux); }
