/* Plateforme de test (19/11) : en-tête à trois onglets, vue testeur, avis, onglet Coûts, suite de l'onglet Développeur.
   Thème OUDS (ouds/ouds-omea.css) : classes .o-* et variables --ouds-* seulement, aucune couleur, police ni rayon en
   dur. L'illustration du routeur a sa feuille (scene.css), la vue détaillée du moteur la sienne (texte.css). */

/* ---------- en-tête noir : logo, titre, onglets ---------- */
.p-barre { flex-wrap: wrap; row-gap: var(--ouds-space-none); }
.p-onglets { margin-left: auto; display: flex; gap: var(--ouds-space-l); align-self: stretch; }
.o-header .o-tab { min-height: 64px; padding: var(--ouds-space-none); color: var(--ouds-color-always-white);
  font-size: var(--ouds-type-label-l); }
.o-header .o-tab:hover, .o-header .o-tab[aria-selected="true"] { color: var(--ouds-orange-500);
  border-bottom-color: var(--ouds-orange-500); }
.o-header :focus-visible { outline-color: var(--ouds-color-always-white);
  box-shadow: 0 0 0 var(--ouds-border-width-focus) var(--ouds-color-always-black); }
.p-onglets + .o-header__action { margin-left: var(--ouds-space-xs); }
@media (max-width: 767px) {
  .o-header { position: static; }
  .p-barre .o-header__title { order: 2; width: 100%; padding-bottom: var(--ouds-space-2xs); }
  .p-onglets { order: 3; width: 100%; margin-left: var(--ouds-space-none); }
  .o-header .o-tab { min-height: 48px; }
  .p-barre .o-header__action { margin-left: auto; }
}

/* ---------- connexion des testeurs ---------- */
.p-connexion { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center;
  background: var(--ouds-color-overlay-backdrop); padding: var(--ouds-space-m); }
.p-connexion form { width: 100%; max-width: 400px; box-shadow: var(--ouds-elevation-emphasized); }
.p-connexion p:empty { display: none; }

/* ---------- onglet Tester : carte « Appel » à gauche, scène au centre (composition de la vue testeur du 03/11) ---------- */
.p-tester { padding: var(--ouds-space-m) var(--ouds-grid-margin) var(--ouds-space-xl); }
.p-grille { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: var(--ouds-space-xl);
  align-items: start; }
.p-colonne { display: flex; flex-direction: column; gap: var(--ouds-space-m); min-width: 0; }
.p-centre { display: flex; flex-direction: column; justify-content: center; min-width: 0;
  min-height: calc(100vh - 160px); min-height: calc(100dvh - 160px); }
.p-consigne { text-align: center; max-width: 520px; margin: var(--ouds-space-xs) auto var(--ouds-space-none); }
.p-appel h2 { margin-bottom: var(--ouds-space-s); }
.p-situation { border: var(--ouds-border-width-default) solid var(--ouds-color-border-muted);
  background: var(--ouds-color-surface-primary); padding: var(--ouds-space-s); }
.p-situation summary { cursor: pointer; }
.p-situation p { margin: var(--ouds-space-xs) 0 var(--ouds-space-none); }
.p-situation .o-field { margin-top: var(--ouds-space-xs); }
.p-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ouds-space-xs);
  margin-top: var(--ouds-space-m); }
.p-actions .o-btn { width: 100%; min-height: 48px; padding-inline: var(--ouds-space-xs); white-space: normal;
  text-align: center; line-height: var(--ouds-lh-label-s); }
.p-actions #demarrer { grid-column: 1 / -1; }
#muet[aria-pressed="true"] { background: var(--ouds-color-action-negative-enabled);
  border-color: var(--ouds-color-action-negative-enabled); color: var(--ouds-color-content-on-status-emphasized); }
.p-ligne-micro { display: flex; align-items: center; gap: var(--ouds-space-s); margin-top: var(--ouds-space-m); }
.p-icone-micro { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; color: var(--ouds-color-content-muted); }
.p-niveau { flex: 1; min-width: 0; }
.p-niveau > span { width: 0; transition: width 60ms linear; }
.p-etat-micro { margin: var(--ouds-space-xs) 0 var(--ouds-space-none); }
.p-etat-micro:empty { display: none; }
.p-langue { display: flex; align-items: center; gap: var(--ouds-space-s); margin-top: var(--ouds-space-m);
  padding-top: var(--ouds-space-s); border-top: var(--ouds-border-width-default) solid var(--ouds-color-border-muted); }
.p-langue label { flex: none; margin: var(--ouds-space-none); }
.p-langue .o-select { flex: 1; min-width: 0; min-height: 40px; padding-block: var(--ouds-space-2xs);
  font-size: var(--ouds-type-label-m); }
@media (max-width: 899px) {
  .p-grille { grid-template-columns: minmax(0, 1fr); gap: var(--ouds-space-m); }
  .p-centre { order: -1; min-height: 0; }
}

