/* nukleo.com v7 · bloc « Parlons-en » · maquette Han, 18 nov. 2026
   Remplace le chat sur contact.html et la scène 9 de l'accueil.
   Inter 200/400/500, Marin #010C30, blanc, Corail #D43829 (traits seulement). */

#parlons-en.pe{
  --pe-marin:#010C30;
  --pe-txt:#fff;
  /* Blanc plein : sur le dégradé milC, 74 % et 78 % passent sous 4,5:1,
     et le corail passe sous 3:1. Le trait au repos est à 70 % pour rester ≥ 3:1. */
  --pe-txt-2:#fff;
  --pe-lab:#fff;
  --pe-rule:rgba(255,255,255,.70);
  --pe-rule-h:#fff;
  --pe-corail:#fff;
  --pe-m:max(72px,calc((100vw - 1360px) / 2));
  --pe-gap:52px;
  --pe-form:600px;
  /* Fond de staging (milC), pas le Marin. Le dégradé est celui de la section avant cette PR. */
  background:var(--milC);
  color:var(--pe-txt);
  width:100%;
}
#parlons-en.pe .pe-grid{
  max-width:calc(1360px + 144px);
  margin:0 auto;
  padding:calc(var(--hh,88px) + 96px) var(--pe-m) 128px;
  display:grid;
  grid-template-columns:minmax(0,1fr) var(--pe-form);
  column-gap:96px;
  align-items:start;
}
#parlons-en.pe .pe-in{padding-top:4px;min-width:0;container-type:inline-size}
/* « Parlons-en » à 120 px mesure ~557 px (Inter 200, −0,035 em).
   De 1101 à 1279 le bloc tient sur une colonne et le titre reste à 96 px.
   Dès 1280, deux colonnes : plancher 88 px, 20,6cqi, plafond 120 px.
   Dès 1440, marge fixe de 72 px et titre à 120 px. */
#parlons-en.pe .pe-t{
  margin:0;
  font-weight:200;
  font-size:120px;
  font-size:clamp(48px,21.4cqi,120px);
  line-height:.98;
  letter-spacing:-.035em;
  color:#fff;
  white-space:nowrap;
  max-width:100%;
}
@media (min-width:1440px){
  #parlons-en.pe{--pe-m:72px}
  #parlons-en.pe .pe-t{font-size:120px;white-space:nowrap}
}
#parlons-en.pe .sigl{
  display:block;
  width:160px;
  height:1.5px;
  margin:36px 0;
  position:relative;
  background:none;
}
#parlons-en.pe .sigl::after{content:none}
#parlons-en.pe .pe-in.ch-intro{color:inherit;align-self:auto}
/* Sur le bleu de milC, le bleu #3100FF disparaît. Le trait part du blanc vers le Corail. */
#parlons-en.pe .sigl i,
#parlons-en.pe.nk-arcs-enter .sigl i,
#parlons-en.pe.nk-arcs-settled .sigl i{
  background:linear-gradient(90deg,#fff,#D43829) !important;
}
#parlons-en.pe .sigl b{
  background:#D43829;
}
#parlons-en.pe.nk-arcs-enter #ch.ch,
#parlons-en.pe.nk-arcs-settled #ch.ch{
  opacity:1 !important;
  transform:none !important;
}
html.pe-onde #parlons-en.pe{min-height:100vh;position:relative;z-index:6}
html.pe-onde .pe-onde-from{position:fixed;inset:0;background:#fff;z-index:5;pointer-events:none}
html.pe-onde .top:not(.stuck){background:transparent !important}
#parlons-en.pe .pe-p{
  margin:0;
  font-weight:400;
  font-size:20px;
  line-height:1.5;
  color:var(--pe-txt-2);
  max-width:400px;
}

#parlons-en.pe .sj{
  border:0;
  display:block;
  min-width:0;
  margin:0 0 calc(var(--pe-gap) - 12px);
  padding:0;
}
#parlons-en.pe .sj legend{
  font-size:13px;
  font-weight:500;
  letter-spacing:.01em;
  text-transform:none;
  color:var(--pe-lab);
  margin:0 0 8px;
  padding:0;
}
#parlons-en.pe .sj-r{display:flex;gap:36px;margin-top:4px;flex-wrap:wrap}
#parlons-en.pe .sj label{
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-size:17px;
  font-weight:400;
  color:var(--pe-txt-2);
  cursor:pointer;
  transition:color 250ms;
}
#parlons-en.pe .sj input{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  margin:0;
  pointer-events:none;
}
#parlons-en.pe .sj label::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:6px;
  height:1px;
  background:var(--pe-corail);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 400ms cubic-bezier(.16,1,.3,1);
}
#parlons-en.pe .sj label:hover{color:#fff}
#parlons-en.pe .sj label:has(input:checked){color:#fff}
#parlons-en.pe .sj label:has(input:checked)::after{transform:none}
#parlons-en.pe .sj input:focus-visible{outline:none}

