/* ============================================================
   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);
}

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;
}

/* ------------------------------------------------ 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 overlay sur le 2D : agrandir / nuit / allumé-éteint. */
.engc-prevov {
  position: absolute; top: 8px; left: 8px; z-index: 8;
  display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 54px);
}
.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); }
/* 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; }
}
/* 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; }
/* 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) {
  .engc-optlayout { grid-template-columns: 1fr; gap: 12px; }
  /* L'apercu reste epingle en haut de l'ecran pendant qu'on deroule les options
     (sinon il defile et disparait). Fond plein pour que les choix passent dessous. */
  .engc-preview-pane {
    position: sticky; top: 0; z-index: 6;
    background: #fff; padding: 6px 0 8px;
    box-shadow: 0 6px 10px -8px rgba(0,0,0,0.35);
  }
  .engc-preview-stage { height: 220px; }
  .engc-preview-cap { margin-top: 4px; }
}
@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)
   ============================================================ */
.ralbtn { margin: 6px 0 2px; padding: 7px 14px; font-size: 13px; }
.ralbtn.on { background: var(--engc-rouge, #c1121c); color: #fff; border-color: var(--engc-rouge, #c1121c); }
.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); }
@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;
}

/* 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; }
.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); }
.engc-partactiv { flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; border: 1px solid #cfd6dd; color: #4a5763; background: #fff;
  white-space: nowrap; }
.engc-partactiv.on { color: #fff; background: var(--engc-rouge, #c1121c); border-color: var(--engc-rouge, #c1121c); }
.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;
}

/* ============================================================================
   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; }
.cqimg {
  flex: 0 0 auto; max-width: 180px; max-height: 120px; object-fit: contain;
  background: #fff; border: 1px solid #e3eaf0; border-radius: 10px; padding: 5px;
}
.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; }
@media (max-width: 640px) {
  .cqcard .cqhead { flex-direction: column; }
  .cqimg { max-width: 100%; max-height: 150px; }
}
@media (prefers-reduced-motion: reduce) { .cqopt { 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; }
@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; }
