/* ============================================================
   ENGC QuoteWizard — Thème visuel V1.0
   ============================================================
   À importer dans le composant React (ou le HTML hôte) :
     import "./quote-wizard-engc.css";

   AUCUNE modification de la logique du composant n'est requise :
   cette feuille stylise uniquement les classes déjà présentes
   dans QuoteWizard.jsx (card, steps, radio, pcard, nav, etc.).

   Direction : univers de l'enseigne lumineuse.
   - Barre d'étapes = segments LED qui s'allument
   - Écran d'attente = "E N G C" façon enseigne LED
   - Typo condensée industrielle (Barlow), bleu ENGC,
     rouge tricolore réservé aux champs obligatoires.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600&family=Barlow+Semi+Condensed:wght@600;700&display=swap");

/* ------------------------------------------------ variables */
:root {
  --engc-bleu: #2e86b5;        /* bleu du site actuel */
  --engc-bleu-fonce: #205f82;
  --engc-bleu-glow: rgba(46, 134, 181, 0.35);
  --engc-rouge: #d6453d;       /* pointe tricolore — obligatoire / alertes */
  --engc-encre: #1b2530;       /* texte principal */
  --engc-acier: #6c7a87;       /* texte secondaire */
  --engc-trait: #d8dee4;       /* bordures */
  --engc-fond: #eef1f4;        /* fond atelier */
  --engc-papier: #ffffff;
  --engc-ok: #2e9e5b;
  --engc-warn: #d98f1f;
  --engc-bad: #c03a32;
  --engc-radius: 10px;
  --engc-ombre: 0 10px 30px rgba(27, 37, 48, 0.10), 0 2px 6px rgba(27, 37, 48, 0.06);
}

/* ------------------------------------------------ base */
body {
  margin: 0;
  /* Mosaïque de réalisations comme la page d'accueil, voilée de blanc.
     Placer l'image de fond du site dans le dossier static du serveur
     et ajuster le chemin ci-dessous si besoin. */
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    url("/static/fond-realisations.jpg") center top / cover fixed no-repeat,
    var(--engc-fond);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--engc-encre);
  -webkit-font-smoothing: antialiased;
}
/* iOS/Safari : background-attachment:fixed casse le repaint au défilement — en
   remontant, le haut de page reste blanc (retour John 2026-07-14, devis sur iPhone).
   On garde le léger parallaxe sur desktop (souris) ; sur écran tactile, le fond
   défile normalement → plus de zone blanche. */
@media (hover: none) {
  body { background-attachment: scroll; }
}

/* ------------------------------------------------ en-tête logo ENGC */
.engc-header {
  text-align: center;
  padding: 34px 16px 6px;
}
.engc-header img {
  max-width: 320px;
  width: 60%;
  height: auto;
  display: block;
  margin: 0 auto;
}
/* Logo client (mode « je suis en clientèle ») : hauteur fixe, largeur libre selon
   le format réel du logo — pas de largeur forcée comme le logo ENGC, sinon un logo
   carré/vertical est étiré et déformé. object-fit:contain = jamais de déformation. */
.engc-header img.client-logo {
  width: auto;
  max-width: 100%;
  height: 70px;
  max-height: 70px;
  object-fit: contain;
}
.engc-header .slogan {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--engc-encre);
}
/* petites barres tricolores de part et d'autre du slogan */
.engc-header .slogan::before,
.engc-header .slogan::after {
  content: "";
  width: 34px;
  height: 5px;
}
.engc-header .slogan::before { background: var(--engc-bleu); }
.engc-header .slogan::after  { background: var(--engc-rouge); }

/* ------------------------------------------------ carte principale */
.card {
  max-width: 720px;
  margin: 32px auto;
  padding: 32px 36px 28px;
  background: var(--engc-papier);
  border: 1px solid var(--engc-trait);
  border-top: 4px solid var(--engc-bleu);
  border-radius: var(--engc-radius);
  box-shadow: var(--engc-ombre);
}

h1 {
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  margin: 6px 0 18px;
  color: var(--engc-encre);
}

/* Salutation du client connecté (V4.80.1) : casse NATURELLE de la phrase —
   un bonjour tout en capitales criait plus qu'il n'accueillait (John 2026-08-19). */
h1.engc-hello {
  text-transform: none;
  letter-spacing: 0.1px;
}

h2 {
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  font-weight: 600;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--engc-bleu-fonce);
  border-bottom: 1px solid var(--engc-trait);
  padding-bottom: 6px;
  margin: 26px 0 12px;
}

.muted { color: var(--engc-acier); font-size: 14px; line-height: 1.5; }

/* ------------------------------------------------ barre d'étapes LED */
.steps {
  display: flex;
  gap: 6px;
  margin-bottom: 26px;
}
.steps div {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--engc-trait);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.steps div.on {
  background: var(--engc-bleu);
  box-shadow: 0 0 8px var(--engc-bleu-glow);
}

/* ------------------------------------------------ champs */
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 16px 0 6px;
  letter-spacing: 0.2px;
}
label.req::after {
  content: " *";
  color: var(--engc-rouge);
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
  color: var(--engc-encre);
  background: #fbfcfd;
  border: 1px solid var(--engc-trait);
  border-radius: 8px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--engc-bleu);
  box-shadow: 0 0 0 3px var(--engc-bleu-glow);
  background: #fff;
}
input[type="file"] { padding: 9px; background: #fff; cursor: pointer; }
input[type="checkbox"] {
  width: auto;
  margin-right: 9px;
  accent-color: var(--engc-bleu);
  transform: scale(1.15);
}

textarea { resize: vertical; min-height: 90px; }

.inline2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label.chk {
  display: flex;
  align-items: center;
  font-weight: 500;
  padding: 12px 14px;
  border: 1px solid var(--engc-trait);
  border-radius: 8px;
  background: #fbfcfd;
  cursor: pointer;
  margin: 12px 0;
}
label.chk:hover { border-color: var(--engc-bleu); }

/* ------------------------------------------------ choix radio (modes, fixations…) */
label.radio {
  display: block;
  padding: 13px 15px;
  margin: 9px 0;
  border: 1px solid var(--engc-trait);
  border-left: 4px solid var(--engc-trait);
  border-radius: 8px;
  background: #fbfcfd;
  cursor: pointer;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
label.radio span {
  display: block;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--engc-acier);
  margin-top: 3px;
}
label.radio:hover { border-color: var(--engc-bleu); }
label.radio.sel {
  border-color: var(--engc-bleu);
  border-left-color: var(--engc-bleu);
  background: #f0f7fb;
  box-shadow: 0 0 0 1px var(--engc-bleu), 0 2px 10px var(--engc-bleu-glow);
}

/* ------------------------------------------------ cartes produits */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.grouph {
  grid-column: 1 / -1;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--engc-bleu-fonce);
  border-bottom: 1px solid var(--engc-trait);
  padding-bottom: 5px;
  margin-top: 12px;
}
.pcard {
  border: 1px solid var(--engc-trait);
  border-radius: var(--engc-radius);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}
.pcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 37, 48, 0.12);
  border-color: var(--engc-bleu);
}
.pcard.sel {
  border-color: var(--engc-bleu);
  box-shadow: 0 0 0 2px var(--engc-bleu), 0 6px 18px var(--engc-bleu-glow);
}
.pcard img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--engc-trait);
}
.pcard b {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 15px;
  padding: 10px 12px 2px;
}
.pcard span {
  font-size: 13px;
  color: var(--engc-acier);
  padding: 0 12px 12px;
  line-height: 1.4;
}
/* V4.123.0 (John 2026-08-29) — grille produit épurée : le titre seul, la
   description derrière un « ? » (bulle engc-infobtn, comme les options). */
.pcard .pcard-t {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 12px;
  color: inherit;
}
.pcard .pcard-t b { padding: 0; }
.pcard .pcard-t .engc-infobtn { flex: 0 0 auto; position: static; transform: none; }

/* ------------------------------------------------ navigation / boutons */
.nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--engc-trait);
  flex-wrap: wrap;
}
.nav button { white-space: normal; min-height: 44px; }

button {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 26px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--engc-bleu), var(--engc-bleu-fonce));
  color: #fff;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 3px 10px var(--engc-bleu-glow);
}
button:hover { filter: brightness(1.08); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.55; cursor: wait; }
button:focus-visible { outline: 3px solid var(--engc-bleu-glow); outline-offset: 2px; }

button.sec {
  background: #fff;
  color: var(--engc-encre);
  border: 1px solid var(--engc-trait);
  box-shadow: none;
}
button.sec:hover { border-color: var(--engc-bleu); color: var(--engc-bleu-fonce); }

button.order {
  background: linear-gradient(180deg, #34b06a, var(--engc-ok));
  box-shadow: 0 3px 12px rgba(46, 158, 91, 0.4);
  animation: engc-pulse 2.2s ease-in-out infinite;
}
@keyframes engc-pulse {
  0%, 100% { box-shadow: 0 3px 12px rgba(46, 158, 91, 0.35); }
  50%      { box-shadow: 0 3px 20px rgba(46, 158, 91, 0.65); }
}

/* ------------------------------------------------ écran d'attente : enseigne LED */
.neon {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700;
  font-size: 52px;
  letter-spacing: 14px;
  text-align: center;
  color: var(--engc-bleu);
  margin: 30px 0 8px;
  text-shadow:
    0 0 6px var(--engc-bleu-glow),
    0 0 18px var(--engc-bleu-glow),
    0 0 40px rgba(46, 134, 181, 0.25);
  animation: engc-neon 1.8s ease-in-out infinite;
}
@keyframes engc-neon {
  0%, 100% { opacity: 1; text-shadow: 0 0 6px var(--engc-bleu-glow), 0 0 18px var(--engc-bleu-glow), 0 0 40px rgba(46,134,181,.25); }
  50%      { opacity: 0.75; text-shadow: 0 0 3px var(--engc-bleu-glow), 0 0 10px var(--engc-bleu-glow); }
}

/* ------------------------------------------------ résultats */
.signblock {
  border: 1px solid var(--engc-trait);
  border-left: 4px solid var(--engc-bleu);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px 16px;
  margin: 12px 0;
}

.badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--engc-bleu-fonce);
  background: #e8f2f8;
  border: 1px solid rgba(46, 134, 181, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 8px;
}

table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 14px; }
table td { padding: 6px 4px; border-bottom: 1px dashed var(--engc-trait); }
table tr:last-child td { border-bottom: none; }

/* indice de confiance */
.conf {
  font-weight: 700;
  font-size: 18px;
  padding: 3px 12px;
  border-radius: 999px;
}
.conf.ok   { color: #fff; background: var(--engc-ok); }
.conf.warn { color: #fff; background: var(--engc-warn); }
.conf.bad  { color: #fff; background: var(--engc-bad); }

/* ------------------------------------------------ responsive */
@media (max-width: 640px) {
  .card { margin: 0; padding: 22px 18px; border-radius: 0; border-left: none; border-right: none; }
  .engc-header { padding: 22px 12px 4px; }
  .engc-header img { width: 75%; max-width: 240px; }
  .engc-header .slogan { font-size: 12px; letter-spacing: 1.8px; }
  .engc-header .slogan::before, .engc-header .slogan::after { width: 22px; height: 4px; }
  h1 { font-size: 22px; }
  .inline2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .neon { font-size: 36px; letter-spacing: 9px; }
  .nav { flex-direction: column-reverse; }
  .nav button { width: 100%; }
}

/* ============================================================
   COHÉRENCE SITE VITRINE (engc.fr) — « l'enseigne qui s'allume »
   Ajouts purement visuels, alignés sur engc-enhance.css du site.
   ============================================================ */

/* angle animable pour le liseré lumineux (dégrade proprement si non supporté) */
@property --engc-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* --- Bouton « Continuer » qui s'allume (chase LED + halo qui respire) ---
   Cible le bouton d'avancement du wizard (dans .nav, hors Retour/Commander). */
.nav button:not(.sec):not(.order) {
  position: relative;
  isolation: isolate;
  overflow: visible;
  animation: engc-breathe 3.2s ease-in-out infinite;
}
.nav button:not(.sec):not(.order)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;                       /* épaisseur du trait lumineux */
  background: conic-gradient(
    from var(--engc-angle),
    transparent 0deg 250deg,
    rgba(122, 196, 240, 0.35) 300deg,
    #7ac4f0 332deg,
    #d6f1ff 350deg,                   /* point chaud = la "tête" de l'étoile filante */
    #7ac4f0 356deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: engc-chase 3.4s linear infinite;
}
.nav button:not(.sec):not(.order):hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(122, 196, 240, 0.5),
    0 0 16px rgba(122, 196, 240, 0.55),
    0 10px 26px var(--engc-bleu-glow);
  animation-play-state: paused;       /* fige la respiration, le halo reste fort */
}
.nav button:not(.sec):not(.order):hover::before {
  animation-duration: 1.6s;           /* l'étoile filante accélère au survol */
}
@keyframes engc-chase { to { --engc-angle: 360deg; } }
@keyframes engc-breathe {
  0%, 100% { box-shadow: 0 3px 10px var(--engc-bleu-glow); }
  50%      { box-shadow: 0 0 0 1px rgba(122,196,240,.25), 0 6px 20px rgba(46,134,181,.45); }
}

/* --- Carte mise en avant (« Description libre » = la vraie valeur ajoutée) :
   même étoile filante / liseré LED que le bouton « Continuer ». --- */
.engc-star {
  position: relative;
  isolation: isolate;
  overflow: visible;
  animation: engc-breathe 3.2s ease-in-out infinite;
}
.engc-star::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--engc-angle),
    transparent 0deg 250deg,
    rgba(122, 196, 240, 0.35) 300deg,
    #7ac4f0 332deg,
    #d6f1ff 350deg,
    #7ac4f0 356deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: engc-chase 3.4s linear infinite;
}
.engc-star .engc-star-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #2e86b1;
  letter-spacing: .2px;
}

/* --- Bouton générique « étoile filante » (réutilisable hors .nav, ex. pages devis) :
   même liseré LED animé que le bouton « Continuer » du wizard. --- */
button.engc-led {
  position: relative;
  isolation: isolate;
  overflow: visible;
  animation: engc-breathe 3.2s ease-in-out infinite;
}
button.engc-led::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--engc-angle),
    transparent 0deg 250deg,
    rgba(122, 196, 240, 0.35) 300deg,
    #7ac4f0 332deg,
    #d6f1ff 350deg,
    #7ac4f0 356deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: engc-chase 3.4s linear infinite;
}
button.engc-led:hover::before { animation-duration: 1.6s; }
@media (prefers-reduced-motion: reduce) {
  button.engc-led, button.engc-led::before { animation: none; }
}

/* --- Fondu d'entrée en cascade — UNIQUEMENT au CHANGEMENT d'étape ---
   Le contenu de #app est reconstruit à chaque clic (sélection d'option) ;
   sans la classe .step-enter (posée par render() seulement quand l'étape
   change), un clic ne rejoue plus la cascade → fini le « rafraîchissement »
   de toute la carte du milieu. Un même-écran = échange instantané + une
   animation ciblée sur l'élément sélectionné (.just-picked). */
#app.step-enter > * {
  animation: engc-stepin 0.45s cubic-bezier(.16,.84,.34,1) both;
}
#app.step-enter > *:nth-child(2) { animation-delay: .05s; }
#app.step-enter > *:nth-child(3) { animation-delay: .10s; }
#app.step-enter > *:nth-child(4) { animation-delay: .15s; }
#app.step-enter > *:nth-child(n+5) { animation-delay: .18s; }
@keyframes engc-stepin {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* --- Sélection d'un élément (choix John 2026-06-19) : « néon qui s'allume »
   — le contour clignote puis se stabilise, comme un tube qui s'amorce.
   Appliqué au SEUL élément cliqué, après re-render, par _afterRender (classe
   .just-picked) → pas de flash sur le reste de la carte. --- */
.just-picked { animation: engc-neon 0.7s ease-out; }
@keyframes engc-neon {
  0%   { box-shadow: 0 0 0 0 rgba(46,134,181,0); }
  10%  { box-shadow: 0 0 0 1px var(--engc-bleu); }
  18%  { box-shadow: 0 0 0 1px rgba(46,134,181,.2); }
  26%  { box-shadow: 0 0 0 2px var(--engc-bleu), 0 0 14px var(--engc-bleu-glow); }
  40%  { box-shadow: 0 0 0 1px rgba(46,134,181,.3); }
  55%  { box-shadow: 0 0 0 2px var(--engc-bleu), 0 0 20px rgba(122,196,240,.7); }
  100% { box-shadow: 0 0 0 1px var(--engc-bleu), 0 2px 10px var(--engc-bleu-glow); }
}

/* --- Pastille ✓ de confirmation sur l'option sélectionnée --- */
.radio { position: relative; padding-right: 44px; }
.pcard { position: relative; }
.radio.sel::after, .pcard.sel::after {
  content: "✓";
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--engc-bleu); color: #fff;
  font-size: 13px; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 3px #fff, 0 1px 4px var(--engc-bleu-glow);
}
.radio.sel::after { right: 13px; top: 50%; transform: translateY(-50%); }
.pcard.sel::after { right: 8px; top: 8px; }
/* la pastille « pousse » seulement sur l'élément qu'on vient de cliquer */
.just-picked.radio.sel::after { animation: engc-check-r 0.4s cubic-bezier(.2,.9,.3,1.55); }
.just-picked.pcard.sel::after { animation: engc-check-c 0.4s cubic-bezier(.2,.9,.3,1.55); }
@keyframes engc-check-r {
  0%   { transform: translateY(-50%) scale(0) rotate(-40deg); }
  100% { transform: translateY(-50%) scale(1) rotate(0); }
}
@keyframes engc-check-c {
  0%   { transform: scale(0) rotate(-40deg); }
  100% { transform: scale(1) rotate(0); }
}

/* --- Ouverture d'un repli (catégorie « Montage sur support »…) : glisse
   + fond enchaîné, une seule fois à l'ouverture (classe posée par le JS
   seulement quand on vient de cliquer l'entête). --- */
.engc-reveal {
  animation: engc-revealin 0.34s cubic-bezier(.16,.84,.34,1);
  transform-origin: top center;
}
@keyframes engc-revealin {
  from { opacity: 0; transform: translateY(-8px) scaleY(.96); }
  to   { opacity: 1; transform: none; }
}