#parlons-en.pe .fd{
  display:block;
  position:relative;
  margin:0 0 var(--pe-gap);
  padding:0;
}
#parlons-en.pe .fd > span{
  position:static;
  top:auto;
  left:auto;
  text-transform:none;
  letter-spacing:normal;
  font-size:inherit;
  font-weight:inherit;
  color:inherit;
}
#parlons-en.pe .fd .l{
  display:flex;
  gap:16px;
  justify-content:space-between;
  font-size:13px;
  font-weight:500;
  letter-spacing:.01em;
  color:var(--pe-lab);
}
#parlons-en.pe .fd .l em{font-style:normal;font-weight:400}
#parlons-en.pe .fd .w{display:block;position:relative}
#parlons-en.pe .fd input,
#parlons-en.pe .fd textarea{
  display:block;
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  border-radius:0;
  box-shadow:none;
  padding:10px 0 12px;
  min-height:48px;
  font:400 20px/1.4 Inter,system-ui,sans-serif;
  color:#fff;
  border-bottom:1px solid var(--pe-rule);
  resize:none;
  caret-color:var(--pe-corail);
  transition:border-color 250ms;
}
#parlons-en.pe .fd textarea{
  min-height:92px;
  field-sizing:content;
  max-height:280px;
  overflow:auto;
}
#parlons-en.pe .fd:hover input,
#parlons-en.pe .fd:hover textarea{border-bottom-color:var(--pe-rule-h)}
#parlons-en.pe .fd input:focus,
#parlons-en.pe .fd textarea:focus,
#parlons-en.pe .fd input:focus-visible,
#parlons-en.pe .fd textarea:focus-visible{outline:none}
#parlons-en.pe .fd i{
  position:absolute;
  left:0;
  right:0;
  bottom:-.25px;
  width:auto;
  height:1.5px;
  background:var(--pe-corail);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 400ms cubic-bezier(.16,1,.3,1);
  pointer-events:none;
}
#parlons-en.pe .fd.err i{transform:none}
#parlons-en.pe .fd .l,
#parlons-en.pe .fd:focus-within .l,
#parlons-en.pe .fd.is-focus .l{color:#fff}
#parlons-en.pe .fd .h,
#parlons-en.pe .fd .em{
  display:block;
  font-size:14px;
  font-weight:400;
  line-height:1.45;
  letter-spacing:0;
  color:var(--pe-lab);
  margin-top:10px;
}
#parlons-en.pe .fd .em{display:none;color:#fff}
#parlons-en.pe .fd .em::before{
  content:"";
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--pe-corail);
  margin-right:10px;
  vertical-align:1px;
}
#parlons-en.pe .fd.err .em{display:block}
#parlons-en.pe .fd.err .h{display:none}
#parlons-en.pe .fd.err input,
#parlons-en.pe .fd.err textarea{border-bottom-color:transparent}

#parlons-en.pe .cs{
  font-size:14px;
  font-weight:400;
  line-height:1.5;
  color:var(--pe-lab);
  margin:-8px 0 32px;
}
#parlons-en.pe .cs a,
#parlons-en.pe .ml a,
#parlons-en.pe .fx a{
  color:#fff;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
#parlons-en.pe .cs a,
#parlons-en.pe .ml a{
  display:inline-block;
  padding:12px 0;
  margin:-12px 0;
}
#parlons-en.pe .go{
  height:56px;
  padding:0 32px;
  gap:12px;
  border-radius:999px;
  border:1px solid #FFFFFF;
  background:#FFFFFF;
  color:#010C30;
  font-size:16px;
  font-weight:500;
  line-height:1.2;
  cursor:pointer;
}
#parlons-en.pe .go:hover,
#parlons-en.pe .go:disabled,
#parlons-en.pe .go:disabled:hover,
#parlons-en.pe .go[aria-disabled="true"],
#parlons-en.pe .go[aria-disabled="true"]:hover{
  background:#FFFFFF;
  color:#010C30;
  border-color:#FFFFFF;
}
#parlons-en.pe .go .ar{transition:transform 400ms cubic-bezier(.16,1,.3,1)}
#parlons-en.pe .go .ar[hidden]{display:none}
#parlons-en.pe .go:hover .ar{transform:translateX(4px)}
#parlons-en.pe .go[aria-busy="true"],
#parlons-en.pe .go[aria-busy="true"]:hover{cursor:progress}
#parlons-en.pe .fx{
  font-size:14px;
  font-weight:400;
  line-height:1.45;
  color:#fff;
  margin:0 0 20px;
}
#parlons-en.pe .fx::before{
  content:"";
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--pe-corail);
  margin-right:10px;
  vertical-align:1px;
}
#parlons-en.pe .ts{margin:0 0 16px}
#parlons-en.pe .ts[hidden]{display:none}
#parlons-en.pe .ml{margin:28px 0 0;font-size:14px;font-weight:400;line-height:1.45;color:var(--pe-lab)}
/* Onglets : trait de rangée, 20 px, poids 500. Distinct des pastilles (17 px, 400). */
#parlons-en.pe .pe-tabs{
  display:flex;
  gap:40px;
  margin:0 0 44px;
  border-bottom:1px solid rgba(255,255,255,.6);
}
#parlons-en.pe .pe-tab{
  position:relative;
  display:inline-flex;
  align-items:flex-end;
  min-height:48px;
  padding:0 0 12px;
  border:0;
  border-radius:0;
  background:none;
  color:var(--pe-txt-2);
  font:500 20px/1.2 Inter,system-ui,sans-serif;
  letter-spacing:-.005em;
  cursor:pointer;
}
#parlons-en.pe .pe-tab::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:1px;
  background:var(--pe-corail);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 400ms cubic-bezier(.16,1,.3,1);
}
#parlons-en.pe .pe-tab:hover{color:#fff}
#parlons-en.pe .pe-tab[aria-selected="true"]{color:#fff}
#parlons-en.pe .pe-tab[aria-selected="true"]::after{transform:none}
#parlons-en.pe .pe-panel[hidden]{display:none}

