/* Yamoo Drive — Lya « Champagne » : panneau de conversation, propositions, voix, devis vivant (#devis) et envoi (#envoi).
   Couche « vues » (passe après la coquille d'app.css). Couleurs uniquement par jetons (tokens.css), éventuellement
   mélangés avec color-mix. Mobile d'abord. Sobre : en-tête ivoire et filet fin, fil sur crème, bulles ivoire et encre,
   or champagne pour l'envoi, les coches et les petits détails ; titres en Instrument Serif, jamais en gras. */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

@layer vues {

  /* ============================== Panneau ============================== */
  #lya.feuille { background: var(--creme); }
  @media (min-width: 1280px) { #lya.feuille { width: min(456px, 100vw - 32px); } }
  #lya .poignee { position: absolute; top: 0; left: 50%; z-index: 3; margin-left: -20px; background: var(--trait-2); }

  /* En-tête : ivoire, filet fin ; avatar encre cerclé d'or, nom en serif, statut gris */
  .lya-tete {
    position: relative;
    gap: var(--s-3); padding: 20px 16px 14px 18px;
    background: var(--ivoire); color: var(--encre);
  }
  #lya .feuille-tete.lya-tete { border-bottom: 1px solid var(--trait); }
  .lya-avatar {
    position: relative; flex: none;
    display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--encre); color: var(--or-clair);
    box-shadow: 0 0 0 1px var(--or), 0 0 0 4px var(--ivoire), 0 0 0 5px var(--trait);
  }
  .lya-avatar .lya-robot { transform: scale(.8); }
  /* 320 px : l'avatar (décoratif) cède sa place au statut, qui tient alors sur deux lignes */
  @media (max-width: 359px) { .lya-avatar { display: none; } }
  .lya-titre { flex: 1; min-width: 0; }
  #lya .lya-titre h3 { font-family: var(--serif); font-size: 1.875rem; font-weight: 400; line-height: 1; letter-spacing: var(--serre); color: var(--encre); }
  .lya-statut { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .8125rem; line-height: 1.35; color: var(--gris); text-wrap: balance; }
  .lya-statut .point { width: 7px; height: 7px; color: var(--palme); background: var(--palme); }
  .lya-tete .icon-btn { background: var(--ivoire); color: var(--encre); box-shadow: inset 0 0 0 1px var(--trait-2); }
  .lya-tete .icon-btn[aria-pressed="true"] { background: var(--encre); color: var(--or-clair); box-shadow: none; }
  @media (hover: hover) { .lya-tete .icon-btn:hover { box-shadow: inset 0 0 0 1px var(--encre); } }

  .lya-sessions { flex: 0 0 auto; max-height: 38dvh; overflow: auto; padding: 6px 16px; border-bottom: 1px solid var(--trait); }
  .lya-sessions summary { width: fit-content; cursor: pointer; font-weight: 600; padding: 8px 0; }
  .lya-sessions-outils { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; padding: 0 0 8px; }
  .lya-sessions-outils form { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
  .lya-sessions-outils > button:last-child { grid-column: 1 / -1; justify-self: start; }
  .lya-sessions-outils .champ { min-width: 0; }
  #lya .feuille-corps.lya-corps {
    gap: 0; padding: 20px 16px 24px;
    background: var(--creme);
    scroll-padding-bottom: 16px;
  }
  #lya .fil { display: flex; flex-direction: column; gap: 14px; }

  /* Lignes et bulles */
  .lya-ligne { display: flex; align-items: flex-end; gap: 8px; animation: lya-entree 360ms var(--ease) both; }
  .lya-ligne.moi { justify-content: flex-end; }
  .lya-ligne.large { display: block; }
  .lya-ligne.large > .lya-mini { display: none; }
  @keyframes lya-entree { from { opacity: 0; transform: translateY(8px); } }
  .lya-mini {
    position: relative; flex: none; width: 28px; height: 28px; margin-bottom: 2px; border-radius: 50%;
    background: var(--encre); box-shadow: 0 0 0 1px var(--or);
  }
  .lya-mini::before, .lya-mini::after { content: ""; position: absolute; top: 10px; width: 3px; height: 5px; border-radius: 2px; background: var(--or-clair); }
  .lya-mini::before { left: 8.5px; } .lya-mini::after { right: 8.5px; }
  #lya .bulle { max-width: min(86%, 520px); padding: 12px 16px; font-size: 1rem; line-height: 1.55; }
  #lya .bulle.lya { background: var(--ivoire); color: var(--encre); border-radius: 20px 20px 20px 6px; box-shadow: inset 0 0 0 1px var(--trait); }
  #lya .bulle.moi { background: var(--encre); color: var(--blanc); border-radius: 20px 20px 6px 20px; box-shadow: none; }
  #lya .bulle.attend { padding: 12px 16px; }
  .lya-texte + .lya-texte, .lya-texte + .lya-aide { margin-top: 8px; }
  .lya-aide { margin-top: 6px; font-size: var(--t-petit); line-height: 1.5; color: var(--gris); }
  #lya .relais { gap: 8px; margin-top: 12px; }
  .lya-action, #lya .relais a, #lya .relais button {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-pill);
    background: var(--ivoire); color: var(--encre); box-shadow: inset 0 0 0 1px var(--trait-2);
    font-size: var(--t-petit); font-weight: 600; line-height: 1.2; text-decoration: none; text-align: left;
    transition: box-shadow var(--d-2) var(--ease), transform var(--d-1) var(--ease), background-color var(--d-2), color var(--d-2);
  }
  .lya-action svg.i, #lya .relais svg.i { width: 18px; height: 18px; }
  .lya-action.fort, #lya .relais .lya-action.fort { background: var(--encre); color: var(--blanc); box-shadow: none; }
  .lya-action.fort svg.i { color: var(--or-clair); }
  .lya-action:active { transform: scale(.98); }
  @media (hover: hover) {
    .lya-action:hover, #lya .relais a:hover, #lya .relais button:hover { box-shadow: inset 0 0 0 1px var(--encre); }
    .lya-action.fort:hover { background: var(--encre-3); box-shadow: none; }
  }
  .lya-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: .78125rem; color: var(--gris); }
  .lya-source { padding: 2px 10px; border-radius: var(--r-pill); background: var(--sable); color: var(--encre); font-weight: 500; }
  .lya-note {
    align-self: center; max-width: 92%; margin: 2px auto; padding: 6px 14px; border-radius: var(--r-pill);
    background: var(--sable); color: var(--gris); font-size: .8125rem; line-height: 1.45; text-align: center;
  }
  .lya-note.alerte { border-radius: var(--r-s); background: var(--laterite-pale); color: var(--laterite); text-align: left; }
  .bulle .lya-note { margin: 8px 0 0; text-align: left; }

  /* Surtitre partagé (accueil, récapitulatif, aperçu) : petit, gris, capitales, précédé d'un filet d'or */
  .lya-surtitre {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px; font-size: var(--t-micro); font-weight: 600; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; color: var(--gris);
  }
  .lya-surtitre::before { content: ""; flex: none; width: 20px; height: 1px; background: var(--or); }

  /* Accueil : carte ivoire, grand titre serif, exemples en lignes fines */
  .lya-bienvenue {
    position: relative;
    padding: 24px 22px 20px; border-radius: var(--r-carte);
    background: var(--ivoire); box-shadow: inset 0 0 0 1px var(--trait);
  }
  .lya-bienvenue h4 { font-family: var(--serif); font-size: clamp(2rem, 1.7rem + 1.2vw, 2.375rem); font-weight: 400; letter-spacing: var(--serre); line-height: 1.02; text-wrap: balance; }
  .lya-bienvenue h4 em { font-style: italic; color: var(--or-texte); }
  .lya-bienvenue > p:not(.lya-surtitre):not(.lya-garde) { margin-top: 12px; color: var(--gris); font-size: .9375rem; line-height: 1.55; }
  .lya-exemples { display: grid; margin-top: 18px; border-top: 1px solid var(--trait); }
  .lya-exemple {
    position: relative; display: flex; align-items: center; gap: 12px;
    min-height: 52px; padding: 12px 36px 12px 2px; border: 0; border-bottom: 1px solid var(--trait); border-radius: 0;
    background: transparent; color: var(--encre); text-align: left; font-size: .9375rem; font-weight: 500; line-height: 1.4;
    transition: color var(--d-2) var(--ease), padding var(--d-3) var(--ease);
  }
  .lya-exemple::after {
    content: ""; position: absolute; right: 8px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
    border-top: 1.5px solid var(--or-texte); border-right: 1.5px solid var(--or-texte); transform: rotate(45deg);
    transition: transform var(--d-3) var(--ease);
  }
  .lya-exemple:active { color: var(--or-texte); }
  @media (hover: hover) {
    .lya-exemple:hover { padding-left: 8px; }
    .lya-exemple:hover::after { transform: translateX(3px) rotate(45deg); }
  }
  .lya-exemple:focus-visible { outline-offset: -2px; }
  .lya-garde { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; font-size: .8125rem; line-height: 1.45; color: var(--gris); }
  .lya-garde svg.i { width: 16px; height: 16px; margin-top: 1px; color: var(--or-texte); }

  /* Information IA (consentement) */
  .lya-info-ia {
    display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start;
    padding: 14px 16px; border-radius: var(--r-m);
    background: color-mix(in srgb, var(--or-pale) 55%, var(--ivoire)); box-shadow: inset 0 0 0 1px var(--filet-or);
    font-size: .875rem; line-height: 1.5; color: var(--encre);
    animation: lya-entree 360ms var(--ease) both;
  }
  .lya-info-ia-icone { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--encre); color: var(--or-clair); }
  .lya-info-ia-icone svg.i { width: 18px; height: 18px; }
  .lya-info-ia .lya-action { grid-column: 2; justify-self: start; min-height: 44px; }

  /* ============================== Propositions (rail de cartes à l'aimant, la suivante dépasse) ============================== */
  .lya-props {
    display: grid; grid-auto-flow: column; grid-auto-columns: max(224px, 74%); gap: 12px;
    margin: 0 -16px; padding: 4px 16px 10px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    scrollbar-width: none;
    /* bords en fondu comme les rails du site : la carte suivante s'annonce sans être coupée net */
    -webkit-mask-image: linear-gradient(90deg, transparent, var(--encre) 16px, var(--encre) calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, transparent, var(--encre) 16px, var(--encre) calc(100% - 32px), transparent);
  }
  .lya-props::-webkit-scrollbar { display: none; }
  @media (min-width: 768px) and (max-width: 1023px) { .lya-props { grid-auto-columns: max(232px, 44%); } }
  .lya-carte {
    scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0;
    padding: 6px; border-radius: var(--r-carte); background: var(--ivoire);
    box-shadow: inset 0 0 0 1px var(--trait);
    animation: lya-entree 420ms var(--ease) both;
  }
  .lya-carte:nth-child(2) { animation-delay: 60ms; } .lya-carte:nth-child(3) { animation-delay: 120ms; }
  .lya-carte-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 15px; background: var(--sable); }
  .lya-carte-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-4) var(--ease); }
  /* étiquette opaque sur la photo : palme sur ivoire, 5,9:1 quelle que soit l'image dessous */
  .lya-carte-media .tag { position: absolute; top: 10px; left: 10px; background: var(--ivoire); box-shadow: var(--ombre-1); }
  @media (hover: hover) { .lya-carte:hover .lya-carte-media img { transform: scale(1.03); } }
  .lya-carte-corps { display: flex; flex-direction: column; gap: 2px; flex: 1; padding: 12px 8px 6px; }
  .lya-carte h4 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
  .lya-carte-sous { font-size: .8125rem; color: var(--gris); }
  .lya-carte-prix { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; margin-top: 8px; font-size: .8125rem; color: var(--gris); }
  .lya-carte-prix span { white-space: nowrap; }
  .lya-carte-prix b { font-family: var(--texte); font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; color: var(--encre); }
  .lya-carte-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; padding-top: 14px; }
  .lya-carte-actions .btn { min-height: 44px; padding: 0 12px; }

  /* Silhouette pour un véhicule sans photo : même langage que la flotte (flotte.css, .sans-photo) — sable, dessin or,
     mention en or-texte (4,9:1 sur sable) */
  .lya-silhouette {
    position: relative; display: grid; place-items: center; align-content: center; gap: 6px;
    width: 100%; height: 100%; min-height: 96px;
    background: var(--sable);
    box-shadow: inset 0 0 0 1px var(--trait);
    color: var(--or);
  }
  .lya-silhouette svg { width: 62%; max-width: 180px; height: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .lya-silhouette span { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--or-texte); }
  .lya-silhouette.grand { min-height: 168px; border-radius: var(--r-m); }

  /* Aperçu « Voir » */
  .lya-apercu {
    overflow: hidden; padding: 6px; border-radius: var(--r-carte); background: var(--ivoire);
    box-shadow: inset 0 0 0 1px var(--trait);
  }
  .lya-apercu-photos {
    display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 15px;
  }
  .lya-apercu-photos::-webkit-scrollbar { display: none; }
  .lya-apercu-photos:has(> :only-child) { grid-auto-columns: 100%; }
  .lya-apercu-photos img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 15px; scroll-snap-align: start; }
  .lya-apercu-corps { padding: 16px 12px 12px; }
  .lya-apercu .lya-surtitre { margin-bottom: 6px; }
  .lya-apercu h4 { font-family: var(--serif); font-size: 1.75rem; font-weight: 400; letter-spacing: var(--serre); line-height: 1.05; }
  .lya-apercu h4 span { font-family: var(--texte); font-size: .9375rem; font-weight: 400; letter-spacing: 0; color: var(--gris); }
  .lya-faits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 14px 0 0; }
  .lya-faits > div { padding: 10px 12px; border-radius: var(--r-s); background: var(--sable); }
  .lya-faits dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
  .lya-faits dd { margin: 0; font-weight: 600; }
  @media (min-width: 480px) { #lya .lya-faits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  @media (min-width: 1024px) { #lya .lya-faits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .lya-apercu-pour { margin-top: 12px; font-size: .875rem; color: var(--gris); }
  .lya-apercu-prix { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--trait); font-size: .875rem; color: var(--gris); }
  .lya-apercu-prix b { font-family: var(--texte); font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; color: var(--encre); }

  /* Fichier et voix dans le fil */
  .lya-fichier { display: flex; align-items: center; gap: 10px; }
  .lya-fichier img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-s); box-shadow: 0 0 0 1px var(--blanc-20); }
  .lya-fichier > span { display: grid; min-width: 0; }
  .lya-fichier b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lya-fichier small { opacity: .8; font-size: .78125rem; }
  .lya-fichier-texte { display: block; margin-top: 8px; }
  .lya-pdf { display: grid; place-items: center; gap: 2px; width: 56px; height: 64px; border-radius: var(--r-s); background: var(--blanc-12); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
  .lya-voix-badge { display: inline-grid; vertical-align: -4px; margin-right: 6px; color: var(--or-clair); }
  .lya-voix-badge svg.i { width: 18px; height: 18px; }

  /* ============================== Cartes : Réserver, Voir, Devis ============================== */
  .lya-carte-actions .lya-reserver { grid-column: 1 / -1; }

  /* ============================== Questions et valeurs déduites (A2, A4) ============================== */
  .lya-puces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .lya-puces .lya-puce.chip { background: var(--creme); }
  @media (hover: hover) { .lya-puces .lya-puce.chip:hover { background: var(--ivoire); } }
  .lya-deduit { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--trait); }
  .lya-deduit > p { font-size: var(--t-petit); line-height: 1.5; color: var(--gris); }
  .lya-deduit .lya-puces { margin-top: 8px; }

  /* ============================== Carte récapitulative (A15), demande à Bob (A16), cortège (A17) ============================== */
  .lya-recap {
    position: relative;
    padding: 22px 20px 18px; border-radius: var(--r-carte);
    background: var(--ivoire); box-shadow: inset 0 0 0 1px var(--trait);
  }
  .lya-recap h4 { font-family: var(--serif); font-size: 1.75rem; font-weight: 400; letter-spacing: var(--serre); line-height: 1.08; text-wrap: balance; }
  .lya-recap dl { display: grid; margin-top: 14px; }
  .lya-recap-ligne { display: grid; grid-template-columns: minmax(84px, 30%) 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--trait); font-size: .90625rem; line-height: 1.45; }
  .lya-recap-ligne dt { color: var(--gris); }
  .lya-recap-ligne dd { min-width: 0; font-weight: 600; color: var(--encre); overflow-wrap: anywhere; }
  .lya-source-champ { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--r-pill); background: var(--or-pale); color: var(--or-texte); font-size: .75rem; font-weight: 600; white-space: nowrap; }
  .lya-recap-prix { margin-top: 8px; padding: 14px 16px; border-radius: var(--r-m); background: var(--sable); }
  .lya-recap-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .lya-recap-total span { font-weight: 600; }
  .lya-recap-total b { font-family: var(--texte); font-size: 1.375rem; font-weight: 600; letter-spacing: -.015em; color: var(--encre); white-space: nowrap; }
  .lya-recap-prix p { margin-top: 4px; font-size: .8125rem; line-height: 1.45; color: var(--gris); }
  .lya-recap .lya-aide { margin-top: 12px; }
  .lya-recap-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  @media (min-width: 420px) { .lya-recap-actions { grid-template-columns: 1.4fr 1fr; } }
  .lya-recap-actions .btn { min-height: 48px; }
  .lya-recap-garde { margin-top: 12px; font-size: .78125rem; line-height: 1.45; color: var(--gris); }
  .lya-recap.confirmee { box-shadow: inset 0 0 0 1px var(--trait); }
  .lya-recap.confirmee .lya-recap-actions .btn, .lya-recap.confirmee input { opacity: .55; pointer-events: none; }
  .lya-recap.confirmee .lya-recap-garde::before { content: "✓ "; color: var(--palme); font-weight: 700; }
  .lya-recap-champs { display: grid; gap: 12px; margin-top: 14px; }
  .lya-recap-resume { padding: 10px 12px; border-radius: var(--r-m); background: var(--sable); font-size: .875rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
  .lya-recap-erreur { font-size: .8125rem; font-weight: 600; color: var(--laterite); }
  .lya-recap-erreur:empty { display: none; }
  .lya-cortege { display: grid; margin: 0; padding: 0; list-style: none; }
  .lya-cortege li { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 10px; padding: 10px 0; border-top: 1px solid var(--trait); font-size: .90625rem; }
  .lya-cortege li:first-child { border-top: 0; }
  .lya-cortege-nom { min-width: 0; font-weight: 600; }
  .lya-cortege-nom small { display: block; font-size: .75rem; font-weight: 500; color: var(--or-texte); }
  .lya-cortege li > small { color: var(--gris); white-space: nowrap; }
  .lya-cortege li > b { font-weight: 600; white-space: nowrap; }
  .lya-recap-champs .lya-note.alerte { max-width: none; margin: 0; }
  /* A17 : couleurs de décoration en pastilles (approchées par les jetons de la marque) et passage vers Événements */
  .lya-recap-deco { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-m); background: var(--or-pale); font-size: .84375rem; font-weight: 600; line-height: 1.4; color: var(--encre); }
  .lya-pastilles { display: inline-flex; flex: none; }
  .lya-pastilles i { width: 18px; height: 18px; margin-left: -5px; border-radius: 50%; background: var(--sable-2); box-shadow: 0 0 0 2px var(--or-pale), inset 0 0 0 1px var(--trait-2); }
  .lya-pastilles i:first-child { margin-left: 0; }
  .lya-pastilles [data-couleur="blanc"] { background: var(--blanc); }
  .lya-pastilles [data-couleur="ivoire"], .lya-pastilles [data-couleur="crème"] { background: var(--ivoire); }
  .lya-pastilles [data-couleur="or"] { background: var(--or); }
  .lya-pastilles [data-couleur="champagne"], .lya-pastilles [data-couleur="beige"], .lya-pastilles [data-couleur="pêche"] { background: var(--or-clair); }
  .lya-pastilles [data-couleur="argent"], .lya-pastilles [data-couleur="gris"] { background: var(--gris-2); }
  .lya-pastilles [data-couleur="noir"] { background: var(--encre); }
  .lya-pastilles [data-couleur="bleu"] { background: var(--encre-3); }
  .lya-pastilles [data-couleur="vert"], .lya-pastilles [data-couleur="émeraude"] { background: var(--palme); }
  .lya-pastilles [data-couleur="rouge"], .lya-pastilles [data-couleur="bordeaux"], .lya-pastilles [data-couleur="corail"] { background: var(--laterite); }
  .lya-pastilles [data-couleur="rose"], .lya-pastilles [data-couleur="saumon"] { background: var(--laterite-pale); }
  .lya-pastilles [data-couleur="orange"], .lya-pastilles [data-couleur="cuivre"], .lya-pastilles [data-couleur="bronze"] { background: var(--plaque); }
  .lya-pastilles [data-couleur="marron"], .lya-pastilles [data-couleur="chocolat"] { background: var(--or-texte); }
  .lya-vers-evt { justify-self: start; }
  /* A7 : place du prix dans le budget dit à Lya */
  .lya-carte-budget { margin-top: 4px; font-size: .78125rem; font-weight: 600; line-height: 1.35; color: var(--laterite); }
  .lya-carte-budget.ok { color: var(--palme); }
  .lya-carte-budget.ok::before { content: "✓ "; }
  @media (max-width: 379px) { .lya-cortege li { grid-template-columns: 1fr auto; } .lya-cortege li > small { display: none; } }

  /* ============================== Pied : suggestions, saisie, voix ============================== */
  #lya .feuille-pied.lya-pied { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 16px calc(12px + var(--bas-sur)); background: var(--ivoire); border-top: 1px solid var(--trait); }
  #lya .lya-pied > * { min-width: 0; }
  #lya .lya-saisie input#lyaTexte { width: 100%; }
  #lya .suggestions {
    gap: 8px; margin: 0 -16px; padding: 2px 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent, var(--encre) 16px, var(--encre) calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, transparent, var(--encre) 16px, var(--encre) calc(100% - 32px), transparent);
  }
  #lya .suggestions:empty { display: none; }
  .lya-puce.chip { flex: none; min-height: 44px; background: var(--ivoire); }
  .lya-puce.chip.fort { background: var(--encre); color: var(--blanc); box-shadow: none; }

  .lya-saisie.saisie {
    position: relative; align-items: center; gap: 2px;
    padding: 3px; border-radius: var(--r-pill);
    background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait-2);
    transition: box-shadow var(--d-2) var(--ease);
  }
  .lya-saisie.saisie:focus-within { box-shadow: inset 0 0 0 1px var(--encre), var(--anneau-champ); }
  #lya .lya-saisie input#lyaTexte { min-height: 44px; padding: 0 6px; border: 0; background: transparent; box-shadow: none; outline: 0; font-size: 1rem; }
  .lya-saisie .icon-btn { background: transparent; box-shadow: none; color: var(--gris); }
  @media (hover: hover) { .lya-saisie .icon-btn:hover { background: var(--sable); color: var(--encre); box-shadow: none; } }
  .lya-saisie .lya-micro[aria-pressed="true"] { background: var(--laterite-pale); color: var(--laterite); }
  .lya-saisie .lya-envoyer { background: var(--or); color: var(--encre); box-shadow: none; }
  .lya-saisie .lya-envoyer svg.i { width: 19px; height: 19px; }
  @media (hover: hover) { .lya-saisie .lya-envoyer:hover { background: var(--or-survol); box-shadow: none; color: var(--encre); } }
  /* Envoi automatique après la dictée : un anneau encre se remplit (toute frappe l'annule) */
  .lya-envoyer.auto::after {
    content: ""; position: absolute; inset: -3px; border-radius: 50%;
    background: conic-gradient(var(--encre) calc(var(--p, 0) * 1%), transparent 0);
    -webkit-mask: radial-gradient(circle, transparent 62%, var(--encre) 64%); mask: radial-gradient(circle, transparent 62%, var(--encre) 64%);
    animation: lya-anneau 1400ms linear forwards;
  }
  @keyframes lya-anneau { to { --p: 100; } }

  .lya-mention { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 8px; font-size: .78125rem; line-height: 1.4; color: var(--gris); text-align: center; }
  .lya-lien {
    min-height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-pill);
    background: var(--sable); color: var(--encre); font-size: .78125rem; font-weight: 600;
  }
  .lya-lien[aria-pressed="false"] { background: var(--laterite-pale); color: var(--laterite); }
  /* La mention est un lien secondaire : sa zone tactile s'étend sans pousser la mise en page */
  .lya-lien { position: relative; }
  .lya-lien::after { content: ""; position: absolute; inset: -6px -2px; }

  .lya-ecoute {
    display: flex; align-items: center; gap: 12px;
    min-height: 56px; padding: 6px 6px 6px 18px; border-radius: var(--r-pill);
    background: var(--encre); color: var(--blanc);
    box-shadow: inset 0 0 0 1px var(--filet-or);
    animation: lya-entree 280ms var(--ease) both;
  }
  .lya-ecoute-texte { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
  .lya-ecoute-texte b { font-size: .90625rem; font-weight: 600; }
  #lyaInterim { overflow: hidden; font-size: .8125rem; color: var(--blanc-70); text-overflow: ellipsis; white-space: nowrap; }
  #lyaInterim:empty { display: none; }
  .lya-onde { display: flex; align-items: center; gap: 4px; height: 32px; }
  .lya-onde i { --n: .3; display: block; width: 3px; height: 28px; border-radius: 2px; background: var(--or-clair); transform: scaleY(var(--n)); transition: transform 90ms linear; }
  #lya[data-voix="ecoute"] .lya-onde i { animation: lya-onde 1.1s var(--ease-in-out) infinite; }
  #lya[data-voix="traitement"] .lya-onde i { animation: lya-onde 1.6s var(--ease-in-out) infinite; opacity: .6; }
  .lya-onde i:nth-child(2) { animation-delay: .1s; } .lya-onde i:nth-child(3) { animation-delay: .2s; } .lya-onde i:nth-child(4) { animation-delay: .3s; }
  .lya-onde i:nth-child(5) { animation-delay: .4s; } .lya-onde i:nth-child(6) { animation-delay: .5s; } .lya-onde i:nth-child(7) { animation-delay: .6s; }
  @keyframes lya-onde { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
  .lya-stop.icon-btn { width: 44px; height: 44px; background: var(--ivoire); color: var(--laterite); box-shadow: none; }
  .lya-stop svg.i { fill: currentColor; }
  #lya[data-voix="traitement"] .lya-stop { visibility: hidden; }
  #lya[data-voix="ecoute"] .lya-saisie, #lya[data-voix="enregistre"] .lya-saisie, #lya[data-voix="traitement"] .lya-saisie { display: none; }
  @media (prefers-reduced-motion: reduce) { .lya-onde i { animation: none; transform: scaleY(.6); } }

  /* ============================== Devis vivant (#devis) : une feuille blanche posée sur crème ============================== */
  @media (min-width: 768px) { #devis.feuille { width: min(860px, 100vw - 48px); max-height: min(92dvh, 980px); } }
  #devis .feuille-tete { border-bottom: 1px solid var(--trait); }
  .devis-titre { flex: 1; min-width: 0; }
  .devis-titre p { font-size: .8125rem; }
  #devis .feuille-corps { padding: 16px 12px 20px; background: var(--creme); }
  @media (min-width: 768px) { #devis .feuille-corps { padding: 24px 28px 28px; } }
  .dv {
    position: relative;
    padding: 22px 18px 18px; border-radius: var(--r-carte);
    background: var(--blanc); box-shadow: var(--ombre-2), inset 0 0 0 1px var(--trait);
  }
  @media (min-width: 768px) { .dv { padding: 36px 40px 28px; } }
  .dv-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--or); }
  .dv-marque { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; min-width: 0; }
  .dv-logo { width: 38px; height: 38px; grid-row: span 2; }
  .dv-logo-y { fill: var(--encre); }
  .dv-logo-courbe { fill: none; stroke: var(--or); stroke-width: 2.4; stroke-linecap: round; }
  .dv-mot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-family: var(--texte); line-height: 1; }
  .dv-mot b { font-size: 1.0625rem; font-weight: 600; letter-spacing: .2em; }
  .dv-mot span { font-size: .75rem; font-weight: 500; letter-spacing: .5em; color: var(--or-texte); }
  .dv-marque small { margin-top: 2px; font-size: .75rem; color: var(--gris); overflow-wrap: anywhere; }
  .dv-ref { display: grid; justify-items: end; gap: 4px; text-align: right; }
  .dv-surtitre { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--or-texte); }
  .dv-ref b { font-family: var(--texte); font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
  .dv-version { padding: 2px 10px; border-radius: var(--r-pill); background: var(--encre); color: var(--or-clair); font-size: .75rem; font-weight: 600; }
  @media (max-width: 479px) { .dv-ref { justify-items: start; text-align: left; } }

  .dv-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: var(--r-m); background: var(--creme); box-shadow: inset 0 0 0 1px var(--trait); font-size: .84375rem; line-height: 1.45; color: var(--gris); }
  .dv-etat.modifie { background: color-mix(in srgb, var(--or-pale) 70%, var(--blanc)); box-shadow: inset 0 0 0 1px var(--filet-or); color: var(--encre); }
  .dv-etat.valide, .dv-etat.envoye, .dv-etat.accepte, .dv-etat.converti { background: var(--palme-pale); box-shadow: none; color: var(--encre); }
  .dv-etat.expire { background: var(--laterite-pale); box-shadow: none; color: var(--encre); }
  .dv-etat > span:last-child { flex: 1 1 220px; }

  .dv-bloc { padding: 18px 0; border-top: 1px solid var(--trait); }
  .dv-etat + .dv-bloc { margin-top: 16px; }
  .dv-sous-titre { margin-bottom: 8px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
  .dv-vehicule { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: start; }
  .dv-photo { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-m); background: var(--sable); }
  .dv-photo img { width: 100%; height: 100%; object-fit: cover; }
  .dv-photo .lya-silhouette { min-height: 0; gap: 2px; }
  .dv-photo .lya-silhouette span { font-size: .75rem; letter-spacing: .08em; }
  @media (max-width: 559px) { .dv-photo .lya-silhouette span { display: none; } .dv-photo .lya-silhouette svg { width: 78%; } }
  @media (min-width: 560px) { .dv-vehicule { grid-template-columns: 168px minmax(0, 1fr); gap: 20px; } }
  .dv-vehicule-champs { display: grid; gap: 6px; min-width: 0; }
  .dv-faits { font-size: .84375rem; color: var(--gris); }

  /* Champs du document : soulignés, comme la barre de réservation du héros */
  .dv-champ { display: grid; gap: 2px; min-width: 0; }
  .dv-champ > span { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
  .dv-champ input, .dv-champ select, .dv-code-ligne input {
    width: 100%; min-width: 0; min-height: 44px; padding: 8px 4px;
    border: 0; border-bottom: 1px solid var(--trait-2); border-radius: var(--r-xs) var(--r-xs) 0 0;
    background: transparent; color: var(--encre);
    font-size: 1rem; font-weight: 500; line-height: 1.3;
    transition: background-color var(--d-2) var(--ease), border-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
  }
  .dv-champ select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 4px center; background-size: 18px; text-overflow: ellipsis; }
  @media (hover: hover) { .dv-champ input:hover, .dv-champ select:hover, .dv-code-ligne input:hover { background-color: var(--creme); border-bottom-color: var(--gris-2); } }
  .dv-champ input:focus, .dv-champ select:focus, .dv-code-ligne input:focus { outline: 0; background-color: var(--creme); border-bottom-color: var(--encre); box-shadow: 0 1px 0 var(--encre); }
  .dv-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; align-items: end; }
  .dv-large { grid-column: 1 / -1; }
  @media (min-width: 640px) { .dv-grille { grid-template-columns: 1.2fr 1fr 1.2fr 1fr; } }
  .dv-options { padding-block: 4px; }
  .dv-option b { font-size: .9375rem; font-weight: 600; }
  .dv-code { display: grid; gap: 4px; }
  .dv-code-ligne { display: flex; gap: 10px; align-items: end; }
  .dv-code-ligne input { flex: 1; text-transform: uppercase; }
  .dv-code-ligne .btn { min-height: 44px; }
  .dv-code-msg { min-height: 1.2em; font-size: .8125rem; color: var(--gris); }
  .dv-code-msg.ok { color: var(--palme); } .dv-code-msg.alerte { color: var(--laterite); }
  .dv-client-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
  @media (max-width: 419px) { .dv-client-champs { grid-template-columns: 1fr; } }

  .dv-alerte { display: grid; gap: 8px; justify-items: start; padding: 10px 12px; border-radius: var(--r-s); background: var(--laterite-pale); color: var(--laterite); font-size: .875rem; }
  .dv-alerte .btn { min-height: 44px; }

  /* Montants : lignes fines, total en grand serif */
  .dv-prix { margin-top: 4px; padding: 18px 18px 14px; border-radius: var(--r-m); background: var(--creme); box-shadow: inset 0 0 0 1px var(--trait); }
  .dv-prix .dv-sous-titre { letter-spacing: .01em; text-transform: none; font-size: .875rem; font-weight: 600; color: var(--encre); }
  .dv-lignes { display: grid; gap: 2px; }
  .dv-ligne { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: .90625rem; }
  .dv-ligne > span:first-child { flex: 1 1 0; min-width: 0; }
  /* le montant garde sa ligne ; avec un texte très agrandi, il passe à la ligne dans sa colonne au lieu de déborder */
  .dv-ligne > span:last-child { flex: 0 0 auto; max-width: 62%; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
  .dv-ligne.remise { color: var(--palme); }
  .dv-ligne.secondaire { font-size: .84375rem; color: var(--gris); }
  .dv-total { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 6px; padding-top: 12px; border-top: 1px solid var(--encre); }
  .dv-total > span { font-family: var(--texte); font-size: 1rem; font-weight: 600; }
  .dv-total b { font-family: var(--serif); font-size: min(clamp(2.25rem, 1.9rem + 1.6vw, 3rem), 12vw); font-weight: 400; line-height: 1; letter-spacing: -.01em; }
  .dv-euros { margin-bottom: 6px; font-size: .8125rem; color: var(--gris); text-align: right; }

  .dv-historique { margin-top: 16px; border-top: 1px solid var(--trait); }
  .dv-historique summary { display: flex; align-items: center; gap: 8px; min-height: 48px; font-size: .90625rem; font-weight: 600; list-style: none; }
  .dv-historique summary::-webkit-details-marker { display: none; }
  .dv-historique summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 1.5px solid var(--gris); border-bottom: 1.5px solid var(--gris); transform: rotate(45deg) translateY(-3px); transition: transform var(--d-2) var(--ease); }
  .dv-historique[open] summary::after { transform: rotate(225deg) translateY(-3px); }
  .dv-historique summary svg.i { color: var(--or-texte); }
  .dv-historique ol { display: grid; gap: 8px; margin: 0; padding: 0 0 6px; list-style: none; }
  .dv-historique li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; font-size: .84375rem; }
  @media (max-width: 479px) { .dv-historique li { grid-template-columns: auto minmax(0, 1fr); } .dv-historique li time { grid-column: 2; } }
  .dv-histo-v { padding: 1px 8px; border-radius: var(--r-pill); background: var(--sable); font-weight: 600; font-size: .75rem; }
  .dv-historique time { font-size: .75rem; color: var(--gris); white-space: nowrap; }
  .dv-pied { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--trait); font-size: .75rem; line-height: 1.5; color: var(--gris); }
  .dv-pied p + p { margin-top: 2px; }

  #devisPied { display: grid; gap: 8px; }
  .dv-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dv-actions #dvReserver { grid-column: 1 / -1; }
  @media (min-width: 640px) { .dv-actions { grid-template-columns: auto auto 1fr; } .dv-actions #dvReserver { grid-column: auto; } }
  .dv-actions .btn { padding: 0 18px; }
  .dv-erreurs { padding: 8px 12px; border-radius: var(--r-s); background: var(--laterite-pale); color: var(--laterite); font-size: .84375rem; }
  .dv-erreurs.secoue { animation: lya-secoue 420ms var(--ease) both; }
  @keyframes lya-secoue { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
  .dv-annonce {
    display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-s);
    background: var(--palme-pale); color: var(--encre); font-size: .84375rem; line-height: 1.45; font-weight: 600;
    animation: lya-entree 300ms var(--ease) both;
  }
  .dv-annonce::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--palme); }
  .dv-annonce.attente, .dv-annonce.info { background: color-mix(in srgb, var(--or-pale) 70%, var(--ivoire)); }
  .dv-annonce.attente::before, .dv-annonce.info::before { background: var(--or); }
  .dv-annonce.alerte { background: var(--laterite-pale); color: var(--laterite); }
  .dv-annonce.alerte::before { background: var(--laterite); }
  @media (prefers-reduced-motion: reduce) { .dv-erreurs.secoue, .dv-annonce { animation: none; } }

  /* Les messages éphémères ne couvrent jamais la saisie de Lya ni les boutons du devis : ils passent en haut. */
  @media (max-width: 1023px) { html:has(#lya.ouvert) .toasts { top: calc(10px + env(safe-area-inset-top)); bottom: auto; } }
  html:has(:is(#devis, #envoi).ouvert) .toasts { top: calc(10px + env(safe-area-inset-top)); bottom: auto; }
  .dv-aide { font-size: .78125rem; color: var(--gris); text-align: center; }
  #dvValider[aria-disabled="true"] { opacity: .7; }

  /* ============================== Envoi (#envoi) ============================== */
  .envoi-form { display: grid; gap: 16px; }
  .envoi-doc { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-m); background: var(--creme); box-shadow: inset 0 0 0 1px var(--trait); }
  .envoi-doc > div { display: grid; min-width: 0; }
  .envoi-doc b { font-weight: 600; }
  .envoi-doc small { overflow: hidden; font-size: .8125rem; color: var(--gris); text-overflow: ellipsis; white-space: nowrap; }
  .envoi-doc-icone { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--r-s); background: var(--encre); color: var(--or-clair); }
  .envoi-canaux { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
  .envoi-canaux legend { margin-bottom: 10px; padding: 0; font-family: var(--serif); font-size: 1.625rem; font-weight: 400; line-height: 1.1; letter-spacing: var(--serre); }
  .envoi-canal {
    position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
    min-height: 64px; padding: 10px 14px; border-radius: var(--r-m);
    background: var(--ivoire); box-shadow: inset 0 0 0 1px var(--trait-2);
    transition: box-shadow var(--d-2) var(--ease), background-color var(--d-2) var(--ease);
  }
  .envoi-canal input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
  .envoi-canal:has(input:focus-visible) { outline: 2px solid var(--or-texte); outline-offset: 3px; }
  @media (hover: hover) { .envoi-canal:not(.actif):hover { box-shadow: inset 0 0 0 1px var(--gris-2); } }
  .envoi-canal.actif { background: var(--blanc); box-shadow: inset 0 0 0 1.5px var(--encre); }
  .envoi-canal b { font-weight: 600; }
  .envoi-canal-icone { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sable); color: var(--encre); transition: background-color var(--d-2) var(--ease), color var(--d-2); }
  .envoi-canal.actif .envoi-canal-icone { background: var(--encre); color: var(--or-clair); }
  .envoi-canal-texte { display: grid; min-width: 0; line-height: 1.3; }
  .envoi-canal-texte small { font-size: .8125rem; color: var(--gris); }
  .envoi-coche { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--trait-2); color: transparent; transition: background-color var(--d-2) var(--ease), color var(--d-2); }
  .envoi-coche svg.i { width: 16px; height: 16px; stroke-width: 2.2; }
  .envoi-canal.actif .envoi-coche { background: var(--or); box-shadow: none; color: var(--encre); }
  .envoi-champs { display: grid; gap: 10px; }
  .envoi-champs:not(:has(> :not([hidden]))) { display: none; }
  .envoi-bob { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-m); background: var(--palme-pale); }
  .envoi-bob label { display: grid; line-height: 1.35; cursor: default; }
  .envoi-bob b { font-weight: 600; }
  .envoi-bob small { font-size: .8125rem; color: var(--gris); }
  .envoi-bob .envoi-canal-icone { background: var(--ivoire); color: var(--palme); }
  .envoi-bob-case { position: relative; display: grid; place-items: center; }
  .envoi-bob-case input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: not-allowed; }
  .envoi-bob .envoi-coche { background: var(--palme); box-shadow: none; color: var(--blanc); }
  .envoi-titre { flex: 1; min-width: 0; }
  .envoi-erreur { min-height: 0; color: var(--laterite); font-size: .875rem; }
  .envoi-erreur:empty { display: none; }
  .envoi-note { font-size: .78125rem; line-height: 1.5; color: var(--gris); text-align: center; }
  .envoi-resultats { display: grid; gap: 14px; justify-items: center; text-align: center; padding-top: 8px; }
  .envoi-sceau { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--encre); color: var(--or-clair); box-shadow: 0 0 0 1px var(--or), 0 0 0 6px var(--ivoire), 0 0 0 7px var(--trait); animation: lya-sceau 520ms var(--ease) both; }
  .envoi-sceau svg.i { width: 28px; height: 28px; stroke-width: 2; }
  @keyframes lya-sceau { from { transform: scale(.85); opacity: 0; } }
  .envoi-resultats h4 { font-family: var(--serif); font-size: 2.25rem; font-weight: 400; letter-spacing: var(--serre); line-height: 1.05; }
  .envoi-liste { display: grid; gap: 8px; width: 100%; margin: 0; padding: 0; list-style: none; text-align: left; }
  .envoi-liste li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-m); background: var(--creme); box-shadow: inset 0 0 0 1px var(--trait); }
  .envoi-liste b { font-weight: 600; }
  .envoi-res-texte { display: grid; min-width: 0; line-height: 1.3; }
  .envoi-res-texte small { overflow: hidden; font-size: .78125rem; color: var(--gris); text-overflow: ellipsis; white-space: nowrap; }
  .envoi-liste .tag { white-space: normal; text-align: right; }
  @media (max-width: 479px) {
    .envoi-liste li { grid-template-columns: auto 1fr; }
    .envoi-liste .tag { grid-column: 2; justify-self: start; text-align: left; }
  }

  /* Mouvement réduit : en plus de la règle générale de base.css (couche utilitaires), chaque animation et transition de
     Lya est coupée ici, à la source. */
  @media (prefers-reduced-motion: reduce) {
    .lya-ligne, .lya-carte, .lya-info-ia, .lya-ecoute, .envoi-sceau, .dv-annonce, .dv-erreurs.secoue, .lya-envoyer.auto::after { animation: none; }
    #lya[data-voix] .lya-onde i { animation: none; transform: scaleY(.6); transition: none; }
    .lya-carte-media img, .lya-action, .lya-exemple, .lya-exemple::after, .dv-champ input, .dv-champ select, .envoi-canal, .envoi-canal-icone, .envoi-coche { transition: none; }
  }
}

