/* La page d'Aurore, maquette C (19/11/2026, Corentin : « plutôt comme ChatGPT, qu'elle prenne plus de place »).
   Ordinateur seulement (≥ 981 px) : la conversation occupe toute la hauteur sous la barre du haut, la zone de saisie
   reste en bas, le bureau (ou, sans 3D, « ce qu'elle sait de vous ») tient une colonne à droite. L'historique des
   conversations s'ouvre en panneau à gauche au lieu de se trouver sous la page. Téléphone et tablette : page d'avant.
   La feuille passe en dernier : quelques !important écrasent les mises en page de refonte.css et de style-pro.css. */
@media (min-width:981px){
  #contenu:has(.view[data-view-panel="aurore"].active){padding:0!important}
  #appView .view[data-view-panel="aurore"]{position:relative;overflow:hidden}
  #appView .view[data-view-panel="aurore"] .aurore-page{display:grid!important;grid-template-columns:minmax(0,1fr) clamp(320px,28%,400px)!important;
    gap:0!important;max-width:none!important;margin:0!important;padding:0!important;align-items:stretch!important;
    height:calc(100dvh - var(--au-reserve,64px))!important;min-height:520px}
  #appView .view[data-view-panel="aurore"] .aurore-page.aurore-large{grid-template-columns:minmax(0,1fr)!important}
  #appView .view[data-view-panel="aurore"] .aurore-page.aurore-large :is(.aurore-cote,.au-piece){display:none!important}

  /* La conversation, à gauche */
  #appView .view[data-view-panel="aurore"] .aurore-gauche{display:flex!important;flex-direction:column;min-width:0;min-height:0;padding:0!important;border:0!important;width:auto!important;max-width:none!important;margin:0!important;background:none}
  /* Une seule rangée en haut : Historique, Nouvelle conversation, Agrandir à gauche, Réglages à droite (l'état de
     Telegram est dans la colonne de droite). */
  #appView .view[data-view-panel="aurore"] .aurore-gauche{position:relative}
  .aurore-gauche .aurore-tete{position:absolute;top:9px;right:26px;z-index:2;margin:0;padding:0}
  .aurore-gauche .aurore-tete .aurore-titre{display:none}
  .aurore-gauche .aurore-chat{flex:1;min-height:0;margin:0!important;display:flex;flex-direction:column;width:auto!important;max-width:none!important}
  .aurore-gauche .aurore-barre{flex:none;padding:9px 26px 9px;border-bottom:1px solid var(--line,#e3ded5);margin:0}
  .aurore-gauche .aurore-fil-web{flex:1;min-height:0!important;max-height:none!important;overflow-y:auto;
    padding:22px max(26px,calc((100% - 760px) / 2)) 14px!important}
  .aurore-gauche .aurore-chat > :is(.aurore-vide,.aurore-ecrit,.aurore-puces,.agent-travail,.aurore-saisie-web,.aurore-jauge){
    flex:none;width:min(760px,calc(100% - 52px));margin-left:auto;margin-right:auto}
  .aurore-gauche .aurore-saisie-web{margin-bottom:6px}
  /* Son bureau (20/11/2026, maquette A) : la pièce au trait en haut, sans étiquette ; la liste des objets dessous. */
  #appView [data-pc="aurore"].pc-ok .au-piece .au-nom{display:none}
  /* 22/11/2026 : le nom de l'objet sous la souris, lui seul. */
  #appView [data-pc="aurore"].pc-ok .au-piece .au-nom.survol{display:inline-flex;visibility:visible!important;pointer-events:none;z-index:3;padding:5px 11px;
    background:var(--ink,#1d1b18);color:#fffdf7;border:0;box-shadow:none;font-size:12.5px;font-weight:600}
  .au-ligne.survol{background:#fbf3dd}
  #appView [data-pc="aurore"].pc-ok .aurore-page:not([data-fiche]) .au-piece :is(.pc-scene,.bx-noms){inset:0 0 auto 0;height:380px}
  #appView [data-pc="aurore"].pc-ok .au-piece{cursor:default}
  #appView [data-pc="aurore"].pc-ok .au-piece .pc-scene{cursor:default}
  #appView [data-pc="aurore"].pc-ok .au-piece[data-survol] .pc-scene{cursor:pointer}
  .au-liste{position:absolute;left:14px;right:14px;top:376px;bottom:8px;overflow-y:auto;display:flex;flex-direction:column}
  #appView [data-pc="aurore"].pc-ok .aurore-page[data-fiche] .au-liste{display:none}
  .au-ligne{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:10px 12px;border:0;border-bottom:1px solid var(--line,#ebe7de);
    border-radius:0;background:none;font:inherit;font-size:14px;color:inherit;text-align:left;cursor:pointer}
  .au-ligne:last-child{border-bottom:0}
  .au-ligne span{font-weight:600}
  .au-ligne em{font-style:normal;color:var(--muted,#7b776f);font-size:13px;white-space:nowrap}
  .au-ligne:hover{background:#f6f4ee}
  .au-ligne.ici{background:#fbf3dd;border-radius:10px;border-bottom-color:transparent}
  .au-ligne.ici em{color:#8a5f12}
  .au-ligne:focus-visible{outline:2px solid var(--ink,#1d1b18);outline-offset:-2px;border-radius:10px}
  .aurore-gauche .aurore-jauge{margin-top:0;margin-bottom:14px;text-align:center}
  .aurore-gauche .aurore-vide p{margin:0 0 8px}

  /* La colonne de droite sans la pièce 3D : ce qu'elle sait de vous, ce qu'elle engage, Telegram */
  #appView .view[data-view-panel="aurore"] .aurore-cote{position:static;display:block;min-height:0;overflow-y:auto;padding:18px 18px 22px;
    border-left:1px solid var(--line,#e3ded5);background:#faf8f4;width:auto;max-width:none}
  #appView .view[data-view-panel="aurore"] .aurore-cote .au-fermer{display:none}
  /* Avec la pièce 3D, la colonne de droite est la pièce, et « ce qu'elle sait » reste son tiroir (refonte.css) */
  #appView .view[data-pc="aurore"].pc-ok .aurore-cote{position:absolute!important;top:0;right:0;bottom:0;width:340px;max-width:60%;display:none;border-left:2px solid var(--ink,#1d1d1b)}
  #appView .view[data-pc="aurore"].pc-ok .aurore-page[data-fiche] .aurore-cote{display:block}
  #appView .view[data-pc="aurore"].pc-ok .aurore-cote .au-fermer{display:block}
  #appView .view[data-pc="aurore"].pc-ok .au-piece{min-height:0}
  #appView .view[data-pc="aurore"].pc-ok .aurore-gauche .aurore-tete{right:54px}

  /* L'historique : un panneau qui s'ouvre à gauche (bouton « Historique ») */
  #appView .view[data-view-panel="aurore"] .aurore-histo{position:absolute;left:0;top:0;bottom:0;z-index:30;width:370px;max-width:90%;
    margin:0!important;padding:18px 18px 24px!important;overflow-y:auto;background:#faf8f4;border:0;border-right:1px solid var(--line,#e3ded5);
    border-radius:0;box-shadow:14px 0 34px -20px rgba(20,20,20,.35);transform:translateX(-104%);visibility:hidden;transition:transform .18s ease,visibility 0s .18s}
  #appView .view[data-view-panel="aurore"].histo-ouvert .aurore-histo{transform:none;visibility:visible;transition:transform .18s ease}
  @media (prefers-reduced-motion:reduce){#appView .view[data-view-panel="aurore"] .aurore-histo{transition:none!important}}
  /* « Agrandir » suit « Nouvelle conversation » (il ne passe plus sous « Réglages »), et l'état de Telegram ne se montre que
     sur un très grand écran : en dessous, la rangée n'a pas la place (l'état est dans la fiche Telegram). */
  .aurore-gauche .aurore-barre{padding-right:150px}
  .aurore-gauche .aurore-barre .aurore-agrandir{margin-left:0}
  @media (max-width:1599px){.aurore-gauche .aurore-tete .aurore-sur{display:none!important}}
}

/* ---- Les commandes de réglage dans les fiches du bureau (19/11/2026) : un réglage par ligne, le libellé au-dessus ---- */
.aurore-cote .au-reg{display:grid;gap:7px;margin:14px 0 0}
.aurore-cote .au-reg-lib{font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:800;color:var(--muted,#6d675d);display:flex;align-items:center;gap:8px}
.aurore-cote .au-reg-lib small{font-weight:500;letter-spacing:0;text-transform:none}
.aurore-cote .au-reg-rang{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.aurore-cote .au-reg .seg{width:100%}
.aurore-cote .au-reg .seg button{flex:1 1 auto;padding:6px 10px;font-size:13px;white-space:nowrap}
.aurore-cote .au-reg .aurore-bascule{display:flex;flex-wrap:wrap;gap:4px 10px}
.aurore-cote .au-reg .aurore-bascule small{flex-basis:100%;padding-left:48px;margin-top:-2px}
.aurore-cote .au-reg select{max-width:100%}
.aurore-cote .aurore-texte{min-height:84px;margin-top:0;font-size:13.5px}
.aurore-cote .aurore-carnet{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:6px}
.aurore-cote .aurore-carnet li{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:9px 11px;border-radius:9px;background:rgba(0,0,0,.035);font-size:13.5px}
.aurore-cote .aurore-texte-pied span{min-width:0}
.aurore-cote .aurore-carnet small{color:var(--muted,#6d675d);font-size:11.5px}
.aurore-cote .aurore-carnet-actions{display:flex;gap:12px}
.aurore-cote .aurore-carnet .input{width:100%}
.aurore-cote .aurore-ajout{display:flex;gap:6px;margin:0 0 6px}
.aurore-cote .aurore-ajout .input{flex:1;min-width:0}
.aurore-cote .au-reg-pied{margin:0}
.aurore-cote .aurore-carte + .aurore-carte{margin-top:14px}

/* ---- Style Épuré : le tiroir et ses commandes (19/11/2026) — blanc, filets fins, aucune couleur sauf l'encre ---- */
html.style-epure #appView .view[data-view-panel="aurore"] .aurore-cote{background:#fff;border-left:1px solid #e7e6e1}
html.style-epure #appView .view[data-pc="aurore"].pc-ok .aurore-cote{border:1px solid #e7e6e1;border-radius:14px;box-shadow:0 18px 40px -26px rgba(17,19,23,.28)}
html.style-epure .aurore-cote h3{font-size:18px;font-weight:600;letter-spacing:-.02em;margin:0 36px 6px 0}
html.style-epure .aurore-cote p{font-size:13.5px;line-height:1.55;color:#6b6a65}
html.style-epure .aurore-cote .au-reg{margin-top:18px;padding-top:16px;border-top:1px solid #efeee9}
html.style-epure .aurore-cote .au-reg-lib{font-size:12px;letter-spacing:0;text-transform:none;font-weight:600;color:#1d1d1b}
html.style-epure .aurore-cote .au-reg-lib small{color:#8a8984}
html.style-epure .aurore-cote .seg{background:#f4f3ef;border:0;border-radius:999px;padding:3px;gap:2px}
html.style-epure .aurore-cote .seg button{border:0;border-radius:999px;background:none;color:#4a4945;font-weight:500}
html.style-epure .aurore-cote .seg button.on{background:#fff;color:#1d1d1b;font-weight:600;box-shadow:0 0 0 1px #e1e0da,0 1px 2px rgba(0,0,0,.06)}
html.style-epure .aurore-cote .aurore-rail{background:#d8d7d1}
html.style-epure .aurore-cote .aurore-bascule input:checked + .aurore-rail{background:#1d1d1b}
html.style-epure .aurore-cote .aurore-bascule{font-weight:500}
html.style-epure .aurore-cote .aurore-bascule small{color:#8a8984}
html.style-epure .aurore-cote .aurore-case{border:1px solid #e1e0da;border-radius:999px;background:#fff;font-size:13px;padding:5px 12px}
html.style-epure .aurore-cote .aurore-case:has(input:checked){border-color:#1d1d1b;background:#fff;font-weight:600}
html.style-epure .aurore-cote .aurore-texte{border:1px solid #e1e0da;border-radius:12px;background:#fff;box-shadow:none}
html.style-epure .aurore-cote .aurore-texte:focus{border-color:#1d1d1b;outline:0}
html.style-epure .aurore-cote .aurore-carnet li{background:none;border:0;border-bottom:1px solid #efeee9;border-radius:0;padding:10px 0}
html.style-epure .aurore-cote .aurore-carnet small{color:#8a8984}
html.style-epure .aurore-cote .aurore-lien{color:#1d1d1b;text-decoration:underline;text-decoration-color:#c9c8c2;text-underline-offset:3px;font-weight:500;border:0;background:none;box-shadow:none}
html.style-epure .aurore-cote .aurore-lien:hover{text-decoration-color:#1d1d1b}
html.style-epure .aurore-cote .aurore-delier{color:#9a4a3d}
html.style-epure .aurore-cote .btn{border:1px solid #e1e0da;border-radius:999px;background:#fff;box-shadow:none;font-weight:500}
html.style-epure .aurore-cote .btn.primary{background:#1d1d1b;border-color:#1d1d1b;color:#fff}
html.style-epure .aurore-cote .aurore-ajout .input{border:1px solid #e1e0da;border-radius:999px;background:#fff;padding-left:14px}
html.style-epure .aurore-cote .aurore-carte + .aurore-carte{margin-top:22px;padding-top:20px;border-top:1px solid #efeee9}
html.style-epure .aurore-cote .au-fermer{border:1px solid #e1e0da;border-radius:999px;background:#fff;box-shadow:none;width:30px;height:30px}
html.style-epure .aurore-cote .aurore-rail::after{background:#fff!important}
html.style-epure .aurore-cote .aurore-case{position:relative;border:1px solid #e1e0da!important;background:#fff!important;color:#1d1d1b;font-weight:500}
html.style-epure .aurore-cote .aurore-case input{position:absolute;opacity:0;width:0;height:0;margin:0}
html.style-epure .aurore-cote .aurore-case:has(input:checked){background:#1d1d1b!important;border-color:#1d1d1b!important;color:#fff;font-weight:500}
html.style-epure .aurore-cote select{border:1px solid #e1e0da;border-radius:999px;background:#fff;padding:5px 12px;font:inherit;font-size:13px;color:#1d1d1b}
html.style-epure #appView .aurore-cote .au-fermer{border:1px solid #e1e0da!important;border-radius:999px;background:#fff!important;box-shadow:none!important;width:30px;height:30px;color:#1d1d1b}
html.style-epure .aurore-cote .aurore-sait-attente{color:#1d1d1b}

/* ---- Accueil, style Épuré : la conversation reste dans le cadre de la saisie (19/11/2026, Corentin : « ça sort du cadre »).
   epurerChamp() (portal.html) range #ovAuroreFil dans le formulaire ; ici, une rangée de plus en haut de sa grille. ---- */
html.style-epure #appView #ovAuroreForm:has(> #ovAuroreFil:not([hidden])){grid-template-rows:auto auto auto}
html.style-epure #appView #ovAuroreForm > #ovAuroreFil{grid-column:1 / -1;grid-row:1;min-width:0;margin:0 0 14px;padding:0 0 14px;border-bottom:1px solid #efeee9}
html.style-epure #appView #ovAuroreForm:has(> #ovAuroreFil:not([hidden])) > :is(.icon,#ovAuroreSaisie){grid-row:2}
html.style-epure #appView #ovAuroreForm:has(> #ovAuroreFil:not([hidden])) > .ov-champ-bas{grid-row:3}
html.style-epure #appView #ovAuroreForm:has(> #ovAuroreFil:not([hidden])) > .ov-envoyer{grid-row:2 / 4}
html.style-epure #ovAuroreFil .ov-m.elle{border:0;background:none;padding:2px 0;border-radius:0}

/* ---- Relier Telegram sur place (20/11/2026, maquette B de Corentin) : la carte « Sur votre téléphone » se déplie.
   Sur ordinateur : un QR code à scanner ; sur écran tactile : un bouton. Trois étapes, puis l'attente du « Démarrer ». ---- */
.au-rel{display:grid;gap:14px;margin-top:12px;flex-basis:100%;min-width:0;max-width:320px}
.au-rel .aurore-actions{margin-top:0}
.au-rel-qr{display:grid;justify-items:center;gap:2px;padding:12px 12px 14px;border:1px solid var(--line,#ddd8cc);border-radius:14px;background:#fff;text-align:center}
.au-rel-qr svg{display:block;width:min(100%,184px);height:auto;aspect-ratio:1;margin-bottom:6px}
.au-rel-legende{display:block;font-size:12.5px;line-height:1.45;color:var(--muted,#6d675d)}
.au-rel-etapes{list-style:none;margin:2px 0 0;padding:0;display:grid;gap:10px}
.au-rel-etapes li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start;font-size:13.5px;line-height:1.4}
.au-rel-n{width:20px;height:20px;border-radius:50%;border:1.3px solid var(--gold,#e5b95b);display:grid;place-items:center;font-size:11.5px;font-weight:600;background:#fff;color:#1d1d1b}
.au-rel-t{min-width:0}
.au-rel-liens{display:block;margin-top:3px;font-size:13px}
.au-rel-note{display:block;margin-top:2px;font-size:12px;color:var(--muted,#6d675d)}
.au-rel-attente{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13.5px;color:var(--muted,#6d675d)}
.au-rel-attente .aurore-lien{margin-left:auto}
.au-point{width:9px;height:9px;border-radius:50%;background:var(--gold,#e5b95b);box-shadow:0 0 0 4px rgba(229,185,91,.3);flex:none}
@media (prefers-reduced-motion:no-preference){.au-point{animation:au-pouls 1.6s ease-in-out infinite}}
@keyframes au-pouls{0%,100%{box-shadow:0 0 0 3px rgba(229,185,91,.35)}50%{box-shadow:0 0 0 6px rgba(229,185,91,.12)}}
.au-rel-ici{margin:0;font-size:13px;color:var(--muted,#6d675d)}
.au-rel-fin{margin:0;font-size:13.5px}
.au-rel-ouvrir{display:flex;justify-content:center;align-items:center;width:100%;min-height:46px;font-size:15px;text-decoration:none;box-sizing:border-box}
html.style-epure .au-rel-qr{border-color:#e1e0da}
html.style-epure .au-rel-legende,html.style-epure .au-rel-note,html.style-epure .au-rel-ici,html.style-epure .au-rel-attente{color:#6b6a65}
html.style-epure .au-rel-ouvrir{border-radius:999px}
.aurore-cote h3[tabindex="-1"]:focus{outline:0}