/* Clavardage v2 (Han, 19 nov.) : voir le bloc en fin de fichier. */
#parlons-en.pe .chi{
  --cr:#fff;
  --cr-rule:rgba(255,255,255,.45);
  --cr-soft:rgba(255,255,255,.74);
  background:transparent;
  color:#fff;
}
#parlons-en.pe .chi,
#parlons-en.pe .ch,
#parlons-en.pe .ch-pane,
#parlons-en.pe .ch-log,
#parlons-en.pe .ch-in{max-width:100%;min-width:0}
#parlons-en.pe .ch{
  margin:0;
  max-height:none;
  background:transparent;
  border:0;
  box-shadow:none;
  color:#fff;
}
#parlons-en.pe .ch-log{
  display:flex;
  flex-direction:column;
  gap:24px;
  max-height:min(720px,62vh);
  overflow:auto;
  /* 8 px pour l'anneau des pastilles, repris par la marge : la place à l'écran ne change pas. */
  margin:-8px;
  padding:8px;
  border:0;
  background:transparent;
}
#parlons-en.pe .ch-m,
#parlons-en.pe .ch-m+.ch-m{
  display:block;
  margin:0;
  padding:0;
  border:0;
  background:none;
  grid-template-columns:none;
}
#parlons-en.pe .ch-m .who,
#parlons-en.pe .ch-m .ch-av,
#parlons-en.pe .ch-m .ch-ex,
#parlons-en.pe .ch-chip-lab{display:none}
#parlons-en.pe .ch-m .tx{overflow-wrap:anywhere}
#parlons-en.pe .ch-m.bot{align-self:flex-start;max-width:520px}
#parlons-en.pe .ch-m.bot .tx{
  display:block;
  font-weight:400;
  font-size:18px;
  line-height:1.55;
  color:var(--pe-txt-2);
}
#parlons-en.pe .ch-m.me{
  align-self:flex-end;
  max-width:440px;
  background:rgba(255,255,255,.06);
  border-radius:2px;
  padding:10px 16px;
}
#parlons-en.pe .ch-m.me .tx{
  display:block;
  font-weight:400;
  font-size:17px;
  line-height:1.5;
  color:#fff;
  opacity:1;
}
#parlons-en.pe .ch-typing{background:none;padding:0;max-width:none}
#parlons-en.pe .ch-typing .tx > span:not(.ch-dots){display:none}
#parlons-en.pe .ch-dots{display:inline-flex;gap:5px;align-items:center;min-height:18px}
#parlons-en.pe .ch-dots i{
  display:block;
  width:4px;height:4px;
  border-radius:50%;
  background:rgba(255,255,255,.74);
}
#parlons-en.pe .ch-start:not(:has(.ch-chips)){display:none}
#parlons-en.pe .ch-chips{
  display:flex;
  flex-wrap:wrap;
  gap:36px;
  margin-top:-12px;
  padding:0;
}
#parlons-en.pe .ch-chip{
  position:relative;
  border:0;
  border-radius:0;
  background:none;
  color:var(--pe-txt-2);
  min-height:44px;
  padding:0;
  font-size:17px;
  font-weight:400;
}
#parlons-en.pe .ch-chip::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:6px;
  height:1px;
  background:var(--pe-corail);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 400ms cubic-bezier(.16,1,.3,1);
}
#parlons-en.pe .ch-chip:hover{background:none;border-color:transparent;color:#fff}
#parlons-en.pe .ch-chip.on{color:#fff}
#parlons-en.pe .ch-chip.on::after{transform:none}
#parlons-en.pe .ch-chips.is-done .ch-chip{cursor:default}
#parlons-en.pe .ch-ai{overflow-wrap:anywhere}
#parlons-en.pe .ch::before{display:none}
#parlons-en.pe .ch-in{
  position:relative;
  display:flex;
  align-items:flex-end;
  border:0;
  background:transparent;
  border-radius:0;
  padding:0;
  margin-top:44px;
  gap:0;
}
#parlons-en.pe .ch-field{flex:1;min-width:0;position:relative}
#parlons-en.pe .ch-in input,
#parlons-en.pe .ch-in textarea{
  display:block;
  width:100%;
  min-height:48px;
  max-height:160px;
  margin:0;
  padding:10px 56px 12px 0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:#fff;
  caret-color:var(--pe-corail);
  font:400 20px/1.4 Inter,system-ui,sans-serif;
  resize:none;
  border-bottom:1px solid var(--pe-rule);
}
#parlons-en.pe ::placeholder,
#parlons-en.pe .ch-in input::placeholder,
#parlons-en.pe .ch-in textarea::placeholder{color:rgba(255,255,255,.88);opacity:1;font-weight:400}
#parlons-en.pe .ch-in::after{
  content:"";
  position:absolute;
  left:0;right:44px;bottom:0;
  height:1.5px;
  background:var(--pe-corail);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 400ms cubic-bezier(.16,1,.3,1);
  pointer-events:none;
}
#parlons-en.pe .ch-in:focus-within::after{transform:scaleX(0)}
#parlons-en.pe .ch-dot{display:none}
#parlons-en.pe .ch-send{
  position:absolute;
  right:0;bottom:2px;
  width:44px;height:44px;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  color:#fff;
  font-size:20px;
  font-weight:400;
  opacity:1;
}
#parlons-en.pe .ch-send span:not(.ar){
  position:absolute;
  width:1px;height:1px;
  overflow:hidden;
  clip-path:inset(50%);
}
#parlons-en.pe .ch-send .ar{transition:transform 400ms cubic-bezier(.16,1,.3,1)}
#parlons-en.pe .ch-send:disabled,
#parlons-en.pe .ch-send:disabled:hover{
  background:none;
  color:#fff;
  border:0;
  opacity:1;
  transform:none;
  cursor:default;
}
#parlons-en.pe .ch-send:not(:disabled):hover{background:none;color:#fff}
#parlons-en.pe .ch-send:not(:disabled):hover .ar{transform:translateX(4px)}
#parlons-en.pe .ch-ai{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:20px;
  font-size:13px;
  line-height:1.45;
  color:var(--pe-lab);
}
#parlons-en.pe .ch-ai > span{min-width:0}
#parlons-en.pe .ch-info{
  position:relative;
  top:auto;right:auto;left:auto;bottom:auto;
  flex:none;
  width:18px;height:18px;
  margin-top:1px;
  z-index:2;
}
#parlons-en.pe .ch-i{
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;height:18px;
  margin-top:1px;
  padding:0;
  border:1px solid var(--pe-rule);
  border-radius:999px;
  background:none;
  color:#fff;
  font-size:11px;
  font-weight:500;
  line-height:1;
  cursor:help;
}
#parlons-en.pe .ch-i-g{font-style:normal;color:#fff}
#parlons-en.pe .ch-ai{position:relative}
#parlons-en.pe .ch-ipop{
  position:absolute;
  left:0;bottom:calc(100% + 8px);
  width:max-content;
  max-width:280px;
  margin:0;
  padding:10px 12px;
  background:#fff;
  color:var(--pe-marin);
  border:0;
  border-radius:2px;
  box-shadow:none;
  font-size:13px;
  line-height:1.45;
  z-index:5;
}
#parlons-en.pe .ch-ipop a{display:none}
#parlons-en.pe .cfin{display:none}
#parlons-en.pe #ch.fin .ch-in{display:none}
#parlons-en.pe #ch.fin .cfin{display:block;margin-top:0}
#parlons-en.pe #ch.fin .ch-log{margin-bottom:calc(40px - 8px)}
#parlons-en.pe #ch.fin .ai-x{display:none}
#parlons-en.pe .pe-kept{display:none;margin:0 0 10px;font-size:14px;line-height:1.45;color:#fff}
#parlons-en.pe .pe-kept.on{display:block}
#parlons-en.pe .pe-f.sent .pe-tabs{display:none}
/* Le reçu est dans l'onglet Écrire. Après un envoi depuis Clavarder,
   cet onglet était encore [hidden] : « Merci » ne s'affichait pas. */