/* ---------- après l'appel : « Votre avis » (note de 1 à 10, remarque) ---------- */
.p-notes { border: 0; padding: var(--ouds-space-none); margin: var(--ouds-space-none); min-width: 0; }
.p-notes legend { padding: var(--ouds-space-none); margin-bottom: var(--ouds-space-xs); }
.p-notes__choix { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ouds-space-2xs);
  margin-bottom: var(--ouds-space-2xs); }
.p-notes__choix label { position: relative; display: block; }
.p-notes__choix input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.p-notes__choix span { display: flex; align-items: center; justify-content: center; min-height: 44px;
  border: var(--ouds-border-width-medium) solid var(--ouds-color-border-default); font-weight: var(--ouds-font-weight-bold);
  font-variant-numeric: tabular-nums; }
.p-notes__choix input:hover + span { background: var(--ouds-color-action-support-hover); }
.p-notes__choix input:checked + span { background: var(--ouds-orange-500); border-color: var(--ouds-orange-500);
  color: var(--ouds-color-always-black); }
.p-notes__choix input:focus-visible + span { outline: var(--ouds-border-width-focus) solid var(--ouds-color-border-focus);
  outline-offset: 2px; }
.p-notes__choix input:disabled + span { border-color: var(--ouds-color-action-disabled); }
.p-avis p:empty { display: none; }

/* ---------- onglet Coûts ---------- */
.p-page { padding-block: var(--ouds-space-l) var(--ouds-space-2xl); }
.p-titre-page { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: var(--ouds-space-m); margin-bottom: var(--ouds-space-l); }
.p-titre-page h1 { margin-bottom: var(--ouds-space-xs); }
.p-titre-page > div { flex: 1 1 320px; min-width: 0; }
.p-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ouds-grid-gap);
  margin-bottom: var(--ouds-space-l); }
@media (max-width: 1023px) { .p-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.p-kpis .o-kpi { min-width: 0; padding: var(--ouds-space-m); }
.p-couts td, .p-couts th { vertical-align: top; }
.p-couts thead th { white-space: normal; }
.p-modele { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ouds-space-xs); font-weight: var(--ouds-font-weight-bold); }
.p-detail { display: block; color: var(--ouds-color-content-muted); font-size: var(--ouds-type-body-s);
  line-height: var(--ouds-lh-body-s); }
.p-detail { font-weight: var(--ouds-font-weight-regular); }
.p-entete { white-space: nowrap; }
.p-vide { color: var(--ouds-color-content-muted); font-style: italic; }
.o-kpi__value.p-vide { font-size: var(--ouds-type-heading-s); line-height: var(--ouds-lh-heading-xl);
  letter-spacing: var(--ouds-ls-heading-s); font-weight: var(--ouds-font-weight-regular); }
/* configuration en service : bordure orange et étiquette « En test » */
.p-couts tr.p-en-service { outline: var(--ouds-border-width-medium) solid var(--ouds-orange-500);
  outline-offset: calc(-1 * var(--ouds-border-width-medium)); }
@media (max-width: 767px) {
  /* téléphone : une ligne devient un bloc, le libellé de la colonne au-dessus de chaque valeur */
  .p-couts thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .p-couts, .p-couts tbody, .p-couts td { display: block; width: 100%; }
  .p-couts tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    border: var(--ouds-border-width-default) solid var(--ouds-color-border-muted);
    margin-bottom: var(--ouds-space-s); padding: var(--ouds-space-xs) var(--ouds-space-none); }
  .p-couts td { border: 0; padding: var(--ouds-space-2xs) var(--ouds-space-m); min-width: 0; }
  .p-couts td:nth-child(-n+2) { grid-column: 1 / -1; }   /* modèle et prix sur toute la largeur, mesures deux par deux */
  .p-couts td.o-num { text-align: left; }
  .p-couts td::before { content: attr(data-label); display: block; font-size: var(--ouds-type-label-s);
    line-height: var(--ouds-lh-label-s); font-weight: var(--ouds-font-weight-bold); color: var(--ouds-color-content-muted); }
  .p-couts tr.p-en-service { outline: 0; border: var(--ouds-border-width-medium) solid var(--ouds-orange-500); }
}

/* ---------- onglet Développeur : latences par tour, journaux, ancienne plateforme ---------- */
.p-dev-suite { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ouds-space-m);
  padding: var(--ouds-space-m) var(--ouds-grid-margin) var(--ouds-space-xl); }
.p-titre-carte { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--ouds-space-xs); margin-bottom: var(--ouds-space-s); }
.p-compact th, .p-compact td { padding: var(--ouds-space-2xs) var(--ouds-space-xs); font-size: var(--ouds-type-body-s);
  line-height: var(--ouds-lh-body-s); }
.p-compact td.p-remarque { min-width: 220px; white-space: pre-wrap; overflow-wrap: anywhere; }
#place-dev:empty { display: none; }
#place-dev .p-langue { margin-top: var(--ouds-space-none); padding-top: var(--ouds-space-none); border-top: 0; }
