/* ==========================================================================
   La fenêtre d'aide « Ajoutez OfficeMetrics à votre IA »
   (<dialog id="ig-panneau">, SECTION panneau ; ouverte par scripts/panneau.js)
   V7 (SPEC-V7 § 5) : plus d'onglets, une seule marche à suivre, valable pour toutes les IA :
   la rangée des 7 logos en haut (couleurs d'origine), puis 3 étapes numérotées ;
   l'adresse et « Copier » sont dans l'étape 2. Rien n'est animé, sauf l'apparition.
   ========================================================================== */
.ig-panneau {
  width: min(560px, 100% - 32px); max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0;
  border-radius: var(--r-window);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 .5px rgba(26, 26, 26, .08), 0 2px 6px rgba(26, 26, 26, .05), 0 40px 80px -32px rgba(26, 26, 26, .36);
  overflow: auto; overscroll-behavior: contain;
  transition: opacity 220ms var(--om-out), translate 220ms var(--om-out);
}
@starting-style {
  .ig-panneau[open] { opacity: 0; translate: 0 8px; }
}
.ig-panneau::backdrop { background: rgba(26, 26, 26, .26); }

.ig-panneau .ig-p-contenu { padding: 24px 24px 28px; }
.ig-panneau .ig-p-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ig-panneau .ig-p-titre {
  padding-top: 4px;
  font: 420 22px/28px var(--font-voice); font-variation-settings: "opsz" 24; letter-spacing: -.015em;
  text-wrap: balance;
}
.ig-panneau .ig-p-fermer {
  position: relative;
  display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0; margin: -2px -4px 0 0;
  border: 0; border-radius: 50%;
  background: #f6f6f4; color: var(--ink); box-shadow: inset 0 0 0 .5px var(--line);
  transition: background 150ms var(--om-out);
}
.ig-panneau .ig-p-fermer:hover { background: var(--hover); }
.ig-panneau .ig-p-fermer::after { content: ""; position: absolute; inset: -4px; }   /* cible de 44 px */
.ig-panneau .ig-p-fermer .ic { width: 14px; height: 14px; }

/* La rangée des logos : les petites tuiles de la bulle Intégration, sans les noms (lus aux lecteurs d'écran) */
.ig-panneau .ig-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ig-panneau .ig-logos .tuile-ic { width: 36px; height: 36px; }
.ig-panneau .ig-logos svg { width: 18px; height: 18px; }   /* comme dans la bulle Intégration */
.ig-panneau .ig-logos svg[viewBox="0 0 21 15"] { width: 22px; }   /* le « M » de Mistral, plus large que haut */

/* Les trois étapes : le numéro dans un petit rond, le texte à droite */
.ig-panneau .ig-etapes {
  display: grid; gap: 16px;
  margin: 24px 0 0; padding: 20px 0 0; list-style: none;
  border-top: .5px solid var(--hairline);
}
.ig-panneau .ig-etapes li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.ig-panneau .ig-e-num {
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: #f1f1ee; box-shadow: inset 0 0 0 .5px var(--hairline);
  font: 500 var(--fs-meta)/1 var(--font-ui); color: var(--ink);
}
.ig-panneau .ig-etapes p, .ig-panneau .ig-a-titre {
  padding-top: 2px;
  font-size: var(--fs-ui); line-height: 20px; color: var(--ink); text-wrap: pretty;
}

/* Étape 2 : l'adresse, avec « Copier ». Coins emboîtés : « Copier » (36 px, rayon 18) à 6 px du bord → 24 px. */
.ig-panneau .ig-a-titre { display: block; margin-bottom: 8px; }
.ig-panneau .ig-a-champ {
  display: flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 6px 0 18px;
  border-radius: 24px;
  background: var(--raised); box-shadow: inset 0 0 0 .5px var(--line);
}
.ig-panneau .ig-a-champ input {
  flex: 1; min-width: 0; height: 100%;
  padding: 0; border: 0; background: none; outline: 0;
  font: 400 var(--fs-tag)/18px var(--font-data); color: var(--ink);
  text-overflow: ellipsis;
}
.ig-panneau .ig-a-champ:has(input:focus-visible) { box-shadow: inset 0 0 0 1px var(--ink); }
.ig-panneau .ig-copier { flex: none; gap: 7px; padding: 0 14px 0 12px; }
.ig-panneau .ig-copier .ic { width: 14px; height: 14px; }