/* --- Type d'enseigne choisi (étape « de quoi s'agit-il ? ») : bandeau compact
   + bouton « Changer », à la place de toute la grille de catégories. --- */
.chosen-mode {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--engc-trait);
  border-left: 4px solid var(--engc-bleu);
  border-radius: 8px;
  background: #f0f7fb;
  padding: 12px 15px;
  margin: 6px 0 18px;
  box-shadow: 0 0 0 1px var(--engc-bleu), 0 2px 10px var(--engc-bleu-glow);
}
.chosen-mode-txt b {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--engc-bleu-fonce); font-size: 16px;
}
.chosen-mode-txt span { display: block; font-size: 13px; color: var(--engc-acier); margin-top: 2px; }
.chosen-mode-btn { margin: 0; padding: 7px 14px; font-size: 13px; flex: 0 0 auto; }

@media (prefers-reduced-motion: reduce) {
  .just-picked, .radio.sel::after, .pcard.sel::after, .engc-reveal { animation: none !important; }
}

/* --- Voile dégradé navy en bas du fond : assoit la carte sur quelque
   chose au lieu d'un collage "fantomatique" --- */
body::after {
  content: "";
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 38vh;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(to top, rgba(27, 37, 48, 0.32), rgba(27, 37, 48, 0));
}

