/* Noémie-admin : la charte de la maquette de l'équipe éditoriale (v2, Balsamiq).
   Mesures relevées sur la maquette : 1 px de la maquette vaut 1,32 px ici, pour
   un texte courant de 13 px dans la police de la maquette (Balsamiq Sans). */

/* la police est servie par l'outil lui-même (licence OFL dans polices/), jamais
   par Google : aucune page ne transmet l'adresse des utilisateurs à un tiers */
@font-face { font-family: "Balsamiq Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("polices/BalsamiqSans-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
                 U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Balsamiq Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("polices/BalsamiqSans-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                 U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
                 U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Balsamiq Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("polices/BalsamiqSans-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
                 U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Balsamiq Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("polices/BalsamiqSans-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                 U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
                 U+2C60-2C7F, U+A720-A7FF; }

:root {
  --encre: #333333;
  --trait: #666666;        /* cadres : menu, contenu, onglets, encadrés */
  --trait-clair: #b2b2b2;  /* colonnes des tableaux */
  --gris: #dddddd;         /* boutons et onglets */
  --gris-entete: #cccccc;  /* en-têtes des tableaux */
  --rayure: #eeeeee;       /* une ligne sur deux */
  --choix: #95bcf2;        /* élément choisi : menu, ligne de tableau */
  --rouge: #cf2a27;        /* Valider, Suppr, onglets à valider */
  --vert: #009e0f;         /* OK, règles de saisie */
  --lien: #085394;
  --orange: #bf360c;       /* dans la tolérance d'une longueur */
  --panneau: 364px;        /* « Comparer avec » */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: #fff; color: var(--encre);
       font: 13px/1.35 "Balsamiq Sans", "Helvetica Neue", Arial, sans-serif; }
a { color: var(--lien); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h2 { font-size: 16px; margin-bottom: 8px; }
h3 { font-size: 14px; margin: 14px 0 6px; }
p { margin: 0 0 8px; }
strong, .gras { font-weight: 700; }
.titre { font-weight: 700; }
.titre-grand { font-size: 22px; line-height: 1.1; }
.titre-moyen { font-size: 16px; }
.petit { font-size: 10px; }
.discret { color: #777; font-size: 11px; }
.regle { color: var(--vert); }
.erreur { color: var(--rouge); }
.valide { color: var(--vert); font-size: 12px; }
.ligne { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cache-visuel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---- charpente : menu à gauche, fil d'Ariane, page ---- */
.ecran { display: flex; gap: 28px; height: 100vh; padding: 12px 22px 16px; }
nav.menu { width: 184px; flex: none; align-self: flex-start; margin-top: 18px; min-height: 430px;
           border: 1px solid var(--trait); display: flex; flex-direction: column; }
nav.menu a { display: block; height: 28px; line-height: 28px; padding: 0 5px; color: var(--encre);
             text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
nav.menu a.racine + a.racine, nav.menu .suite a, nav.menu .bas a { border-top: 1px solid var(--trait); }
nav.menu .bas { margin-top: auto; }
nav.menu a.sous { margin: 0 5px 0 9px; padding-left: 4px; }
nav.menu a.choisi { background: var(--choix); }
/* grilles : le sous-menu prend sa hauteur, sa place vide reste en bas (pages 16 et 17) */
nav.menu.grilles { min-height: 750px; }
nav.menu .bas .vide { display: block; height: 28px; border-top: 1px solid var(--trait); }
nav.menu .suite a.sous { border-top: none; }
main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-y: auto; padding-left: 12px; }
.fil { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 6px; min-height: 18px; }
.fil .sep { font-weight: 700; margin: 0 6px; }
.compte { font-size: 11px; color: #777; }
.compte form { display: inline; }

/* ---- champs ---- */
input, select, textarea, button { font: inherit; color: var(--encre); }
input:not([type]), input[type=text], input[type=search], input[type=date], input[type=password],
input[type=url], input[type=file], select {
  height: 21px; padding: 0 4px; border: 1px solid var(--encre); border-radius: 0; background: #fff; }
input[type=file] { height: auto; padding: 2px; border: none; }
textarea { display: block; width: 100%; padding: 4px; border: 1px solid var(--encre); border-radius: 0;
           background: #fff; resize: vertical; }
input:disabled, select:disabled, textarea:disabled {
  color: var(--encre); -webkit-text-fill-color: var(--encre); opacity: 1; background-color: #fff; }
::placeholder { color: #999; }
input[type=search] { -webkit-appearance: none; appearance: none; border-radius: 11px; padding-left: 20px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='4' cy='4' r='3' fill='none' stroke='%23333' stroke-width='1.4'/%3E%3Cpath d='M6.3 6.3 9.2 9.2' stroke='%23333' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 7px 50% / 10px; }
input[type=search]::-webkit-search-cancel-button { display: none; }
/* liste déroulante de la maquette : champ blanc et case grise à flèche */
select { -webkit-appearance: none; appearance: none; padding-right: 22px; max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 4'%3E%3Cpath d='M0 0h7L3.5 4z' fill='%23333'/%3E%3C/svg%3E"),
                    linear-gradient(var(--gris), var(--gris)), linear-gradient(var(--encre), var(--encre));
  background-repeat: no-repeat;
  background-size: 7px 4px, 16px 100%, 1px 100%;
  background-position: right 4.5px center, right top, right 16px top; }
/* cases : carrées partout, comme dans la maquette (choix unique compris) */
input[type=checkbox], input[type=radio] { -webkit-appearance: none; appearance: none; flex: none;
  width: 12px; height: 12px; margin: 0 6px 0 0; border: 1px solid var(--trait); border-radius: 0;
  background: #fff; vertical-align: -2px; cursor: pointer; }
input[type=checkbox]:checked, input[type=radio]:checked {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.4 5.1 4 7.8 8.9 1.6' fill='none' stroke='%23333' stroke-width='1.7'/%3E%3C/svg%3E") no-repeat center / 10px; }
input:disabled { cursor: default; }
label { cursor: pointer; }
fieldset { margin: 0; padding: 6px 10px 10px; min-width: 0; border: 1px solid var(--trait); }
legend { padding: 0 4px; }

/* ---- boutons ---- */
button, .bouton { display: inline-flex; align-items: center; justify-content: center; height: 24px;
  padding: 0 10px; border: 1px solid #999; border-right-color: #777; border-bottom-color: #777;
  border-radius: 2px; background: var(--gris); color: var(--encre); font-size: 13px; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer; }
button:disabled { cursor: not-allowed; }
button.rouge { height: 20px; padding: 0 12px; border-color: var(--rouge); background: var(--rouge);
               color: #fff; font-size: 12px; font-weight: 700; }
button.vert { height: 20px; padding: 0 9px; border-color: var(--vert); background: var(--vert);
              color: #fff; font-size: 11px; font-weight: 700; }
button.blanc { height: 18px; padding: 0 6px; border-color: var(--trait); border-radius: 4px;
               background: #fff; font-size: 11px; }
button.petit { height: 18px; padding: 0 6px; font-size: 11px; }
button.lien { height: auto; padding: 0; border: none; background: none; font-size: 12px; }
.info { display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px;
        margin-left: 3px; border-radius: 50%; background: var(--encre); color: #fff; cursor: help;
        font: 700 9px/1 Georgia, serif; vertical-align: 0; }

/* ---- tableaux ---- */
table { border-collapse: collapse; }
/* grille de données : en-tête gris, une ligne sur deux grisée, colonnes tracées */
table.grille { width: 100%; border: 1px solid #999; font-size: 12px; background: #fff; }
table.grille th { height: 17px; padding: 0 4px; background: var(--gris-entete); font-weight: 400;
                  text-align: left; white-space: nowrap; }
table.grille td { height: 29px; padding: 6px 4px; vertical-align: top; }
table.grille th + th, table.grille td + td { border-left: 1px solid var(--trait-clair); }
table.grille tr:nth-child(even) td { background: var(--rayure); }
table.grille tr:has(input[type=radio]:checked) td { background: var(--choix); }
table.grille tr[data-choisir] { cursor: pointer; }
table.grille th a { color: inherit; text-decoration: none; }
/* tableau simple (photos, vidéos) : traits entre les colonnes et sous les lignes */
table.simple th { padding: 3px 10px 6px; font-weight: 400; text-align: left; white-space: nowrap;
                  border-bottom: 1px solid var(--encre); }
table.simple td { padding: 8px 10px; vertical-align: top; }
table.simple tr + tr td { border-top: 1px solid var(--encre); }
table.simple th + th, table.simple td + td { border-left: 1px solid var(--encre); }
table.simple td.hors { border: none; padding-left: 14px; }

/* encadré de page (connexion, publication) */
.carte { max-width: 900px; margin-bottom: 14px; padding: 12px 16px; border: 1px solid var(--trait); }
.carte table td { padding: 3px 10px 3px 0; vertical-align: top; }
.etiquette { padding: 0 6px; border: 1px solid var(--trait); border-radius: 8px; font-size: 11px;
             white-space: nowrap; }
.note { color: #777; font-size: 11px; }

/* ---- liste des métiers (page 1) ---- */
.liste { display: grid; grid-template-columns: 164px minmax(0, 806px); column-gap: 10px;
         flex: 1; margin-left: -12px; padding: 14px 0 0 32px; border-left: 1px solid var(--encre); }
.liste .filtrer > p { margin: 30px 0 6px; }
.filtres { height: 133px; border: 1px solid var(--encre); overflow-y: auto; font-size: 12px; }
.filtres details { border-bottom: 1px solid var(--encre); }
.filtres summary { height: 27px; line-height: 27px; padding: 0 4px; list-style: none; cursor: pointer;
                   white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filtres summary::-webkit-details-marker { display: none; }
.filtres details a { display: block; padding: 2px 4px 2px 10px; color: var(--encre); text-decoration: none; }
.filtres details a.sous-filtre { padding-left: 20px; }
.filtres a.choisi, .filtres summary.choisi { background: var(--choix); }
.haut-liste { display: grid; grid-template-columns: 1fr auto; align-items: center; margin-bottom: 14px; }
.haut-liste .bouton { justify-self: start; margin-left: 14px; height: 24px; }
.haut-liste input[type=search] { width: 239px; height: 25px; }
table.metiers td { height: 29px; padding: 6px 5px; }
table.metiers td.action { padding: 4px 6px; }
table.metiers td.action select { width: 54px; height: 20px; font-size: 11px; padding: 0 18px 0 3px; }
table.metiers td a { color: var(--encre); text-decoration: none; }
table.metiers td a:hover { text-decoration: underline; }
.trier { float: right; font-size: 9px; }
.pages { margin-top: 6px; font-size: 11px; color: #777; }

/* ---- fiche : en-tête ---- */
.entete { display: grid; grid-template-columns: 112px minmax(280px, 511px) 1fr; column-gap: 20px;
          align-items: start; margin: 6px 0 10px 9px; }
.identite { display: grid; grid-template-columns: 37px 75px; row-gap: 6px; align-items: center; }
.identite label { font-size: 10px; }
.identite label.id { font-size: 13px; }
.identite input, .identite select { width: 75px; font-size: 10px; }
.identite input.id { font-size: 13px; }
.identite .lien-historique { grid-column: 1 / -1; font-size: 10px; }
.libelles { display: grid; grid-template-columns: 45px 1fr; gap: 2px 4px; align-items: center; margin-top: 2px; }
.libelles label { font-size: 10px; text-align: right; }
.libelles input { width: 100%; }
fieldset.maj { justify-self: end; width: 363px; margin: -6px 13px 0 0; padding: 0 10px 7px; }
fieldset.maj legend { font-size: 13px; }
.grille-maj { display: grid; grid-template-columns: 1fr 59px 22px 1fr 59px 22px; gap: 6px 5px; align-items: center; }
.grille-maj label { font-size: 9.5px; text-align: right; }
.grille-maj input { width: 59px; padding: 0 2px; font-size: 10px; text-align: center; }
.calendrier { width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect x='1.5' y='3.5' width='15' height='13' fill='%23fff' stroke='%23333'/%3E%3Crect x='1.5' y='3.5' width='15' height='3' fill='%23333'/%3E%3Cpath d='M5 1.5v3.5M13 1.5v3.5' stroke='%23333' stroke-width='1.6'/%3E%3Cpath d='M1.5 9.8h15M1.5 13.2h15M5.2 6.5v10M9 6.5v10M12.8 6.5v10' stroke='%23333' stroke-width='.8'/%3E%3C/svg%3E") no-repeat center / contain; }

/* ---- fiche : onglets et cadre ---- */
.fiche { flex: 1; min-height: 0; display: flex; position: relative; }
nav.onglets { width: 156px; flex: none; align-self: flex-start; margin-top: 21px; position: relative; z-index: 2; }
nav.onglets a { display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 27px;
  margin-right: -1px; padding: 0 9px 0 5px; border: 1px solid var(--trait); border-bottom: none;
  background: var(--gris); color: var(--encre); text-decoration: none; white-space: nowrap; }
nav.onglets a:last-child { border-bottom: 1px solid var(--trait); }
nav.onglets a.actif { background: #fff; border-right-color: #fff; }
nav.onglets span.inactif { display: block; height: 27px; line-height: 27px; padding: 0 5px; margin-right: -1px;
  border: 1px solid var(--trait); border-bottom: none; background: var(--gris); color: #888; }
nav.onglets span.inactif:last-child { border-bottom: 1px solid var(--trait); }
/* un thème à valider : la case rouge de la maquette ; validé, elle disparaît */
.case { width: 13px; height: 13px; flex: none; border: 1.5px solid var(--rouge); border-radius: 3px; }
/* une section où l'on écrit attend sa coche : point d'exclamation orange sur l'onglet */
nav.onglets .marques { display: inline-flex; align-items: center; gap: 4px; }
.attention { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px;
             border-radius: 50%; background: var(--orange); color: #fff; font: 700 10px/1 Georgia, serif; cursor: help; }
/* la coche d'une section, en haut à droite : orange tant qu'elle attend, verte une fois validée */
.outils-texte button.coche, .zone > button.coche { width: 16px; height: 16px; padding: 0; border: 1.5px solid var(--orange);
  border-radius: 3px; background: #fff; color: var(--orange); font: 700 11px/1 Georgia, serif; cursor: pointer; }
.outils-texte button.coche.validee, .zone > button.coche.validee { border-color: var(--vert); background: var(--vert); color: #fff; }
.zone { position: relative; }
.zone > button.coche { position: absolute; top: 4px; right: 4px; }
.zone > textarea { resize: vertical; padding-right: 24px; }
button.rouge:disabled { opacity: .45; }
section.contenu { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-y: auto;
                  padding: 0 24px 20px 28px; border: 1px solid var(--trait); background: #fff; }
.corps { flex: 1 0 auto; position: relative; }
.tete-onglet { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between;
               align-items: flex-start; gap: 16px; padding: 12px 0 10px; background: #fff; }
.titre-onglet { padding-top: 4px; }
.titre-onglet .regle { margin-left: 22px; }
.titre-onglet div.regle { margin-left: 0; font-size: 12px; }
.actions-onglet { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: none; }
.actions-onglet form { margin: 0; }
.etat-enregistrement { min-height: 14px; max-width: 420px; font-size: 10px; color: #777; text-align: right; }
/* un échec reste lisible : rouge, et sur plusieurs lignes plutôt que coupé au bord */
.etat-enregistrement.erreur { color: var(--rouge); }
/* « Comparer avec » : encadré à droite du cadre, aligné ligne à ligne sur la saisie */
.avec-panneau .tete-onglet { margin-right: calc(var(--panneau) + 26px); }
.avec-panneau::after { content: ""; position: absolute; top: 10px; bottom: 0; right: 0;
                       width: var(--panneau); border: 1px solid var(--trait); pointer-events: none; }
.avec-panneau .grille-onglet { display: grid; grid-template-columns: minmax(0, 1fr) var(--panneau);
                               column-gap: 26px; align-items: start; }
.avec-panneau .grille-onglet > .d { padding: 0 12px; }
.d.comparer { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; align-items: center;
              margin-top: -26px; padding-bottom: 12px !important; }
.d.comparer input { width: 100%; }
.d.comparer p { grid-column: 1 / -1; margin: 0; }
.d ul { margin: 2px 0 8px 16px; padding: 0; }

/* volet « voir métiers » */
.volet { position: absolute; top: 0; right: 0; bottom: 0; z-index: 6; width: var(--panneau);
         overflow-y: auto; padding: 10px 14px; border: 1px solid var(--trait); background: #fff; }
.volet ul { margin: 2px 0 10px 16px; padding: 0; }
.volet .fermer { float: right; }

/* ---- éléments des onglets ---- */
.definition { margin: 2px 0 6px 10px; white-space: pre-line; }
.critere-liste { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.titre-famille { margin: 14px 0 4px; }
.titre-famille:first-child { margin-top: 0; }
.titre-famille .regle { margin-left: 6px; }
.deux-colonnes { display: grid; grid-auto-flow: column; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.deux-colonnes.espace .critere { min-height: 43px; }
.deux-colonnes .critere { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; padding: 2px 0; }
.trois-colonnes { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 18px; margin: 6px 0 12px; }
.trois-colonnes .definition { margin-left: 0; }
/* « voir métiers › » : petit lien (préférences) ou bouton fléché (listes) */
a.voir { margin-left: 8px; color: var(--encre); font-size: 9.5px; text-decoration: none; white-space: nowrap; }
a.voir b { font-size: 12px; margin-left: 3px; }
a.voir-fleche { flex: none; display: inline-block; width: 77px; height: 18px; padding-left: 7px;
  color: var(--encre); font-size: 9.5px; line-height: 18px; text-decoration: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 77 18' preserveAspectRatio='none'%3E%3Cpath d='M.5.5H67L76.3 9 67 17.5H.5z' fill='%23fff' stroke='%23666'/%3E%3C/svg%3E") no-repeat; }
.voir-de { font-size: 10px; white-space: nowrap; }
.voir-de select { height: 20px; max-width: 190px; font-size: 12px; }
.competence { display: grid; grid-template-columns: minmax(0, 1fr) 120px; column-gap: 14px; padding: 6px 0; }
.niveaux label { display: block; font-size: 12px; padding: 2px 0; }
.d.niveaux { padding-top: 6px; }
.d.etat { padding-top: 3px; }

/* zone de texte de la maquette : outils de mise en forme en haut à droite.
   L'éditeur (Quill, thème snow, statique/textes.js) n'apporte que le
   fonctionnement : la barre garde la place et les icônes de la maquette,
   d'où les sélecteurs « button.outil », plus forts que ceux de snow */
.boite-texte { position: relative; border: 1px solid var(--encre); background: #fff; padding: 22px 6px 6px; }
.boite-texte textarea, .boite-texte input { border: none; width: 100%; padding: 2px; }
.boite-texte textarea { resize: none; field-sizing: content; min-height: 4em; }
.outils-texte { position: absolute; top: 5px; right: 8px; display: flex; gap: 6px; align-items: center; }
.outils-texte.ql-toolbar.ql-snow { border: none; padding: 0; font-family: inherit; }
.outils-texte.ql-toolbar.ql-snow::after { content: none; }
.outils-texte button.outil { float: none; width: 14px; height: 14px; padding: 0; border: none;
  background: none no-repeat center / 12px; color: var(--encre); font: 700 14px/14px Georgia, serif; }
.outils-texte button.outil:hover, .outils-texte button.outil:focus { color: var(--encre); }
.outils-texte button.outil.ql-active { background-color: var(--choix); border-radius: 2px; color: var(--encre); }
.outils-texte button.outil.ql-italic { font-weight: 400; font-style: italic; }
.outils-texte button.outil.ql-header { width: auto; padding: 0 2px; font-family: inherit; font-size: 11px; }
.outil:disabled { cursor: not-allowed; }
.outils-texte button.outil.puces { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='%23333'%3E%3Ccircle cx='1.3' cy='1.5' r='1.2'/%3E%3Ccircle cx='1.3' cy='5' r='1.2'/%3E%3Ccircle cx='1.3' cy='8.5' r='1.2'/%3E%3Cpath d='M4 1.5h8M4 5h8M4 8.5h8' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E"); }
.outils-texte button.outil.chaine { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.6 7.4 7.4 4.6M4.3 5.4 2.7 7a1.9 1.9 0 0 0 2.7 2.7L7 8.1M7.7 6.6 9.3 5a1.9 1.9 0 0 0-2.7-2.7L5 3.9' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.outils-texte button.outil.agrandir { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M7 1h4v4M11 1 6.8 5.2M5 11H1V7M1 11l4.2-4.2' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E"); }
.boite-texte.agrandie { position: fixed; inset: 40px; z-index: 50; overflow-y: auto; box-shadow: 0 0 0 100vmax rgba(0,0,0,.25); }
.boite-texte .section + .section { margin-top: 6px; padding-top: 6px; border-top: 1px dotted var(--trait-clair); }
.boite-texte .section input { font-weight: 700; }
/* couleur du texte : le « A » de snow, sa liste s'ouvre vers la gauche */
.outils-texte .ql-picker.ql-color-picker { float: none; width: 16px; height: 16px; }
.outils-texte .ql-color-picker .ql-picker-label { padding: 0; border: none; }
.outils-texte .ql-color-picker .ql-picker-label svg { position: static; width: 16px; height: 16px; margin: 0; }
.outils-texte .ql-color-picker .ql-picker-options { left: auto; right: 0; width: 132px; }
.outils-texte .ql-color-picker .ql-picker-item:not([data-value]) { background-color: var(--encre); }
/* la zone de saisie : celle d'une zone de texte de la maquette */
.boite-texte .ql-container.ql-snow { border: none; font: inherit; height: auto; }
.boite-texte .ql-editor { padding: 2px; min-height: 4em; line-height: 1.4; }
.rangee .boite-texte .ql-editor { min-height: 290px; }
.boite-texte .ql-editor h3 { margin: 8px 0 2px; font-size: 14px; }
.boite-texte .ql-snow a { color: var(--lien); }
/* la bulle du lien, en français */
.boite-texte .ql-snow .ql-tooltip { z-index: 5; color: var(--encre); font-size: 12px; }
.boite-texte .ql-snow .ql-tooltip::before { content: "Lien :"; }
.boite-texte .ql-snow .ql-tooltip[data-mode=link]::before { content: "Lien vers :"; }
.boite-texte .ql-snow .ql-tooltip a.ql-action::after { content: "Modifier"; }
.boite-texte .ql-snow .ql-tooltip a.ql-remove::before { content: "Retirer"; }
.boite-texte .ql-snow .ql-tooltip.ql-editing a.ql-action::after { content: "Enregistrer"; }
.boite-texte .ql-snow .ql-tooltip input[type=text] { width: 270px; font: inherit; }
.message-lien { display: block; max-width: 360px; white-space: normal; color: var(--rouge); }
.message-lien:empty { display: none; }
/* propositions d'une recherche de fiche, sous le champ (noemie.js) */
.propositions { position: fixed; z-index: 60; max-height: 264px; overflow-y: auto; margin: 0; padding: 2px 0;
  list-style: none; background: #fff; border: 1px solid var(--trait); box-shadow: 0 2px 6px rgba(0,0,0,.2);
  font-size: 12px; }
.propositions li { padding: 3px 8px; cursor: pointer; white-space: nowrap; }
.propositions li[aria-selected="true"], .propositions li:hover { background: var(--choix); }
.propositions .id { margin-right: 6px; color: var(--trait); }
.propositions .statut { margin-left: 6px; color: var(--trait); font-style: italic; }
ul.proposees { margin: 2px 0 6px; padding-left: 16px; font-size: 12px; }

/* barre d'état façon Word : mots, caractères, plafond et tolérance */
.barre-etat { margin-top: 3px; font-size: 9.5px; color: var(--trait); }
.boite-texte > .barre-etat { margin-top: 6px; padding-top: 3px; border-top: 1px dotted var(--trait-clair); }
.barre-etat.tolere, .compteur.tolere { color: var(--orange); }
.barre-etat.erreur { color: var(--rouge); }

/* Descriptions (page 2) */
.rangee { display: grid; grid-template-columns: 62px minmax(0, 1fr) minmax(0, 1fr); column-gap: 30px;
          margin: 0 0 18px -24px; }
.rangee .intitule { padding-top: 12px; }
.compteur { display: block; margin-top: 4px; font-size: 9.5px; }
.legende { display: block; height: 12px; font-size: 9px; }
.rangee .generer { grid-column: 3; justify-self: end; margin-top: 4px; }
.rangee > div > textarea { resize: vertical; }
.rangee .boite-texte { min-height: 333px; }

/* Domaines et familles (page 13) */
.bloc-taxons { margin-bottom: 26px; }
.bloc-taxons .entete-bloc { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ligne-taxon { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 46px; gap: 14px;
               align-items: start; margin-bottom: 12px; }
.ligne-taxon input, .ligne-taxon select { width: 100%; }

/* listes de transfert (ROME, mots-clés) */
.transfert { display: grid; grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr); gap: 0 6px; align-items: start; }
.fleches { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 40px; }
.fleches button { font-size: 11px; }
.liste-choix { height: 560px; overflow-y: auto; border: 1px solid var(--trait); font-size: 12px; }
.liste-choix.court { height: 130px; }
.liste-choix label { display: block; padding: 1px 6px; }
.liste-choix label:has(input:checked) { background: #e6e6e6; }
.liste-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.blocs-droite { display: grid; gap: 30px; }
.bloc-transfert { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 6px; align-items: center; }

/* Photos et vidéos (page 3) */
table.photos { margin-left: 18px; }
table.photos td { height: 60px; }
.apercu { display: block; width: 79px; height: 58px; object-fit: cover; border: 1px solid var(--encre); }
.apercu.vide { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 79 58' preserveAspectRatio='none'%3E%3Cpath d='M0 0 79 58M79 0 0 58' stroke='%23999' stroke-width='.8'/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
table.simple td.fichier { max-width: 130px; word-break: break-all; }
table.simple td.fichier .etiquette { border: none; padding: 0; white-space: normal; }
table.photos td input { width: 166px; }
table.videos { margin-left: 18px; min-width: 600px; }
table.videos td { height: 40px; }
form.ajout { margin: 10px 0 0 18px; padding: 10px; border: 1px solid var(--trait); max-width: 900px; }
form.ajout textarea { flex-basis: 100%; }

/* Formation, Revenus, Emploi */
.niveaux-formation { max-width: 540px; margin: 8px 0 18px 22px; }
.niveaux-formation .critere { padding: 3px 0; }
.revenus { display: grid; grid-template-columns: 272px 1fr; margin: 4px 0 16px 23px; }
.revenus .critere { padding: 2px 0; }
.revenus p.titre { margin-bottom: 8px; }
.champs-offres { display: grid; grid-template-columns: max-content minmax(0, 487px); gap: 8px 10px;
                 align-items: center; margin-left: 4px; }
.champs-offres select, .champs-offres input:not([type=checkbox]) { width: 100%; }
.case-bouton { width: 12px; height: 12px; padding: 0; border: 1px solid var(--trait); border-radius: 0; background: #fff; }
.d.comparer > .plus { grid-column: 1 / -1; }

/* Synonymes (page 15) */
.synonymes { display: grid; grid-template-columns: minmax(0, 371px) minmax(0, 436px); column-gap: 10px; }
.synonymes.seul { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.bloc-transfert.seul { grid-template-columns: minmax(0, 1fr); }

/* pages à venir (page 18 : la liste des outils dans un encadré) */
.a-venir { padding: 70px 0 0 72px; }
.encadre { width: 578px; margin: 0 0 12px; padding: 4px 10px 30px 30px; border: 1px solid var(--encre); font-size: 11px; }
.etiquette.archive { border-color: var(--rouge); color: var(--rouge); }

/* compétences rangées par dimension puis par groupe (pages 8 et 16) */
.titre-dimension { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 2px; }
.titre-groupe { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 0; }
.repere { margin-right: 5px; }

/* ---- grilles thèmes et critères (pages 16 et 17) ---- */
.etat-grilles { font-size: 12px; }
.etat-grilles p { margin: 0 0 4px; }
.tableaux .etat-grilles { min-height: 50px; padding: 14px 0 0 96px; }
/* sept lignes entières, la suite défile */
.texte-grille { white-space: pre-line; max-height: calc(7 * 1.35em); overflow-y: auto; }
.texte-grille.modifiee { padding-left: 4px; border-left: 3px solid var(--orange); }
input.modifiee, textarea.modifiee { border-color: var(--orange); box-shadow: inset 3px 0 0 var(--orange); }
textarea.case-grille { min-height: 2.8em; padding: 2px 4px; font-size: 12px; field-sizing: content; }
/* page 17 : Modifier et Importer, puis le tableau d'une grille */
.haut-grille { display: flex; align-items: center; gap: 33px; margin: 0 0 23px 486px; }
.haut-grille .etat-enregistrement { margin-left: -20px; }
.tableaux h3, table.grille-criteres { margin-left: 96px; max-width: 838px; }
table.grille-criteres { table-layout: fixed; }
table.grille-criteres th.id { width: 38px; }
table.grille-criteres th.libelle { width: 190px; }
table.grille-criteres th button.lien { color: inherit; }
table.grille-criteres th[data-trier] button::after { content: "⇅"; margin-left: 3px; font-size: 9px; color: #777; }
table.grille-criteres th[aria-sort=ascending] button::after { content: "▲"; }
table.grille-criteres th[aria-sort=descending] button::after { content: "▼"; }
table.grille-criteres tr.enfant td:nth-child(2) { padding-left: 18px; }
table.grille-criteres td input { width: 100%; font-size: 12px; }
/* page 16 : grille et dimension, puis la définition de la dimension et chaque groupe */
.haut-competences { display: flex; align-items: center; margin: 21px 0 30px; }
.haut-competences select[name=grille] { width: 305px; }
.haut-competences label { margin: 0 6px 0 56px; }
.haut-competences select[name=dimension] { width: 162px; }
.haut-competences .bouton { margin-left: 177px; }
.haut-competences .etat-enregistrement { margin-left: 10px; }
/* les intitulés débordent un peu à gauche du fil d'Ariane, comme dans la maquette */
.bloc-competences { display: grid; grid-template-columns: 113px 750px; column-gap: 8px; align-items: start;
                    margin: 0 0 25px -10px; }
.bloc-competences.groupe { grid-template-columns: 113px 734px; margin-bottom: 34px; }
.bloc-competences .intitule { padding-top: 6px; font-size: 12px; overflow-wrap: anywhere; }
.bloc-competences .intitule .texte-grille { display: inline; }
.bloc-competences .intitule input { width: 100%; }
.definition-dimension .texte-grille { height: 76px; max-height: none; padding: 4px 8px; border: 1px solid var(--encre);
                                      font-size: 12px; }
.definition-dimension textarea { min-height: 76px; }
.definition-groupe .texte-grille { min-height: 50px; padding: 4px 6px; border: 1px solid var(--encre); font-size: 12px; }
.definition-groupe textarea { min-height: 50px; }
.texte-grille.modifiee:is(.definition-dimension *, .definition-groupe *) { border-left: 3px solid var(--orange); }
table.competences-groupe { width: 100%; margin-top: 16px; table-layout: fixed; font-size: 12px; }
table.competences-groupe td { height: 39px; padding: 4px 6px; border: 1px solid var(--encre); vertical-align: top; }
table.competences-groupe td.nom-competence { width: 139px; }
table.competences-groupe td.nom-competence .texte-grille { display: inline; }
table.competences-groupe td.nom-competence input { width: calc(100% - 30px); }
/* en saisie, la place d'écrire le nom d'une compétence */
.modification table.competences-groupe td.nom-competence { width: 230px; }
/* publication des grilles : ce qui change, avant et après */
.carte.large { max-width: 1100px; }
table.modifications td { font-size: 12px; }
form.abandon { margin-top: 14px; }
/* l'historique d'une fiche : un geste par bloc, du plus récent au plus ancien */
.historique .geste { padding: 8px 0; border-top: 1px solid var(--trait); font-size: 13px; }
.historique .geste p { margin: 4px 0 0; }
.historique .geste table { margin-top: 4px; font-size: 12px; }
/* page 17 : le formulaire « Importer mise à jour » et son compte rendu, à l'aplomb du tableau */
.tableaux form.ajout { margin: -8px 0 23px 96px; max-width: 838px; }
.tableaux .etat-grilles [role=status] { max-width: 838px; margin-bottom: 12px; }
/* un critère ajouté, en attente de publication : le trait orange des modifications ; son formulaire, sous le tableau */
:is(table.grille, table.competences-groupe) tr.ajoutee td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
.tableaux form.ajout.ajout-critere { margin-top: 14px; }
.competences form.ajout.ajout-critere { margin: 0 0 30px -10px; max-width: 855px; }

/* ---- outils : le requêteur ---- */
.requeteur { max-width: 960px; padding-top: 14px; }
.message-requete { margin: 0 0 10px; }
.bloc-requete { padding: 8px 14px 12px; border: 1px solid var(--encre); }
.bloc-requete .titre { margin-bottom: 6px; }
table.conditions { margin-bottom: 10px; }
table.conditions td { padding: 4px 10px; }
table.conditions td.sens { width: 46px; color: var(--trait); }
table.conditions td.retirer a { color: var(--rouge); font-weight: 700; text-decoration: none; }
.ajout-condition { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ajout-condition span { display: inline-flex; gap: 6px; align-items: center; }
.ajout-condition select[name=critere], .ajout-condition select[name=classement] { max-width: 360px; }
.requetes-enregistrees { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
                         margin: 10px 0 16px; }
.requetes-enregistrees form { display: flex; gap: 6px; align-items: center; }
.requetes-enregistrees select { max-width: 260px; }
.haut-resultat { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }

/* ---- outils : l'audit des fiches ---- */
.audit { max-width: 960px; padding-top: 14px; }
.titre-audit { margin: 18px 0 6px; }
table.grille tr.choisie td { background: var(--choix); }

/* l'instance d'essai du serveur (NOEMIE_INSTANCE=essai) : impossible à confondre avec la vraie */
.bandeau-essai { background: #f5a623; color: #000; text-align: center; font-size: 13px; font-weight: bold; padding: 4px 8px; }

/* l'écran Comptes : une ligne par compte, ses droits à cocher */
.comptes { max-width: 1100px; padding-top: 14px; }
.comptes form.droits { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 0; }
.comptes form.droits label, .comptes .nouveau-compte .droits label { white-space: nowrap; }
.comptes td.gestes form { margin: 0 0 6px; }
.comptes tr.inactif td { color: #777; }
.comptes .mot-de-passe { border: 1px solid var(--encre); padding: 8px 12px; display: inline-block; }
.comptes .nouveau-compte { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 22px; }
.comptes .nouveau-compte .titre { flex-basis: 100%; margin: 0; }
.comptes .nouveau-compte .droits { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* les règles de qualité pendant la saisie : en tête de page, et une marque sur l'onglet */
.regles-page p { margin: 4px 0 0; font-size: 12px; }
.regles-page .regle-bloquant { color: var(--rouge); }
.regles-page .regle-avertissement { color: #b45f06; }
.regles-page .regle-information { color: #777; }
.marque-regle { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-left: 4px; vertical-align: middle; }
.marque-regle.bloquant { background: var(--rouge); }
.marque-regle.avertissement { background: #e69138; }
.marque-regle.information { background: #999; }

/* une proposition trouvée par un synonyme : le synonyme, discret */
.propositions .via { margin-left: 6px; color: #777; font-size: 12px; }

/* le double codage : le niveau 2023 proposé sur l'ancienne grille, et le report d'un geste */
.propose-2023 { margin-left: 8px; color: #b45f06; font-size: 12px; white-space: nowrap; }
.reporter-2023 { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; }