/* Téléphone : cibles de 44 px, logos un peu plus petits ; l'adresse prend toute la ligne, « Copier » passe dessous */
@media (max-width: 639px) {
  .ig-panneau { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .ig-panneau .ig-p-contenu { padding: 20px 20px 24px; }
  .ig-panneau .ig-p-titre { font-size: 20px; line-height: 26px; }
  .ig-panneau .ig-logos { gap: 6px; }
  .ig-panneau .ig-logos .tuile-ic { width: 32px; height: 32px; }
  .ig-panneau .ig-logos svg { width: 16px; height: 16px; }
  .ig-panneau .ig-logos svg[viewBox="0 0 21 15"] { width: 20px; }
  .ig-panneau .ig-etapes li { grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; }
  .ig-panneau .ig-e-num { width: 22px; height: 22px; }
  .ig-panneau .ig-a-champ { flex-wrap: wrap; gap: 0; height: auto; padding: 0 4px 4px 10px; border-radius: 26px; }   /* « Copier » de 44 px (rayon 22) à 4 px du bord */
  .ig-panneau .ig-a-champ input { flex: 1 0 100%; height: 44px; font-size: var(--fs-meta); }
  .ig-panneau .ig-copier { flex: 1 0 calc(100% + 6px); height: 44px; margin-left: -6px; }   /* 4 px de chaque côté dans le cadre */
}
@media (max-width: 374px) {
  .ig-panneau .ig-a-champ input { font-size: var(--fs-data); }   /* 11 px : l'adresse tient en entier dès 360 px */
}
@media (max-width: 359px) {
  .ig-panneau .ig-p-contenu { padding: 16px 16px 20px; }
  .ig-panneau .ig-logos .tuile-ic { width: 30px; height: 30px; }
  .ig-panneau .ig-copier { padding: 0 12px 0 10px; }
  .ig-panneau .ig-a-champ { margin-left: -32px; }   /* 320 px : le cadre de l'adresse prend aussi la colonne du numéro, l'adresse tient en entier */
}

/* ==========================================================================
   La fenêtre « Demander une démo » (<dialog id="ig-demo" class="ig-panneau ig-demo">, SECTION demo ;
   ouverte par scripts/panneau.js, mise en ligne du 04/11). Elle reprend tout de la fenêtre d'aide (cadre, en-tête,
   « Fermer », apparition, téléphone) ; ici seulement la phrase, les champs, l'erreur et le remerciement.
   Noir et blanc : bord des champs à 3,3:1 sur blanc, textes à 4,5:1 au moins.
   ========================================================================== */
.ig-demo { max-width: 480px; }
.ig-demo .ig-d-phrase {
  margin-top: 8px;
  font-size: var(--fs-ui); line-height: 20px; color: var(--muted); text-wrap: pretty;
}
.ig-demo .ig-d-form {
  display: grid; gap: 16px;
  margin-top: 20px; padding-top: 20px;
  border-top: .5px solid var(--hairline);
}
.ig-demo .ig-d-champ { display: grid; gap: 6px; min-width: 0; }
.ig-demo .ig-d-champ label { font: 500 var(--fs-tag)/18px var(--font-ui); color: var(--ink); }
.ig-demo .ig-d-facultatif { font-weight: 400; color: var(--muted); }
.ig-demo .ig-d-champ input {
  width: 100%; min-width: 0; height: 44px; padding: 0 14px;
  border: 0; border-radius: var(--r-tile);
  background: var(--surface); box-shadow: inset 0 0 0 1px #8f8f89;
  font: 400 16px/20px var(--font-ui); color: var(--ink);   /* 16 px : Safari sur iPhone ne zoome pas au focus */
}
.ig-demo .ig-d-champ input:focus-visible { outline-offset: 2px; box-shadow: inset 0 0 0 1px var(--ink); }
/* Le piège à robots : hors écran, jamais vu ni tabulé (aria-hidden, tabindex -1) */
.ig-demo .ig-d-piege { position: absolute; top: 0; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.ig-demo .ig-d-envoyer { justify-self: start; min-width: 120px; margin-top: 4px; }
.ig-demo .ig-d-envoyer[aria-disabled="true"] { background: #4a4a4a; cursor: progress; }   /* « Envoi… » : 8,9:1 */
.ig-demo .ig-d-erreur { font-size: var(--fs-ui); line-height: 20px; color: var(--ink); text-wrap: pretty; }
.ig-demo .ig-d-erreur:empty { margin-top: -16px; }   /* vide : il reste lu (role="alert") mais n'ajoute pas d'écart */
.ig-demo .ig-d-erreur a { text-underline-offset: 2px; overflow-wrap: anywhere; }

.ig-demo .ig-d-merci { font-size: var(--fs-row); line-height: 24px; color: var(--ink); text-wrap: pretty; }
.ig-demo .ig-d-merci:not(:empty) { margin-top: 20px; padding-top: 20px; border-top: .5px solid var(--hairline); }
.ig-demo .ig-d-fin { margin-top: 20px; }

@media (max-width: 639px) {
  .ig-demo .ig-d-envoyer, .ig-demo .ig-d-fin .pilule { width: 100%; height: 44px; }
}