#parlons-en.pe .pe-f.sent #pe-panel-write[hidden]{display:block}
#parlons-en.pe .pe-f.sent #pe-panel-chat{display:none}
#parlons-en.pe .ok{display:none}
#parlons-en.pe .ct{display:block;gap:0}
#parlons-en.pe .ct>.fd{width:100%;grid-column:auto}
#parlons-en.pe .pe-f.sent .ct{display:none}
#parlons-en.pe .pe-f.sent .ok{display:block}
#parlons-en.pe .ok:focus{outline:none;caret-color:transparent}
#parlons-en.pe .ok h2,
#parlons-en.pe .ok h3{
  margin:0;
  font-weight:200;
  font-size:56px;
  line-height:1.05;
  letter-spacing:-.03em;
  color:#fff;
  caret-color:transparent;
}
#parlons-en.pe .ok p{
  margin:20px 0 0;
  font-size:18px;
  font-weight:400;
  line-height:1.5;
  color:var(--pe-txt-2);
  max-width:440px;
}

/* contact : le bandeau suit la même grille que le bloc */
html:has(#parlons-en.pe:not([data-scene])){--m:max(72px,calc((100vw - 1360px) / 2))}
@media (min-width:1101px){
  html:has(#parlons-en.pe:not([data-scene])) .top .mn,
  html.deck:has(#parlons-en.pe.cur) .top .mn{display:none}
  html.deck:has(#parlons-en.pe.cur) .top{
    padding-left:max(72px,calc((100vw - 1360px) / 2));
    padding-right:max(72px,calc((100vw - 1360px) / 2));
  }
}
html:has(#parlons-en.pe:not([data-scene])) .top .btn.hb,
html.deck:has(#parlons-en.pe.cur) .top .btn.hb{
  height:44px;
  padding:0 22px;
}
/* Défilé : Marin plein. Deck = .solid (scroll de la scène).
   Page contact (pas une scène) = .stuck. L'accueil en flux passe par --hbg dans site.js. */
html.deck:has(#parlons-en.pe.cur) .top.solid,
html:not(.deck):has(#parlons-en.pe:not([data-scene])) .top.stuck{
  background:#010C30;
  background-color:#010C30;
  height:72px;
}
/* L'onde force le bandeau transparent. Au défilement, le Marin plein l'emporte.
   En haut de Contact, sans .stuck, le bandeau reste transparent. */
html.pe-onde:not(.deck):has(#parlons-en.pe:not([data-scene])) .top.stuck{
  background:#010C30 !important;
  background-color:#010C30 !important;
}
html:not(.deck):has(#parlons-en.pe:not([data-scene])) .top:not(.stuck){
  background-color:transparent;
}

@media (max-width:1100px){
  html:has(#parlons-en.pe:not([data-scene])) .top nav,
  html:has(#parlons-en.pe:not([data-scene])) .top .nk-lang,
  html.deck:has(#parlons-en.pe.cur) .top nav,
  html.deck:has(#parlons-en.pe.cur) .top .nk-lang{display:none!important}
  html:has(#parlons-en.pe:not([data-scene])) .top .mn,
  html.deck:has(#parlons-en.pe.cur) .top .mn{display:inline-flex;margin-left:0}
  html:has(#parlons-en.pe:not([data-scene])) .top,
  html.deck:has(#parlons-en.pe.cur) .top{gap:12px}
  html:has(#parlons-en.pe:not([data-scene])) .top .btn.hb,
  html.deck:has(#parlons-en.pe.cur) .top .btn.hb{display:inline-flex!important;margin-left:auto}
  #parlons-en.pe .pe-grid{
    grid-template-columns:minmax(0,1fr);
    max-width:calc(var(--pe-form) + 144px);
    row-gap:56px;
  }
  #parlons-en.pe .pe-t{font-size:96px;font-size:clamp(48px,21.4cqi,96px)}
}
/* après le bloc @media (max-width:1100px) */
@media (min-width:1101px) and (max-width:1279px){
  #parlons-en.pe .pe-grid{
    grid-template-columns:minmax(0,1fr);
    max-width:calc(var(--pe-form) + 144px);
    row-gap:56px;
  }
  #parlons-en.pe .pe-t{font-size:96px;font-size:clamp(48px,21.4cqi,96px)}
}
/* deux colonnes (>=1280) : marge de sécurité de 3 % et plancher */
@media (min-width:1280px){
  #parlons-en.pe .pe-t{font-size:clamp(88px,20.6cqi,120px)}
}
@media (min-width:1440px){
  #parlons-en.pe{--pe-m:72px}
  #parlons-en.pe .pe-t{font-size:120px}
}
#parlons-en.pe .pe-t{hyphens:none;-webkit-hyphens:none;overflow-wrap:normal;word-break:keep-all}

@media (max-width:600px){
  html:has(#parlons-en.pe:not([data-scene])){--m:24px}
  #parlons-en.pe{--pe-m:24px;--pe-gap:40px}
  html:has(#parlons-en.pe:not([data-scene])) .top .logo,
  html.deck:has(#parlons-en.pe.cur) .top .logo{height:26px}
  html.deck:has(#parlons-en.pe.cur) .top{padding-left:24px;padding-right:24px}
  html:has(#parlons-en.pe:not([data-scene])) .top .btn.hb,
  html.deck:has(#parlons-en.pe.cur) .top .btn.hb{padding:0 18px}
  html.deck:has(#parlons-en.pe.cur) .top.solid,
  html:not(.deck):has(#parlons-en.pe:not([data-scene])) .top.stuck{height:60px}
  #parlons-en.pe .pe-grid{
    padding:calc(var(--hh,72px) + 32px) var(--pe-m) 72px;
    row-gap:40px;
    max-width:none;
  }
  #parlons-en.pe .pe-t{font-size:64px;font-size:clamp(40px,21.4cqi,64px)}
  #parlons-en.pe .sigl{width:120px;margin:24px 0}
  #parlons-en.pe .pe-p{font-size:17px}
  #parlons-en.pe .sj{margin-bottom:calc(var(--pe-gap) - 12px)}
  #parlons-en.pe .sj-r{gap:24px}
  #parlons-en.pe .sj label{font-size:16px}
  #parlons-en.pe .pe-tabs{gap:32px;margin-bottom:36px}
  #parlons-en.pe .pe-tab{font-size:18px}
  #parlons-en.pe .ch-log{gap:20px}
  #parlons-en.pe .ch-m.bot .tx{font-size:17px}
  #parlons-en.pe .ch-m.me{max-width:88%}
  #parlons-en.pe .ch-m.me .tx{font-size:16px}
  #parlons-en.pe .ch-chips{gap:24px}
  #parlons-en.pe .ch-chip{font-size:16px}
  #parlons-en.pe .ch-in textarea,
  #parlons-en.pe .ch-in input{font-size:17px}
  #parlons-en.pe .fd input,
  #parlons-en.pe .fd textarea{font-size:17px}
  #parlons-en.pe .go{width:100%;justify-content:center}
}

html.deck #parlons-en.pe{height:100%;min-height:0;overflow:hidden}
html.deck #parlons-en.pe.scroll{overflow-y:auto;overscroll-behavior:contain}

@media (prefers-reduced-motion:reduce){
  #parlons-en.pe .fd i,
  #parlons-en.pe .sj label::after,
  #parlons-en.pe .pe-tab::after,
  #parlons-en.pe .ch-chip::after,
  #parlons-en.pe .ch-in::after,
  #parlons-en.pe .ch-send .ar,
  #parlons-en.pe .go .ar{transition:none}
}

/* Han : anneau blanc 2 px, liseré Marin #010C30 de 2 px à l'extérieur, décalage 3 px.
   3 + 2 + 2 = 7 : le Marin dépasse le blanc. */
#parlons-en.pe .pe-tabs{border-bottom-color:rgba(255,255,255,.6)}
#parlons-en.pe .pe-tab:focus-visible,
#parlons-en.pe .go:focus-visible,
#parlons-en.pe .ch-chip:focus-visible,
#parlons-en.pe .sj label:has(input:focus-visible),
#parlons-en.pe .ch-i:focus-visible,
#parlons-en.pe .chi :focus-visible{
  outline:2px solid #fff;
  outline-offset:3px;
  box-shadow:0 0 0 7px #010C30;
}
/* Han, 12 h 20 : pas d'anneau sur un champ souligné.
   Au focus, 2 px blanc plein, et 2 px de Marin juste dessous. Le libellé reste blanc. */
#parlons-en.pe .fd input:focus,
#parlons-en.pe .fd textarea:focus,
#parlons-en.pe .fd input:focus-visible,
#parlons-en.pe .fd textarea:focus-visible,
#parlons-en.pe .ch-in input:focus,
#parlons-en.pe .ch-in textarea:focus,
#parlons-en.pe .ch-in input:focus-visible,
#parlons-en.pe .ch-in textarea:focus-visible{
  outline:none;
  outline-offset:0;
  border-bottom:2px solid #fff;
  box-shadow:0 2px 0 #010C30;
}

/* ==========================================================================
   Parlons-en · onglet Clavarder · direction Han Pixel, 19 nov. 2026 (v2)
   À AJOUTER À LA FIN de nk-pe.css (après la dernière ligne, donc après les
   règles de focus « Han, 12 h 20 »). Rien à supprimer ailleurs : ce bloc
   gagne par l'ordre, à spécificité égale ou supérieure.
   CSS seulement : aucun changement dans js/chat.js ni dans le HTML.
   Remplace le commentaire de la l. 345 par :
   « Clavardage v2 (Han, 19 nov.) : voir le bloc en fin de fichier. »
   ========================================================================== */

#parlons-en.pe{
  --pe-ch-line:rgba(255,255,255,.78);    /* contour du champ et des pilules au repos, ≥ 3:1 jusque sur le Corail */
  --pe-ch-veil:rgba(1,12,48,.22);        /* voile Marin dans le champ (texte blanc ≥ 6:1 partout) */
  --pe-ch-h:56px;                        /* hauteur du champ, 1 ligne */
  --pe-ch-r:28px;                        /* rayon du champ = h/2 */
  --pe-ch-send:44px;                     /* bouton d'envoi, cible tactile */
  --pe-ch-in:6px;                        /* retrait du bouton dans le champ (28 − 22 = 6 : rayons concentriques) */
  --pe-ch-pill:44px;
  --pe-ch-gap:8px;                       /* entre pilules, horizontal et vertical */
  --pe-ch-ease:cubic-bezier(.16,1,.3,1);
  --pe-ch-dot:#D43829;                   /* seul Corail du panneau : point d'erreur cerclé de blanc */
}

/* 1. Hauteur : le panneau occupe la colonne jusqu'au pli (deux colonnes seulement, ≥ 1280). */
#parlons-en.pe #ch.ch,
#parlons-en.pe .ch-pane-chat{display:flex;flex-direction:column;min-height:0}
#parlons-en.pe .ch-pane-chat{flex:1 1 auto}
@media (min-width:1280px){
  /* Hauteur fixe : le fil défile dedans, le champ ne bouge plus. 495 px à 1440 × 900. */
  #parlons-en.pe #ch.ch{height:clamp(400px,55svh,560px)}
  /* Fin de conversation (formulaire Nom/Courriel) : hauteur libre, comme aujourd'hui. */
  #parlons-en.pe #ch.ch.fin{height:auto}
  #parlons-en.pe #ch.fin .ch-log{flex:none;max-height:min(720px,62vh)}
  #parlons-en.pe .ch-log{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto}
  #parlons-en.pe .ch-in{margin-top:auto}
}

/* 2. Fil : la voix en titre, les répliques en filet. */
#parlons-en.pe .ch-log{gap:24px;margin-bottom:16px}
/* Fil qui a défilé (chat.js pose .sc) : fondu de 32 px en haut, pas de coupe sèche. */
#parlons-en.pe .ch-log.sc{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 32px);mask-image:linear-gradient(to bottom,transparent 0,#000 32px)}
#parlons-en.pe .ch-log > .ch-m.bot:first-child{max-width:560px}
#parlons-en.pe .ch-log > .ch-m.bot:first-child .tx{
  font:400 28px/36px Inter,system-ui,sans-serif;
  letter-spacing:-.015em;
  color:#fff;
  text-wrap:pretty;
}
#parlons-en.pe .ch-m.bot .tx{font-size:18px;line-height:28px;color:#fff}
#parlons-en.pe .ch-m.me{
  align-self:flex-end;
  max-width:440px;
  background:none;
  border-radius:0;
  padding:2px 16px 2px 0;
  border-right:1px solid #fff;
}
#parlons-en.pe .ch-m.me .tx{font-size:17px;line-height:26px;color:#fff}
#parlons-en.pe .ch-dots{gap:6px;min-height:28px}
#parlons-en.pe .ch-dots i{width:5px;height:5px;background:#fff;animation:pe-ch-dot 1.2s var(--pe-ch-ease) infinite}
#parlons-en.pe .ch-dots i:nth-child(2){animation-delay:.15s}
#parlons-en.pe .ch-dots i:nth-child(3){animation-delay:.3s}
@keyframes pe-ch-dot{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-3px)}}

/* 3. Pilules (3 choix). */
#parlons-en.pe .ch-chips{gap:var(--pe-ch-gap);margin:0 0 16px;padding:0}
#parlons-en.pe .ch-chip{
  display:inline-flex;align-items:center;
  min-height:var(--pe-ch-pill);
  padding:0 20px;
  border:1px solid var(--pe-ch-line);
  border-radius:999px;
  background:transparent;
  color:#fff;
  font:400 16px/1 Inter,system-ui,sans-serif;
  transition:background-color 200ms,color 200ms,border-color 200ms;
}
#parlons-en.pe .ch-chip::after{content:none}
#parlons-en.pe .ch-chip:hover,
#parlons-en.pe .ch-chip.on{background:#fff;border-color:#fff;color:#010C30}
/* Après le premier envoi (pilule ou texte libre), chat.js pose .is-done : la rangée disparaît.
   Le choix reste lisible dans le fil (réplique « Un projet »). */
#parlons-en.pe .ch-start:has(.ch-chips.is-done){display:none}
/* nk-pe.js (placeChips) sort #ch-chips de .ch-start : la règle ci-dessus ne s'applique plus. On masque la rangée elle-même (Han E1, 19 nov.). */
#parlons-en.pe .ch-chips.is-done{display:none}
/* Fondu de 24 px en haut du fil, seulement une fois le fil défilé (.sc, chat.js) : plus de résidu de la réplique précédente, sans estomper l’accueil (Han, non bloquant). */
#parlons-en.pe .ch-log.sc{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 24px);mask-image:linear-gradient(to bottom,transparent 0,#000 24px)}

/* 4. Champ encadré (la boîte est le formulaire .ch-in, le textarea est transparent). */
#parlons-en.pe .ch-in{
  position:relative;
  display:block;
  min-height:var(--pe-ch-h);
  padding:0;
  border:1px solid var(--pe-ch-line);
  border-radius:var(--pe-ch-r);
  background:var(--pe-ch-veil);
  transition:border-color 200ms,box-shadow 200ms;
}
#parlons-en.pe .ch-in::after{content:none}
#parlons-en.pe .ch-in:hover{border-color:#fff}
#parlons-en.pe .ch-in textarea,
#parlons-en.pe .ch-in textarea:focus,
#parlons-en.pe .ch-in textarea:focus-visible{
  min-height:calc(var(--pe-ch-h) - 2px);
  max-height:168px;
  padding:15px calc(var(--pe-ch-send) + var(--pe-ch-in) + 12px) 15px 22px;
  border:0;
  border-radius:var(--pe-ch-r);
  outline:none;
  box-shadow:none;
  background:transparent;
  color:#fff;
  caret-color:#fff;
  font:400 18px/24px Inter,system-ui,sans-serif;
  field-sizing:content;
  overflow-y:auto;
}
#parlons-en.pe .ch-in textarea::placeholder{color:rgba(255,255,255,.82);opacity:1}
/* Focus : 2 px blanc (bordure + 1 px), halo Marin de 4 px pour rester lisible sur le Corail. */
#parlons-en.pe .ch-in:focus-within{
  border-color:#fff;
  box-shadow:0 0 0 1px #fff,0 0 0 5px rgba(1,12,48,.38);
}

/* 5. Bouton d'envoi rond, dans le champ, calé en bas à droite (reste en bas si le texte passe à 2+ lignes). */
#parlons-en.pe .ch-send,
#parlons-en.pe .ch-send:disabled,
#parlons-en.pe .ch-send:disabled:hover{
  position:absolute;
  right:calc(var(--pe-ch-in) - 1px);
  bottom:calc((var(--pe-ch-h) - 2px - var(--pe-ch-send)) / 2);
  display:grid;place-items:center;
  width:var(--pe-ch-send);height:var(--pe-ch-send);
  padding:0;
  border-radius:50%;
  font:500 18px/1 Inter,system-ui,sans-serif;
  opacity:1;
  transform:none;
}
/* Vide (désactivé) : contour blanc 60 %, flèche blanche. */
#parlons-en.pe .ch-send:disabled,
#parlons-en.pe .ch-send:disabled:hover{background:transparent;border:1px solid rgba(255,255,255,.6);color:#fff;cursor:default}
/* Texte saisi : disque blanc, flèche Marin. */
#parlons-en.pe .ch-send:not(:disabled),
#parlons-en.pe .ch-send:not(:disabled):hover{background:#fff;border:1px solid #fff;color:#010C30;cursor:pointer}
#parlons-en.pe .ch-send:not(:disabled):hover .ar{transform:translateX(3px)}
#parlons-en.pe .ch-send:focus-visible{outline:2px solid #fff;outline-offset:3px;box-shadow:0 0 0 7px #010C30}
/* Envoi en cours (#ch[aria-busy]) : le disque reste blanc, la flèche part et revient. */
#parlons-en.pe #ch[aria-busy="true"] .ch-send:disabled{background:#fff;border-color:#fff;color:#010C30;cursor:progress}
#parlons-en.pe #ch[aria-busy="true"] .ch-send .ar{animation:pe-ch-send 900ms var(--pe-ch-ease) infinite}
@keyframes pe-ch-send{0%{transform:none;opacity:1}45%{transform:translateX(10px);opacity:0}46%{transform:translateX(-10px);opacity:0}100%{transform:none;opacity:1}}

/* 6. Statut (attente du contrôle, erreur + Réessayer). */
#parlons-en.pe .ch-st{
  display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;
  margin:0 0 16px;padding:0;
  background:none;border:0;
  font:400 14px/20px Inter,system-ui,sans-serif;color:#fff;
}
#parlons-en.pe .ch-st[hidden]{display:none}
#parlons-en.pe .ch-st.err::before{
  content:"";flex:none;width:8px;height:8px;border-radius:50%;
  background:var(--pe-ch-dot);box-shadow:0 0 0 1.5px #fff;
}
#parlons-en.pe .ch-retry{
  min-height:44px;padding:0;border:0;background:none;color:#fff;
  font:500 14px/20px Inter,system-ui,sans-serif;
  text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;cursor:pointer;
}

/* 7. Mention OpenAI : 14 px, blanc plein, i de 18 px (cible de 26 px). */
#parlons-en.pe .ch-ai{margin-top:12px;gap:10px;font-size:14px;line-height:20px;color:#fff}
#parlons-en.pe .ch-i{position:relative;margin-top:1px;border-color:rgba(255,255,255,.78)}
#parlons-en.pe .ch-i::after{content:"";position:absolute;inset:-4px}

/* 8. 768 et 1024 (une colonne) : hauteur naturelle. */
@media (max-width:1279px){
  #parlons-en.pe .ch-in{margin-top:32px}
  #parlons-en.pe .ch-log > .ch-m.bot:first-child .tx{font-size:26px;line-height:34px}
}
/* 9. 390 (≤ 600). */
@media (max-width:600px){
  #parlons-en.pe .ch-log{gap:20px}
  #parlons-en.pe .ch-log > .ch-m.bot:first-child .tx{font-size:22px;line-height:30px;letter-spacing:-.01em}
  #parlons-en.pe .ch-m.bot .tx{font-size:17px;line-height:26px}
  #parlons-en.pe .ch-m.me{max-width:88%}
  #parlons-en.pe .ch-m.me .tx{font-size:16px;line-height:24px}
  #parlons-en.pe .ch-chip{padding:0 16px;font-size:15px}
  #parlons-en.pe .ch-in{margin-top:28px}
  #parlons-en.pe .ch-in textarea,
  #parlons-en.pe .ch-in textarea:focus,
  #parlons-en.pe .ch-in textarea:focus-visible{font-size:17px;padding-left:18px}
}
@media (prefers-reduced-motion:reduce){
  #parlons-en.pe .ch-dots i,
  #parlons-en.pe #ch[aria-busy="true"] .ch-send .ar{animation:none}
  #parlons-en.pe .ch-chip,#parlons-en.pe .ch-in{transition:none}
}
/* Parlons-en · onglet Écrire · « Votre demande porte sur » en pilules (même dessin que Clavarder).
   À ajouter à la fin de nk-pe.css, APRÈS clavarder-v2.css. CSS seulement. */
#parlons-en.pe .sj-r{gap:var(--pe-ch-gap,8px);margin-top:4px}
#parlons-en.pe .sj label{
  min-height:44px;padding:0 20px;
  border:1px solid var(--pe-ch-line,rgba(255,255,255,.78));border-radius:999px;
  font-size:16px;line-height:1;color:#fff;
  transition:background-color 200ms,color 200ms,border-color 200ms;
}
#parlons-en.pe .sj label::after{content:none}
#parlons-en.pe .sj label:hover{border-color:#fff}
#parlons-en.pe .sj label:has(input:checked){background:#fff;border-color:#fff;color:#010C30}
@media (max-width:600px){#parlons-en.pe .sj label{padding:0 16px;font-size:15px}}
@media (prefers-reduced-motion:reduce){#parlons-en.pe .sj label{transition:none}}

/* Suivi du clavardage : Nom, Courriel, mention, puis Envoyer.
   Le bouton colle au bas du panneau qui défile, et la scène deck
   peut défiler quand ce formulaire est ouvert (sinon overflow hidden le coupe). */
#parlons-en.pe #ch.fin .cfin .go{
  position:sticky;
  bottom:12px;
  z-index:4;
}
html.deck #parlons-en.pe:has(#ch.fin){
  overflow-y:auto;
  overscroll-behavior:contain;
}