/* ------------------------------------------------ accessibilité */
@media (prefers-reduced-motion: reduce) {
  .neon, button.order { animation: none; }
  .nav button:not(.sec):not(.order),
  .nav button:not(.sec):not(.order)::before,
  .engc-star, .engc-star::before,
  #app > * { animation: none !important; }
  /* le bouton garde un halo statique, juste sans mouvement */
  .nav button:not(.sec):not(.order) {
    box-shadow: 0 0 0 1px rgba(122,196,240,.25), 0 3px 12px var(--engc-bleu-glow);
  }
  * { transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------ signature « POWERED BY ENGC »
   L'étoile (la « tête » lumineuse des boutons) écrit les lettres une à une,
   de gauche à droite. Sur fond clair → bleu ENGC, pas de panneau sombre.
   SVG injecté par /static/engc-powered.js (glyphes Orbitron via opentype.js). */
.engc-powered {
  max-width: 300px;
  margin: 0 auto 12px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.engc-powered svg { width: 100%; height: auto; max-height: 42px; overflow: visible; }
.engc-powered .ink {
  fill: none;
  stroke: var(--engc-bleu);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#engcGlow);
}
.engc-powered .body { fill: var(--engc-bleu-fonce); fill-opacity: 0; filter: url(#engcSoft); }
/* tête « laser » qui découpe l'acier/alu : halo orangé incandescent + cœur
   jaune-blanc brûlant, avec une gerbe d'étincelles qui jaillit et retombe. */
.engc-powered .laser-glow { fill: #ff8c1a; filter: url(#engcLaser); }
.engc-powered .laser-core { fill: #ffe27a; filter: url(#engcCore); }
.engc-powered .spark      { fill: #ffd24a; filter: url(#engcSpark); }

.engc-powered-static {
  font-family: 'Orbitron', 'Barlow Semi Condensed', sans-serif;
  font-weight: 700; letter-spacing: .22em;
  font-size: clamp(12px, 3.4vw, 17px);
  color: var(--engc-bleu-fonce);
}
.engc-powered-fallback {
  position: relative; display: inline-block;
  font-family: 'Orbitron', 'Barlow Semi Condensed', sans-serif;
  font-weight: 700; letter-spacing: .22em;
  font-size: clamp(12px, 3.4vw, 17px);
  color: #b9c6d2; white-space: nowrap;
}
.engc-powered-fallback .lit {
  position: absolute; inset: 0;
  color: var(--engc-bleu-fonce);
  text-shadow: 0 0 6px rgba(46, 134, 181, .5);
  clip-path: inset(0 100% 0 0);
  animation: engc-pw-reveal 4s cubic-bezier(.4, 0, .2, 1) infinite;
}
.engc-powered-fallback .pen {
  position: absolute; top: 50%; left: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--engc-bleu);
  box-shadow: 0 0 8px 2px rgba(46, 134, 181, .6);
  transform: translate(-50%, -50%) scale(0);
  animation: engc-pw-pen 4s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes engc-pw-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes engc-pw-pen {
  0%  { transform: translate(-50%, -50%) scale(0); }
  6%  { transform: translate(-50%, -50%) scale(1); }
  92% { left: 100%; transform: translate(-50%, -50%) scale(1); }
  100%{ left: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .engc-powered-fallback .lit, .engc-powered-fallback .pen { animation: none; }
  .engc-powered-fallback .lit { clip-path: inset(0 0 0 0); }
}

/* ============================================================
   REFONTE UX — 2026-06-19 (retour beta graphiste)
   Objectifs : (1) hiérarchie titres/sous-titres beaucoup plus lisible,
   (2) verdict du résultat IMPOSSIBLE à manquer, (3) repère d'étape clair.
   N'ajoute que du visuel — aucune classe/JS existant n'est renommé.
   ============================================================ */

/* --- Carte « en cours de construction » (caisson / totem / néon) --- */
.engc-construction {
  text-align: center;
  padding: 26px 20px;
  border: 1px dashed #c7d3de;
  border-radius: 14px;
  background: linear-gradient(180deg, #f6fafd 0%, #eef4f9 100%);
}
.engc-construction .ec-ic { font-size: 46px; line-height: 1; margin-bottom: 8px; }
.engc-construction h2 { color: #205f82; }
.engc-construction .engc-led { margin-top: 4px; }

/* --- (1) Hiérarchie : titre de section avec sur-titre + filet tricolore --- */
.card h1 {
  font-size: 31px;
  line-height: 1.12;
  margin: 2px 0 6px;
}
/* filet d'accent sous chaque grand titre (bleu→rouge ENGC) */
.card h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 13px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--engc-bleu), var(--engc-rouge));
}
/* sous-titres de section : barre verticale bleue + plus de présence */
.card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  margin-top: 30px;
}
.card h2::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 19px;
  border-radius: 2px;
  background: var(--engc-bleu);
}

/* --- (3) Repère d'étape : nom de l'étape courante sous la barre LED --- */
.steps { margin-bottom: 9px; }
.steps-label {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--engc-bleu-fonce);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.steps-label::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--engc-bleu);
  box-shadow: 0 0 7px var(--engc-bleu-glow);
}

/* --- (2) Verdict du résultat : grande carte couleur en tête de l'estimation --- */
.verdict {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 8px 0 24px;
  box-shadow: var(--engc-ombre);
  animation: verdict-in 0.5s cubic-bezier(.16,.84,.34,1) both;
}
.verdict-icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 25px; font-weight: 800; line-height: 1;
  color: #fff;
}
.verdict-body { flex: 1; min-width: 0; }
.verdict-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.verdict-pct {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 40px; font-weight: 700; line-height: 1;
}
.verdict-label {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 20px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.verdict-track {
  position: relative;
  height: 12px; border-radius: 6px;
  margin: 13px 0 2px;
  background: linear-gradient(90deg, #c0392b 0%, #c0392b 60%, #c97a00 60%, #c97a00 90%, #1a7f37 90%, #1a7f37 100%);
}
.verdict-cursor {
  position: absolute; top: -4px;
  width: 4px; height: 20px;
  background: var(--engc-encre);
  border-radius: 2px;
  box-shadow: 0 0 0 2px #fff;
}
.verdict-scale {
  position: relative;
  font-size: 11px; color: var(--engc-acier);
  height: 14px;
}
.verdict-scale span { position: absolute; }
.verdict-action {
  margin: 11px 0 0;
  font-size: 15px; font-weight: 600;
}
.verdict-legend { margin-top: 8px; }
.verdict-legend summary {
  font-size: 12px; cursor: pointer; color: var(--engc-acier);
}
.verdict-legend ul {
  margin: 6px 0 0 16px; padding: 0;
  font-size: 12px; color: var(--engc-acier); line-height: 1.7;
}
@keyframes verdict-in {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to   { opacity: 1; transform: none; }
}

/* couleurs par bande de confiance (reprend le code couleur ENGC) */
.verdict--green  { background: #eaf7ef; border-color: #bfe4cd; }
.verdict--green  .verdict-icon { background: #1a7f37; box-shadow: 0 0 0 4px #d8f0e1; }
.verdict--green  .verdict-pct,
.verdict--green  .verdict-label,
.verdict--green  .verdict-action { color: #1a7f37; }

.verdict--orange { background: #fff6e8; border-color: #f3dcae; }
.verdict--orange .verdict-icon { background: #c97a00; box-shadow: 0 0 0 4px #fbe7c4; }
.verdict--orange .verdict-pct,
.verdict--orange .verdict-label,
.verdict--orange .verdict-action { color: #b3700a; }

.verdict--red    { background: #fdecea; border-color: #f6cdc7; }
.verdict--red    .verdict-icon { background: #c0392b; box-shadow: 0 0 0 4px #f8d6d1; }
.verdict--red    .verdict-pct,
.verdict--red    .verdict-label,
.verdict--red    .verdict-action { color: #c0392b; }

/* pastille de confiance par enseigne (sous le tarif de chaque enseigne) */
.conf-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  padding: 3px 11px; border-radius: 999px;
  border: 1px solid transparent;
}
.conf-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.conf-chip.green  { color: #1a7f37; background: #eaf7ef; border-color: #bfe4cd; }
.conf-chip.orange { color: #b3700a; background: #fff6e8; border-color: #f3dcae; }
.conf-chip.red    { color: #c0392b; background: #fdecea; border-color: #f6cdc7; }

@media (max-width: 640px) {
  .card h1 { font-size: 25px; }
  .verdict { padding: 15px 15px; gap: 12px; }
  .verdict-icon { width: 40px; height: 40px; font-size: 22px; }
  .verdict-pct { font-size: 33px; }
  .verdict-label { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .verdict { animation: none; }
}

/* ------------------------------------------------ page résultat : navigation repliable
   Un seul bouton « Modifier ou recommencer ma demande » qui déplie 3 actions
   (page précédente / reprendre du début / nouvelle demande). Même principe de
   catégorie repliable que « Montage sur support » du wizard — on n'étale pas
   trois boutons de navigation sous le tarif. */
.nav-more { display: inline-block; margin: 6px 8px 6px 0; vertical-align: top; }
.nav-more > summary {
  list-style: none;
  display: inline-block;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600; font-size: 16px; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 12px 26px; border-radius: 8px;
  background: #fff; color: var(--engc-encre); border: 1px solid var(--engc-trait);
  cursor: pointer; user-select: none;
}
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: " \25BE"; color: var(--engc-acier); }
.nav-more[open] > summary::after { content: " \25B4"; }
.nav-more > summary:hover { border-color: var(--engc-bleu); color: var(--engc-bleu-fonce); }
.nav-more-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

@media (max-width: 640px) {
  .nav-more, .nav-more > summary { display: block; width: 100%; text-align: center; }
  .nav-more-actions { flex-direction: column; }
  .nav-more-actions button { width: 100%; }
}

/* ============================================================
   APERÇU 2D DE L'ENSEIGNE (chantier 1 — 2026-06-27)
   Étape options du mode « Lettres Relief » : aperçu collant à
   gauche, choix à droite (PC) ; repli empilé (aperçu au-dessus)
   sur mobile.
   ============================================================ */
.engc-optlayout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: start;
}
.engc-preview-pane { position: sticky; top: 12px; }
.engc-preview-stage {
  height: 360px;
  border: 1px solid var(--engc-trait, #d8dee4);
  border-radius: 12px;
  overflow: hidden;
  background: #e9e7e2;
}
.engc-preview-cap {
  font-size: 12px; color: var(--engc-acier, #7a8794);
  text-align: center; margin: 7px 2px 0;
}
/* Bascule « grand aperçu » : 2D pleine largeur en haut de page, COLLANT (reste
   visible quand on déroule les options — John 2026-06-30 « toujours visible »). */
/* Grand aperçu COLLANT (toujours visible au défilement — John 2026-06-30) ; sert de
   contexte de positionnement pour le bouton « En grand » en overlay. */
.engc-preview-big-wrap {
  margin: 0 0 16px; position: sticky; top: 8px; z-index: 5;
  background: var(--engc-papier, #fff); padding-bottom: 6px;
}
.engc-preview-big { height: min(46vh, 440px); }
/* Bouton « Afficher en grand » en overlay sur le 2D (à côté du plein écran ⤢). */
.engc-preview-pane { position: sticky; top: 12px; }
.engc-bigtoggle-ov {
  position: absolute; top: 8px; left: 8px; z-index: 8;
  padding: 6px 11px; font-size: 12px; min-height: auto; white-space: nowrap;
}
/* Rangée de boutons du 2D : agrandir / zoom / nuit / allumé-éteint / parties / façade.
   John 2026-10-01 (« mes lettres sont cachées par tous les boutons ») : la rangée n'est
   plus posée SUR le rendu mais en BARRE AU-DESSUS, hors de l'aperçu — elle ne recouvre
   jamais une lettre, quelle que soit la largeur de l'écran. */
.engc-prevov {
  position: static; z-index: auto; margin: 0 0 6px;
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center; max-width: calc(100% - 44px);
}
.engc-ovbtn {
  padding: 6px 10px; font-size: 12px; min-height: auto; white-space: nowrap;
  background: rgba(255, 255, 255, 0.92);
}
.engc-ovbtn.on { background: var(--engc-rouge, #c1121c); color: #fff; border-color: var(--engc-rouge, #c1121c); }
/* Le ⤢ du coin du rendu est remplacé par « Plein écran » de la barre : plus rien SUR l'enseigne. */
.engc-prevov ~ .engc-preview-stage .engc-enlarge-btn { display: none !important; }
/* Mobile : icône seule — les 4 boutons avec libellé mangeaient tout le rendu 2D (John 2026-07-07). */
@media (max-width: 640px) {
  .engc-ovbtn { padding: 5px 9px; font-size: 14px; line-height: 1.2; }
  .engc-ovbtn .ovtx { display: none; }
  /* Repérage des parties (John 2026-09-29) : bouton « Parties » en plus — la rangée d'icônes reste sur
     UNE ligne au téléphone (sinon la 2e rangée recouvre le haut de l'enseigne). */
  .engc-prevov { gap: 3px; }
  .engc-prevov .engc-ovbtn { padding: 5px 4px; min-width: 30px; }
}
/* Vue « côte à côte » (options + finition) : la colonne d'aperçu est TOUJOURS étroite,
   quelle que soit la largeur de l'écran. Or les libellés ne se repliaient qu'en dessous
   de 640px de VIEWPORT → sur desktop les 7 boutons flottants (Nuit, Allumé, Ma façade…)
   s'empilaient sur 3 rangées et MASQUAIENT les premières lettres de l'enseigne dessinée
   au-dessous (testeur nocturne 2026-07-09 : HOTEL DU LAC, BARBER KING coupés « HO… »/« BAR… »).
   Dans cette vue on garde donc les boutons compacts (icône + tooltip) → une seule rangée
   qui ne recouvre plus le dessin ; les libellés reviennent en mode « En grand » (pleine largeur). */
.engc-optlayout .engc-ovbtn .ovtx { display: none; }
/* Palette de laquage par lettre : reste sous le visuel (dans le conteneur collant) + fermable. */
.engc-laqpanel { background: var(--engc-papier, #fff); border: 1px solid #e2e8ee; border-radius: 10px;
  padding: 8px 10px; margin-top: 8px; }
.engc-laqpanel .engc-partsedit-h { display: flex; align-items: center; gap: 8px; }
.engc-laqclose { margin-left: auto; flex: 0 0 auto; border: 1px solid #cfd6dd; background: #fff;
  border-radius: 8px; width: 28px; height: 28px; cursor: pointer; font-size: 13px; color: #4a5763; }
.engc-laqclose:hover { background: #f0f3f6; }
/* FERMETURE MISE EN ÉVIDENCE (John 2026-09-09) : la fenêtre « teinte / laquage par
   élément » se referme par une VRAIE action — la croix a été RETIRÉE (2e passe) et tout
   le reste de l'écran est masqué tant qu'elle est ouverte : on ne continue pas le
   parcours sans être passé par « ✓ Terminé ». */
.engc-laqdone { display: block; width: 100%; margin: 10px 0 0; padding: 11px 14px;
  border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 700;
  font-size: 15px; letter-spacing: .02em; color: #fff;
  background: linear-gradient(180deg, #2e86b5, #205f82);
  box-shadow: 0 2px 6px rgba(32, 95, 130, .34); }
.engc-laqdone:hover { background: linear-gradient(180deg, #3695c6, #24698f); }
.engc-laqdone:active { transform: translateY(1px); }
/* Carte d'un élément de composition libre (texte/forme) : champs pleine largeur clairs. */
.engc-blockcard {
  background: #fff; border: 1px solid #e2e8ee; border-radius: 10px;
  padding: 10px 14px 12px; margin: 0 0 10px;
}
.engc-blockcard-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.engc-blockcard-h b { font-family: "Barlow Semi Condensed", sans-serif; font-size: 15px; }
/* Caractère cliquable en laquage par lettre (composition libre). */
.engc-laqchar { cursor: pointer; }
.engc-laqchar:hover { outline: 2px dashed rgba(255,255,255,.65); outline-offset: 2px; border-radius: 3px; }
/* En-tête accordéon d'une partie (écran options). */
.engc-partacc { display: flex; align-items: center; gap: 8px; }
.engc-partacc:hover { background: #f5f8fb; border-radius: 8px; }
.engc-partacc .engc-typecaret { margin-left: auto; }
/* Palette de GROS CARRÉS RAL (coloris dibond/alu, tôle) — RAL inscrit dedans (John 2026-07-01). */
.engc-ralbig-wrap { max-height: 62vh; overflow: auto; }
.engc-ralbig-grp { margin: 8px 0; }
.engc-ralbig-fam { display: block; font-size: 12px; color: #6b7681; font-weight: 600; margin: 0 0 4px; }
.engc-ralbig-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.engc-ralbig { height: 62px; border: 2px solid rgba(0,0,0,.12); border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px;
  font: 700 13px/1.15 "Barlow Semi Condensed", sans-serif; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.engc-ralbig.on { border-color: var(--engc-rouge, #c1121c); box-shadow: 0 0 0 2px var(--engc-rouge, #c1121c); }
/* Nuancier PMMA Altuglas : cartes PHOTO (image de la teinte) + réf + transmission. */
.engc-pmma-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.engc-pmma-card { border: 2px solid rgba(0,0,0,.12); border-radius: 10px; cursor: pointer;
  background: #fff; padding: 0 0 6px; text-align: center; overflow: hidden;
  display: flex; flex-direction: column; gap: 2px; }
.engc-pmma-card img, .engc-pmma-card .engc-pmma-sw { width: 100%; height: 64px; object-fit: cover; display: block; }
.engc-pmma-card b { font: 700 12.5px/1.1 "Barlow Semi Condensed", sans-serif; color: #1b2530; }
.engc-pmma-card span { font-size: 11px; color: #5a6672; }
.engc-pmma-card.on { border-color: var(--engc-rouge, #c1121c); box-shadow: 0 0 0 2px var(--engc-rouge, #c1121c); }
/* Boutons standard des chants (aluminium brut / blanc / noir / RAL). */
.engc-chantbtns { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.engc-preview-bigbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin: 7px 2px 0;
}
.engc-preview-bigbar .engc-preview-cap { margin: 0; text-align: left; }
.engc-bigtoggle { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
@media (max-width: 640px) { .engc-preview-big { height: 46vh; } }
@media (max-width: 760px) {
  /* minmax(0, 1fr) et pas 1fr (vérif. téléphone 2026-10-02) : « 1fr » vaut
     minmax(auto, 1fr) → la colonne prenait la largeur MINIMALE de son contenu le plus
     large (451 px dans un écran de 390) et toute la page débordait à droite
     (« VINS DIMITRY NU… » coupé). Les enfants de la grille ne peuvent plus l'élargir. */
  .engc-optlayout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .engc-optlayout > * { min-width: 0; max-width: 100%; }
  /* Aperçu NON collant au téléphone (retour EDGL 2026-10-02 : « l'affichage reste fixe
     et prédomine sur les choix dessous ») : épinglé, il mangeait ~255 px d'un écran de
     844 et masquait les options. Il défile désormais avec la page, en format compact. */
  .engc-preview-pane {
    position: static; top: auto; z-index: auto;
    padding: 0; box-shadow: none;
  }
  .engc-preview-big-wrap { position: static; }
  .engc-preview-stage { height: 190px; }
  .engc-preview-cap { margin-top: 4px; }
  /* « Afficher en grand » inutile en colonne unique : l'aperçu occupe déjà toute la
     largeur, le bouton ne changeait rien (John 2026-08-19) → masqué. */
  .engc-ovbtn.engc-ov-grand { display: none; }
  /* Les boutons ☰ menu + 🌙 thème sont FIXES en haut à droite (z 1200) : quand
     l'aperçu épinglé colle en haut, ils recouvraient les derniers boutons overlay
     (John 2026-08-19). On réserve leur zone → les boutons passent à la ligne avant. */
  .engc-prevov { max-width: calc(100% - 112px); }
}
@media (prefers-reduced-motion: reduce) {
  .engc-preview-stage * { animation: none !important; transition: none !important; }
}

/* ============================================================
   PICTOS FIXATION + PASTILLES COULEUR (2026-06-27)
   ============================================================ */
.radio.has-picto { position: relative; padding-left: 70px; min-height: 46px; }
.radio.has-picto .fixpicto {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 50px; height: 38px; line-height: 0;
}
.radio.has-picto .fixpicto svg { width: 50px; height: 38px; display: block; }
@media (prefers-reduced-motion: reduce) { .radio.has-picto .fixpicto svg { transition: none; } }

/* Pastille de couleur (aperçu d'un RAL/coloris choisi). */
.engc-swatch {
  display: inline-block; width: 18px; height: 18px; border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.25); vertical-align: -4px; margin-right: 7px;
}
.engc-ral-live { display: flex; align-items: center; gap: 4px; margin: 6px 0 2px; font-size: 13px; color: var(--engc-acier, #7a8794); }
.engc-ral-live .engc-swatch { width: 22px; height: 22px; vertical-align: middle; }

/* Pastille couleur dans un choix d'option (radio.has-picto). */
.radio.has-picto .fixpicto .optswatch {
  width: 44px; height: 32px; border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.25); display: block;
}
.optswatch-multi {
  background: conic-gradient(from 0deg,#e24b4a,#f5d033,#57a639,#2271b3,#a03472,#e24b4a) !important;
}

/* ============================================================
   PALETTE RAL (modale) + bouton (2026-06-27)
   ============================================================ */
/* Boutons d'option (palette RAL, habillage de face, adhésif, laquage par lettre…).
   HARMONISATION (John 2026-08-28 « que les boutons fassent tous la même taille ») :
   hors d'une rangée dédiée, un bouton d'option occupe TOUTE la largeur de la colonne,
   comme les .radio au-dessus/en dessous — plus de boutons de largeurs différentes
   empilés dans la même section de couleur/finition. */
.ralbtn { display: block; width: 100%; box-sizing: border-box; text-align: left;
  margin: 6px 0 2px; padding: 8px 14px; font-size: 13px; }
/* Pictogramme d'option à GABARIT FIXE (retour Jonathan 2026-10-08) : le même emoji
   (🧩 habillage) a la même taille dans une option radio (texte ~16 px) et dans un
   bouton d'éditeur (.ralbtn, 13 px) — taille en px, pas en em.
   ⚠ Dans une option radio, la règle générique `label.radio span` (bloc, 13,5 px,
   plus spécifique que `.engc-optico` seul) l'écrasait : pictogramme sur sa propre ligne
   et 3,5 px plus petit que dans le bouton (porte du 13/10) — d'où le sélecteur renforcé. */
.engc-optico, label.radio span.engc-optico { display: inline-block; width: 22px; margin: 0 6px 0 0;
  text-align: center; font-size: 17px; line-height: 1; vertical-align: -2px; font-weight: 400;
  color: inherit; }
.ralbtn.on { background: var(--engc-rouge, #c1121c); color: #fff; border-color: var(--engc-rouge, #c1121c); }
/* Rangée de boutons ALTERNATIFS (Face/Chants, teinte RAL / impression, ajouter un
   texte / une forme…) : ils partagent la ligne à parts ÉGALES. */
.engc-chantbtns .ralbtn { flex: 1 1 190px; width: auto; margin: 0; text-align: center; }
/* Bouton d'option + sa pastille « ? » : le bouton prend la place, l'aide reste à droite. */
.engc-optbtnrow { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; }
.engc-optbtnrow .ralbtn { margin: 0; }
/* Un <select> (police…) peut partager la rangée avec son « ? ». */
.engc-optbtnrow select { flex: 1 1 auto; width: auto; margin: 0; }
/* Salve UX John 2026-08-31 — rangée « Palette RAL | Je ne connais pas le RAL » :
   la ligne est divisée en DEUX boutons de même taille et même texte (injection JS
   .engc-ralrow autour du couple palette + raldefer sur les champs de laquage). */
.engc-ralrow { display: flex; gap: 8px; margin: 6px 0 2px; }
.engc-ralrow .ralbtn, .engc-ralrow .raldefer {
  flex: 1 1 0; width: auto; min-width: 0; margin: 0; text-align: center;
  font-size: 13px; padding: 8px 10px;
}
/* Bouton d'option CENTRÉ (laquage/teinte par élément sous sa rangée, John 2026-08-31). */
.engc-centerbtn { display: flex; justify-content: center; }
.engc-centerbtn .ralbtn { display: inline-block; width: auto; text-align: center; }
.ralmodal-back {
  position: fixed; inset: 0; background: rgba(20,30,40,0.55);
  display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px;
}
.ralmodal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 680px;
  max-height: 86vh; overflow: auto; padding: 16px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.4);
}
.ralmodal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ralmodal-head b { font-family: "Barlow Semi Condensed", sans-serif; font-size: 19px; color: var(--engc-bleu-fonce, #205f82); }
.ralclose { border: none; background: #f0f3f6; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.ralclose:hover { background: #e3e9ef; }
.ralfams { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ralfam {
  border: 1px solid var(--engc-trait, #d8dee4); background: #fff; border-radius: 18px;
  padding: 6px 13px; font-size: 13px; cursor: pointer; color: var(--engc-encre, #1b2530);
}
.ralfam:hover { border-color: var(--engc-bleu, #2e86b5); }
.ralfam.on { background: var(--engc-bleu, #2e86b5); border-color: var(--engc-bleu, #2e86b5); color: #fff; }
.ralgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 7px; }
.ralcell {
  border: 1px solid rgba(0,0,0,0.18); border-radius: 7px; height: 52px; cursor: pointer;
  font-size: 11px; font-weight: 600; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 4px; transition: transform 0.08s ease, box-shadow 0.12s ease;
}
.ralcell:hover { transform: scale(1.07); box-shadow: 0 3px 10px rgba(0,0,0,0.3); border-color: rgba(0,0,0,0.4); }
/* Teinte DEJA CHOISIE (testeur nocturne 2026-09-21) : a la reouverture du nuancier, le
   client doit retrouver son choix d'un coup d'oeil — cadre net + coche sur la pastille
   (la famille de la teinte est aussi celle qui s'ouvre). */
.ralcell.on { outline: 3px solid var(--engc-bleu-fonce, #205f82); outline-offset: 2px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.28); }
.ralcurnote { font-weight: 400; font-size: 13px; color: var(--engc-gris-texte, #5a6b78); }
/* Pastille de la teinte choisie sur le bouton qui ouvre le nuancier : le choix se
   verifie SUR PLACE, sans attendre le recapitulatif. */
.ralbtn .ralsw { display: inline-block; width: 15px; height: 15px; border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.3); vertical-align: -3px; margin-right: 8px; }
/* Teintes SPECIALES hors RAL (Or...) — John 2026-08-31, retour client EDGL.
   Meme grille, meme geste de choix qu'un RAL : seul un reflet metallise en
   sur-impression signale que la teinte est une peinture a effet (la couleur de
   fond reste celle du catalogue, posee en style inline). */
.ralcell-spe {
  box-shadow: inset 0 12px 16px -10px rgba(255,255,255,0.75),
              inset 0 -14px 18px -10px rgba(0,0,0,0.38);
  letter-spacing: 0.3px; text-shadow: 0 1px 1px rgba(0,0,0,0.18);
}
.ralcell-spe:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.3),
  inset 0 12px 16px -10px rgba(255,255,255,0.75), inset 0 -14px 18px -10px rgba(0,0,0,0.38); }
@media (max-width: 640px) {
  .ralgrid { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 5px; }
  .ralcell { height: 46px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .ralcell { transition: none; } }

/* ============================================================
   ASSISTANT PAS-A-PAS — 1re slide guidée (2026-06-27)
   ============================================================ */
.intake-q {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: 21px; margin: 8px 0 6px; color: var(--engc-encre, #1b2530);
}
.engc-bigopt { display: flex; align-items: center; gap: 14px; padding: 16px 44px 16px 16px; }
.engc-bigopt .bigopt-ic { font-size: 28px; line-height: 1; flex: 0 0 42px; text-align: center; }
.engc-bigopt .bigopt-tx { display: block; }
.engc-bigopt .bigopt-tx b { font-size: 16px; }
.engc-bigopt .bigopt-tx > span {
  display: block; font-weight: 400; font-size: 13.5px;
  color: var(--engc-acier, #7a8794); margin-top: 2px;
}
/* Carte d'IMPORT DU FICHIER (John 2026-08-31) : même gabarit que les cartes
   « un seul type / plusieurs types », l'input file vit DANS la carte et toute
   l'aide (types de fichier, nombre, mise en garde) est derrière le « ? ». */
.engc-fileopt .bigopt-tx { flex: 1 1 auto; min-width: 0; }
/* Zone « choisir OU coller » (John 2026-08-31) : l'input natif est masqué
   (« Aucun fichier choisi » n'indiquait pas le collage) — la zone en pointillés
   dit les deux gestes ; le clic n'importe où sur la carte ouvre le sélecteur
   (comportement natif du label qui enveloppe l'input). */
.engc-filezone {
  display: block; margin-top: 8px; padding: 8px 12px;
  border: 1.5px dashed var(--engc-bleu, #2e86b5); border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--engc-bleu-fonce, #205f82);
  background: rgba(46, 134, 181, 0.06);
}
html[data-theme="dark"] .engc-filezone { color: #7fc4e8; }
.engc-filezone-alt { font-weight: 400; color: var(--engc-acier, #7a8794); }

/* V4.123.0 — tunnel création de logo, écran « que crée-t-on ? » à 2 clics
   (John 2026-08-29) : cartes à EXEMPLE VISUEL (picto / rendu du nom). */
.logoia-q { font-weight: 700; margin: 14px 0 8px; }
.logoia-opt .logoia-ex {
  flex: 0 0 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  color: var(--engc-bleu, #2e86b5);
}
.logoia-ex-svg { width: 30px; height: 30px; display: block; }
.logoia-ex-mid { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin: 0 1px; }
.logoia-ex-txt {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.5px;
  line-height: 1;
  white-space: nowrap;
}
.logoia-ex-under { font-size: 12px; }
.logoia-ex-fancy {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  letter-spacing: 1.5px;
}
.logoia-ex-fancy::after { content: " ✦"; font-style: normal; font-size: 0.65em; vertical-align: super; }
/* V4.139.0 — question « quel style de lettres ? » (feedback Alexandre 2026-08-31) :
   le nom du client rendu dans chaque famille typographique proposée. Les spans
   internes repassent en inline (une règle des cartes les force en block) ; la
   vignette « je laisse varier » alterne les familles lettre à lettre, sans le
   « ✦ » du style fantaisie au milieu du mot. */
label.radio .logoia-ex-txt > span { display: inline; }
.logoia-ex-txt .logoia-ex-fancy::after { content: none; }
/* Cartes de CETTE question (scope .logoia-ltcard) : l'aperçu reprend une vraie
   taille/graisse — la règle générique `label.radio span` (400/13.5px) l'écrasait. */
label.radio.logoia-ltcard .logoia-ex-txt { font-size: 17px; font-weight: 800; }
label.radio.logoia-ltcard .logoia-ex-txt > span { font-size: inherit; }
label.radio.logoia-ltcard .logoia-lt-baton { font-weight: 700; }
label.radio.logoia-ltcard .logoia-lt-script { font-weight: 400; }
label.radio.logoia-ltcard .logoia-lt-serif { font-weight: 600; }
label.radio.logoia-ltcard .logoia-lt-massif { font-weight: 900; }
.logoia-lt-baton { font-family: "Barlow", Arial, sans-serif; font-weight: 700; letter-spacing: 0.5px; }
.logoia-lt-script { font-family: "Segoe Script", "Brush Script MT", cursive; font-weight: 400; letter-spacing: 0; }
.logoia-lt-serif { font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-style: normal; letter-spacing: 0.5px; }
.logoia-lt-massif { font-family: "Arial Black", "Barlow", sans-serif; font-weight: 900; letter-spacing: -0.5px; }
.logoia-opt.sel { outline: 2px solid var(--engc-bleu, #2e86b5); }
/* Quota du jour en petit sur chaque carte (John 2026-08-29). */
.logoia-opt .logoia-quota {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--engc-acier, #7a8794);
  margin-top: 2px;
}

/* Chantier multi-parties — panneau de détection Vision (tranche 1, 2026-06-28) */
.engc-detect {
  margin: 6px 0 16px; padding: 14px; border: 1px solid #dde4ea;
  border-radius: 12px; background: #fbfdff;
}
.engc-detect.engc-detect-ko { background: #fdfbf7; }
.engc-detect-spin { font-weight: 600; color: #15406b; display: flex; align-items: center; gap: 8px; }
.engc-detspinner {
  width: 16px; height: 16px; border: 2px solid #cfd9e2; border-top-color: #2e86b1;
  border-radius: 50%; display: inline-block; animation: engc-detspin 0.8s linear infinite;
}
@keyframes engc-detspin { to { transform: rotate(360deg); } }
.engc-detok { font-weight: 700; color: #1a7f37; margin: 0 0 8px; }

/* B — couleur par clic sur zone (multi-couleurs) */
.engc-mcolor { margin: 8px 0 2px; }
.engc-mcolor-tg { display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  font-size: 13.5px; cursor: pointer; }
.engc-mcolor-tg input { width: 16px; height: 16px; }
.engc-mcolor-pal { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.engc-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #cfd9e2;
  cursor: pointer; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform .1s; }
.engc-swatch:hover { transform: scale(1.12); }
.engc-swatch.on { border-color: #1763a6; box-shadow: 0 0 0 3px rgba(23,99,166,.25); }
.engc-swatch-ral { width: auto; min-width: 44px; height: 30px; border-radius: 16px;
  background: #eef3f8; color: #15406b; font-weight: 700; font-size: 12px; }
/* Pastille LÉGENDÉE des éditeurs par lettre (V4.269.0, John 2026-10-07 : le numéro de RAL /
   la réf. de la teinte s'écrit sous la pastille, pas seulement au survol). */
.engc-swpal { gap: 6px 4px; align-items: flex-start; }
.engc-swcell { display: flex; flex-direction: column; align-items: center; width: 62px;
  text-align: center; }
.engc-swcell small { display: block; margin-top: 3px; font-size: 10.5px; line-height: 1.15;
  color: #4a5763; font-family: "Barlow Semi Condensed", sans-serif; letter-spacing: .2px;
  overflow-wrap: anywhere; }
.engc-swcell .engc-swatch.on + small { color: #1763a6; font-weight: 700; }
@media (max-width: 640px) { .engc-swcell { width: 58px; } .engc-swcell small { font-size: 10px; } }
.engc-mcolor-hint { font-size: 12.5px; color: #4a5763; margin: 4px 2px 0; }
/* Modifier la détection : liste des parties repérées, chacune retirable. */
.engc-partsedit { margin: 10px 0 2px; border-top: 1px dashed var(--engc-trait, #d8dee4); padding-top: 8px; }
.engc-partsedit-h { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600;
  font-size: 13px; letter-spacing: .3px; color: var(--engc-bleu-fonce, #205f82); margin-bottom: 6px; }
.engc-partedit-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px;
  border-bottom: 1px solid #eef2f5; border-radius: 8px; cursor: pointer; }
/* Éditeur de parties par pièces : partie active mise en avant, pastille de couleur, nom éditable. */
.engc-partedit-row.active { background: #eef6fc; box-shadow: inset 3px 0 0 #d6453d; }
.engc-partdot { flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px #cfd6dd; }
.engc-partname { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; border-radius: 5px; padding: 2px 5px; width: 100%; max-width: 240px;
  background: transparent; color: var(--engc-encre, #1b2530); }
.engc-partname:hover, .engc-partname:focus { border-color: #cfd6dd; background: #fff; outline: none; }
.engc-partexcl { opacity: 0.9; }
.engc-partedit-row:last-child { border-bottom: 0; }
.engc-partedit-row .engc-dettx { flex: 1; min-width: 0; }
.engc-partedit-row.gone { opacity: 0.5; }
.engc-partedit-row.gone .engc-dettx b { text-decoration: line-through; }
.engc-partedit-row .sec { padding: 4px 10px; font-size: 12.5px; white-space: nowrap; }
.engc-partedit-row .engc-partrm { color: var(--engc-bad, #c03a32); }
/* Arbitrage John n° 128 (variante A, 2026-10-11) : « Activer » au style du bouton unique de
   l'écran (engc-btn2) ; la ligne active porte un BADGE BLEU « Ligne active » — le rouge est
   réservé à l'obligatoire et aux alertes. */
.engc-partactiv { flex: 0 0 auto; font: 600 13px system-ui, sans-serif; padding: 5px 11px;
  border-radius: 8px; border: 1px solid #b9cfdd; color: var(--engc-bleu-fonce, #205f82); background: #fff;
  white-space: nowrap; }
.engc-partactiv.on { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  color: #fff; background: var(--engc-bleu, #2e86b5); border-color: var(--engc-bleu, #2e86b5); }
.engc-partedit-row.merged { background: #f0f7fb; border-radius: 6px; }
.engc-mergechk { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px;
  font-size: 12px; color: #4a5763; cursor: pointer; }
.engc-mergechk input { width: 15px; height: 15px; }
.engc-mergebtn { margin: 8px 0 2px; font-size: 13px; }
/* Bouton repliable « Type d'enseigne » par partie (John 2026-06-30). */
.engc-typebtn { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; margin: 8px 0; padding: 10px 14px; font-size: 14px; text-align: left; }
.engc-typebtn.on { border-color: var(--engc-rouge, #c1121c); }
.engc-typecaret { font-size: 11px; opacity: .7; }
.engc-partoptsec .engc-partcards { margin-top: 4px; }
/* Plein écran de choix du type d'enseigne (John 2026-06-30) : plus large + défilable. */
.engc-typemodal { width: min(960px, 96vw); max-height: 92vh; display: flex; flex-direction: column; }
.engc-typemodal-body { overflow: auto; margin-top: 8px; }
.engc-typemodal-body .engc-partcards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
/* Séparateur « ou » à la racine de l'intake (avant « projet complexe par e-mail »). */
.engc-intake-sep { display: flex; align-items: center; gap: 12px; margin: 18px 2px; color: #9aa4ab; font-size: 13px; }
.engc-intake-sep::before, .engc-intake-sep::after { content: ""; flex: 1; height: 1px; background: #dde4ea; }
.engc-zh { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; margin-right: 8px;
  font-size: 12px; color: #4a5763; }
.engc-zh input { width: 78px; padding: 4px 6px; font-size: 12.5px;
  border: 1px solid var(--engc-trait, #cfd6dd); border-radius: 6px; }
.engc-partsel { width: 100%; max-width: 260px; margin-top: 4px; padding: 4px 6px;
  font-size: 12.5px; border: 1px solid var(--engc-trait, #cfd6dd); border-radius: 6px; }
.engc-zcolor { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.engc-zsw { width: 22px; height: 22px; border-radius: 5px; border: 1px solid #cfd6dd; cursor: pointer; padding: 0; }
.engc-zsw.on { outline: 2px solid var(--engc-bleu, #2e86b5); outline-offset: 1px; }
.engc-zsw-ral { width: auto; padding: 0 8px; font: 700 11px "Barlow Semi Condensed", sans-serif;
  background: #eef2f5; color: #4a5763; height: 22px; }
.engc-zcur { width: 16px; height: 16px; border-radius: 4px; border: 1px solid #cfd6dd; }
.engc-zonehot:hover { background: rgba(120,180,255,.22) !important; }
.engc-zonetabs { display: flex; gap: 6px; margin: 8px 0 4px; }
.engc-ztab { flex: 0 0 auto; padding: 5px 12px; border: 1px solid #cfd9e2; background: #f4f7fa;
  border-radius: 16px; font-size: 13px; font-weight: 600; color: #4a5763; cursor: pointer; }
.engc-ztab.on { background: #1763a6; border-color: #1763a6; color: #fff; }
.engc-ztypepick { margin: 8px 0 2px; }
.engc-ztypepick label { display: block; font-size: 12.5px; font-weight: 600; margin: 0 0 3px; }
.engc-ztypepick select { width: 100%; max-width: 360px; }

/* Choix RAL en série avec pastilles couleur (alu / alu composite) */
.ralchips { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; }
.ralchips-grp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ralchips-fam { flex: 0 0 100%; font-size: 11.5px; font-weight: 700; color: #7c8895;
  text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }
.ralchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px;
  border: 1px solid #cfd9e2; background: #fff; border-radius: 16px; cursor: pointer;
  font-size: 12.5px; color: #2a3640; }
.ralchip:hover { border-color: #8fb4d6; }
.ralchip.on { border-color: #1763a6; box-shadow: 0 0 0 2px rgba(23,99,166,.22); font-weight: 600; }
.ralchip-sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18);
  box-shadow: inset 0 0 3px rgba(0,0,0,.12); flex: 0 0 auto; }
.ralchip-lb { white-space: nowrap; }
.engc-detprev {
  display: block; max-width: 100%; max-height: 220px; margin: 0 auto 10px;
  border: 1px solid #e4e9ee; border-radius: 8px; background: #fff;
}
.engc-detprev-zoom { cursor: zoom-in; }
.engc-zoomhint { text-align: center; margin: -4px 0 10px; cursor: zoom-in; }
/* Loupe plein écran d'un aperçu fichier (R03) : les bannières réduites deviennent
   illisibles ; on agrandit l'image à ≥78vh, scroll dans l'overlay pour lire les numéros. */
.engc-imgzoom {
  position: fixed; inset: 0; z-index: 9999; background: rgba(9,18,28,.94);
  overflow: auto; -webkit-overflow-scrolling: touch; padding: 16px;
  text-align: center; cursor: zoom-out;
}
.engc-imgzoom img {
  max-width: none; width: auto; height: auto; min-height: 78vh;
  vertical-align: middle; border-radius: 6px; background: #fff;
  box-shadow: 0 8px 44px rgba(0,0,0,.55);
}
.engc-imgzoom-close {
  position: fixed; top: 14px; right: 16px; color: #eaf2f9; font-size: 14px;
  font-weight: 600; background: rgba(0,0,0,.45); padding: 7px 14px;
  border-radius: 20px; pointer-events: none;
}
@media (max-width: 640px) { .engc-imgzoom img { min-height: 62vh; } }
.engc-detlist { display: flex; flex-direction: column; gap: 6px; }
.engc-detrow {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px;
  border: 1px solid #e8edf2; border-radius: 9px; background: #fff;
}
.engc-detnum {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: #2e86b1; color: #fff; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.engc-detthumb {
  /* Vignette lisible même sur trait fin / line-art (« joseph ») : on ASSOMBRIT et
     on force le contraste pour que des contours clairs deviennent visibles (John
     2026-06-30 « on ne voit pas les éléments »). brightness<1 + contrast fort rend
     les traits clairs foncés sur un fond gris moyen. */
  flex: 0 0 92px; width: 92px; height: 70px; object-fit: contain;
  border: 1px solid #cfd6dd; border-radius: 6px; padding: 2px;
  background: #f4f6f8;
  filter: brightness(0.5) contrast(2.4);
}
.engc-detnoimg { display: flex; align-items: center; justify-content: center; color: #b8c2cc; font-size: 18px; }
.engc-dettx { display: flex; flex-direction: column; line-height: 1.3; }
.engc-dettx b { font-size: 14px; }
.engc-dettx .muted { font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .engc-detspinner { animation: none; } }

/* Attribution par partie (chantier multi-parties, 2026-06-28) */
.engc-partlist { display: flex; flex-direction: column; gap: 10px; }
.engc-partrow {
  border: 1px solid #e3eaf0; border-radius: 11px; padding: 10px 12px; background: #fff;
}
.engc-parthead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.engc-partfields { display: flex; gap: 10px; flex-wrap: wrap; }
.engc-partfields > div { flex: 1 1 180px; min-width: 150px; }
.engc-partfields label { display: block; font-size: 12.5px; font-weight: 600; margin: 0 0 3px; }
.engc-partfields select, .engc-partfields input { width: 100%; }
.engc-partcommon, .engc-partnote { margin-top: 14px; }
.engc-partcommon > label, .engc-partnote > label { display: block; font-weight: 600; margin-bottom: 4px; }
.engc-partcommon select { width: 100%; }
/* Configuration par partie, une à la fois */
.engc-partrow.engc-partactive { border-color: #1763a6; box-shadow: 0 0 0 2px rgba(23,99,166,.12); }
.engc-partrow.engc-partdone { background: #f4f9f4; }
.engc-partrow.engc-partlocked { opacity: .55; }
.engc-partchosen { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.engc-partchosen span { font-weight: 700; color: #1a7f37; }
.engc-partchosen .sec { padding: 5px 12px; }
.engc-partcards { margin-top: 4px; }
.engc-partcards .pcard img { height: 90px; }
.engc-montradios { display: flex; flex-direction: column; gap: 7px; }
.engc-montradios .radio { margin: 0; }
/* Toast inline (remplace alert() — non bloquant) */
#engc-toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 9999; max-width: 92%; padding: 13px 20px; border-radius: 11px;
  font-weight: 600; font-size: 14.5px; line-height: 1.35; color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.22); display: none; text-align: center;
}
#engc-toast.err { background: #c0392b; }
#engc-toast.ok { background: #1a7f37; }
/* Section d'options PAR PARTIE (finitions multi-parties) — visuel toujours visible */
.engc-partoptsec {
  border: 2px solid #1763a6; border-radius: 12px; padding: 12px 14px; margin: 16px 0;
}
.engc-partoptsec > .engc-parthead {
  margin: -2px -2px 8px; padding-bottom: 8px; border-bottom: 1px solid #e3eaf0;
}
/* Nom de la partie en ÉTIQUETTE à la couleur de repérage (écran options, fichier) —
   retour client EDGL 2026-09-09 : on retrouve chaque partie d'un coup d'œil (V4.152.0). */
.engc-partchip { display: inline-block; align-self: flex-start; max-width: 100%;
  padding: 2px 10px; border-radius: 999px; color: #fff; font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: .2px; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 1px rgba(0,0,0,.25); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.engc-partoptsec > .engc-partacc:hover { background: rgba(255,255,255,.35); }

/* ============================================================================
   Bloc « Encore une précision » (questions de clarification, page tarif) —
   refonte John 2026-07-03 : carte bleue ENGC, une sous-carte par question avec
   l'IMAGE de l'élément concerné, choix en boîtes qui se colorent quand cochées.
   ========================================================================== */
.askblk {
  margin-top: 16px; padding: 16px 18px;
  background: #f4f9fd; border: 1px solid #cfe2ef; border-left: 5px solid #2e86b5;
  border-radius: 14px;
}
.askblk-head {
  font-family: 'Barlow Semi Condensed', 'Barlow', sans-serif;
  font-weight: 700; font-size: 19px; color: #205f82; margin: 0 0 2px;
}
.askblk-sub { color: #5a6a76; font-size: 13.5px; margin: 0 0 10px; }
.askblk-reply {
  background: #eef6fc; border-left: 3px solid #2e86b1; border-radius: 8px;
  padding: 10px 12px; margin: 4px 0 10px; white-space: pre-wrap;
}
.cqcard {
  background: #fff; border: 1px solid #dde7ee; border-radius: 12px;
  padding: 13px 15px; margin: 12px 0; box-shadow: 0 1px 4px rgba(32,95,130,.07);
}
.cqens {
  display: inline-block; background: #eaf4fb; color: #205f82; font-weight: 600;
  font-size: 12.5px; border-radius: 999px; padding: 3px 11px; margin: 0 0 8px;
}
.cqcard .cqhead { display: flex; gap: 14px; align-items: flex-start; }
/* Image de question : plus grande et CLIQUABLE (zoom plein écran) — John 2026-09-02,
   point 3 (vignette 180 px illisible sur la question « éléments douteux »). */
.cqimg {
  flex: 0 0 auto; max-width: 280px; max-height: 190px; object-fit: contain;
  background: #fff; border: 1px solid #e3eaf0; border-radius: 10px; padding: 5px;
  cursor: zoom-in;
}
.cqimgwrap { flex: 0 0 auto; max-width: 280px; display: flex; flex-direction: column; align-items: center; }
.cqimg-hint { font-size: 12.5px; color: #5b6b78; margin: 4px 0 8px; text-align: center; }
.cqbody { flex: 1 1 auto; min-width: 0; }
.cqq { font-weight: 600; color: #1d2b36; margin: 0 0 9px; line-height: 1.45; }
.cqest { margin: 2px 0 8px 18px; padding: 0; font-size: 14px; }
.cqopt {
  display: flex; align-items: flex-start; gap: 10px; margin: 8px 0;
  padding: 11px 13px; border: 1.5px solid #dde4ea; border-radius: 10px;
  cursor: pointer; background: #fff; font-size: 14.5px; line-height: 1.4;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.cqopt:hover { border-color: #2e86b5; background: #f6fbff; }
.cqopt:has(input:checked) {
  border-color: #2e86b5; background: #eaf4fb;
  box-shadow: inset 0 0 0 1px #2e86b5;
}
/* width:auto neutralise la règle globale input{width:100%} (5893) qui, sur le
   radio, l'étirait à pleine largeur et écrasait le libellé <span> à 0 —
   même garde que .chk input{width:auto}. Sinon le texte de l'option disparaît. */
.cqopt input { margin-top: 2px; accent-color: #2e86b5; flex: 0 0 auto; width: auto; padding: 0; }
.cqextra-label { display: block; font-weight: 600; font-size: 13.5px; margin: 10px 0 2px; }
.askblk textarea { width: 100%; box-sizing: border-box; }
/* Bouton de recalcul AU PIED de l'encart (John 2026-08-26) — conclut le bloc. */
.askblk .askblk-recalc { display: block; margin: 14px 0 0; }
@media (max-width: 640px) {
  .cqcard .cqhead { flex-direction: column; }
  .cqimg { max-width: 100%; max-height: 200px; }
}
@media (prefers-reduced-motion: reduce) { .cqopt { transition: none; } }

/* PASTILLES DE RÉPONSE DU CHAT « Je préfère décrire » (testeur nocturne S04
   2026-09-19) : une question à choix fermé affichait ses options en simple liste
   à puces dans la bulle — sur mobile ça RESSEMBLE à des boutons, mais le doigt
   ne déclenchait rien et il fallait retaper la réponse. Vrais boutons désormais :
   cible tactile 44 px, libellé conservé tel quel (le text-transform:uppercase
   global rendrait « LETTRES RELIEF ») et retour à la ligne autorisé. Les options
   d'une question déjà répondue restent visibles mais désactivées. */
.chatchips { display: flex; flex-wrap: wrap; gap: 7px; margin: 7px 0 2px; max-width: 86%; }
.chatchip {
  font-family: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: 0;
  text-transform: none; white-space: normal; text-align: left;
  padding: 9px 15px; min-height: 44px; width: auto;
  border: 1.5px solid #2e86b5; border-radius: 22px;
  background: #fff; color: var(--engc-bleu-fonce); box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.chatchip:hover:not(:disabled) { background: #eaf4fb; filter: none; }
.chatchip:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 640px) {
  .chatchips { max-width: 100%; }
  .chatchip { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .chatchip { transition: none; } }

/* Vignette 2D d'une enseigne dans le RÉCAPITULATIF (John 2026-07-03) */
.engc-signthumb {
  float: right; width: 130px; height: 72px; object-fit: contain;
  background: #fff; border: 1px solid #dde4ea; border-radius: 9px;
  padding: 3px; margin: 0 0 6px 10px;
}
.signblock { overflow: hidden; }
@media (max-width: 640px) { .engc-signthumb { width: 96px; height: 56px; } }
/* Badge « page N » sur la vignette (PDF multi-pages découpé : 1 page = 1 enseigne,
   testeur nocturne S25 2026-07-18) — les pages d'un même plan ont souvent le même
   dessin, le badge identifie la page d'origine. */
.engc-thumbwrap { position: relative; float: right; margin: 0 0 6px 10px; }
.engc-thumbwrap .engc-signthumb { float: none; margin: 0; display: block; }
.engc-thumbpage {
  position: absolute; right: 6px; bottom: 6px; background: rgba(23, 67, 94, .88);
  color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 7px;
  border-radius: 7px; pointer-events: none;
}

/* Logo cliquable = retour au début du parcours (John 2026-07-13). display:block et
   PAS inline-block : le logo est dimensionné en width:60% — 60 % d'une ancre qui
   rétrécit sur son contenu = logo minuscule (bug V4.36.2). */
.engc-header a { display: block; width: 100%; line-height: 0; border: none; text-decoration: none; cursor: pointer; }
/* Vignette d'une partie PHOTO : le filtre line-art (brightness 0.5 + contrast 2.4,
   fait pour révéler des contours clairs) écrase une photo en bande noire — on
   l'annule et on remplit la case (cover) pour voir les lettres. */
.engc-detthumb.engc-photothumb { filter: none; object-fit: cover; background: #fff; }

/* ============================================================
   MENU UNIQUE ☰ en partie haute (John 2026-07-15, V4.48.0)
   Un seul bouton fixe (à gauche du bouton thème 🌙) qui ouvre
   un panneau : Nouveau devis, Mes devis & BAT, Mon compte,
   interrupteur « je suis en clientèle », déconnexion.
   ============================================================ */
/* top 26px = aligné sur le bouton thème 🌙 (top 12 + margin-top 14 du bouton global) */
.engc-menu { position: fixed; top: 26px; right: 64px; z-index: 1200; font-family: inherit; }
.engc-menu-btn {
  display: flex; align-items: center; gap: 8px;
  margin: 0; padding: 0 16px; height: 42px; min-height: 42px;
  border-radius: 999px; border: 1px solid var(--engc-trait);
  background: var(--engc-papier); color: var(--engc-encre);
  font-family: 'Barlow Semi Condensed', 'Barlow', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  cursor: pointer; box-shadow: 0 4px 14px rgba(27, 37, 48, 0.18);
  transition: box-shadow .15s ease, border-color .15s ease, transform .12s ease;
}
.engc-menu-btn:hover, .engc-menu.open .engc-menu-btn {
  border-color: var(--engc-bleu);
  box-shadow: 0 4px 18px var(--engc-bleu-glow), 0 0 0 3px rgba(46, 134, 181, 0.12);
}
.engc-menu-btn:hover { transform: translateY(-1px); }
/* icône ☰ maison : 3 barres, celle du milieu bleue — la touche « enseigne » */
.engc-menu-ic { display: inline-flex; flex-direction: column; gap: 3.5px; width: 17px; }
.engc-menu-ic span { height: 2px; border-radius: 2px; background: var(--engc-encre);
  transition: transform .18s ease, opacity .18s ease, background .18s ease; }
.engc-menu-ic span:nth-child(2) { background: var(--engc-bleu); }
.engc-menu.open .engc-menu-ic span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.engc-menu.open .engc-menu-ic span:nth-child(2) { opacity: 0; }
.engc-menu.open .engc-menu-ic span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.engc-menu-panel {
  position: absolute; top: 50px; right: 0; min-width: 264px; max-width: min(320px, calc(100vw - 20px));
  background: var(--engc-papier); border: 1px solid var(--engc-trait);
  border-radius: 14px; box-shadow: var(--engc-ombre);
  padding: 6px; overflow: hidden;
  animation: engcMenuIn .18s ease both;
}
/* filet tricolore ENGC en tête du panneau */
.engc-menu-panel::before {
  content: ""; display: block; height: 3px; margin: -6px -6px 6px; border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, var(--engc-bleu) 0 55%, #fff 55% 70%, var(--engc-rouge) 70% 100%);
}
@keyframes engcMenuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .engc-menu-panel { animation: none; }
  .engc-menu-btn:hover { transform: none; }
}
.engc-menu-user {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 12px 10px; font-size: 13px; font-weight: 600; color: var(--engc-acier);
  border-bottom: 1px solid var(--engc-trait); margin-bottom: 5px;
  word-break: break-all;
}
.engc-menu-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.engc-menu-badge.on { background: rgba(46, 158, 91, 0.14); color: var(--engc-ok); }
.engc-menu-form { margin: 0; }
.engc-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin: 1px 0; padding: 10px 12px; border: 0; border-radius: 9px;
  background: none; color: var(--engc-encre); text-decoration: none;
  font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer;
  min-height: 0; box-sizing: border-box;
  transition: background .12s ease, color .12s ease;
}
.engc-menu-item:hover { background: rgba(46, 134, 181, 0.10); color: var(--engc-bleu-fonce); }
.engc-menu-item .mi { width: 20px; text-align: center; flex: 0 0 20px; }
.engc-menu-sep { height: 1px; background: var(--engc-trait); margin: 5px 8px; }
/* interrupteur « je suis en clientèle » */
.engc-switch {
  margin-left: auto; width: 34px; height: 19px; border-radius: 999px; flex: 0 0 34px;
  background: #c6cfd8; position: relative; transition: background .15s ease;
}
.engc-switch .knob {
  position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: left .15s ease;
}
.engc-switch.on { background: var(--engc-ok); }
.engc-switch.on .knob { left: 17px; }
/* Mode invité : bouton « Quitter » visible à gauche du ☰ (V4.237.0) */
.engc-menu { display: flex; align-items: center; gap: 8px; }
.engc-guestquit-form { margin: 0; }
.engc-guestquit {
  margin: 0; padding: 0 14px; height: 36px; min-height: 36px; border-radius: 999px;
  border: 1px dashed var(--engc-acier); background: var(--engc-papier); color: var(--engc-acier);
  font-family: 'Barlow Semi Condensed', 'Barlow', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase; cursor: pointer; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(27, 37, 48, 0.12); transition: border-color .15s ease, color .15s ease;
}
.engc-guestquit:hover { border-style: solid; border-color: var(--engc-bleu); color: var(--engc-bleu-fonce); }
.engc-guestquit .gq-short { display: none; }
@media (max-width: 640px) {
  .engc-guestquit { height: 34px; min-height: 34px; padding: 0 11px; font-size: 12px; }
  .engc-guestquit .gq-full { display: none; }
  .engc-guestquit .gq-short { display: inline; }
}
@media (max-width: 640px) {
  .engc-menu { top: 22px; right: 54px; }
  .engc-menu-btn { height: 38px; min-height: 38px; padding: 0 13px; font-size: 14px; }
  .engc-menu-lbl { display: none; }
  .engc-menu-panel { top: 46px; }
}

/* Bifurcation « pas des lettres » (arbitrage John 2026-07-19, S15 TABAC) : porte de
   sortie visible en tête du cockpit fichier — retour à la grille de produits. */
.engc-nottype {
  display: block; width: 100%; box-sizing: border-box; text-align: left;
  margin: 0 0 14px; padding: 13px 16px; border-radius: 12px;
  border: 2px solid var(--engc-bleu, #2e86b5); border-left-width: 6px;
  background: rgba(46, 134, 181, 0.12); color: var(--engc-encre);
  font-size: 15px; font-weight: 600; line-height: 1.4; cursor: pointer;
  box-shadow: 0 2px 8px rgba(46, 134, 181, 0.14);
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.engc-nottype:hover { background: rgba(46, 134, 181, 0.22); border-color: var(--engc-bleu-fonce, #205f82); box-shadow: 0 3px 12px rgba(46, 134, 181, 0.22); }
.engc-nottype b { color: var(--engc-bleu-fonce, #205f82); }
.engc-nottype .muted { font-weight: 400; }
html[data-theme="dark"] .engc-nottype { background: rgba(46, 134, 181, 0.2); color: inherit; }
html[data-theme="dark"] .engc-nottype b { color: #7fc4e8; }

/* ------------------------------------------------ infobulles « ? » des choix de
   support/montage (John 2026-08-19) : petit rond cliquable sur les radios du
   montage de l'ensemble + supports individuels → bulle explicative au clic
   (mobile inclus). La bulle (.engc-tipbubble) est posée sur <body> par le JS. */
.radio.has-info { padding-right: 74px; }
/* Le « ? » est posé EN ABSOLU sur une option .radio, mais reste INLINE partout
   ailleurs (ligne de bouton d'option, libellé de section) — John 2026-08-28. */
.radio.has-info .engc-infobtn { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); }
.engc-infobtn {
  position: static; vertical-align: -4px;
  width: 22px; height: 22px; border-radius: 50%; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--engc-bleu, #2e86b5); background: transparent;
  color: var(--engc-bleu, #2e86b5); font-size: 13px; font-weight: 800; line-height: 1;
  margin: 0; /* neutralise le margin-top:14px du bouton générique (PAGE_CSS) qui décentrait la pastille */
  padding: 0; cursor: help; flex: none;
  transition: background .12s ease, color .12s ease;
}
.engc-infobtn:hover, .engc-infobtn:focus-visible { background: var(--engc-bleu, #2e86b5); color: #fff; }
.engc-tipbubble {
  position: absolute; z-index: 10000;
  background: #17242e; color: #eef4f8;
  border: 1px solid var(--engc-bleu, #2e86b5); border-radius: 10px;
  padding: 10px 13px; font-size: 13.5px; line-height: 1.5; font-weight: 400;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
}

/* ------------------------------------------------ vérificateur de faisabilité
   (spec John 2026-08-26) : triangle ⚠ informatif sur les parties limites
   (hauteur < 50 mm, graisse fine rétro) → modal de rendu réel (fraise Ø 2 mm /
   implantation ruban LED / carte de graisse). Ne change ni prix ni confiance. */
.engc-feasbtn {
  display: block; margin: 6px 0 2px; padding: 6px 10px;
  border: 1.5px solid var(--engc-warn, #d98f1f); border-radius: 8px;
  background: rgba(217, 143, 31, 0.10); color: inherit;
  font-size: 12.5px; font-weight: 700; cursor: pointer; text-align: left;
  transition: background .12s ease, box-shadow .12s ease;
}
.engc-feasbtn:hover, .engc-feasbtn:focus-visible {
  background: rgba(217, 143, 31, 0.22);
  box-shadow: 0 2px 10px rgba(217, 143, 31, 0.25);
}
.engc-feasbtn .muted { font-weight: 400; }
/* Problème mesuré / zones rouges (John 2026-10-01 : « que le client ne passe pas
   à côté ») : alerte pleine largeur, rouge, plus grande. */
.engc-feasbtn--alert {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin: 8px 0 4px; padding: 10px 14px;
  border: 2px solid var(--engc-bad, #c03a32);
  background: rgba(192, 58, 50, 0.10);
  font-size: 15px; line-height: 1.3;
}
.engc-feasbtn--alert:hover, .engc-feasbtn--alert:focus-visible {
  background: rgba(192, 58, 50, 0.18);
  box-shadow: 0 2px 12px rgba(192, 58, 50, 0.30);
}
.engc-feasbtn--alert b { color: var(--engc-bad, #c03a32); }
.engc-feasbtn-ico { font-size: 24px; line-height: 1; color: var(--engc-bad, #c03a32); flex: none; }
.engc-feasbtn-sub { display: block; font-size: 13px; font-weight: 400; opacity: .85; }
@media (prefers-reduced-motion: no-preference) {
  .engc-feasbtn--alert .engc-feasbtn-ico { animation: engcFeasPulse 1.8s ease-in-out infinite; }
  @keyframes engcFeasPulse { 50% { opacity: .45; } }
}
.engc-feasmodal { max-width: 980px; }
.engc-feasmodal--big { max-width: min(1400px, 96vw); width: 96vw; }
.engc-feas-body img { display: block; margin: 0 auto; }
/* Zoom du rendu de faisabilité (retour Jonathan 2026-10-08) : cadre défilant, l'image
   s'élargit avec le zoom (largeur 100 % → 800 %), main pour glisser quand zoomé. */
.engc-feasscroll { overflow: auto; max-height: 55vh; border: 1px solid rgba(128,128,128,.3); border-radius: 8px; background: #fff; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.engc-feasscroll img { display: block; width: auto; max-width: 100%; max-height: calc(55vh - 4px); border: 0; border-radius: 0; margin: 0 auto; }
.engc-feasscroll.engc-pannable { cursor: grab; }
.engc-feasscroll.engc-panning, .engc-feasscroll.engc-panning * { cursor: grabbing !important; user-select: none; }
.engc-feaszoombar { margin-bottom: 6px; }
@media (max-width: 640px) {
  .engc-feasbtn { font-size: 12px; padding: 6px 8px; }
  .engc-feasbtn--alert { font-size: 14px; padding: 9px 10px; }
}

/* --- Création de logo IA (V4.110.0) : roue néon de génération --------------- */
.engc-logoia-spin {
  width: 52px; height: 52px; margin: 0 auto; border-radius: 50%;
  border: 4px solid rgba(46, 134, 181, .18);
  border-top-color: var(--engc-bleu, #2e86b5);
  animation: engc-logoia-rot 1s linear infinite;
}
@keyframes engc-logoia-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .engc-logoia-spin { animation: none; border-top-color: rgba(46, 134, 181, .18); }
}

/* V4.112.0 (John 2026-08-28) : jauge de progression RÉELLE de la création de
   logo (jalons moteur) + loader ENGC animé (mêmes .ld-* que la page de calcul). */
.logoia-gauge {
  max-width: 340px; height: 10px; margin: 10px auto 0; border-radius: 999px;
  background: rgba(46, 134, 181, .14); overflow: hidden;
}
.logoia-gauge i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--engc-bleu-fonce, #205f82), var(--engc-bleu, #2e86b5) 60%, #57b0dd);
  box-shadow: 0 0 8px rgba(46, 134, 181, .55);
  transition: width .8s ease;
}
@media (prefers-reduced-motion: reduce) { .logoia-gauge i { transition: none; box-shadow: none; } }


/* ===== V4.142.0 (John 2026-09-02) — vérification parasites CLIQUABLE + « Entourer mon enseigne » ===== */
.engc-parwrap { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.engc-parwrap img { display: block; max-width: 100%; height: auto; }
/* V4.197.0 — écran de vérification : aperçu PLEINE LARGEUR (l'ancien max-height 220px de
   .engc-detprev le rendait minuscule), hauteur bornée à l'écran par le rapport --ar,
   zoom +/− (--gz) dans un cadre défilant. */
.engc-parscroll { overflow: auto; max-height: 82vh; border: 1px solid #e4e9ee; border-radius: 8px; background: #fff; padding: 14px; -webkit-overflow-scrolling: touch; }
.engc-parwrap-full { display: block; margin: 0 auto; max-width: none;
  width: calc(min(100%, 70vh * var(--ar, 3)) * var(--gz, 1)); }
.engc-parwrap-full img.engc-detprev { width: 100%; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; }
/* V4.202.0 — aperçu de l'écran A cadré sur le contenu : cadre rogné (--ar = rapport du
   contenu) + calque intérieur décalé / agrandi, en % de l'image entière. */
.engc-parcrop { position: relative; overflow: hidden; margin: 0 auto; aspect-ratio: var(--ar, 3);
  width: calc(min(100%, 70vh * var(--ar, 3)) * var(--gz, 1)); }
.engc-parwrap-in { position: absolute; display: block; max-width: none; }
/* V4.202.0 — écran B : bulle de correction d'une cote (sous l'aperçu). */
.engc-dimbubble { position: relative; margin: 10px 0 14px; padding: 12px 44px 10px 14px; border: 2px solid #2e86b5; border-radius: 10px; background: #fff; }
.engc-dimbubble p { margin: 0 0 8px; }
.engc-dimbubble .engc-dimb-x { position: absolute; right: 8px; top: 8px; width: 30px; min-width: 30px; height: 30px; padding: 0; }
.engc-dimb-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.engc-dimb-row button { width: auto; min-width: 54px; padding: 7px 12px; }
.engc-dimb-row button.on { background: #2e86b5; color: #fff; border-color: #205f82; }
.engc-dimb-row label { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.engc-dimb-row input { width: 104px; }
.engc-dimb-err { color: var(--engc-bad, #c03a32); font-size: 13px; min-height: 0; margin: 0 !important; }
.engc-dimpill:hover { filter: brightness(1.12); }
/* V4.202.0 — écran C : accordéon des blocs d'options (un seul ouvert à la fois). */
h2.engc-optgrp-h { cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 34px 10px 0; margin: 0; position: relative; border-bottom: 1px solid #e4e9ee; user-select: none; }
h2.engc-optgrp-h::after { content: "▸"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: #2e86b5; font-size: 15px; }
h2.engc-optgrp-h.open::after { content: "▾"; }
h2.engc-optgrp-h:hover { background: rgba(46, 134, 181, .06); }
h2.engc-optgrp-h:focus-visible { outline: 2px solid #2e86b5; outline-offset: 2px; }
.engc-optgrp-sum { margin-left: auto; font: 500 13px/1.2 system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: #5b6b79; text-align: right; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
h2.engc-optgrp-h.open .engc-optgrp-sum { display: none; }
.engc-optgrp-sum.todo { color: var(--engc-warn, #d98f1f); font-weight: 700; }
.engc-optgrp-body { padding: 12px 0 8px; }
.engc-optgrp-body.closed { display: none; }
h2.engc-optgrp-h.engc-missing { background: rgba(192, 58, 50, .10); }
/* V4.203.0 — écran B : champ libre « dites-le avec vos mots ». */
.engc-cotetalk { margin: 4px 0 14px; padding: 10px 0 2px; border-top: 1px dashed #d6dde3; }
.engc-cotetalk > label { display: block; font-size: 13px; color: #5b6b79; margin-bottom: 4px; }
.engc-cotetalk .engc-dimb-row input[type=text] { flex: 1 1 220px; width: auto; min-width: 0; }
.engc-cotetalk-rep { border-left: 3px solid #2e86b5; padding: 8px 12px; margin: 4px 0 8px; background: rgba(46, 134, 181, .06); border-radius: 0 8px 8px 0; }
.engc-cotetalk-rep p, .engc-cotetalk-q { margin: 0 0 8px; }
.engc-cotetalk-q { color: #205f82; }
.engc-parwrap-in img.engc-detprev { width: 100%; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; }
.engc-parzoombar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 6px 0; }
.engc-parzoombar button { width: 40px; min-width: 40px; height: 36px; padding: 0; font-size: 20px; line-height: 1; }
.engc-parzoombar > span { min-width: 74px; text-align: center; font-weight: 600; color: #205f82; }
/* Libellés de la barre : long sur ordinateur, court (ou icône seule) au téléphone. */
.engc-parzoombar .engc-zl-long, .engc-parzoombar .engc-zl-short { font-weight: inherit; }
.engc-parzoombar .engc-zl-short { display: none; }
/* Téléphone (vérif. 2026-10-02, écran de 390 px) : « Sélectionner une zone » passait sur
   trois lignes, chevauchait le « − », « Plein écran » débordait du bouton et l'aide
   « Glissez l'image… » était recouverte. Une seule rangée propre : libellés courts,
   plein écran en icône seule, boutons sans hauteur fixe qui casse, repli à la ligne
   permis en dernier recours (jamais de débordement). */
@media (max-width: 640px) {
  .engc-parzoombar { flex-wrap: wrap; gap: 6px; justify-content: space-between; }
  .engc-parzoombar button { width: 38px; min-width: 38px; height: 38px; min-height: 0; margin: 0; white-space: nowrap; }
  .engc-parzoombar .engc-parrectbtn { width: auto; padding: 0 10px; margin-right: 0; }
  .engc-parzoombar button.engc-parfullbtn { width: 38px; min-width: 38px; padding: 0; }
  .engc-parzoombar .engc-zl-long { display: none; }
  .engc-parzoombar .engc-zl-short { display: inline; }
  .engc-parzoombar > span { min-width: 0; font-size: 14px; white-space: nowrap; align-self: center; line-height: 38px; }
  .engc-parzoomsep { display: none; }
  .engc-parpanhint { text-align: left; }
}
/* V4.199.0 — écran A : rectangle de sélection (mode à part) + action groupée. */
.engc-parzoombar .engc-parrectbtn { width: auto; min-width: 0; padding: 0 12px; font-size: 14px; margin-right: auto; }
.engc-parzoombar .engc-parrectbtn.on { background: #2e86b5; color: #fff; border-color: #205f82; }
.engc-parzoomsep { flex: 0 0 1px; }
.engc-parrect { position: absolute; inset: 0; z-index: 5; cursor: crosshair; touch-action: none; }
.engc-parrect-box { display: none; position: absolute; border: 2px dashed #2e86b5; background: rgba(46, 134, 181, .16); border-radius: 3px; pointer-events: none; }
.engc-parwrap-faded .engc-parbox.sel { outline: 3px solid #2e86b5; outline-offset: 1px; opacity: 1; filter: none; box-shadow: 0 0 0 3px rgba(46, 134, 181, .25); }
.engc-parselbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; padding: 8px 10px; border: 1px solid #2e86b5; border-radius: 8px; background: rgba(46, 134, 181, .08); }
.engc-parselbar b { margin-right: 4px; color: #205f82; }
.engc-parselbar button { width: auto; padding: 6px 12px; }
.engc-parselhint { margin: 8px 0 0; }
.engc-parbox {
  position: absolute; box-sizing: border-box; margin: 0; padding: 0; width: auto;
  min-width: 22px; min-height: 22px; transform: translate(-3px, -3px);
  border: 3px solid var(--engc-ok, #2e9e5b); background: rgba(46, 158, 91, .14);
  border-radius: 4px; cursor: pointer; line-height: 1; box-shadow: none;
}
.engc-parbox i {
  position: absolute; right: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--engc-ok, #2e9e5b); color: #fff; font: 700 12px/20px system-ui, sans-serif;
  font-style: normal; text-align: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.engc-parbox.drop { border-color: var(--engc-bad, #c03a32); background: repeating-linear-gradient(45deg, rgba(192, 58, 50, .3) 0 4px, rgba(192, 58, 50, .06) 4px 8px); }
.engc-parbox.drop i { background: var(--engc-bad, #c03a32); }
.engc-parbox:hover, .engc-parbox:focus-visible { filter: brightness(1.08); outline: 2px solid rgba(46, 134, 181, .6); outline-offset: 1px; }
.engc-parchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.engc-parchip {
  width: auto; margin: 0; border: 1.5px solid var(--engc-ok, #2e9e5b); background: rgba(46, 158, 91, .1);
  color: inherit; border-radius: 999px; padding: 7px 13px; font: 600 13px system-ui, sans-serif; cursor: pointer; box-shadow: none;
}
.engc-parchip span { font-weight: 400; opacity: .8; }
.engc-parchip.drop { border-color: var(--engc-bad, #c03a32); background: rgba(192, 58, 50, .1); text-decoration: line-through; }
.engc-parsize { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: rgba(46, 134, 181, .08); border: 1px solid rgba(46, 134, 181, .35); font-size: 14px; }
.engc-parsize .engc-zh input { width: 100%; box-sizing: border-box; margin-top: 3px; }
.engc-cropcall { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: rgba(46, 134, 181, .08); border: 1px solid rgba(46, 134, 181, .35); font-size: 14px; }
.engc-cropcall button { width: auto; }
.engc-croplink { margin: 0 0 10px; font-size: 13px; }
.engc-cropmodal { max-width: min(96vw, 1100px); width: min(96vw, 1100px); }
.engc-crop-stagewrap { text-align: center; }
.engc-crop-stage {
  position: relative; display: inline-block; max-width: 100%; touch-action: none;
  user-select: none; -webkit-user-select: none; cursor: crosshair; background: #fff; border-radius: 8px; overflow: hidden;
}
.engc-crop-stage img { display: block; max-width: 100%; max-height: 68vh; pointer-events: none; }
.engc-crop-rect { position: absolute; box-sizing: border-box; border: 2px dashed var(--engc-bleu, #2e86b5); background: rgba(46, 134, 181, .16); box-shadow: 0 0 0 9999px rgba(20, 30, 40, .38); pointer-events: none; }
.engc-crop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.engc-crop-actions button { width: auto; }
@media (max-width: 640px) {
  .engc-crop-stage img { max-height: 58vh; }
  .engc-crop-actions button { flex: 1 1 auto; }
}


/* ===== V4.142.1 — écran « qu'est-ce qu'on fabrique ? » : aperçu grisé + chaque pièce nette et cliquable ===== */
.engc-parwrap-faded img { opacity: .22; filter: grayscale(1); }
.engc-parwrap-faded .engc-parbox {
  transform: none; min-width: 0; min-height: 0; border: 0; background-color: #fff;
  background-repeat: no-repeat; outline: 2px solid var(--engc-ok, #2e9e5b); outline-offset: 1px; border-radius: 2px;
}
.engc-parwrap-faded .engc-parbox::before { content: ""; position: absolute; inset: -9px; }  /* zone de toucher élargie */
/* Pièces qui en chevauchent une autre (stries d'un logo) : pas de halo, sinon la petite
   recouvre toute la boîte de sa voisine (ALP'AUDITION 2026-10-02). */
.engc-parwrap-faded .engc-parbox.tight::before { inset: 0; }
.engc-parwrap-faded .engc-parbox.drop { outline-color: var(--engc-bad, #c03a32); filter: grayscale(1); opacity: .45; background-image: none !important; background-color: rgba(192, 58, 50, .18); }
.engc-parwrap-faded .engc-parbox.sus { outline-color: var(--engc-warn, #d98f1f); outline-width: 3px; }
.engc-parwrap-faded .engc-parbox.sus i { background: var(--engc-warn, #d98f1f); }
.engc-parwrap-faded .engc-parbox i { right: -11px; top: -11px; }
.engc-parwrap-faded .engc-parbox:hover, .engc-parwrap-faded .engc-parbox:focus-visible { outline-width: 3px; filter: none; opacity: 1; }
/* V4.190.0 (cas GOGO) — traits fins écartés par la géométrie : cadres POINTILLÉS, cliquables pour les remettre */
.engc-parwrap-faded .engc-parbox.engc-parband { outline-style: dashed; background-color: transparent; }
.engc-parwrap-faded .engc-parbox.engc-parband.drop { opacity: .55; filter: none; background-color: rgba(192, 58, 50, .10); }
.engc-parwrap-faded .engc-parbox.engc-parband.keep { outline-style: solid; background-color: rgba(46, 158, 91, .18); opacity: 1; }
.engc-parwrap-faded .engc-parbox.engc-parband:hover, .engc-parwrap-faded .engc-parbox.engc-parband:focus-visible { opacity: 1; outline-width: 3px; }
/* Retour John 2026-10-07 (dklko pilates) — TEXTES ÉCRITS du fichier (légendes, cotes, cartouche) :
   jamais fabriqués, absents du rendu rempli → cadre gris pointillé portant le texte, sous les pièces. */
.engc-parwrap-faded .engc-partext {
  position: absolute; z-index: 0; box-sizing: border-box; min-width: 0; min-height: 0; margin: 0; padding: 0 2px;
  border: 1px dashed #8a96a3; border-radius: 2px; background: rgba(138, 150, 163, .10); box-shadow: none;
  color: #6b7785; display: flex; align-items: center; overflow: hidden; container-type: size; cursor: help; transform: none;
}
.engc-parwrap-faded .engc-partext span {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  font: 500 9px/1 "Barlow", system-ui, sans-serif; font-size: clamp(6px, 72cqh, 22px); letter-spacing: 0; text-transform: none;
}
.engc-parwrap-faded .engc-partext:hover, .engc-parwrap-faded .engc-partext:focus-visible { border-color: #205f82; color: #205f82; }
.engc-parchip.sus { border-color: var(--engc-warn, #d98f1f); background: rgba(217, 143, 31, .12); }
/* DOUTE BLOQUANT (arbitrage John 2026-09-28, S04 cartouche) : la pastille d'un « ? » non
   tranché porte les deux réponses ✓ / ✕ ; une ligne d'aide sous le bouton dit qu'on attend
   la réponse, et vire au rouge si le client tente de continuer sans répondre. */
.engc-parchip.engc-parask { display: inline-flex; align-items: center; gap: 6px; cursor: default; padding-right: 6px; }
.engc-parans {
  width: auto; margin: 0; padding: 4px 9px; border-radius: 999px; box-shadow: none; cursor: pointer;
  font: 600 12px system-ui, sans-serif; line-height: 1.2; border: 1.5px solid currentColor; background: transparent; color: inherit;
}
.engc-parans.keep { color: var(--engc-ok, #2e9e5b); }
.engc-parans.drop { color: var(--engc-bad, #c03a32); }
.engc-parans:hover, .engc-parans:focus-visible { background: rgba(46, 134, 181, .10); filter: none; }
.engc-parhelp { margin: 8px 0 0; text-align: center; font-size: 13.5px; line-height: 1.4; }
.engc-parhelp-err { color: var(--engc-bad, #c03a32); font-weight: 600; }
.engc-parwrap-faded .engc-parbox.engc-missing, .engc-parchip.engc-missing {
  outline: 3px solid var(--engc-bad, #c03a32); box-shadow: 0 0 0 4px rgba(192, 58, 50, .28);
  animation: engcMissPulse 1.1s ease-in-out 2;
}
@media (prefers-reduced-motion: reduce) {
  .engc-parwrap-faded .engc-parbox.engc-missing, .engc-parchip.engc-missing { animation: none; }
}
/* John 2026-10-01 : plus de pastille ✓ / ✕ sur les éléments (elles cachaient des éléments
   voisins) — l'état se lit au cadre (vert net = fabriqué, rouge grisé = retiré). Seul le
   « ? » d'un doute non tranché reste, en MINI repère hors de la pièce, non cliquable. */
.engc-parwrap-faded .engc-parbox i {
  width: 11px; height: 11px; right: -6px; top: -6px; font: 700 8px/11px system-ui, sans-serif;
  box-shadow: 0 0 0 1px #fff; pointer-events: none;
}
/* Retour Jonathan / ENGC 2026-10-01 — écran A plus précis et navigable :
   contour fin au repos (il ne mange plus les petites pièces voisines), zone de clic
   élargie réduite à la souris (gardée large au doigt), petites pièces au-dessus
   (z-index posé par le JS), on glisse l'image pour se déplacer quand elle est zoomée. */
.engc-parwrap-faded .engc-parbox { outline-width: 1.5px; }
.engc-parwrap-faded .engc-parbox::before { inset: -3px; }
@media (pointer: coarse) { .engc-parwrap-faded .engc-parbox::before { inset: -9px; } }
.engc-parwrap-faded .engc-parbox:hover, .engc-parwrap-faded .engc-parbox:focus-visible { outline-width: 3px; }
.engc-parrect { z-index: 100000; }
.engc-parscroll.engc-pannable { cursor: grab; }
.engc-parscroll.engc-panning, .engc-parscroll.engc-panning * { cursor: grabbing !important; user-select: none; }
.engc-parpanhint { display: none; margin: -2px 0 6px; text-align: right; color: #5b6b79; font-size: 12.5px; }
@media (hover: hover) and (pointer: fine) { .engc-parpanhint { display: block; } }
/* Plein écran de l'écran A (John 2026-10-01). */
.engc-parzoombar .engc-parfullbtn { width: auto; min-width: 0; padding: 0 12px; font-size: 14px; }
.engc-detect.engc-gatefull { position: fixed; inset: 0; z-index: 9000; margin: 0; border-radius: 0; overflow: auto; padding: 12px 16px 20px; }
.engc-gatefull .engc-parscroll { max-height: calc(100vh - 170px); }
.engc-gatefull .engc-parcrop { width: calc(min(100%, (100vh - 200px) * var(--ar, 3)) * var(--gz, 1)); }
html.engc-gatefull-on, html.engc-gatefull-on body { overflow: hidden; }
html[data-theme="dark"] .engc-detect.engc-gatefull { background: #0f1720; }
/* Bouton « Réafficher les éléments retirés automatiquement » : en tête, bien visible. */
.engc-parrestore {
  display: block; width: 100%; margin: 0 0 10px; padding: 10px 14px; border-radius: 8px; cursor: pointer;
  border: 2px solid var(--engc-warn, #d98f1f); background: rgba(217, 143, 31, .12); color: #8a5300;
  font: 700 14.5px system-ui, sans-serif; text-align: left; box-shadow: none;
}
.engc-parrestore span { font-weight: 400; opacity: .85; }
.engc-parrestore.on { border-color: rgba(46, 134, 181, .5); background: rgba(46, 134, 181, .06); color: #205f82; font-weight: 600; }
.engc-parrestore:hover, .engc-parrestore:focus-visible { filter: brightness(1.04); background: rgba(217, 143, 31, .2); }
.engc-parrestore.on:hover { background: rgba(46, 134, 181, .12); }
html[data-theme="dark"] .engc-parrestore { color: #f3b862; }
html[data-theme="dark"] .engc-parrestore.on { color: #8cc8e8; }
@media (max-width: 640px) { .engc-parrestore { font-size: 14px; } }

/* Validation refusée au clic « Continuer » (arbitrage John 2026-09-02, point 2 — testeur
   R01 : aucune couleur cochée, bouton « muet ») : le message est RÉPÉTÉ juste au-dessus
   des boutons Retour / Continuer, et la section manquante est encadrée en rouge. */
.engc-steperr {
  margin: 18px 0 -12px; padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid var(--engc-bad, #c03a32); background: rgba(192,58,50,.08);
  color: var(--engc-bad, #c03a32); font-weight: 600; font-size: 14.5px; line-height: 1.4;
}
h2.engc-missing { color: var(--engc-bad, #c03a32); }
label.radio.engc-missing, .pcard.engc-missing {
  outline: 2px solid var(--engc-bad, #c03a32); outline-offset: -2px;
  box-shadow: 0 0 0 3px rgba(192,58,50,.28);
  animation: engcMissPulse 1.1s ease-in-out 2;
}
@keyframes engcMissPulse { 50% { box-shadow: 0 0 0 7px rgba(192,58,50,.10); } }
@media (prefers-reduced-motion: reduce) {
  label.radio.engc-missing, .pcard.engc-missing { animation: none; }
}

/* ---------------------------------------------------------------------------
   FICHE ENSEIGNE (V4.153.0, John 2026-09-09) — page résultat : la fiche lisible
   (éléments, dimensions, face, chants, fond, couleur, laquage, éclairage,
   alimentation, fixation) remplace le détail ligne à ligne ; le détail du calcul
   reste derrière « Détails interne ENGC » pour les comptes internes.
   --------------------------------------------------------------------------- */
table.fiche { margin: 8px 0 4px; font-size: 13.5px; }
table.fiche th {
  text-align: left; font-weight: 600; color: var(--engc-bleu-fonce);
  padding: 5px 10px 5px 0; width: 30%; vertical-align: top; white-space: nowrap;
  border-bottom: 1px dashed var(--engc-trait); font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  letter-spacing: .2px;
}
table.fiche td { vertical-align: top; }
table.fiche tr:last-child th { border-bottom: none; }
@media (max-width: 640px) {
  table.fiche th { width: 36%; white-space: normal; }
  /* Téléphone (vérification de bout en bout 2026-10-02) : le tableau faisait 445 px dans un
     bloc de 318 px et le texte était coupé (« MeanWell … 300 W (puiss ») — la fiche tient
     dans sa colonne, les longues valeurs passent à la ligne. */
  table.fiche { width: 100%; table-layout: fixed; }
  table.fiche td { overflow-wrap: anywhere; word-break: break-word; }
}
details.engc-int {
  margin: 10px 0 4px; border: 1px dashed #b9c7d4; border-radius: 8px;
  padding: 6px 10px; background: #f6f9fb;
}
details.engc-int > summary {
  cursor: pointer; font-weight: 700; color: var(--engc-bleu-fonce); font-size: 13px;
  list-style: none;
}
details.engc-int > summary::-webkit-details-marker { display: none; }
details.engc-int > summary::after { content: " \25BE"; color: var(--engc-acier); }
details.engc-int[open] > summary::after { content: " \25B4"; }
details.engc-int table { font-size: 12.5px; }
/* « Pourquoi pas 100 % ? » replié derrière un bouton (retour John 2026-10-22, cas DKSH
   PANNEAUX) : le verdict en tête suffit, le détail des réserves est à un clic. */
details.why100 { margin: 6px 0 4px; }
details.why100 > summary {
  display: inline-block; cursor: pointer; list-style: none;
  padding: 6px 12px; min-height: 32px; box-sizing: border-box;
  border: 1px solid #b9c7d4; border-radius: 999px; background: #f6f9fb;
  font-size: 13px; font-weight: 700; color: var(--engc-bleu-fonce);
}
details.why100 > summary::-webkit-details-marker { display: none; }
details.why100 > summary::after { content: " \25BE"; color: var(--engc-acier); }
details.why100[open] > summary::after { content: " \25B4"; }
details.why100 > summary:focus-visible { outline: 2px solid var(--engc-bleu, #2e86b5); outline-offset: 2px; }
html[data-theme="dark"] details.why100 > summary { background: rgba(46, 134, 181, 0.15); border-color: #3d5568; color: #7fc4e8; }

/* ------------------------------------------------ sous-options JUSTE SOUS le bouton
   (John 2026-09-12) : ce qu'un choix ouvre (n° RAL, teinte, épaisseur, dimensions…)
   est rendu dans cet encadré rattaché au bouton sélectionné (subOpts) — jamais après
   les autres boutons du groupe. Filet bleu = « ceci dépend du choix au-dessus ». */
.engc-subopts {
  margin: -3px 0 12px 16px;
  padding: 8px 12px 4px 14px;
  border-left: 3px solid var(--engc-bleu);
  border-radius: 0 8px 8px 0;
  background: rgba(46, 134, 181, 0.07);
}
.engc-subopts > label:first-child, .engc-subopts > h2:first-child, .engc-subopts > p:first-child { margin-top: 0; }
.engc-subopts h2 { font-size: 15px; margin: 2px 0 6px; }
.engc-subopts label.radio { background: var(--engc-papier); }
.engc-subopts .engc-subopts { margin-left: 8px; }
.engc-subopts .engc-centerbtn { margin-bottom: 6px; }
.engc-montradios .engc-subopts { margin: -4px 0 4px 16px; }
@media (max-width: 640px) {
  .engc-subopts { margin-left: 8px; padding: 6px 8px 2px 10px; }
  .engc-montradios .engc-subopts { margin-left: 8px; }
}

/* ÉCRAN « QUELLES PAGES CHIFFRER ? » (arbitrage John 2026-09-29, retour MONCEAU FLEURS) */
.engc-pagegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.engc-pagecard {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px;
  border: 2px solid var(--engc-trait, #d8dee4); border-radius: 12px; background: #fff;
  cursor: pointer; color: var(--engc-encre, #1b2530); text-transform: none; letter-spacing: 0;
}
.engc-pagecard img { width: 100%; max-height: 170px; object-fit: contain; background: #fff; border-radius: 6px; opacity: .45; }
.engc-pagecard-ph { font-size: 44px; line-height: 110px; opacity: .45; }
.engc-pagecard-lbl { font-weight: 700; font-size: 14px; }
.engc-pagecard:hover, .engc-pagecard:focus, .engc-pagecard:active {
  background: #fff; color: var(--engc-encre, #1b2530); border-color: var(--engc-bleu, #2e86b5);
  transform: none; box-shadow: none;
}
.engc-pagecard.on, .engc-pagecard.on:hover, .engc-pagecard.on:focus { border-color: var(--engc-bleu, #2e86b5); box-shadow: 0 0 0 3px rgba(46,134,181,.18); }
.engc-pagecard.on img, .engc-pagecard.on .engc-pagecard-ph { opacity: 1; }
.engc-pagecard.on .engc-pagecard-lbl { color: var(--engc-bleu-fonce, #205f82); }
.engc-pagepick-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 640px) {
  .engc-pagegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engc-pagepick-act button { flex: 1 1 100%; }
}

/* COTE DE RÉFÉRENCE sur une image (écran B, John 2026-10-01) : deux touches + la longueur réelle */
.engc-refcote-link { margin: -4px 0 10px; font-size: 14px; }
.engc-refcote-link a { color: var(--engc-bleu-fonce, #205f82); font-weight: 600; }
.engc-refcote-img { position: relative; margin: 4px 0 10px; cursor: crosshair; border: 1px solid #dde4ea; border-radius: 8px; overflow: hidden; background: #fff; touch-action: manipulation; }
.engc-refcote-img img { display: block; width: 100%; height: auto; max-height: none; user-select: none; -webkit-user-select: none; pointer-events: none; }
.engc-refcote-img svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* « PAS DE TEXTE — CAISSON / TOTEM SEUL » mis en évidence (John 2026-10-01) :
   carte d'entrée de la composition libre au lieu d'un bouton secondaire discret. */
button.engc-notext {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 0 0 12px;
  padding: 12px 16px; text-align: left; text-transform: none; letter-spacing: 0;
  font-family: inherit; font-weight: 400; font-size: 15px;
  color: var(--engc-encre); background: linear-gradient(135deg, #f2f8fc 0%, #e3f0f8 100%);
  border: 2px dashed var(--engc-bleu); border-radius: 12px; box-shadow: none;
}
button.engc-notext:hover { filter: none; border-style: solid; box-shadow: 0 4px 14px var(--engc-bleu-glow); }
.engc-notext-ico { flex: 0 0 auto; font-size: 30px; line-height: 1; }
.engc-notext-txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.engc-notext-txt b {
  font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 18px;
  color: var(--engc-bleu-fonce); text-transform: uppercase; letter-spacing: .4px;
}
.engc-notext-txt small { color: var(--engc-acier); font-size: 13.5px; }
.engc-notext-go {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 14px;
  font-family: "Barlow Semi Condensed", sans-serif; text-transform: uppercase; letter-spacing: .5px;
  background: linear-gradient(180deg, var(--engc-bleu), var(--engc-bleu-fonce));
}
@media (max-width: 640px) {
  button.engc-notext { gap: 10px; padding: 10px 12px; }
  .engc-notext-ico { font-size: 24px; }
  .engc-notext-txt b { font-size: 16px; }
  .engc-notext-go { padding: 6px 10px; font-size: 13px; }
}

/* ENLÈVEMENT / LIVRAISON en deux cartes de choix (John 2026-10-01) */
.engc-ship-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 14px; }
.engc-ship-choice.engc-ship-3 { grid-template-columns: repeat(3, 1fr); }
.engc-ship-3 button.engc-ship-opt { padding: 14px 12px; gap: 10px; }
.engc-ship-3 .engc-ship-ico { font-size: 28px; }
button.engc-ship-opt {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 16px;
  text-align: left; text-transform: none; letter-spacing: 0; font-family: inherit; font-weight: 400;
  font-size: 15px; color: var(--engc-encre); background: var(--engc-papier);
  border: 2px solid var(--engc-trait); border-radius: 14px; box-shadow: none;
}
button.engc-ship-opt:hover { filter: none; border-color: var(--engc-bleu); }
button.engc-ship-opt.on {
  border-color: var(--engc-bleu); background: linear-gradient(135deg, #f2f8fc 0%, #e3f0f8 100%);
  box-shadow: 0 0 0 3px rgba(46, 134, 181, .18), 0 6px 18px rgba(27, 37, 48, .08);
}
.engc-ship-ico { font-size: 32px; line-height: 1; flex: 0 0 auto; }
.engc-ship-txt { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; }
.engc-ship-txt b {
  font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 18px;
  text-transform: uppercase; letter-spacing: .4px;
}
button.engc-ship-opt.on .engc-ship-txt b { color: var(--engc-bleu-fonce); }
.engc-ship-txt small { color: var(--engc-acier); font-size: 13.5px; }
.engc-ship-tick {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: 700; color: transparent;
  border: 2px solid var(--engc-trait);
}
button.engc-ship-opt.on .engc-ship-tick { color: #fff; background: var(--engc-bleu); border-color: var(--engc-bleu); }
@media (max-width: 640px) {
  .engc-ship-choice, .engc-ship-choice.engc-ship-3 { grid-template-columns: 1fr; gap: 8px; }
  button.engc-ship-opt { padding: 12px 14px; }
}
/* Code postal ou ville : suggestions sous le champ */
.engc-city-wrap { position: relative; max-width: 26em; }
.engc-city-wrap input { width: 100%; }
.engc-city-sugg {
  position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 50; max-height: 280px; overflow-y: auto;
  background: var(--engc-papier); border: 1px solid var(--engc-trait); border-radius: 10px;
  box-shadow: var(--engc-ombre);
}
button.engc-city-item {
  display: block; width: 100%; padding: 9px 12px; text-align: left; text-transform: none; letter-spacing: 0;
  font-family: inherit; font-weight: 400; font-size: 15px; color: var(--engc-encre);
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
button.engc-city-item + button.engc-city-item { border-top: 1px solid #eef1f4; }
button.engc-city-item:hover, button.engc-city-item:focus { filter: none; background: #eaf4fa; }
button.engc-city-item b { color: var(--engc-bleu-fonce); margin-right: 6px; }
.engc-city-ok { margin: 6px 0 0; color: var(--engc-ok); font-size: 14px; }

/* ===== John 2026-10-02 — ÉCRAN B : encart UNIQUE de la taille (signSizeCard) ===== */
.engc-sizecard { margin: 0 0 12px; padding: 10px 14px; border: 1.5px solid rgba(46, 134, 181, .45); border-left: 4px solid #2e86b5; border-radius: 10px; background: rgba(46, 134, 181, .06); }
.engc-sizecard.need { border-color: #f0d9b5; border-left-color: var(--engc-warn, #d98f1f); background: rgba(217, 143, 31, .08); }
.engc-sizecard-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.engc-sizecard-h > span { flex: 1 1 260px; }
.engc-sizecard-btn { width: auto; min-width: 0; margin: 0; padding: 6px 14px; }
.engc-sizecard-note { margin: 6px 0 0; font-size: 13.5px; color: #3f4f5c; }
.engc-sizecard .engc-sizecard-body { margin: 10px 0 4px; padding: 10px 0 0; border: 0; border-top: 1px dashed #d6dde3; border-radius: 0; background: transparent; }
.engc-sizecard .engc-refcote-link { margin: 0 0 6px; }
.engc-sizecard .engc-cotetalk { margin: 6px 0 4px; }
html[data-theme="dark"] .engc-sizecard { background: rgba(46, 134, 181, .12); }
html[data-theme="dark"] .engc-sizecard.need { background: #241d10; border-color: #5a4a26; }
html[data-theme="dark"] .engc-sizecard-note { color: inherit; opacity: .85; }
@media (max-width: 640px) {
  .engc-sizecard-h { font-size: 14px; }
  .engc-sizecard .engc-dimb-row label { flex: 1 1 40%; min-width: 0; }
  .engc-sizecard .engc-dimb-row label input { flex: 1 1 auto; width: 0; min-width: 60px; }
}

/* ===== John 2026-10-02 — ÉCRAN A : doutes « ? » REGROUPÉS par type, réponse en un clic ===== */
.engc-pargrps { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.engc-pargrp { padding: 8px 10px; border: 1.5px solid var(--engc-ok, #2e9e5b); border-radius: 12px; background: rgba(46, 158, 91, .07); }
.engc-pargrp.pend { border-color: var(--engc-warn, #d98f1f); background: rgba(217, 143, 31, .10); }
.engc-pargrp:has(> .engc-parchip:only-child) { padding: 0; border: 0; background: transparent; }
.engc-pargrp-l { display: inline-block; margin: 0 8px 6px 0; font-size: 14px; }
.engc-pargrp-sum { font-weight: 400; opacity: .85; }
.engc-pargrp-b { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.engc-parans.more { color: var(--engc-bleu-fonce, #205f82); }
.engc-pargrp .engc-parchips { margin: 8px 0 0; }

/* RÉCAP (V4.250.0, John 2026-10-03) : le nom de l'enseigne EST le titre — « Enseigne 1 — PVC »,
   la partie « Enseigne 1 » se modifie sur place (plus de champ « Nom de l'enseigne » en doublon). */
.engc-signname { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; font-size: 16px; }
.signblock input.engc-signname-in {
  width: auto; min-width: 5em; max-width: 100%; margin: 0; padding: 1px 3px;
  font: inherit; font-weight: 700; color: inherit; background: transparent;
  border: 0; border-bottom: 1px dashed var(--engc-acier, #8796a3); border-radius: 0; box-shadow: none;
}
.signblock input.engc-signname-in:hover { border-bottom-color: var(--engc-bleu); }
.signblock input.engc-signname-in:focus { outline: none; border-bottom: 2px solid var(--engc-bleu); }
.engc-signname-pen { color: var(--engc-acier, #8796a3); font-size: 13px; }
/* Précision repliée (récap) et message / fichier pour l'expert (page tarif) */
details.engc-precision { margin: 10px 0 12px; }
details.engc-precision > summary { cursor: pointer; font-weight: 600; color: var(--engc-bleu-fonce, #205f82); padding: 4px 0; }
details.engc-precision textarea { margin-top: 6px; }
/* « LEQUEL ? » — éléments superposés de l'écran A (cas ALP'AUDITION 2026-10-03 : traits fins
   entièrement recouverts par les stries du logo, introuvables au clic). Un toucher sur un point
   couvert par plusieurs cadres ouvre ce petit menu : vignette, taille, état, une action. */
.engc-parpick {
  position: fixed; z-index: 2147483000; width: 300px; max-width: calc(100vw - 16px); max-height: 60vh; overflow: auto;
  padding: 8px; border-radius: 12px; border: 1px solid #b9d9ec; background: #fff; color: #1d2b36;
  box-shadow: 0 10px 30px rgba(15, 40, 60, .28); font: 14px/1.3 system-ui, sans-serif;
}
.engc-parpick-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 2px 6px; color: #205f82; }
.engc-parpick-x { width: auto; margin: 0; padding: 2px 8px; border: 0; background: transparent; color: inherit; box-shadow: none; font-size: 16px; cursor: pointer; }
.engc-parpick-it {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 4px 0 0; padding: 7px 9px; text-align: left; cursor: pointer;
  border-radius: 9px; border: 1.5px solid var(--engc-ok, #2e9e5b); background: rgba(46, 158, 91, .07); color: inherit; box-shadow: none;
}
.engc-parpick-it.drop { border-color: var(--engc-bad, #c03a32); background: rgba(192, 58, 50, .07); }
.engc-parpick-it:hover, .engc-parpick-it:focus-visible { filter: none; background: rgba(46, 134, 181, .12); }
.engc-parpick-th { flex: 0 0 auto; background-color: #fff; background-repeat: no-repeat; outline: 1px solid #cfdde6; border-radius: 2px; }
.engc-parpick-l { flex: 1 1 auto; min-width: 0; }
.engc-parpick-l span { color: #5b6b79; font-size: 12.5px; }
.engc-parpick-l i { display: block; font-style: normal; font-size: 12.5px; color: var(--engc-ok, #2e9e5b); }
.engc-parpick-it.drop .engc-parpick-l i { color: var(--engc-bad, #c03a32); }
.engc-parpick-a { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; border: 1.5px solid currentColor; font: 600 12px system-ui, sans-serif; color: #205f82; }
.engc-parwrap-faded .engc-parbox.engc-parhl { outline: 3px solid #2e86b5 !important; outline-offset: 1px; opacity: 1 !important; filter: none !important; }
@media (max-width: 640px) {
  .engc-parpick { left: 8px !important; right: 8px; bottom: 8px; top: auto !important; width: auto; max-width: none; }
  .engc-parpick-it { padding: 10px; }
}
html[data-theme="dark"] .engc-parpick { background: #14222d; border-color: #2c4a5e; color: #e3edf3; }
html[data-theme="dark"] .engc-parpick-h, html[data-theme="dark"] .engc-parpick-a { color: #8cc8e8; }
html[data-theme="dark"] .engc-parpick-l span { color: #9fb3c1; }

/* GROUPES DE FIXATION (John 2026-10-03) : un type de fixation = une couleur, reprise par
   le trait sous ses éléments, sa ligne dans l'éditeur et sa question de plan de pose. */
.engc-fixslot-line { display: inline-block; width: 26px; height: 4px; border-radius: 2px; background: var(--fixc); flex: 0 0 auto; }
.engc-fixslot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0; padding: 7px 10px;
  border: 2px solid var(--engc-trait, #d8dee4); border-left: 6px solid var(--fixc); border-radius: 10px;
  background: var(--engc-papier, #fff); cursor: pointer;
}
.engc-fixslot.on { border-color: var(--fixc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fixc) 22%, transparent); }
.engc-fixslot select { width: auto; flex: 1 1 180px; min-width: 0; margin: 0; padding: 5px 8px; }
.engc-fixslot-n { color: var(--engc-acier, #6b7a86); font-size: 13px; }
.engc-fixslot-act { color: var(--fixc); font-weight: 700; font-size: 13px; }
.engc-fixslot button { padding: 4px 10px; font-size: 13px; margin: 0; }
.engc-fixslot-del { margin-left: auto !important; }
.engc-fixslot-sans { cursor: default; border-style: dashed; border-left-style: solid; }
.engc-fixgroups-recap { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.engc-fixchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 14px;
  border: 1px solid var(--fixc); font-size: 13.5px;
}
.engc-ppgroup { border-left: 4px solid var(--fixc); padding-left: 10px; margin: 8px 0 12px; }
.engc-ppgroup-h { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 2px 0 6px; }

/* ===== ÉCRAN DES PARTIES — UN SEUL STYLE DE BOUTON SECONDAIRE (arbitrage John n° 128,
   variante A, 2026-10-11 ; retour Jonathan « les boutons ne sont pas harmonieux ») :
   Réafficher / Revoir les éléments, zone entourée, ⧉, ✕, Séparer, Ajouter une ligne.
   Cadre fin, texte bleu ; la croix ✕ garde seulement sa couleur rouge. ===== */
.engc-btn2bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.engc-croplink .engc-btn2bar { display: inline-flex; margin: 6px 0 0 6px; vertical-align: middle; }
button.sec.engc-btn2, .engc-partedit-row button.sec.engc-btn2 {
  display: inline-flex; align-items: center; gap: 6px; width: auto;
  border: 1px solid #b9cfdd; background: #fff; color: var(--engc-bleu-fonce, #205f82);
  border-radius: 8px; padding: 6px 12px; font: 600 13px system-ui, sans-serif;
  letter-spacing: 0; text-transform: none; white-space: nowrap; box-shadow: none; cursor: pointer;
}
button.sec.engc-btn2:hover, button.sec.engc-btn2:focus-visible { border-color: var(--engc-bleu, #2e86b5); background: #f2f8fc; filter: none; }
button.sec.engc-btn2.engc-btn2-ico { padding: 6px 9px; }
button.sec.engc-btn2.engc-partrm { color: var(--engc-bad, #c03a32); }
button.sec.engc-btn2:disabled { opacity: .45; cursor: not-allowed; }
button.sec.engc-btn2.engc-mergebtn { margin: 8px 0 2px; }
@media (max-width: 640px) { button.sec.engc-btn2 { white-space: normal; text-align: left; } }
/* Plexi par lettre (John 2026-10-15) : épaisseurs / finitions en pastilles compactes sur une
   ou deux rangées, jamais 10 boutons pleine largeur empilés. */
.engc-pvbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.engc-pvbtns .ralbtn { display: inline-block; width: auto; flex: 0 0 auto; margin: 0; padding: 6px 12px; text-align: center; }

/* ===== V4.307.0 (John 2026-10-16) — ÉCRAN A « ce qu'on fabrique » : sélection directe
   (glisser = cadre, clic = sélectionner), barre d'actions Fabriquer / Ne pas fabriquer,
   molette = zoom. Socle commun + deux habillages (A « atelier » sombre, B clair). ===== */
.engc-gate2 { padding: 18px 18px 16px; }
.engc-gate2 .engc-gatestats { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; color: inherit; }
.engc-gstat { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px 5px 10px; border-radius: 999px;
  font: 600 14px/1.2 "Barlow", system-ui, sans-serif; background: rgba(46, 158, 91, .10); color: #1f6e40; border: 1px solid rgba(46, 158, 91, .35); }
.engc-gstat b { font: 700 18px/1 "Barlow Semi Condensed", "Barlow", system-ui, sans-serif; }
.engc-gstat::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--engc-ok, #2e9e5b); align-self: center; }
.engc-gstat.drop { background: rgba(192, 58, 50, .08); color: #9b2c25; border-color: rgba(192, 58, 50, .35); }
.engc-gstat.drop::before { background: var(--engc-bad, #c03a32); }
.engc-gstat.sus { background: rgba(217, 143, 31, .12); color: #8a5408; border-color: rgba(217, 143, 31, .45); }
.engc-gstat.sus::before { background: var(--engc-warn, #d98f1f); }
.engc-gatelegend { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.engc-glg { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; font-size: 13px; white-space: nowrap; }
.engc-glg::before { content: ""; width: 14px; height: 10px; border-radius: 2px; outline: 2px solid var(--engc-ok, #2e9e5b); outline-offset: -1px; background: rgba(46, 158, 91, .12); }
.engc-glg.drop::before { outline-color: var(--engc-bad, #c03a32); background: rgba(192, 58, 50, .18); }
.engc-glg.sel::before { outline: 2px solid var(--engc-bleu, #2e86b5); background: rgba(46, 134, 181, .35); }
.engc-gatenote { margin: 0 0 6px; font-size: 13px; }
.engc-gatestage { margin: 10px 0 4px; border-radius: 14px; overflow: hidden; }
/* Barre d'actions */
.engc-gatetools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; }
.engc-gatetools button { width: auto; min-width: 0; margin: 0; min-height: 40px; padding: 0 12px; border-radius: 10px;
  font: 600 14px/1 "Barlow", system-ui, sans-serif; letter-spacing: .02em; text-transform: none; box-shadow: none; }
.engc-gsel { display: inline-flex; align-items: center; gap: 8px; }
.engc-gbox { width: 16px; height: 16px; border-radius: 4px; border: 2px solid currentColor; position: relative; flex: none; }
.engc-gsel.on .engc-gbox { background: var(--engc-bleu, #2e86b5); border-color: var(--engc-bleu, #2e86b5); }
.engc-gsel.on .engc-gbox::after { content: "✓"; position: absolute; inset: -3px 0 0; color: #fff; font: 700 12px/16px system-ui, sans-serif; text-align: center; }
.engc-gselcount { font: 500 14px/1.2 "Barlow", system-ui, sans-serif; opacity: .75; }
.engc-gselcount.on { opacity: 1; }
.engc-gselcount b { font-size: 16px; color: var(--engc-bleu, #2e86b5); }
.engc-gselinfo { display: flex; flex-direction: column; gap: 1px; flex: 1 1 0; min-width: 130px; }
.engc-gsellinks { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.engc-gacts { display: flex; gap: 8px; flex: none; }
.engc-gatetools .engc-glink { white-space: nowrap; text-align: left; min-height: 0; padding: 0; background: none; border: 0; text-decoration: underline; font-weight: 500; font-size: 12.5px; color: inherit; opacity: .8; }
.engc-gatetools .engc-glink:hover { opacity: 1; background: none; filter: none; }
.engc-gact { white-space: nowrap; border: 2px solid transparent; color: #fff; transition: transform .12s ease, box-shadow .12s ease, opacity .12s; }
.engc-gact.keep { background: var(--engc-ok, #2e9e5b); border-color: #23804a; }
.engc-gact.drop { background: var(--engc-bad, #c03a32); border-color: #9b2c25; }
.engc-gact:not([disabled]):hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); filter: brightness(1.06); }
.engc-gact[disabled] { opacity: .38; cursor: not-allowed; filter: grayscale(.4); }
/* Aperçu : plus de cadre propre, le plateau (stage) l'habille */
.engc-gate2 .engc-parscroll { border: 0; border-radius: 0; max-height: 72vh; padding: 18px; touch-action: pan-x pan-y;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: crosshair; }
.engc-gate2 .engc-parscroll.engc-pannable { cursor: crosshair; }
.engc-gate2 .engc-parscroll.engc-spacepan, .engc-gate2 .engc-parscroll.engc-spacepan * { cursor: grab !important; }
.engc-gate2 .engc-parscroll.engc-panning, .engc-gate2 .engc-parscroll.engc-panning * { cursor: grabbing !important; }
.engc-gate2 .engc-parscroll.engc-selecting .engc-parbox, .engc-gate2 .engc-parscroll.engc-selecting .engc-partext { pointer-events: none; }
.engc-gate2 .engc-parcrop { border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 29, 41, .08), 0 8px 26px rgba(15, 29, 41, .14); }
.engc-gate2 .engc-parscroll.engc-selarm .engc-parcrop { box-shadow: 0 0 0 3px var(--engc-bleu, #2e86b5), 0 8px 26px rgba(15, 29, 41, .2); }
.engc-gate2 .engc-parbox { cursor: pointer; }
/* Sélection : contour bleu épais + voile bleu, au-dessus de l'état fabriqué / retiré */
.engc-gate2 .engc-parwrap-faded .engc-parbox.sel { outline: 3px solid var(--engc-bleu, #2e86b5); outline-offset: 2px; opacity: 1; filter: none;
  box-shadow: 0 0 0 5px rgba(46, 134, 181, .28), 0 0 14px rgba(46, 134, 181, .55); }
.engc-gate2 .engc-parwrap-faded .engc-parbox.sel::after { content: ""; position: absolute; inset: 0; background: rgba(46, 134, 181, .30); pointer-events: none; border-radius: inherit; }
.engc-gate2 .engc-parwrap-faded .engc-parbox.drop.sel { opacity: .85; }
.engc-gate2 .engc-parrect-box { display: none; position: absolute; z-index: 100000; pointer-events: none; border: 2px dashed var(--engc-bleu, #2e86b5);
  background: rgba(46, 134, 181, .14); border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); }
@media (prefers-reduced-motion: no-preference) {
  .engc-gate2 .engc-parrect-box { animation: engcGateAnts .6s linear infinite; }
  .engc-gate2 .engc-parwrap-faded .engc-parbox.sel { animation: engcGateSel 1.8s ease-in-out infinite; }
}
@keyframes engcGateAnts { 50% { border-color: #8cc8e8; } }
@keyframes engcGateSel { 50% { box-shadow: 0 0 0 5px rgba(46, 134, 181, .12), 0 0 6px rgba(46, 134, 181, .35); } }
/* Pied du plateau : aide aux gestes + zoom / plein écran */
.engc-gatefoot { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.engc-gatehint { flex: 1 1 auto; font-size: 12.5px; line-height: 1.35; opacity: .85; }
.engc-gatehint b { font-weight: 600; }
.engc-gh-touch { display: none; }
@media (hover: none), (pointer: coarse) { .engc-gh-pc { display: none; } .engc-gh-touch { display: inline; } }
/* Écran tactile (ordinateur tactile compris) : l'aide au doigt s'ajoute, sur sa ligne. */
.engc-touch .engc-gh-touch { display: block; margin-top: 2px; }
.engc-gate2 .engc-gatenav { margin: 0; gap: 4px; flex: none; justify-content: flex-end; }
.engc-gate2 .engc-gatenav button { width: 36px; min-width: 36px; height: 34px; min-height: 0; margin: 0; padding: 0; border-radius: 8px; font-size: 18px; box-shadow: none; }
.engc-gate2 .engc-gatenav button.engc-parfullbtn { width: auto; padding: 0 10px; font-size: 13px; }
.engc-gate2 .engc-gatenav > span { min-width: 52px; font: 600 13px/1 "Barlow", system-ui, sans-serif; text-align: center; }
.engc-gate2 .engc-gatego { margin-top: 16px !important; min-height: 52px; font-size: 17px; }
.engc-gate2.engc-gatefull .engc-parscroll { max-height: calc(100vh - 230px); }

/* --- Affichage CLAIR (John 2026-10-16, variante B) : plateau clair quadrillé, barre d'outils bleutée --- */
.engc-gate2 .engc-gatestage { background: #fff; border: 1px solid #d5e2ec; box-shadow: 0 6px 20px rgba(32, 95, 130, .10); }
.engc-gate2 .engc-gatetools { background: linear-gradient(180deg, #f3f8fc, #eaf3f9); border-bottom: 1px solid #d5e2ec; color: #205f82; }
.engc-gate2 .engc-gsel { background: #fff; color: #205f82; border: 1px solid #b9d3e4; }
.engc-gate2 .engc-gsel:hover { background: #e3f0f8; filter: none; }
.engc-gate2 .engc-parscroll { background-color: #f6f9fb;
  background-image: linear-gradient(45deg, #eef3f7 25%, transparent 25%, transparent 75%, #eef3f7 75%), linear-gradient(45deg, #eef3f7 25%, transparent 25%, transparent 75%, #eef3f7 75%);
  background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.engc-gate2 .engc-gatefoot { background: #f8fbfd; border-top: 1px solid #e1eaf1; color: #4b5d6b; }
.engc-gate2 .engc-gatenav button { background: #fff; color: #205f82; border: 1px solid #b9d3e4; }
.engc-gate2 .engc-gatenav > span { color: #205f82; }
html[data-theme="dark"] .engc-gstat { color: #9fe0b8; }
html[data-theme="dark"] .engc-gstat.drop { color: #f2a59f; }
html[data-theme="dark"] .engc-gstat.sus { color: #f3c47a; }
/* --- Affichage SOMBRE (John 2026-10-16, variante A) : plateau « atelier » bleu nuit, la planche blanche posée dessus --- */
html[data-theme="dark"] .engc-gate2 .engc-gatestage { background: #0f1d29; color: #dbe8f2; border-color: #22384a;
  box-shadow: 0 10px 30px rgba(15, 29, 41, .28), inset 0 0 0 1px rgba(140, 200, 232, .14); }
html[data-theme="dark"] .engc-gate2 .engc-gatetools { background: linear-gradient(180deg, #17293a, #132332); border-bottom: 1px solid rgba(140, 200, 232, .14); color: #dbe8f2; }
html[data-theme="dark"] .engc-gate2 .engc-gsel { background: rgba(255, 255, 255, .06); color: #dbe8f2; border: 1px solid rgba(140, 200, 232, .3); }
html[data-theme="dark"] .engc-gate2 .engc-gsel:hover { background: rgba(46, 134, 181, .25); filter: none; }
html[data-theme="dark"] .engc-gate2 .engc-gselcount b { color: #8cc8e8; }
html[data-theme="dark"] .engc-gate2 .engc-parscroll { background-color: #0f1d29;
  background-image: linear-gradient(rgba(140, 200, 232, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 200, 232, .07) 1px, transparent 1px);
  background-size: 24px 24px; }
html[data-theme="dark"] .engc-gate2 .engc-gatefoot { background: #132332; border-top: 1px solid rgba(140, 200, 232, .14); color: #dbe8f2; }
html[data-theme="dark"] .engc-gate2 .engc-gatenav button { background: rgba(255, 255, 255, .07); color: #dbe8f2; border: 1px solid rgba(140, 200, 232, .3); }
html[data-theme="dark"] .engc-gate2 .engc-gatenav button:not([disabled]):hover { background: rgba(46, 134, 181, .35); filter: none; }
html[data-theme="dark"] .engc-gate2 .engc-gatenav button[disabled] { opacity: .35; }
html[data-theme="dark"] .engc-gate2 .engc-gatenav > span { color: #8cc8e8; }

/* Téléphone : actions en deux gros boutons pleine largeur, aide sur sa ligne */
@media (max-width: 640px) {
  .engc-gate2 { padding: 14px 12px 12px; }
  .engc-gatestage { margin-left: -4px; margin-right: -4px; border-radius: 12px; }
  .engc-gatetools { padding: 8px; gap: 6px; }
  .engc-gsel { flex: none; }
  .engc-gacts { flex-basis: 100%; gap: 6px; }
  .engc-gatetools .engc-gact { flex: 1 1 0; min-height: 46px; font-size: 15px; padding: 0 4px; letter-spacing: 0; }
  .engc-gate2 .engc-parscroll { padding: 10px; max-height: 64vh; }
  .engc-gatefoot { flex-wrap: wrap; padding: 6px 8px; gap: 6px; }
  .engc-gatehint { flex-basis: 100%; order: 2; font-size: 12px; }
  .engc-gate2 .engc-gatenav { width: 100%; justify-content: space-between; }
  .engc-gate2 .engc-gatenav button { width: 44px; min-width: 44px; height: 40px; }
  .engc-gate2 .engc-gatenav .engc-zl-long { display: none; }
  .engc-gate2 .engc-gatenav button.engc-parfullbtn { width: 44px; padding: 0; }
  .engc-gstat { font-size: 13px; padding: 4px 10px 4px 8px; }
  .engc-gstat b { font-size: 16px; }
}

/* « Ce fichier, c'est : » — question au 2e fichier d'une enseigne (John 2026-10-19, n° 238) */
.engc-filerole { margin: 8px 0 10px; padding: 10px 12px; border: 1px solid #f0c98a; border-left: 4px solid var(--engc-warn, #d98f1f); border-radius: 10px; background: #fff8ec; color: #3d2c10; }
.engc-filerole-q { font-size: 14px; margin: 0 0 8px; overflow-wrap: anywhere; }
.engc-filerole-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.engc-filerole-opts button { text-transform: none; letter-spacing: normal; font-weight: 400; min-height: 0; box-shadow: none; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 9px 11px; border: 1px solid #cfe2ef; border-radius: 9px; background: #fff; color: #17435e; cursor: pointer; font: inherit; }
.engc-filerole-opts button b { font-size: 14px; font-weight: 700; }
.engc-filerole-opts button span { font-size: 12px; color: #5b6f7c; line-height: 1.3; }
.engc-filerole-opts button:hover, .engc-filerole-opts button:focus-visible { border-color: var(--engc-bleu, #2e86b5); box-shadow: 0 0 0 3px rgba(46,134,181,.18); outline: none; }
@media (max-width: 640px) { .engc-filerole-opts { grid-template-columns: 1fr; } }
html[data-theme="dark"] .engc-filerole { background: #241d10; border-color: #5a4a26; color: #f3e6cc; }
html[data-theme="dark"] .engc-filerole-opts button { background: #14222d; border-color: #2c4a5e; color: #e3edf3; }
html[data-theme="dark"] .engc-filerole-opts button span { color: #a9bccb; }

/* PLANCHE COMMUNE — plusieurs fichiers pour une enseigne (John 2026-10-13 / 2026-10-19) */
.engc-plgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.engc-plcard { border: 2px solid #cfe2ef; border-radius: 10px; background: #fff; overflow: hidden; }
.engc-plcard.on { border-color: var(--engc-bleu, #2e86b5); box-shadow: 0 0 0 3px rgba(46,134,181,.18); }
.engc-plcard-pick { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 8px; cursor: pointer; }
.engc-plcard-pick:focus-visible { outline: 2px solid var(--engc-bleu, #2e86b5); }
.engc-plthumb { display: block; width: 100%; max-height: 140px; background-color: #fff; background-repeat: no-repeat; border-radius: 6px; opacity: .45; }
.engc-plcard.on .engc-plthumb { opacity: 1; }
.engc-plcard-lbl { font-weight: 700; font-size: 14px; color: #17435e; overflow-wrap: anywhere; }
.engc-plcard-dim { font-size: 12px; color: #5b6f7c; }
.engc-plw { display: flex; align-items: center; gap: 6px; padding: 0 8px 8px; font-size: 13px; }
.engc-plw input { width: 90px; }
.engc-plregion { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 8px; padding: 8px 12px; border-radius: 9px; background: #eef6fc; border: 1px solid #cfe2ef; color: #17435e; }
.engc-plregion-n { font-family: "Barlow Semi Condensed", "Barlow", sans-serif; text-transform: uppercase; letter-spacing: .4px; font-size: 13px; }
.engc-plregion-name { overflow-wrap: anywhere; }
.engc-plboard { margin: 0 0 12px; border: 1px solid #cfe2ef; border-radius: 10px; padding: 8px 12px; background: #f7fbfe; }
.engc-plboard > summary { cursor: pointer; padding: 4px 0; }
.engc-plstage { position: relative; width: 100%; max-height: 60vh; margin: 10px 0 6px; background: #fff; border: 1px dashed #b9cfdd; border-radius: 8px; touch-action: none; overflow: visible; }
.engc-plitem { position: absolute; box-sizing: border-box; background-repeat: no-repeat; border: 1px solid rgba(46,134,181,.55); border-radius: 3px; cursor: grab; touch-action: none; user-select: none; }
.engc-plitem:hover { box-shadow: 0 0 0 3px rgba(46,134,181,.25); }
.engc-plitem.drag { cursor: grabbing; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 5; }
.engc-plitem span { position: absolute; left: -9px; top: -9px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--engc-bleu, #2e86b5); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.engc-plrows { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.engc-plrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; overflow-wrap: anywhere; }
.engc-plrow-w { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.engc-plrow-w input { width: 90px; }
.engc-placts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
@media (max-width: 640px) { .engc-plgrid { grid-template-columns: 1fr 1fr; } .engc-plrow-w { margin-left: 0; } .engc-placts > button { flex: 1 1 100%; } }
html[data-theme="dark"] .engc-plcard { background: #14222d; border-color: #2c4a5e; }
html[data-theme="dark"] .engc-plcard-lbl { color: #e3edf3; }
html[data-theme="dark"] .engc-plcard-dim { color: #a9bccb; }
html[data-theme="dark"] .engc-plregion { background: rgba(46,134,181,.15); border-color: #2c4a5e; color: #e3edf3; }
html[data-theme="dark"] .engc-plboard { background: #101b24; border-color: #2c4a5e; }
html[data-theme="dark"] .engc-plstage { background: #e9eef2; border-color: #2c4a5e; }

/* Rappel « fichier en plusieurs couleurs » (arbitrage John 2026-10-19, n° 243) : une ligne
   d'information en tête de l'écran des options, jamais une question ni une alerte. */
.engc-mcrappel { margin: 6px 0 12px; padding: 8px 12px; border-left: 3px solid var(--engc-bleu, #2e86b5); background: rgba(46,134,181,.08); border-radius: 6px; font-size: 14px; line-height: 1.4; color: #24323d; }
html[data-theme="dark"] .engc-mcrappel { background: rgba(46,134,181,.16); color: #e3edf3; }