/* ============================== Impression du devis ============================== */
@layer utilitaires {
  @media print {
    .impression .dv-imprime { max-width: 720px; margin: 0 auto; color: var(--encre); font: 13px/1.55 var(--texte); }
    .dv-imprime header { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--or); }
    .dv-imprime header small { display: block; color: var(--gris); }
    .dv-imp-marque { font-family: var(--texte); font-size: 1.125rem; font-weight: 600; letter-spacing: .2em; }
    .dv-imp-ref { text-align: right; }
    .dv-imp-ref b { display: block; font-family: var(--texte); font-size: 1.0625rem; font-weight: 600; }
    .dv-imprime table { width: 100%; margin: 14px 0; border-collapse: collapse; }
    .dv-imprime td { padding: 7px 4px; border-bottom: 1px solid var(--trait); vertical-align: top; }
    .dv-imprime td:last-child { text-align: right; }
    .dv-imprime tbody tr td:first-child { width: 34%; color: var(--gris); }
    .dv-imp-prix tbody tr td:first-child { width: auto; color: var(--encre); }
    .dv-imprime tfoot td { font-weight: 600; }
    .dv-imprime tfoot tr:first-child td { border-top: 1px solid var(--encre); font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
    .dv-imprime footer { margin-top: 24px; padding-top: 10px; border-top: 1px solid var(--trait-2); font-size: .6875rem; color: var(--gris); }
  }
}
