/* =============================================================================
   Feuille de style du SIRH

   Elle reproduit la maquette Figma (fichier « SIRH v3 », page « 00 Fondations »).
   Le système visuel a été mis à jour le 01/10/2026.
   Les couleurs, les textes et les composants sont les mêmes.
   Chaque composant de la maquette a ici une classe du même nom :
   .bouton, .pastille, .indicateur, .carte-ip, .barre-nav…

   La charte graphique ICAM est dans docs/Pilotage/explication-figma.md, §3.5.
   Les couleurs : orange #F29400, gris, noir.
   Le texte posé sur l'orange est noir.
   Les liens sont en orange foncé (#774700).
   Tous les couples texte / fond atteignent le niveau AAA (7:1).
   Seule la bordure des champs est au niveau AA (4,6:1).
   Voir « Planche · système visuel » dans Figma.

   Trois règles du système visuel, appliquées partout :
     - Quatre rayons : 4 px (mini), 8 px (contrôles), 13 px (cartes, tableaux), 999 px (pastilles).
     - Des espacements de l'échelle de Fibonacci : 8, 13, 21, 34, 55.
     - Un statut a toujours un libellé ET un pictogramme.
       La couleur n'est jamais le seul indice (daltonisme).

   Sommaire
     1. Police          6. Boutons, pastilles     11. Écrans de connexion
     2. Couleurs        7. Cartes, indicateurs    12. Champs et onglets
     3. Base            8. Frise, alertes, listes 13. Préparer la campagne
     4. Mise en page    9. Tableau                14. Formulaires de l'étudiant
     5. Barre de nav.   10. Carte IP              15. Pictogrammes
                                                  16. Petits écrans
   ============================================================================= */


/* 1. Police --------------------------------------------------------------------
   La police est Inter. Le serveur la sert lui-même.
   Aucun appel à Google Fonts : les adresses IP des visiteurs ne partent pas chez un tiers (RGPD).
   Les fichiers viennent du paquet @fontsource-variable/inter 5.3.0 (licence SIL OFL, voir LICENCE-Inter-OFL.txt).
   Une seule police « variable » couvre toutes les graisses, de 100 à 900. */

/* Les lettres latines de base. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.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;
}

/* Les lettres latines étendues (chargées seulement si on en a besoin). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* 2. Couleurs et mesures ---------------------------------------------------------
   Ce sont les variables de la collection « SIRH v3 » de Figma, sous le même nom.
   Exemple : « texte/encre » devient --texte-encre.
   Changer une couleur ici la change partout. */

:root {
  /* Les couleurs du texte. */
  --texte-encre: #000000;
  --texte-gris: #4f4f4e;
  --texte-inverse: #ffffff;

  /* Les fonds. */
  --fond-page: #f3f4f6;       /* essai du 19/10/2026 : gris neutre très légèrement froid. Pour revenir à l'ancien fond : #f4f4f3 */
  --fond-carte: #ffffff;
  --fond-entete: #f7f7f6;

  /* Les filets. */
  --trait-defaut: #bfbfbd;      /* filets des tableaux et des listes */
  --trait-discret: #ebebe9;     /* filets légers, à l'intérieur d'une liste */
  --trait-controle: #767674;    /* bordure des champs et des boutons (contraste 4,6:1) */

  /* L'orange ICAM et ses variantes. */
  --action-principal: #f29400;             /* orange ICAM */
  --action-principal-survol: #e08800;      /* orange un peu plus sombre, au survol */
  --action-principal-fond: #fef3e0;
  --action-texte: #774700;                 /* orange foncé : liens, pictogrammes */
  --action-texte-sur-principal: #000000;   /* texte posé sur l'orange */
  --marque-orange: #f29400;
  --marque-orange-fonce: #b86a00;          /* barres de progression, onglet de page ouvert */

  /* La barre de navigation. */
  --nav-barre: #000000;
  --nav-onglet: #000000;
  --nav-onglet-actif: #000000;
  --nav-texte-inactif: #b2b2b1;

  /* Les statuts (retouche du 19/10/2026 : un vrai vert, un vrai jaune-ambre, un vrai rouge, à la place des teintes grisées).
     Une couleur, un sens, partout :
       - vert : fait, envoyé, validé ;
       - ambre : à faire, à surveiller ;
       - rouge : erreur, absent, à corriger ;
       - gris : neutre.
     Les autres rôles :
       - orange ICAM : l'action principale (un seul bouton orange par zone) et la marque ;
       - noir : ce qui est choisi (filtre actif, étape en cours) ;
       - gris clair : la ligne choisie d'un tableau. */
  --statut-vert: #146c43;
  --statut-vert-fond: #e6f3ec;
  --statut-ambre: #7a4f00;
  --statut-ambre-fond: #fcefcf;
  --statut-rouge: #a61b2b;
  --statut-rouge-fond: #fbe4e6;
  --statut-gris: #4a4a49;
  --statut-gris-fond: #e6e6e6;
  /* 27/10/2026 (remarque du client) : « accord de principe » n'a plus le visuel de « proposition commerciale ». Bleu : accord donné, pas encore signé. */
  --statut-bleu: #1c4f91;
  --statut-bleu-fond: #e3ecf8;
  --selection-fond: #ecece9;   /* la ligne choisie d'un tableau */

  /* Les quatre rayons de la maquette. */
  --rayon-mini: 4px;          /* légendes, cases à cocher */
  --rayon: 6px;               /* « rayon/controle » : boutons, champs, onglets (8 px avant la retouche du 19/10/2026) */
  --rayon-conteneur: 8px;     /* cartes, tableaux, panneaux (13 px avant la retouche du 19/10/2026) */
  --rayon-pastille: 999px;    /* pastilles, avatars, jauges */
  --rayon-etiquette: 5px;     /* statuts de tableau, domaines, sélecteur de campagne : angles légèrement arrondis */

  /* L'échelle d'espacements (Fibonacci).
       - 8 : entre un pictogramme et son texte ;
       - 13 : entre deux lignes ;
       - 21 : dans une carte ;
       - 34 : entre deux blocs ;
       - 55 : en bas de page. */
  --espace-8: 8px;
  --espace-13: 13px;
  --espace-21: 21px;
  --espace-34: 34px;
  --espace-55: 55px;

  /* La police, et la largeur de la page. */
  --police: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --largeur-page: 2560px;    /* la page et la barre suivent la largeur de l'écran jusqu'à 2560 px (1440 px, celle des maquettes, avant le 19/10/2026) */
  --marge-page: 60px;
  --marge-barre: 40px;       /* la barre de navigation est plus large que la page : neuf onglets */
}


/* 3. Base ------------------------------------------------------------------------
   Les styles de texte de Figma (01/10/2026) :
     - Titre page : Inter gras 34/42.
     - Titre section : semi-gras 21/28.
     - Corps : 14, interligne 1,5.
     - Corps fort : medium 14.
     - Légende : 12, interligne 1,4.
     - Chiffre clé : gras 28/34.
   De 34 à 21 puis à 14, chaque taille est la précédente divisée par le nombre d'or (1,618). */

/* Tous les éléments comptent leur bordure dans leur taille. */
*, *::before, *::after { box-sizing: border-box; }

/* Le téléphone ne change pas la taille du texte tout seul. */
html { -webkit-text-size-adjust: 100%; }

/* La page : police, taille, couleurs. */
body {
  margin: 0;
  font-family: var(--police);
  font-size: 14px;
  line-height: 1.5;
  color: var(--texte-encre);
  background: var(--fond-page);
  -webkit-font-smoothing: antialiased;
}

/* Pas de marge par défaut : les marges viennent de la mise en page. */
h1, h2, h3, p, ul, ol { margin: 0; }

/* Les liens sont en orange foncé. */
a { color: var(--action-texte); }

/* Le contour de focus : visible au clavier. */
:focus-visible {
  outline: 2px solid var(--action-texte);
  outline-offset: 2px;
}

/* Le titre de la page. */
.titre-page {
  font-size: 34px;
  line-height: 42px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

/* Le titre d'une section. */
.titre-section {
  font-size: 21px;
  line-height: 28px;
  font-weight: 600;
}

/* Une légende : petit texte gris. */
.legende {
  font-size: 12px;
  line-height: 1.4;
  color: var(--texte-gris);
}

/* Un sur-titre : petit titre gris au-dessus d'un bloc. */
.sur-titre {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--texte-gris);
}

/* Un lien dans le texte. */
.lien {
  font-size: 14px;
  line-height: 1.5;
  color: var(--action-texte);
  text-decoration: underline;
  text-underline-position: from-font;
}

/* Un lien gris, souligné seulement au survol. */
.lien-discret {
  color: var(--texte-gris);
  text-decoration: none;
}
.lien-discret:hover { text-decoration: underline; }

/* Le message « rien à afficher ». */
.vide {
  color: var(--texte-gris);
  padding: 4px 0;
}

/* Texte lu par les lecteurs d'écran, invisible à l'écran. */
.invisible {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* « Aller au contenu » : le premier lien de la page, visible seulement au clavier. */
.lien-evitement {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  padding: 8px 12px;
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font-weight: 600;
}
.lien-evitement:focus { left: 8px; }


/* 4. Mise en page ------------------------------------------------------------------ */

/* Le contenu d'une page.
   Il fait 1320 px de large au plus (1440 moins deux marges de 60).
   Il commence à 41 px sous la barre de navigation.
   Les blocs sont espacés de 34 px.
   Il y a 55 px de marge en bas. */
.page {
  max-width: var(--largeur-page);
  margin: 0 auto;
  padding: 41px var(--marge-page) var(--espace-55);
  display: flex;
  flex-direction: column;
  gap: var(--espace-34);
}

/* Une seule colonne de 760 px (accueil étudiant, formulaires). */
.page--etroite {
  max-width: calc(760px + 2 * var(--marge-page));
  padding-top: 56px;
  gap: 12px;
}
/* L'accueil étudiant : titre, sous-titre et cartes espacés de 21 px. */
.page--espacee { gap: var(--espace-21); }

/* L'en-tête de page : titre et sous-titre à gauche, boutons à droite. */
.en-tete-page {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.en-tete-page__titres {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--espace-8);
}
.en-tete-page__titres p { max-width: 820px; }
/* Un en-tête simple : le titre au-dessus, sans boutons à droite. */
.en-tete-page--simple {
  flex-direction: column;
  align-items: stretch;
  gap: var(--espace-21);
}
.en-tete-page--simple .en-tete-page__titres { gap: 4px; }

/* Deux colonnes : la principale s'étire, la latérale garde sa largeur.
   Exemple, accueil admin : 803 | 496, soit 61,8 % | 38,2 % (le nombre d'or). */
.deux-colonnes {
  display: flex;
  align-items: flex-start;
  gap: var(--espace-21);
}
.deux-colonnes > :first-child {
  flex: 1;
  min-width: 0;
}
/* Les deux cartes ont la même hauteur (accueil admin : « À faire maintenant » et « Prochains entretiens »). */
.deux-colonnes--egales { align-items: stretch; }
/* La colonne principale : ses blocs sont l'un sous l'autre. */
.colonne-principale {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* La colonne latérale : largeur fixe. */
.colonne-laterale {
  flex: none;
  width: 496px;
}
.colonne-laterale--etroite {
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Une rangée de boutons. */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}


/* 5. Barre de navigation (Figma : « Barre nav / … », « Nav / Onglet ») ------------
   Le logo Icam blanc, un filet, puis les onglets.
   Chaque onglet a son pictogramme (section 15).
   Il est gris clair, et blanc pour la page ouverte. */

.barre-nav { background: var(--nav-barre); }

/* Maquette (Barre nav) : 40 px de marge de chaque côté, 4 px entre deux éléments. Les neuf onglets de l'admin y tiennent. */
.barre-nav__interieur {
  max-width: var(--largeur-page);
  margin: 0 auto;
  padding: 8px var(--marge-barre);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Le logo (68 × 36), puis un filet gris de 28 px de haut. */
.barre-nav__marque {
  display: flex;
  align-items: center;
  flex: none;
  gap: 20px;
  padding-right: 12px;
}
.barre-nav__marque::after {
  content: "";
  width: 1px;
  height: 28px;
  background: var(--nav-texte-inactif);
}
.barre-nav__logo {
  display: block;
  width: 68px;
  height: 36px;
}

/* La liste des onglets. */
.barre-nav__onglets {
  display: flex;
  /* Les onglets ne prennent que leur place : la puce « Choix de campagne » les suit, la personne connectée est poussée à droite. */
  /* Sur un grand écran, ils restent sur UNE ligne (neuf onglets, comme la maquette) : c'est le nom de la personne qui se coupe. */
  flex: none;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

/* Le choix de campagne (maquette P03.1-F1) : une puce « SA 2026-27 ▾ » à droite des onglets de l'admin.
   Elle ouvre un menu : la liste des campagnes, chacune avec son état (à venir, en cours, archivée).
   C'est un <details> : le menu s'ouvre sans JavaScript. */
.menu-campagne {
  position: relative;
  flex: none;
}
.puce-campagne {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 14px;
  border: 1px solid var(--nav-texte-inactif);
  border-radius: var(--rayon-pastille);
  background: rgb(255 255 255 / 14%);
  color: var(--texte-inverse);
  font: 600 14px/17px var(--police);
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}
.puce-campagne::-webkit-details-marker { display: none; }
.puce-campagne__fleche {
  color: var(--nav-texte-inactif);
  font-size: 12px;
  font-weight: 400;
}
.puce-campagne:focus-visible { outline: 2px solid var(--marque-orange); outline-offset: 2px; }

/* Le menu : 360 px, une carte blanche sous la puce, alignée à droite. */
.menu-campagne__panneau {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: 360px;
  max-width: calc(100vw - 2 * var(--marge-page));
  padding: 12px 8px 8px;
  border: 1px solid var(--trait-defaut);
  border-radius: var(--rayon-conteneur);
  background: var(--fond-carte);
  box-shadow: 0 1px 3px rgb(0 0 0 / 20%);
  color: var(--texte-encre);
}
.menu-campagne__titre {
  margin: 0 0 4px;
  padding: 0 1px;
  color: var(--texte-gris);
  font: 500 12px/15px var(--police);
}
.menu-campagne__liste {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Une ligne : la coche (seulement pour la campagne choisie), son nom, sa pastille d'état. */
.menu-campagne__ligne {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font: 500 14px/17px var(--police);
  text-align: left;
  cursor: pointer;
}
.menu-campagne__ligne:hover { background: var(--fond-page); }
.menu-campagne__ligne--choisie {
  background: var(--fond-page);
  font-weight: 600;
}
.menu-campagne__ligne .pastille { margin-left: auto; }
.menu-campagne__nom { flex: 1 1 auto; }
/* La coche : un carré de 16 px, dessiné seulement sur la ligne choisie. */
.menu-campagne__coche {
  flex: none;
  width: 16px;
  height: 16px;
}
.menu-campagne__ligne--choisie .menu-campagne__coche {
  background: url("../img/pictos/check.svg") center / 12px 12px no-repeat;
}
/* « Ajouter la campagne … » : sous la liste, séparé par un trait ; son « + » prend la place de la coche (09/11/2026). */
.menu-campagne__ligne--ajout {
  margin-top: 6px;
  border-top: 1px solid var(--trait-defaut);
  border-radius: 0 0 var(--rayon) var(--rayon);
  color: var(--texte-gris);
}
.menu-campagne__ligne--ajout .menu-campagne__coche { display: inline-flex; align-items: center; justify-content: center; }

/* Un onglet. */
.onglet-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 6px;
  padding: 10px 8px;
  border: 0;
  border-radius: var(--rayon-pastille);
  background: var(--nav-onglet);
  color: var(--nav-texte-inactif);
  font: 600 14px/1.2 var(--police);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.onglet-nav:hover { color: var(--texte-inverse); }
.onglet-nav:focus-visible { outline-color: var(--marque-orange); }

/* L'onglet de la page ouverte : texte blanc, liseré orange. */
.onglet-nav[aria-current="page"] {
  background: var(--nav-onglet-actif);
  color: var(--texte-inverse);
}
.onglet-nav[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--marque-orange);
}

/* La personne connectée : avatar, nom, rôle. */
.utilisateur {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 5px 14px 5px 6px;
  flex: 0 1 auto;
  min-width: 0;
}
/* La personne connectée est un lien vers « Mon mot de passe » : même apparence qu'avant, un soulignement léger au survol (09/11/2026). */
a.utilisateur { color: inherit; text-decoration: none; border-radius: var(--rayon); }
a.utilisateur:hover .utilisateur__nom { text-decoration: underline; }
.utilisateur__qui {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  min-width: 0;
  max-width: 150px;
}
/* Un nom long ne pousse pas les onglets à la ligne : il est coupé par « … ». */
.utilisateur__nom,
.utilisateur__role {
  overflow: hidden;
  text-overflow: ellipsis;
}
.utilisateur__nom {
  font-weight: 500;
  color: var(--texte-inverse);
}
.utilisateur__role {
  font-size: 12px;
  line-height: 1.4;
  color: var(--nav-texte-inactif);
}

/* L'avatar : un rond avec les initiales. */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: var(--rayon-pastille);
  background: var(--action-principal-fond);
  color: var(--action-texte);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}
.avatar--grand {
  width: 44px;
  height: 44px;
  font-size: 21px;
  line-height: 1.3;
}

.barre-nav__deconnexion { flex: none; }
/* La déconnexion : le pictogramme seul (maquette). Le mot ne se voit que dans le menu replié (petit écran). */
.onglet-nav__mot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Le bouton « Menu » existe seulement sur petit écran (section 16). */
.barre-nav__menu { display: none; }


/* 6. Boutons et pastilles (Figma : « Bouton », « Pastille ») -------------------------
   Un bouton porte un seul verbe d'action.
   Il y a quatre sortes :
     - principal : fond orange. C'est l'action attendue sur la page (une seule par zone).
     - secondaire : fond blanc bordé, comme « contour » depuis le 01/10.
       Le nom reste : il dit le rôle du bouton à côté d'un principal.
     - contour : fond blanc bordé. Pour les autres actions.
     - discret : texte noir seul. Une action légère dans une liste. */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  /* Pas de trait : un bouton orange ou discret fait 37 px de haut dans la maquette.
     Seuls les boutons « contour » ont un trait, et font donc 39 px. */
  border: 0;
  border-radius: var(--rayon);
  font: 600 14px/1.2 var(--police);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.bouton--principal {
  background: var(--action-principal);
  color: var(--action-texte-sur-principal);
}
.bouton--principal:hover { background: var(--action-principal-survol); }
.bouton--secondaire,
.bouton--contour {
  background: var(--fond-carte);
  border: 1px solid var(--trait-controle);
  color: var(--texte-encre);
}
.bouton--secondaire:hover,
.bouton--contour:hover { background: var(--fond-entete); }
.bouton--discret {
  background: transparent;
  color: var(--texte-encre);
}
.bouton--discret:hover { text-decoration: underline; }
/* 05/11/2026 : « Annuler » grisé (la ligne ne s'annule pas) : pas de souligné, curseur normal, la raison est dans l'attribut title. */
.bouton--grise, .bouton--grise:hover { color: var(--texte-gris); text-decoration: none; cursor: default; }
/* Un bouton caché (attribut hidden) le reste : sans cette règle, « display » du bouton l'emporte sur l'attribut. */
.bouton[hidden] { display: none; }

/* Une pastille : un état en un mot, avec son pictogramme de 12 px (section 15).
   Une couleur, un sens, un pictogramme, partout :
     - vert : coche. Fait, envoyé, validé.
     - ambre : alerte. À faire, en cours, à valider.
     - rouge : croix. Absent, refusé, manquant à corriger.
     - gris : tiret. Hors périmètre, pas encore ouvert, rien en cours.
   « accent » et « contour » : une étiquette neutre, sans pictogramme.
   Exemples : un rôle, un domaine, « Planifié ».
   Figma l'appelle encore « ton=violet ». */
.pastille {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 4px;
  padding: 4px 11px 4px 8px;
  border: 1px solid currentColor;
  border-radius: var(--rayon-pastille);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  white-space: nowrap;
}
.pastille--vert   { background: var(--statut-vert-fond);  color: var(--statut-vert); }
.pastille--ambre  { background: var(--statut-ambre-fond); color: var(--statut-ambre); }
.pastille--rouge  { background: var(--statut-rouge-fond); color: var(--statut-rouge); }
.pastille--gris   { background: var(--statut-gris-fond);  color: var(--statut-gris); }
.pastille--bleu   { background: var(--statut-bleu-fond);  color: var(--statut-bleu); }
.pastille--accent,
.pastille--contour {
  padding: 4px 10px;
  border-color: var(--trait-controle);
  background: var(--fond-carte);
  color: var(--texte-encre);
}
/* Dans un tableau serré (P06 : formulaires, entretien, CV), la pastille garde sa couleur et sa bordure.
   Elle n'a pas son pictogramme. */
.pastille--sans-picto { padding: 4px 10px; }
/* 02/11/2026 (« faudrait un truc plus classe, j'aime pas ces boutons ») : dans un tableau, une pastille est une étiquette, pas un bouton :
   un contour plus discret et un trait plus fin. La couleur et le pictogramme disent toujours l'état. */
.tableau .pastille { border-color: color-mix(in srgb, currentColor 35%, transparent); font-weight: 500; }


/* 7. Cartes, indicateurs, messages ----------------------------------------------------- */

/* Une carte : fond blanc, rayon de 13 px, 21 px de marge intérieure. */
.carte {
  display: flex;
  flex-direction: column;
  gap: var(--espace-21);
  padding: var(--espace-21);
  border-radius: var(--rayon-conteneur);
  background: var(--fond-carte);
}
/* Les cartes de l'accueil étudiant : leurs lignes sont plus serrées (13 px). */
.carte--compacte { gap: var(--espace-13); }
/* L'en-tête d'une carte : le titre à gauche, une pastille ou un bouton à droite. */
.carte__entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.carte--compacte .carte__entete .titre-section { flex: 1; }

/* Le carré orange clair (36 × 36) porte le pictogramme d'une carte ou d'un indicateur.
   On le voit sur l'accueil étudiant et dans les chiffres clés de l'admin. */
.carte__titre {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: var(--espace-13);
}
.carre-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--rayon);
  background: var(--action-principal-fond);
  color: var(--action-texte);
}

/* Le composant « Indicateur » : un chiffre clé.
   Les indicateurs d'une page sont réunis dans un même bandeau blanc. */
.indicateurs {
  display: flex;
  padding: 4px 8px;
  border-radius: var(--rayon-conteneur);
  background: var(--fond-carte);
}
.indicateur {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--espace-21);
}
.indicateur__entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--espace-8);
}
.indicateur__valeur {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.indicateur__libelle { font-weight: 500; }
.indicateur__detail {
  font-size: 12px;
  line-height: 1.4;
  color: var(--texte-gris);
}

/* Le bandeau de rappel (accueil interviewer : disponibilités à donner). */
.bandeau {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--rayon);
  background: var(--statut-ambre-fond);
}
.bandeau__texte {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

/* Le rendez-vous (accueil étudiant). */
.rendez-vous {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--rayon);
  background: var(--action-principal-fond);
}
.rendez-vous__quand {
  font-weight: 500;
  color: var(--action-texte);
}

/* Les messages d'une page à l'autre, et les erreurs de formulaire. */
.messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.message {
  padding: 10px 12px;
  border-radius: var(--rayon);
}
.message--info   { background: var(--statut-gris-fond);  color: var(--texte-encre); }
.message--succes { background: var(--statut-vert-fond);  color: var(--statut-vert); }
.message--erreur { background: var(--statut-rouge-fond); color: var(--statut-rouge); }


/* 8. Frise de la campagne, alertes, listes de l'accueil ------------------------------- */

/* La frise : 11 étapes côte à côte (maquette P02.1). Chacune prend la place de son texte, 4 px les séparent. */
.frise {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Une étape de la frise : le lien (rond, nom, état), et le bouton « Terminée » pour l'étape courante à la main. */
.etape {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 12px 8px;
  border-radius: var(--rayon);
  color: var(--texte-encre);
}
.etape__lien {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.etape:hover { background: var(--fond-entete); }
/* « Rouvrir » : le retour en arrière d'une étape terminée à la main, discret sous l'étape. */
.etape__rouvrir { display: flex; margin-top: 4px; }
.etape__rouvrir .bouton { padding: 2px 8px; font-size: 12px; line-height: 16px; min-height: 0; }
/* Le rond avec le numéro de l'étape. */
.etape__repere {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--rayon-pastille);
  background: var(--statut-gris-fond);
  color: var(--texte-gris);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}
/* La maquette donne au nom la place de deux lignes, même quand il n'en prend qu'une. */
.etape__nom { min-height: 38px; font-weight: 500; }
.etape__detail {
  font-size: 12px;
  line-height: 1.4;
  color: var(--texte-gris);
}
/* Une étape faite : le rond est vert. */
.etape--faite .etape__repere {
  background: var(--statut-vert);
  color: var(--texte-inverse);
}
/* L'étape en cours : fond orange clair, bordure orange foncé de 1,5 px.
   La bordure est dessinée en dedans (ombre), pour ne pas élargir l'étape. */
.etape--courante,
.etape--courante:hover {
  background: var(--action-principal-fond);
  box-shadow: inset 0 0 0 1.5px var(--action-texte);
}
.etape--courante .etape__repere {
  background: var(--action-principal);
  color: var(--action-texte-sur-principal);
}

/* Le choix entre quelques vues sur place (composant Figma « Onglet secondaire »).
   C'est une piste grise. La vue choisie est sur fond blanc.
   On l'utilise pour les filtres des alertes de l'accueil, et pour « Formulaire 1 · Formulaire 2 » de P23. */
.filtres {
  display: flex;
  flex-wrap: wrap;
  align-self: flex-start;
  gap: 4px;
  padding: 4px;
  border-radius: var(--rayon);
  background: var(--statut-gris-fond);
}
.filtre {
  padding: 8px 14px;
  border-radius: var(--rayon);
  color: var(--texte-encre);
  text-decoration: none;
  white-space: nowrap;
}
.filtre:hover { background: var(--fond-entete); }
.filtre[aria-current="true"],
.filtre[aria-current="page"] {
  background: var(--fond-carte);
  font-weight: 500;
}

/* La liste des alertes : chaque ligne a son filet dessous, et 21 px séparent les lignes (maquette P02.1). */
.alertes {
  display: flex;
  flex-direction: column;
  gap: var(--espace-21);
  margin: 0;
  padding: 0;
  list-style: none;
}
.alerte {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--trait-defaut);
}
.alerte__texte {
  flex: 1;
  min-width: 0;
}

/* Accueil DE : les accès directs. */
.liens-rapides {
  padding: 0;
  list-style: none;
}
.liens-rapides a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--trait-discret);
  color: var(--action-texte);
  text-decoration: none;
}
.liens-rapides li:last-child a { border-bottom: 0; }
.liens-rapides a:hover { text-decoration: underline; }

/* Accueil admin : les prochains entretiens, une ligne par entretien.
   L'heure est à gauche. À droite : « IP 16 × CdP 1 », avec la salle dessous. */
.liste-entretiens {
  padding: 0;
  list-style: none;
}
.liste-entretiens__ligne {
  display: flex;
  align-items: center;
  gap: var(--espace-13);
  padding: 10px 0;
  border-bottom: 1px solid var(--trait-discret);
}
.liste-entretiens__heure {
  flex: none;
  width: 48px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.liste-entretiens__qui {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
/* Un lien en gras, comme « Voir le planning complet ». */
.lien-fort {
  align-self: flex-start;
  color: var(--action-texte);
  font-weight: 500;
  text-decoration: none;
}
.lien-fort:hover { text-decoration: underline; }

/* Une étape de la frise sans lien : sa page est refusée à la personne (responsable du pôle SE). */
.etape:not(:has([href])):not(.etape--courante):hover { background: none; }

/* Une colonne de cartes l'une sous l'autre (accueils : prochains entretiens, puis accès rapides). */
.colonne-empilee {
  display: flex;
  flex-direction: column;
  gap: var(--espace-21);
}
/* La carte du prochain entretien (accueil interviewer) : le titre est près de la carte IP. */
.carte--prochain { gap: 10px; }

/* Accueil interviewer : une section par série d'entretiens (« Entretien 1 », « Entretien 2 »). */
.serie {
  display: flex;
  flex-direction: column;
  gap: var(--espace-13);
}
.serie + .serie {
  padding-top: var(--espace-21);
  border-top: 1px solid var(--trait-discret);
}
.serie__titre {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
}
/* Les entretiens déjà passés : repliés sous « Déjà passés · 3 ». */
.serie__passes summary {
  cursor: pointer;
  color: var(--action-texte);
  font-weight: 500;
}
.serie__passes[open] summary { margin-bottom: var(--espace-13); }


/* 9. Tableau (accueil interviewer : mes prochains entretiens) -------------------------- */

.tableau-conteneur {
  /* relative : un texte réservé aux lecteurs d'écran (.invisible) reste dans ce cadre.
     Sinon, il agrandirait la page sur téléphone. */
  position: relative;
  overflow-x: auto;              /* sur petit écran, le tableau défile seul */
  border: 1px solid var(--trait-defaut);
  border-radius: var(--rayon-conteneur);
}
.tableau {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  table-layout: fixed;
}
/* Les titres de colonnes. */
.tableau th {
  padding: 10px 6px;
  background: var(--fond-entete);
  border-bottom: 1px solid var(--trait-defaut);
  color: var(--texte-gris);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  text-align: left;
}
/* Les cellules. */
.tableau td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--trait-defaut);
  vertical-align: middle;
}
.tableau tr:last-child td { border-bottom: 0; }
.tableau th:first-child, .tableau td:first-child { padding-left: 14px; }
.tableau th:last-child, .tableau td:last-child { padding-right: 14px; }
.tableau .bouton { padding-left: 0; padding-right: 0; }
/* La largeur de quelques colonnes. */
.col-heure  { width: 110px; }   /* « 08/10 · 10:00 » dans « À compléter » */
.col-lieu   { width: 160px; }   /* « Rejoindre la visio » sur une ligne */
.col-statut { width: 200px; }   /* « Compte rendu à saisir » tient sur une ligne */
.col-serie  { width: 80px; }
.col-action { width: 170px; }


/* 10. Carte IP (Figma : « Carte IP ») ----------------------------------------------------- */

.carte-ip { gap: 14px; }
.carte-ip__actions { justify-content: center; }
/* La carte posée dans une autre carte (accueil interviewer).
   Elle n'a ni fond ni marge : elle prend ceux de la carte qui l'entoure. */
.carte-ip--integree {
  padding: 0;
  background: none;
}
/* L'en-tête : l'avatar, le nom, la légende. */
.carte-ip__entete {
  display: flex;
  align-items: center;
  gap: 12px;
}
.carte-ip__identite {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.carte-ip__nom {
  font-size: 21px;
  line-height: 28px;
  font-weight: 600;
}
/* Un bloc de la carte : vœux, intérêts, logistique. */
.carte-ip__bloc {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.carte-ip__puces {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
/* Un vœu de mémoire : le code, la barre, le rang. */
.voeu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.voeu__code {
  width: 46px;
  font-weight: 500;
}
.voeu__piste {
  display: block;
  width: 200px;
  max-width: 100%;
  height: 8px;
  border-radius: var(--rayon-pastille);
  background: var(--statut-gris-fond);
  overflow: hidden;
}
/* Orange foncé : une barre doit se distinguer de sa piste (contraste 3:1). */
.voeu__barre {
  display: block;
  height: 100%;
  border-radius: var(--rayon-pastille);
  background: var(--marque-orange-fonce);
}


/* 11. Écrans de connexion (Figma : « P01 · Connexion ») -----------------------------------
   La photo occupe tout l'écran.
   La carte blanche est centrée, à 233 px du haut.
   Le nom de l'outil est écrit en blanc, en bas de l'écran. */

.page-carte {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* « Pôle Services aux Entreprises - ICAM site de Lille », sous la carte, en bas de l'écran. */
.page-carte__pied {
  margin-top: auto;
  padding: 24px 16px 80px;
  color: var(--texte-inverse);
  font-size: 21px;
  line-height: 28px;
  font-weight: 600;
  text-align: center;
  /* Une ombre légère : le texte reste lisible sur les zones claires de la photo. */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* La photo de fond, assombrie de 45 % (comme la maquette) : la carte blanche et le texte blanc ressortent. */
.page-carte__fond {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

/* La carte blanche au centre. */
.carte-accueil {
  width: min(680px, calc(100% - 32px));
  margin: 233px auto 0;
  padding: 36px 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  border-radius: var(--rayon);
  background: var(--fond-carte);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.carte-accueil__titre {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
}
.carte-accueil__texte {
  width: min(460px, 100%);
  text-align: center;
}
.carte-accueil__legende {
  font-size: 12px;
  line-height: 1.4;
  color: var(--texte-gris);
}
.carte-accueil__legende--centree {
  width: min(460px, 100%);
  text-align: center;
}
.carte-accueil .messages { width: min(360px, 100%); }

/* Le formulaire de connexion. */
.formulaire-carte {
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.champ-carte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.champ-carte label {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}
.champ-carte input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font: 400 12px/1.2 var(--police);
}
.champ-carte input::placeholder { color: var(--texte-gris); }
.champ-carte input:focus-visible {
  outline: 2px solid var(--action-texte);
  outline-offset: 1px;
}
.champ-carte input[aria-invalid="true"] { border-color: var(--statut-rouge); }

/* Les erreurs d'un champ, écrites par Django sous le champ. */
.errorlist {
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--statut-rouge);
}

/* Le bouton « Se connecter ». */
.bouton-carte {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  max-width: 100%;
  height: 44px;
  margin-top: 4px;
  border: 0;
  border-radius: var(--rayon);
  background: var(--action-principal);
  color: var(--action-texte-sur-principal);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  font: 700 14px/1.2 var(--police);
  text-decoration: none;
  cursor: pointer;
}
.bouton-carte:hover { background: var(--action-principal-survol); }

/* Le bouton du compte ICAM est un <button> dans un petit formulaire (POST).
   Le formulaire prend la largeur. Le bouton la remplit. */
.formulaire-sso { width: min(460px, 100%); }
.bouton-sso {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  cursor: pointer;
  height: 44px;
  border: 1px solid var(--texte-encre);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-encre);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  font: 700 14px/1.2 var(--police);
  text-decoration: none;
}


/* 12. Champs et onglets de page (Figma : « Champ », « Onglet de page ») ----------------------
   Un champ : un libellé gris de 12 px au-dessus d'une zone blanche bordée.
   Les erreurs de Django (.errorlist, section 11) s'affichent dessous, en rouge. */

.champ {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.champ__libelle {
  font-size: 12px;
  line-height: 1.4;
  color: var(--texte-gris);
}
.champ input:not([type="checkbox"]):not([type="radio"]),
.champ select,
.champ textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font: 400 14px/1.5 var(--police);
}
.champ textarea { min-height: 80px; resize: vertical; }
/* Une liste de choix dans un champ : le petit triangle de la maquette (« Signé ▾ »), à droite. */
.champ select {
  appearance: none;
  padding-right: 32px;
  background: var(--fond-carte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4' viewBox='0 0 7 4'%3E%3Cpath d='M0 0h7L3.5 4z' fill='%234F4F4E'/%3E%3C/svg%3E") no-repeat right 14px center;
  cursor: pointer;
}
/* Un champ qu'on ne peut plus changer (le type d'une question déjà répondue). */
.champ input:disabled,
.champ select:disabled,
.champ textarea:disabled {
  background: var(--fond-entete);
  color: var(--texte-gris);
  cursor: not-allowed;
}
/* Un champ en erreur : bordure rouge. */
.champ--erreur input,
.champ--erreur select,
.champ--erreur textarea { border-color: var(--statut-rouge); }

/* Une case à cocher et son texte, sur une ligne (rôles, domaines d'un projet). */
.case {
  display: flex;
  align-items: center;
  gap: 8px;
}
.case input { width: 16px; height: 16px; margin: 0; accent-color: var(--action-texte); }
/* La case à cocher de la maquette (« Case vide », « Case cochée ») : 16 px, coins de 4 px.
   Vide : fond blanc, bordure grise. Cochée : fond orange et coche noire. */
.case input[type="checkbox"] {
  appearance: none;
  flex: none;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon-mini);
  background: var(--fond-carte);
  cursor: pointer;
}
.case input[type="checkbox"]:checked {
  border-color: var(--action-principal);
  background: var(--action-principal) url("../img/pictos/check.svg") center / 12px 12px no-repeat;
}
.case input[type="checkbox"]:focus-visible { outline: 2px solid var(--marque-orange); outline-offset: 2px; }
.cases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 0;
  margin: 0;
  border: 0;
  list-style: none;
}

/* Deux champs par ligne (les dates de P03, les fiches à saisir). */
.grille-deux {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.grille-deux > .champ--large { grid-column: 1 / -1; }

/* La saisie d'un nombre dans une cellule de tableau (Figma : « Saisie »). */
.saisie-nombre {
  width: 70px;
  padding: 5px 10px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font: 500 14px/1.5 var(--police);
  font-variant-numeric: tabular-nums;
}
.saisie-nombre[aria-invalid="true"] { border-color: var(--statut-rouge); }

/* Les onglets de page (les sections de « Campagne »).
   C'est une ligne de mots posée sur un filet gris.
   La page ouverte est soulignée d'orange foncé. */
.sous-onglets {
  display: flex;
  flex-wrap: wrap;
  column-gap: 28px;
  border-bottom: 1px solid var(--trait-defaut);
}
.sous-onglet {
  margin-bottom: -1px;           /* le soulignement recouvre le filet */
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
  color: var(--texte-gris);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.sous-onglet:hover { color: var(--texte-encre); }
.sous-onglet[aria-current="page"] {
  border-bottom-color: var(--marque-orange-fonce);
  color: var(--texte-encre);
}


/* 13. Préparer la campagne (P03, P05, P06, P07, P23) -------------------------------------------- */

.texte-gris { color: var(--texte-gris); }
.actions--centre { align-items: center; }
.actions--haut { margin-top: 12px; }

/* Deux colonnes, la première de largeur fixe (P03 : « La session », 420 px). */
.deux-colonnes--fixe-gauche > :first-child { flex: none; width: 420px; }
.deux-colonnes--fixe-gauche > :last-child { flex: 1; min-width: 0; }
.colonne-laterale--420 { width: 420px; }

/* 26/10/2026 (demande d'Amine : les pastilles « À saisir » faisaient fabriqué) : un état se dit par un point de couleur et le mot, sans pastille.
   Le mot garde la couleur d'encre : la couleur seule ne porte jamais le sens. Vert : fait. Rouge : à saisir. Gris : neutre. */
.etat-point {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--texte-encre);
}
.etat-point::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--texte-gris);
}
.etat-point--vert::before { background: var(--statut-vert); }
.etat-point--rouge::before { background: var(--statut-rouge); }
.carte__entete .etat-point { font-size: 13px; }

/* La ligne « Statut : … » de la carte de la session. */
.ligne-statut {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Sous un tableau : le total à gauche, la légende à droite. */
.ligne-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}
.ligne-total__texte { flex: 1; font-weight: 500; }

/* L'en-tête de ligne d'un tableau : le nom de la ligne, en texte courant. */
.tableau th.cellule-titre {
  padding: 10px 6px 10px 14px;
  background: transparent;
  border-bottom: 1px solid var(--trait-defaut);
  color: var(--texte-encre);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}
.tableau tr:last-child th.cellule-titre { border-bottom: 0; }
/* Les largeurs de colonnes, en pixels. */
.col-24  { width: 24px; }
.col-52  { width: 52px; }
.col-60  { width: 60px; }
.col-62  { width: 62px; }
.col-66  { width: 66px; }
.col-70  { width: 70px; }
.col-72  { width: 72px; }
.col-74  { width: 74px; }
.col-76  { width: 76px; }
.col-80  { width: 80px; }
.col-82  { width: 82px; }
.col-84  { width: 84px; }
.col-90  { width: 90px; }
.col-92  { width: 92px; }
.col-94  { width: 94px; }
.col-96  { width: 96px; }
.col-102 { width: 102px; }
.col-107 { width: 107px; }
.col-104 { width: 104px; }
.col-110 { width: 110px; }
.col-116 { width: 116px; }
.col-122 { width: 122px; }
.col-123 { width: 123px; }
.col-130 { width: 130px; }   /* une pastille avec pictogramme (« ⚠ Négociation ») */
.col-150 { width: 150px; }
.col-158 { width: 158px; }
.col-170 { width: 170px; }
.col-180 { width: 180px; }
.col-182 { width: 182px; }
.col-190 { width: 190px; }
.col-200 { width: 200px; }
.col-390 { width: 390px; }
.col-210 { width: 210px; }
/* Carte « Dates de la campagne » : une date que la campagne exige et qui n'est pas saisie, bordure et libellé en rouge (data-a-saisir). */
.champ input[data-a-saisir]:not([type="checkbox"]):not([type="radio"]) { border-color: var(--statut-rouge); }
.champ:has(input[data-a-saisir]) .champ__libelle { color: var(--statut-rouge); }
/* Carte « Dates de la campagne » (remarque du client, 27/10/2026) :
   - une date passée se voit tout de suite : fond gris et texte atténué (le libellé dit aussi « date passée » aux lecteurs d'écran) ;
   - un libellé tient sur une seule ligne, pour que le début et la fin restent côte à côte, alignés ;
   - la case seule sur sa ligne garde la largeur des autres, mais son aide a toute la ligne. */
.champ input[data-passee]:not([type="checkbox"]):not([type="radio"]) { background: var(--trait-discret); color: var(--texte-gris); }
#carte-session .champ__libelle { white-space: nowrap; }
#carte-session .grille-deux > .champ--large input[type="date"] { width: calc(50% - 6px); }
.col-220 { width: 220px; }

/* Un groupe de cases (fieldset) : sans le cadre que le navigateur dessine. */
fieldset.champ { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.champ > legend { padding: 0; margin-bottom: 6px; }

/* La barre de filtres (P05) : la recherche, puis les listes déroulantes en « pastilles ». */
.barre-filtres {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.barre-filtres__recherche input {
  width: 280px;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  font: 400 14px/1.5 var(--police);
}
.barre-filtres select,
.filtre-liste {
  appearance: none;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  /* Un petit triangle gris dessiné en SVG, à droite (maquette : « Statut : tous ▾ »). */
  background: var(--fond-carte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4' viewBox='0 0 7 4'%3E%3Cpath d='M0 0h7L3.5 4z' fill='%234F4F4E'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--texte-encre);
  font: 500 14px/1.5 var(--police);
  cursor: pointer;
  /* La liste prend la largeur du choix affiché, comme dans la maquette (navigateurs récents). */
  field-sizing: content;
}
/* Une liste déroulante prend la largeur de son plus long choix : on la borne. */
.barre-filtres select { max-width: 230px; text-overflow: ellipsis; }
/* 02/11/2026 : un champ texte dans une barre (P04 : « Nouveau domaine », le nom à modifier) a le même cadre que les listes. */
.barre-filtres input[type="text"] {
  min-width: 220px;
  padding: 8px 12px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font: 400 14px/1.5 var(--police);
}
/* 27/10/2026 (remarque du client : « permettre le multicritère ») : une liste déroulante à cases (Statut, Domaine, Mémoire).
   La puce fermée dit ce qui est coché ; ouverte, le panneau liste les cases. Elle se ferme d'un clic ailleurs ou avec Échap (data-menu-deroulant). */
.filtre-multiple { position: relative; }
.filtre-multiple > summary {
  display: inline-flex;
  align-items: center;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4' viewBox='0 0 7 4'%3E%3Cpath d='M0 0h7L3.5 4z' fill='%234F4F4E'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--texte-encre);
  font: 500 14px/1.5 var(--police);
  cursor: pointer;
  white-space: nowrap;
  list-style: none;
}
.filtre-multiple > summary::-webkit-details-marker { display: none; }
.filtre-multiple[open] > summary { border-color: var(--texte-encre); }
.filtre-multiple--choisi > summary { border-color: var(--action-texte); background-color: var(--action-principal-fond); }
.filtre-multiple > summary:focus-visible { outline: 2px solid var(--action-texte); outline-offset: 2px; }
.filtre-multiple__panneau {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--trait-defaut);
  border-radius: var(--rayon-conteneur);
  background: var(--fond-carte);
  box-shadow: 0 6px 18px rgb(0 0 0 / 12%);
}
.filtre-multiple__panneau .case { padding: 6px 8px; border-radius: var(--rayon-mini); white-space: nowrap; cursor: pointer; }
.filtre-multiple__panneau .case:hover { background: var(--fond-entete); }
/* Les en-têtes qui se trient (remarque du client : « permettre le tri des colonnes ») : le titre est un lien, avec une flèche. */
.en-tete-tri { display: inline-flex; align-items: center; gap: 2px; color: inherit; text-decoration: none; white-space: nowrap; }
.en-tete-tri:hover { text-decoration: underline; }
/* Les flèches sont un dessin de deux triangles (29/10/2026) : le caractère « ↕ » de 8 px se lisait à peine. Colonne pas triée : les deux, en gris.
   Colonne triée : seul le triangle du sens en cours est noir. */
.en-tete-tri__fleche { flex: none; width: 8px; height: 12px; margin-left: 3px; }
.en-tete-tri__fleche path { fill: var(--texte-gris); opacity: 0.6; }
th[aria-sort="ascending"] .en-tete-tri__fleche .fleche-haut,
th[aria-sort="descending"] .en-tete-tri__fleche .fleche-bas { fill: var(--texte-encre); opacity: 1; }
th[aria-sort="ascending"] .en-tete-tri__fleche .fleche-bas,
th[aria-sort="descending"] .en-tete-tri__fleche .fleche-haut { opacity: 0.2; }
/* Une rangée d'actions alignée à droite, au-dessus d'un tableau. */
.actions--fin { display: flex; justify-content: flex-end; }
/* P06 « Mes IP » : un filtre précédé de son libellé (« CdP », « Autre date »). */
.barre-filtres__champ {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.barre-filtres input[type="date"] {
  padding: 6px 10px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font: 500 14px/1.5 var(--police);
}

/* Les tableaux larges défilent seuls.
   Sous 1080 px pour P05, sous 900 px pour P06 et P07 (à côté d'une colonne latérale). */
.tableau--large { min-width: 1080px; }
.tableau--moyen { min-width: 900px; }
/* La liste des IP : la première colonne est collée au bord (10 px), pour que l'adresse e-mail tienne sur une ligne. */
.tableau--ip th:first-child, .tableau--ip td:first-child { padding-left: 10px; padding-right: 0; }
/* La carte de la liste des IP : 16 px de marge (le tableau fait 972 px de large, comme la maquette). */
.carte--liste { padding: 16px; }
.tableau--annuaire { min-width: 1000px; }
.tableau td { overflow-wrap: anywhere; }
.cellule-principale { font-weight: 500; }
.legende--accent { color: var(--action-texte); }
.liste-projets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Plusieurs pastilles dans une cellule, qui passent à la ligne. */
.pastilles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
/* Un long nom de domaine passe sur deux lignes au lieu de déborder de sa colonne. */
.pastille--longue {
  flex: 0 1 auto;
  min-width: 0;
  white-space: normal;
  border-radius: 13px;
}

/* La fenêtre par-dessus la page (<dialog>) : « Configurer l'export ». */
.dialogue {
  width: min(420px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid var(--trait-defaut);
  border-radius: var(--rayon-conteneur);
  background: var(--fond-carte);
  color: var(--texte-encre);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.dialogue::backdrop { background: rgba(0, 0, 0, 0.35); }
.export {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* « Configurer les présentations » (maquette P05.2) : une carte grise par version,
   avec ses critères en deux colonnes, puis « + Ajouter un critère » et le bouton « Générer… ». */
.export__version {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--rayon-conteneur);
  background: var(--fond-entete);
}
.export__version-titre { margin: 0; font: 500 14px/21px var(--police); }
.export__criteres-titre { margin: 0; color: var(--texte-gris); font: 500 12px/15px var(--police); }
.export__criteres {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 0;
}
/* Une case cochée : texte noir et moyen. Une case vide : texte gris et normal. */
.case--critere { font: 400 13px/16px var(--police); color: var(--texte-gris); }
.case--critere:has(input:checked) { font-weight: 500; color: var(--texte-encre); }
.export__en-plus summary { display: inline-block; padding: 10px 18px; list-style: none; cursor: pointer; font-weight: 600; text-decoration: none; }
.export__en-plus summary::-webkit-details-marker { display: none; }
.export__en-plus[open] .export__criteres { margin-bottom: 8px; }
.bouton--plein { width: 100%; }
/* Un encart gris clair : un bloc d'explication dans une carte. */
.encart {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--rayon-conteneur);
  background: var(--fond-entete);
}
.encart__titre { font-weight: 500; }
.encart__texte { font-size: 12px; line-height: 1.4; }
/* 16/11/2026 : un encart ambre, une alerte (les textes coupés de la présentation PowerPoint). */
.encart--alerte { background: var(--statut-ambre-fond); color: var(--statut-ambre); }
.encart--alerte a { color: inherit; }
.export__a-revoir { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.5; }
.export__alerte:empty { display: none; }
/* 14/11/2026 : les critères de la génération (entretien 2, étape « Générer »), des cases qu'on glisse pour changer l'ordre. */
.criteres { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.critere {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--trait-discret);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  font-size: 13px;
  line-height: 1.4;
}
.critere[draggable="true"] { cursor: grab; }
.critere--fixe { background: transparent; border-style: dashed; }
.critere--deplacee { opacity: 0.5; }
.critere__rang { flex: none; min-width: 18px; font-weight: 600; color: var(--texte-gris); }
.critere__texte { min-width: 0; }
.critere__poignee { position: static; transform: none; opacity: 1; }

/* P06 : les filtres rapides en pastilles (« Hors périmètre · 4 »).
   Celui qui est choisi est orange. Les autres sont blancs, bordés. */
.corps-etudiants {
  display: flex;
  flex-direction: column;
  gap: var(--espace-34);
}
.filtres-rapides {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filtre-pastille {
  padding: 7px 12px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon-pastille);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.filtre-pastille:hover { background: var(--fond-entete); }
/* La liste des IP : la carte de l'étudiant choisi est à 16 px de la liste et large de 300 px (maquette « Sprint 2_V3 »). */
.deux-colonnes--liste { gap: 16px; align-items: flex-start; }
.deux-colonnes--liste > .colonne-laterale--etroite { width: 300px; position: sticky; top: 16px; }
/* Un clic n'importe où sur la ligne d'un IP le choisit : le lien du nom s'étend sur SA ligne (la ligne est positionnée).
   Sans cela, le lien de la dernière ligne recouvrait tout le tableau et on retombait toujours sur le dernier étudiant. */
.tableau--ip tbody tr { position: relative; cursor: pointer; }
.tableau--ip tbody tr:hover { background: var(--fond-entete); }
/* La liste d'orientation et le lien du CV restent cliquables au-dessus du lien de la ligne. */
.tableau--ip .orientation-ligne, .tableau--ip .lien-cv { position: relative; z-index: 1; }
/* Les filtres de la liste des IP : un menu déroulant chacun, sur une ligne qui passe à la suivante quand la place manque
   (28/10/2026, remarque du client : « passer les filtres en menus déroulants »). */
.filtres-liste {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
}
.filtres-liste .champ { min-width: 0; }
.filtres-liste select { min-width: 130px; }
.filtres-liste .actions { align-items: center; }
/* Sous le tableau : « 5 lignes affichées sur 8 ». */
.compte-lignes { margin: 0; font-weight: 600; color: var(--texte-encre); font-variant-numeric: tabular-nums; }
/* Un critère de l'export sans place dans le modèle PowerPoint : barré et grisé, la case n'est pas cochable. */
.case--indisponible { color: var(--texte-gris); text-decoration: line-through; cursor: not-allowed; opacity: 0.7; }
.export__depot { display: flex; flex-direction: column; gap: 8px; }
.filtre-pastille[aria-current="true"] {
  border-color: var(--action-principal);
  background: var(--action-principal);
  color: var(--action-texte-sur-principal);
}

/* La ligne de l'étudiant affiché à droite : fond orange clair. */
.tableau tr.ligne--choisie td { background: var(--action-principal-fond); }
.lien-ligne {
  color: var(--texte-encre);
  text-decoration: none;
}
.lien-ligne:hover { text-decoration: underline; }

/* Les listes, et les paires « libellé : valeur » des fiches. */
.liste-simple {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 18px;
}
.paires {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0;
}
.paires dt { color: var(--texte-gris); }
.paires dd { margin: 0; }
/* Un mot de passe provisoire, montré une seule fois : lisible et facile à copier. */
.code-secret {
  padding: 2px 6px;
  border-radius: var(--rayon-mini);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font: 600 14px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace;
  user-select: all;
}

/* P06.1 (maquette « Sprint 2_V3 ») : l'orientation d'un IP, une liste déroulante dans la ligne.
   Le triangle est celui des champs. « À définir » est en gris tant que rien n'est choisi. */
.orientation-ligne { margin: 0; }
.liste-orientation {
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  max-width: 106px;   /* 26/10/2026 : « À définir » (62 px) s'affichait « À défi… » dans 92 px */
  height: 31px;
  padding: 0 20px 0 12px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4' viewBox='0 0 7 4'%3E%3Cpath d='M0 0h7L3.5 4z' fill='%234F4F4E'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--texte-encre);
  font: 400 14px/1.5 var(--police);
  text-overflow: ellipsis;
  cursor: pointer;
}
.liste-orientation--vide { color: var(--texte-gris); }

/* 02/11/2026 (« possibilité de modifier à même le tableau ») : le tableau des projets se modifie dans la ligne.
   Le statut, les places, « À présenter » et « À affecter » sont des listes et un nombre qui s'enregistrent dès qu'ils changent.
   Ils reprennent la liste déroulante de l'orientation (.liste-orientation) ; le statut garde la couleur de sa pastille. */
/* 05/11/2026 : renommé « champ-tableau » : « champ-ligne » est aussi le champ de correction de l'import (plus bas), dont le cadre et la largeur de 220 px faisaient déborder les cellules. */
.champ-tableau { margin: 0; }
.champ-ligne__nombre { max-width: 66px; padding-right: 6px; background-image: none; }
/* Le statut ressemble à sa pastille (maquette P05.1) : même fond, même couleur, même arrondi ; la flèche dit qu'il se change. */
.champ-ligne__statut {
  height: auto;
  max-width: 215px;
  padding: 4px 24px 4px 12px;
  border-radius: var(--rayon-pastille);
  background-position: right 10px center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.champ-ligne__statut--vert { background-color: var(--statut-vert-fond); color: var(--statut-vert); border-color: color-mix(in srgb, var(--statut-vert) 35%, transparent); }
.champ-ligne__statut--ambre { background-color: var(--statut-ambre-fond); color: var(--statut-ambre); border-color: color-mix(in srgb, var(--statut-ambre) 35%, transparent); }
.champ-ligne__statut--rouge { background-color: var(--statut-rouge-fond); color: var(--statut-rouge); border-color: color-mix(in srgb, var(--statut-rouge) 35%, transparent); }
.champ-ligne__statut--bleu { background-color: var(--statut-bleu-fond); color: var(--statut-bleu); border-color: color-mix(in srgb, var(--statut-bleu) 35%, transparent); }
.champ-ligne__statut--gris { background-color: var(--statut-gris-fond); color: var(--statut-gris); border-color: color-mix(in srgb, var(--statut-gris) 35%, transparent); }
.champ-ligne__statut--contour { background-color: var(--fond-carte); color: var(--texte-encre); border-color: var(--trait-controle); }
.champ-ligne__oui-non { max-width: 76px; }
/* La ligne qui vient d'être enregistrée s'éclaire un instant (vert très clair), puis revient. */
.ligne--enregistree td { animation: ligne-enregistree 1.8s ease-out; }
@keyframes ligne-enregistree { from { background: var(--statut-vert-fond); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .ligne--enregistree td { animation: none; } }
/* Le CV de la liste : « CV » en gras, décalé pour tomber sous le titre de la colonne (maquette). */
.lien-cv {
  display: inline-block;
  padding-left: 18px;
  color: var(--texte-encre);
  font-weight: 700;
  text-decoration: none;
}
.lien-cv:hover { text-decoration: underline; }

/* P06.2 (maquette « Sprint 2_V3 ») : la fiche complète d'un IP.
   D'abord l'identité sur toute la largeur, puis la décision (entretien 1 et orientation), puis deux colonnes. */
.fiche-ip__identite {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}
.avatar--fiche {
  width: 56px;
  height: 56px;
  font-size: 21px;
  line-height: 1.3;
}
.fiche-ip__nom {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  /* Le trait fin qui sépare le nom du parcours et du site. */
  padding-right: 28px;
  border-right: 1px solid var(--trait-discret);
}
.fiche-ip__titre {
  font-size: 21px;
  line-height: 28px;
  font-weight: 600;
}
.fiche-ip__champs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 29px;
}
.fiche-ip__champ {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
/* La décision : deux cartes de même hauteur côte à côte. Sans la carte de l'entretien 1, l'orientation prend toute la largeur. */
.fiche-ip__decision {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--espace-21);
}
.fiche-ip__decision--seule { grid-template-columns: minmax(0, 1fr); }
/* La carte « Passe l'entretien 1 » : un trait orange la met en avant. */
.carte--decision {
  gap: 8px;
  border: 2px solid var(--marque-orange);
}
.fiche-ip__grand-titre {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
}
.fiche-ip__formulaire {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Le texte d'exemple du motif : gris foncé, comme la maquette. */
.carte--decision input::placeholder { color: var(--texte-gris); opacity: 1; }
/* La carte « Orientation finale » : un trait fin gris. */
.carte--orientation {
  gap: 8px;
  border: 1px solid var(--trait-defaut);
}
.fiche-ip__surtitre {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--texte-gris);
  text-transform: uppercase;
}
.fiche-ip__orientation {
  font-size: 56px;
  line-height: 64px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.fiche-ip__validation { color: var(--texte-gris); }
/* Les colonnes de la fiche : les cartes sont à 21 px l'une de l'autre, leurs lignes à 13 px. */
.fiche-ip__colonne {
  display: flex;
  flex-direction: column;
  gap: var(--espace-21);
}
.fiche-ip__colonne > .carte { gap: var(--espace-13); }
/* Le titre d'une expérience (« Alternance · Technicien méthodes · Bonduelle ») est en gras. */
.fiche-ip__colonne .encart__titre { font-weight: 600; }
.fiche-ip__voeux {
  display: flex;
  flex-direction: column;
  gap: var(--espace-13);
  margin: 0;
  padding: 0;
  list-style: none;
}
.fiche-ip__voeux li {
  display: grid;
  grid-template-columns: 83px auto;
  align-items: baseline;
}
.fiche-ip__competences { gap: var(--espace-21); }
.fiche-ip__sur-titre {
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--texte-gris);
  text-transform: uppercase;
}
.liste-nue {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Les paires « libellé : valeur » de la fiche : le libellé en petit gris sur 163 px, la valeur à droite. */
.paires--fiche {
  grid-template-columns: 139px minmax(0, 1fr);
  gap: 8px 24px;
  align-items: baseline;
}
.paires--fiche dt { font-size: 12px; line-height: 1.4; }
/* Les formulaires : une ligne (nom, pastille), puis le bouton pour lire les réponses. */
.fiche-ip__formulaires {
  display: flex;
  flex-direction: column;
  gap: var(--espace-13);
}
.fiche-ip__formulaire {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fiche-ip__formulaire + .fiche-ip__formulaire {
  padding-top: var(--espace-13);
  border-top: 1px solid var(--trait-discret);
}
.fiche-ip__ligne {
  display: grid;
  grid-template-columns: 163px auto;
  justify-content: start;
  align-items: center;
}
/* Un bouton qu'on ne peut pas ouvrir : « Accéder aux réponses » d'un formulaire pas envoyé. */
.bouton--inactif {
  opacity: 0.55;
  cursor: not-allowed;
}
.bouton--inactif:hover { background: var(--fond-carte); }
/* Un bouton dans une cellule de tableau garde sa marge (la règle des tableaux la retire). */
.tableau .bouton--cellule { padding-left: 18px; padding-right: 18px; }
.col-140 { width: 140px; }
/* Les réponses d'un IP : la largeur d'une page de lecture. */
.fiche-ip__reponses {
  display: flex;
  flex-direction: column;
  gap: var(--espace-21);
  max-width: 760px;
}

/* P07 : la saisie de l'ETP dans une cellule (« 50 % »), et son message.
   Le « % » est dans la boîte de saisie, comme dans la maquette. */
.saisie-etp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 78px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  font-weight: 500;
}
.saisie-etp .saisie-nombre {
  width: 36px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: right;
  -moz-appearance: textfield;
  appearance: textfield;
}
.saisie-etp .saisie-nombre::-webkit-inner-spin-button,
.saisie-etp .saisie-nombre::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.saisie-etp__signe { color: var(--texte-encre); }
.saisie-etp:focus-within { outline: 2px solid var(--texte-encre); outline-offset: 1px; }
.legende--erreur { color: var(--statut-rouge); }
/* Les cases des rôles, l'une sous l'autre. */
.cases--colonne { flex-direction: column; }

/* P23 : des cartes bordées, et un tableau léger (sans cadre ni fond d'en-tête). */
.carte--bordee { border: 1px solid var(--trait-defaut); }
.tableau-conteneur--sans-cadre { border: 0; border-radius: 0; }
.tableau--simple th {
  background: transparent;
  padding-top: 8px;
  padding-bottom: 8px;
}
.tableau--simple td {
  padding-top: 11px;
  padding-bottom: 11px;
  border-bottom-color: var(--trait-discret);
}
.tableau--simple th:first-child,
.tableau--simple td:first-child { padding-left: 0; }
/* La poignée est posée dans la marge de la carte, à gauche du numéro d'étape : visible au survol et au clavier. */
.cellule-poignee { position: relative; }
.cellule-poignee .poignee {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
}
tr:hover .poignee,
.poignee:focus-visible { opacity: 1; }
/* La question ouverte à droite n'est pas teintée dans la maquette : seule la ligne d'IP l'est (P06). */
.tableau--simple tr.ligne--choisie td { background: transparent; }
/* La poignée d'une ligne qu'on réordonne.
   On la glisse, ou on la prend au clavier (Tab) et on la déplace avec les flèches haut et bas. */
.poignee {
  padding: 2px 6px;
  border: 0;
  border-radius: var(--rayon-mini);
  background: transparent;
  color: var(--texte-gris);
  font: 600 14px/1 var(--police);
  letter-spacing: -2px;
  cursor: grab;
}
.poignee:hover { background: var(--fond-entete); }
tr.ligne--deplacee td { opacity: 0.5; }
.lien-action {
  color: var(--action-texte);
  text-decoration: none;
}
.lien-action:hover { text-decoration: underline; }
/* Un geste de ligne qui est un bouton (un envoi de formulaire) garde l'aspect d'un lien. « Supprimer » est en rouge ; grisé, il dit pourquoi (data-raison). */
button.lien-action { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.lien-action--danger { color: var(--statut-rouge); }
.lien-action:disabled { color: var(--texte-gris); cursor: not-allowed; text-decoration: none; opacity: 0.7; }
/* L'aperçu d'une question : un encart qui imite le formulaire de l'étudiant. */
.apercu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px dashed var(--trait-defaut);
  border-radius: var(--rayon);
}
.apercu__question { font-weight: 500; }
.apercu fieldset.champ { gap: 8px; display: flex; flex-direction: column; }

/* La zone à risque de P03 : clôturer le semestre. La bordure et le titre sont rouges. */
.carte--danger { border: 1px solid var(--statut-rouge); }
.titre-section--danger { color: var(--statut-rouge); }
/* Un bouton pour un geste qui retire quelque chose (P07 : « Supprimer »). Le mot est rouge. */
.bouton--danger { color: var(--statut-rouge); }
.bouton--danger.bouton--contour { border-color: var(--statut-rouge); }

/* P07 : deux boutons discrets dans une même cellule (« Modifier », « Supprimer »). */
.actions-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}
/* Dans une ligne (P13 : la page de réservation d'un interviewer), l'adresse prend la place libre. */
.actions-ligne .saisie-adresse {
  flex: 1 1 220px;
  width: auto;
}
/* P07 : les personnes retirées de l'annuaire, une par ligne. */
.liste-retirees {
  padding: 0;
  list-style: none;
}
.liste-retirees__ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--trait-discret);
}
.liste-retirees__ligne:last-child { border-bottom: 0; }
.carte__ligne {
  display: flex;
  align-items: center;
  gap: 16px;
}
.carte__ligne-texte {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* P26 : Droits par rôle (Figma : « P26.1 · Gestion des accès par rôles »).
   Deux cartes : « Les rôles » (la liste, avec « Ajouter » et « Supprimer »), puis « Matrice des droits ».
   Le tableau de la matrice : un écran par ligne, un rôle par colonne.
   Chaque case est une liste à trois choix, en pastille : Aucun (rose), Lecture (bleu-vert), Écriture (orange). */

/* La liste des rôles : deux colonnes, rangés ligne par ligne. */
.roles-liste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 21px;
  padding: 0;
  list-style: none;
}
.role-ligne {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 7px 0;
  border-bottom: 1px solid var(--trait-discret);
}
.role-ligne__nom { flex: 1; min-width: 0; }
.role-ligne__nombre { color: var(--texte-gris); font-size: 12px; white-space: nowrap; }
/* La pastille du rôle (« IP », « CdP », « Admin ») : de largeur libre, bordée. */
.role-ligne .pastille { min-width: 36px; justify-content: center; }
/* Le bouton « Supprimer » d'un rôle qu'on ne peut pas supprimer (Admin) : grisé, sans effet. */
.bouton--inactif {
  background: var(--fond-carte);
  border: 1px solid var(--trait-discret);
  color: var(--trait-defaut);
  cursor: not-allowed;
}
.bouton--inactif:hover { background: var(--fond-carte); }
/* Sous la liste : la règle à gauche, le lien vers « Collaborateurs & rôles » à droite. */
.roles-pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 21px;
}
.roles-pied .legende { flex: 1; min-width: 260px; }
/* Le bandeau « Le rôle CA est supprimé » : avec le bouton qui défait la suppression. */
.bandeau-defaire {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 21px;
  padding: 12px var(--espace-21);
  border-radius: var(--rayon-conteneur);
  background: var(--statut-vert-fond);
  color: var(--statut-vert);
  font-weight: 500;
}

/* La matrice. Sous 1080 px, le tableau défile seul. */
.tableau--droits { min-width: 1080px; }
.tableau--droits th.col-droit {
  width: 134px;
  text-align: center;
}
.tableau--droits td.case-droit {
  padding: 5px 3px;
  text-align: center;
}
.tableau--droits td.case-droit:first-of-type { padding-left: 3px; }
/* Le titre d'un groupe (« 1 · SOCLE, ADMINISTRATION ») : une ligne grise dans le tableau. */
.tableau .ligne-section th {
  padding: 8px 14px;
  background: var(--fond-entete);
  color: var(--texte-gris);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tableau--droits tbody:first-of-type .ligne-section th { border-top: 0; }
.tableau .ligne-section th { border-top: 1px solid var(--trait-defaut); }
/* Le nom de l'écran, en texte courant. */
.tableau--droits .cellule-titre { font-size: 14px; font-weight: 400; color: var(--texte-encre); }
.tableau--droits tbody th.cellule-titre { background: transparent; border-bottom: 1px solid var(--trait-discret); }
.tableau--droits td.case-droit { border-bottom: 1px solid var(--trait-discret); }
.tableau--droits tr:last-child .cellule-titre,
.tableau--droits tr:last-child td.case-droit { border-bottom: 0; }

/* La liste d'une case : 128 × 28, rayon 8, texte en gras 12 px, flèche à droite.
   La couleur dit le niveau : Aucun rose, Lecture bleu-vert, Écriture orange (le mot, jamais seulement la couleur). */
.droit-cellule {
  position: relative;
  display: inline-block;
  width: 128px;
  height: 28px;
  border-radius: var(--rayon);
  font: 600 12px/28px var(--police);
}
.droit--aucun    { background: var(--statut-rouge-fond); color: var(--statut-rouge); }
.droit--lecture  { background: var(--statut-vert);       color: #ffffff; }
.droit--ecriture { background: var(--action-principal);  color: var(--action-texte-sur-principal); }
.droit-cellule select {
  appearance: none;
  display: block;
  width: 100%;
  height: 28px;
  padding: 0 24px 0 10px;
  border: 0;
  border-radius: var(--rayon);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
/* La flèche : « ▾ », et « ▴ » quand la liste est ouverte. Le dessin ne reçoit pas le clic. */
.droit-cellule::after {
  content: "\25BE";
  position: absolute;
  top: 0;
  right: 10px;
  font-size: 15px;
  line-height: 28px;
  pointer-events: none;
}
.droit-cellule--ouverte { outline: 2px solid var(--texte-encre); outline-offset: 0; }
.droit-cellule--ouverte::after { content: "\25B4"; }
.droit-cellule select:focus-visible { outline: 2px solid var(--texte-encre); outline-offset: 1px; }
/* Une case verrouillée : la même pastille, mais la liste ne s'ouvre pas (la raison est en infobulle). */
.droit-cellule--verrou { cursor: not-allowed; }
.droit-cellule select:disabled {
  color: inherit;
  opacity: 1;
  cursor: not-allowed;
}
/* Une case changée, pas encore enregistrée : un point devant, et « modifié » pour les lecteurs d'écran.
   La couleur n'est jamais le seul indice. */
.droit-cellule__marque {
  position: absolute;
  top: -6px;
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--texte-encre);
  color: #ffffff;
  font: 700 11px/14px var(--police);
  text-align: center;
}
/* Le texte du compteur, à côté des boutons de l'en-tête. */
.etat-droits {
  align-self: center;
  color: var(--texte-gris);
  font-weight: 500;
}

/* Le menu d'une case ouverte : trois choix, un point de la couleur du niveau, une coche sur le choix actuel.
   Il est posé sur la page (position fixe) pour ne pas être coupé par le tableau qui défile. */
.droit-menu {
  position: fixed;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 128px;
  padding: 4px;
  border: 1px solid var(--trait-defaut);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.droit-menu__option {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--texte-encre);
  font: 400 12px/1 var(--police);
  text-align: left;
  cursor: pointer;
}
.droit-menu__option:hover,
.droit-menu__option:focus-visible { background: var(--fond-entete); outline: none; }
.droit-menu__option[aria-selected="true"] { font-weight: 600; }
.droit-menu__point {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.droit-menu__point--aucun    { background: var(--statut-rouge); }
.droit-menu__point--lecture  { background: var(--statut-vert); }
.droit-menu__point--ecriture { background: var(--action-principal); }
.droit-menu__coche { margin-left: auto; }
.bouton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Un bloc replié : on l'ouvre pour agir. */
.repli__titre {
  cursor: pointer;
  color: var(--statut-rouge);
  font-weight: 600;
}
.repli > summary { cursor: pointer; }
.repli:not([open]) { gap: 0; }
.repli[open] > summary { margin-bottom: var(--espace-13); }

/* Le corps d'une fenêtre : ses blocs sont espacés de 12 px. */
.fenetre {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Les fenêtres de P26 et de P07 (Figma : « P26.2 », « P26.3 », « P07.2 ») : un titre, un texte,
   des encarts « Ce qui disparaît » et « Ce qui reste », puis deux boutons. */
/* Le contenu d'une fenêtre simple : une colonne, 12 px entre les blocs (fiche projet de P09). */
.dialogue__contenu { display: flex; flex-direction: column; gap: 12px; }
.dialogue__titre { font: 600 21px/28px var(--police); }
.dialogue__texte { color: var(--texte-gris); }
.dialogue__note { font-size: 12px; line-height: 1.4; color: var(--texte-gris); }
.dialogue__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
/* Le bouton qui supprime : bordeaux, comme dans la maquette. */
.bouton--suppression {
  background: var(--statut-rouge);
  color: #ffffff;
}
.bouton--suppression:hover { background: #721630; }
/* Un encart dont le texte du haut est en gras, puis une note grise. */
.encart__texte--gris { color: var(--texte-gris); }
/* Les champs d'une fenêtre : libellé gris au-dessus, saisie de 40 px. */
.dialogue .champ { gap: 4px; }

/* P19 : Mes IP & déplacements (maquette P20). Une colonne de 1100 px, centrée. */
.page--moyenne {
  max-width: calc(1100px + 2 * var(--marge-page));
  gap: var(--espace-21);
}
/* Le jour regardé, et « Autre date » à droite. */
.ligne-jour {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.autre-date { position: relative; }
.autre-date__titre {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.autre-date__titre::-webkit-details-marker { display: none; }
.autre-date__formulaire {
  position: absolute;
  z-index: 5;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--trait-defaut);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  white-space: nowrap;
}
/* La liste « Absents ou en déplacement » : le nom et le détail, la pastille à droite. */
.absents { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.absents__ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.absents__nom { font-weight: 500; }
/* Une carte par IP : son nom, son projet, l'avancement du projet. */
.liste-ip { display: flex; flex-direction: column; gap: 16px; }
.ip-en-projet__entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ip-en-projet__nom, .ip-en-projet__nom a { font-weight: 500; color: var(--texte-encre); }
.ip-en-projet__projet { color: var(--texte-gris); }
.avancement { display: flex; align-items: center; gap: 8px; }
.avancement__piste {
  flex: none;
  width: 90px;
  height: 6px;
  border-radius: var(--rayon-pastille);
  background: var(--trait-discret);
}
.avancement__barre {
  display: block;
  height: 100%;
  border-radius: var(--rayon-pastille);
  background: var(--marque-orange-fonce);
}

/* L'accueil du CdP « hors campagne » (maquette P02.5) : la semaine de chaque IP, un lieu par jour. */
.legende-lieux { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.semaine-ip { min-width: 860px; }
.semaine-ip .col-jour { width: 132px; text-align: center; }
.semaine-ip .col-jour--aujourd-hui { background: var(--action-principal-fond); color: var(--action-texte); }
.semaine-ip td.case-lieu { text-align: center; }
/* Le lieu d'un jour : une pastille de la couleur du lieu. */
.pastille--lieu-icam    { background: var(--statut-vert-fond);  color: var(--statut-vert); }
.pastille--lieu-entreprise { background: var(--fond-carte); color: var(--texte-encre); border-color: var(--texte-encre); }
.pastille--lieu-tt      { background: var(--statut-ambre-fond); color: var(--statut-ambre); }
.pastille--lieu-absence { background: var(--statut-rouge-fond); color: var(--statut-rouge); }

/* La page de rendez-vous Google, dans l'application (mode réservation). */
.cadre-reservation {
  width: 100%;
  height: 640px;
  border: 0;
  border-radius: var(--rayon);
}

/* P25 (maquette P25.1, P25.2) : les cartes, le moment d'affichage, le choix du mode d'un projet. */
.colonne-principale--large { gap: var(--espace-21); }
.carte__entete--colonne { flex-direction: column; align-items: flex-start; gap: 4px; }
.icone-titre { display: inline-flex; color: var(--action-texte); }
.moment-affichage { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.moment-affichage .champ input { width: 190px; }
.moment-affichage .champ:nth-child(2) input { width: 130px; }
.statut-affichage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.col-mode { width: 410px; }   /* 26/10/2026 : « Dans l'application | Annoncé par le CdP » fait 388 px, il débordait de sa colonne de 340 */
/* Deux boutons côte à côte : le choisi est orange clair, bordé d'orange, avec une coche (maquette). */
.choix-mode { display: inline-flex; border-radius: var(--rayon); }
.choix-mode__option { position: relative; display: inline-flex; cursor: pointer; }
.choix-mode__option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.choix-mode__option span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--trait-controle);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font-weight: 400;
  white-space: nowrap;
}
.choix-mode__option:first-child span { border-radius: var(--rayon) 0 0 var(--rayon); }
.choix-mode__option:last-child span { border-radius: 0 var(--rayon) var(--rayon) 0; border-left-width: 0; }
.choix-mode__option input:checked + span {
  position: relative;
  border: 2px solid var(--marque-orange-fonce);
  background: var(--action-principal-fond);
  color: var(--action-texte);
  font-weight: 500;
}
.choix-mode__option input:checked + span::before { content: "\2713"; font-weight: 700; }
.choix-mode__option input:focus-visible + span { outline: 2px solid var(--texte-encre); outline-offset: 2px; }
.choix-mode__option input:disabled + span { cursor: not-allowed; opacity: 0.7; }
.repli__titre--neutre { color: var(--texte-encre); }

/* P25 : deux cartes côte à côte (l'annonce des résultats, hors maquette). */
.grille-deux--cartes {
  gap: var(--espace-21);
  align-items: start;
}
/* Le compte à rebours (Figma) : trois boîtes grises, le nombre en gras et l'unité dessous. */
.rebours {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.rebours__boite {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 74px;
  padding: 12px 14px 10px;
  border: 1px solid var(--trait-discret);
  border-radius: var(--rayon);
  background: var(--fond-entete);
}
.rebours__valeur {
  font: 700 28px/1.2 var(--police);
  font-variant-numeric: tabular-nums;
}
.rebours__unite { font-size: 12px; line-height: 1.4; color: var(--texte-gris); }
/* Les trois boîtes se partagent toute la largeur (la page « Affichage des projets »). */
.rebours--grand { flex-wrap: nowrap; }
.rebours--grand .rebours__boite { flex: 1; padding-top: 18px; padding-bottom: 14px; }
.rebours--grand .rebours__valeur { font-size: 34px; }

/* L'infobulle d'un chiffre clé (accueil admin) : le détail, souligné en pointillés, et une boîte noire au survol ou au clavier. */
.info-bulle { position: relative; display: inline-block; }
.info-bulle__declencheur {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: help;
}
.info-bulle__contenu {
  display: none;
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  left: 0;
  width: 340px;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--rayon);
  background: #000000;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}
/* La petite pointe vers le texte. */
.info-bulle__contenu::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 14px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: #000000;
}
.info-bulle:hover .info-bulle__contenu,
.info-bulle:focus-within .info-bulle__contenu { display: flex; }
.info-bulle__titre { font-size: 12px; font-weight: 600; }
.info-bulle__lien { color: var(--action-principal); font-weight: 500; text-decoration: none; }
.info-bulle__lien:hover { text-decoration: underline; }

/* L'historique des modifications (accueil admin) : une entrée sur deux lignes. */
.historique { padding: 0; list-style: none; }
.historique__ligne {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--trait-discret);
}
.historique__ligne:first-child { padding-top: 4px; }
.historique__ligne:last-child { border-bottom: 0; }
.historique__titre { font-weight: 500; }
.historique__detail { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.historique__valeurs s { color: var(--texte-gris); }
.historique__valeurs strong { font-weight: 500; }

/* P13 : l'adresse de la page de réservation Google d'un interviewer, dans une cellule. */
.saisie-adresse {
  width: 100%;
  min-width: 0;
  padding: 5px 10px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font: 400 14px/1.5 var(--police);
}


/* P13 : Attribution des entretiens (Figma : « P13.1 · planning généré », « P13.2 · entretien 1 publié »).
   De haut en bas : les quatre étapes, le résultat de la génération, la grille d'un jour avec ses trois cartes
   de droite (P13.1), puis les absents à replanifier et la promo (P13.2).
   Les couleurs sont celles des statuts : bleu-vert = libre ou fait, orange = un étudiant placé,
   framboise = indisponible ou absent, ambre = à vérifier. Chaque case a aussi un mot et un pictogramme. */

/* Les quatre étapes : quatre cartes côte à côte. Chacune est un lien vers son étape.
   La carte ouverte est orange clair, bordée d'orange foncé. Une étape faite a une coche bleu-vert. */
.etapes-serie {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  /* 13/11/2026 (Figma P13.4) : les quatre étapes sont quatre cartes de même hauteur, chacune dans son filet. */
  align-items: stretch;
  gap: var(--espace-13);
  padding: 0;
  list-style: none;
}
.etape-serie__lien {
  display: flex;
  align-items: flex-start;
  height: 100%;
  gap: var(--espace-13);
  padding: var(--espace-13);
  border: 1.5px solid var(--trait-discret);
  border-radius: var(--rayon-conteneur);
  background: var(--fond-carte);
  color: var(--texte-encre);
  text-decoration: none;
}
.etape-serie__lien:hover { background: var(--fond-entete); }
.etape-serie--choisie .etape-serie__lien {
  border-color: var(--action-texte);
  background: var(--action-principal-fond);
}
.etape-serie__rond {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: var(--rayon-pastille);
  background: var(--statut-gris-fond);
  color: var(--statut-gris);
  font-size: 12px;
  font-weight: 700;
}
.etape-serie--faite .etape-serie__rond { background: var(--statut-vert); color: var(--texte-inverse); }
.etape-serie--choisie:not(.etape-serie--faite) .etape-serie__rond {
  background: var(--action-principal);
  color: var(--action-texte-sur-principal);
}
.etape-serie__texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.etape-serie__titre { font-weight: 500; }
.etape-serie__detail { font-size: 12px; line-height: 1.4; color: var(--texte-gris); }

/* Le résultat de la génération : cinq chiffres, chacun avec sa pastille puis sa phrase. */
.resultat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--espace-21);
  padding: 0;
  list-style: none;
}
.resultat__element { display: flex; align-items: flex-start; gap: var(--espace-13); }
.resultat__texte { min-width: 0; }

/* Deux colonnes : la grille (ou les absents) à gauche, des cartes de 360 px à droite. */
.colonne-laterale--360 { flex: none; width: 360px; }
.colonne-cartes { display: flex; flex-direction: column; gap: 16px; }
.colonne-planning { min-width: 0; }

/* La grille d'un jour. */
.planning__legende {
  display: grid;
  grid-template-columns: repeat(auto-fill, 150px);
  gap: var(--espace-8);
  padding: 0;
  list-style: none;
}
.legende-place,
.place {
  --case-fond: var(--action-principal-fond);
  --case-trait: var(--marque-orange-fonce);
  --case-texte: var(--action-texte);
  border: 1px solid var(--case-trait);
  border-radius: var(--rayon);
  background: var(--case-fond);
  color: var(--case-texte);
}
.legende-place {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}
/* Les cinq sortes de case : un étudiant placé (orange), déjà rencontré (ambre), indisponible (framboise), libre (bleu-vert), sans disponibilités (gris). */
.place--attention, .legende-place--attention {
  --case-fond: var(--statut-ambre-fond);
  --case-trait: var(--statut-ambre);
  --case-texte: var(--statut-ambre);
}
.place--indisponible, .legende-place--indisponible {
  --case-fond: var(--statut-rouge-fond);
  --case-trait: var(--statut-rouge);
  --case-texte: var(--statut-rouge);
}
.place--libre, .place--plafond, .legende-place--libre {
  --case-fond: var(--statut-vert-fond);
  --case-trait: var(--statut-vert);
  --case-texte: var(--statut-vert);
}
.place--inactif {
  --case-fond: var(--statut-gris-fond);
  --case-trait: var(--statut-gris-fond);
  --case-texte: var(--statut-gris);
}
/* 14/11/2026 : l'entretien réalisé (gris, coché) et l'étudiant absent (bordure rouge en pointillés). */
.place--fait, .legende-place--fait {
  --case-fond: var(--statut-gris-fond);
  --case-trait: var(--statut-gris);
  --case-texte: var(--statut-gris);
}
.place--absent, .legende-place--absent {
  --case-fond: transparent;
  --case-trait: var(--statut-rouge);
  --case-texte: var(--statut-rouge);
  border-style: dashed;
}
.place__statut { font-weight: 400; }
/* Un étudiant déplacé à la main : bordure plus épaisse, et un cadenas. */
.place--verrouille, .legende-place--verrouille { border: 2px solid var(--action-texte); }
.legende-place--verrouille { padding: 4px 9px; }
/* 16/11/2026 : avant la publication, le cadenas se clique pour déverrouiller l'étudiant.
   Le bouton prend exactement la place du cadenas de la case (masqué), à gauche du nom. */
.place--deverrouillable { position: relative; }
.place--deverrouillable .place__cadenas-fixe { visibility: hidden; }
.place__cadenas-fixe { display: inline-flex; flex: none; }
.place__deverrouiller { position: absolute; top: 0; bottom: 0; left: 6px; display: flex; align-items: center; margin: 0; }
.place__cadenas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: var(--rayon);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.place__cadenas:hover, .place__cadenas:focus-visible { background: var(--fond-carte); box-shadow: 0 0 0 1px currentColor; }

/* Le tableau de la grille : une colonne d'heures, puis une colonne par interviewer. */
.planning__defilement { overflow-x: auto; }
.planning__grille {
  width: calc(100% + 8px);
  min-width: 780px;
  margin-left: -8px;                 /* le premier espace entre colonnes tombe dans la marge de la carte */
  border-collapse: separate;
  border-spacing: 8px 6px;
  table-layout: fixed;
}
.planning__coin, .planning__heure { width: 48px; }
.planning__interviewer {
  padding: 0 0 4px;
  text-align: left;
  font-weight: 400;
  vertical-align: bottom;
}
.planning__nom { display: block; font-size: 14px; line-height: 1.4; font-weight: 500; }
.planning__roles { display: block; font-size: 12px; line-height: 1.4; color: var(--texte-gris); }
.planning__roles--alerte { color: var(--statut-ambre); }
.planning__heure {
  padding: 0;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
  font-weight: 400;
  color: var(--texte-gris);
  font-variant-numeric: tabular-nums;
}
.planning__pause {
  padding: 0;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--texte-gris);
}
.place { height: 36px; padding: 0; }
.place__contenu {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}
.place--etudiant .place__contenu,
.place--attention .place__contenu { font-weight: 600; }
.place--inactif .place__contenu { justify-content: center; }
.place__texte { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place .icone { flex: none; }
/* On prend un étudiant (glisser, clic, clavier), et on le dépose sur une case libre. */
[data-deplacable] { cursor: grab; border-radius: var(--rayon); }
[data-deplacable]:active { cursor: grabbing; }
.place__contenu--pris { box-shadow: 0 0 0 3px var(--action-principal); }
[data-deposer] { cursor: pointer; border-radius: var(--rayon); }
.place--cible { box-shadow: 0 0 0 3px var(--statut-vert); }
.planning__pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--espace-21);
}
.planning__pied .legende { flex: 1 1 280px; max-width: 460px; }

/* Les cartes de droite : étudiants sans créneau, brassage, charge. */
.sans-creneau {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  list-style: none;
}
.sans-creneau__ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--espace-8);
  min-height: 38px;
}
.sans-creneau__nom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* « Placer à la main » : un texte en gras qui ouvre un petit formulaire. */
.placer__resume {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.placer__resume::-webkit-details-marker { display: none; }
.placer__resume:hover { text-decoration: underline; }
.placer[open] { flex-basis: 100%; }
.placer__formulaire { display: flex; flex-direction: column; gap: 6px; padding-top: var(--espace-8); }
.brassage {
  display: flex;
  flex-direction: column;
  gap: var(--espace-21);
  padding: 0;
  list-style: none;
}
.brassage__ligne { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-8); }
/* Un conseil, en ambre : « Déplacez-en deux pour mieux brasser. » */
.conseil { font-size: 12px; line-height: 1.4; color: var(--statut-ambre); }
.charge {
  display: flex;
  flex-direction: column;
  gap: var(--espace-21);
  padding: 0;
  list-style: none;
}
.charge__ligne { display: flex; align-items: center; gap: var(--espace-13); }
.charge__nom { flex: none; width: 56px; }
.charge__piste {
  flex: 1;
  min-width: 0;
  height: 8px;
  border-radius: var(--rayon-pastille);
  background: var(--statut-gris-fond);
}
.charge__barre { display: block; height: 100%; border-radius: var(--rayon-pastille); background: var(--marque-orange-fonce); }
.charge__valeur { flex: none; min-width: 50px; font-weight: 500; font-variant-numeric: tabular-nums; }
.charge__ligne { flex-wrap: wrap; }
.charge__plafond { display: flex; align-items: center; gap: 4px; margin: 0; }
.charge__plafond input { width: 76px; padding: 4px 8px; border: 1px solid var(--trait-controle); border-radius: var(--rayon); font: inherit; }
.charge__relance { display: flex; align-items: center; justify-content: space-between; gap: var(--espace-8); }
/* « Comment l'outil choisit ▾ » : des règles repliées, hors des cartes. */
.comment { padding: 0 2px; }
.comment__resume {
  cursor: pointer;
  list-style: none;
  color: var(--texte-gris);
  font-weight: 500;
}
.comment__resume::-webkit-details-marker { display: none; }
/* 26/10/2026 : le petit triangle en texte (« ▾ » à 10 px) s'affichait comme un point chez Amine : un chevron dessiné en CSS, net partout (vers le bas, vers le haut quand c'est ouvert). */
.comment__resume::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0 3px 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.comment[open] .comment__resume::after { margin-bottom: -2px; transform: rotate(-135deg); }
.comment__regles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--espace-8);
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--texte-gris);
}
.comment__interdit { margin-top: var(--espace-8); font-size: 12px; line-height: 1.4; color: var(--texte-gris); }

/* P13.2 : le titre d'une carte suivi d'une pastille, les boutons des absents, la promo. */
.titre-et-pastille { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-13); }
.tableau--absents th:nth-child(1) { width: 32%; }
.tableau--absents th:nth-child(2) { width: 23%; }
.tableau--absents th:nth-child(3) { width: 31%; }
.colonne-changer { text-align: right; }
.rattrapage__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--espace-13);
  margin-top: var(--espace-34);
}
.rattrapage__droite { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-8); }
.tableau--promo th:nth-child(1) { width: 31%; }
.tableau--promo th:nth-child(2) { width: 20%; }
.tableau--promo th:nth-child(3) { width: 15%; }
.tableau--promo th:nth-child(4) { width: 14%; }
/* Toute la ligne ouvre l'entretien : le lien de la première cellule s'étend sur la ligne. */
.tableau--promo tbody tr { position: relative; }
.tableau--promo tbody tr:hover { background: var(--fond-entete); }
.lien-ligne {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.lien-ligne::after { content: ""; position: absolute; inset: 0; }
.lien-ligne:focus-visible { outline: none; }
.lien-ligne:focus-visible::after { outline: 2px solid var(--action-texte); outline-offset: -2px; }
.texte-ambre { color: var(--statut-ambre); font-weight: 500; }
.comment--haut { padding-top: var(--espace-8); }
.clore { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.clore .bouton { padding-left: 0; }

/* Tablette : les étapes passent deux par deux, les cartes de droite passent sous la grille. */
@media (max-width: 1100px) {
  .colonne-laterale--360 { width: auto; }
  .etapes-serie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .etapes-serie { grid-template-columns: minmax(0, 1fr); }
}

/* 14. Formulaires de l'étudiant (P08, P09) ------------------------------------------------------
   Figma : page « Sprint 2_V3 », cadres P08.1 à P08.9 et P09.1.
   C'est une colonne de 760 px (page--etroite), pensée d'abord pour le téléphone (règle R8).
   Les boutons radio et les cases restent de vrais champs (clavier, lecteur d'écran).
   Seul leur dessin change (un rond, une pastille).
   Le choix fait passe en orange. */

.intro-etape { color: var(--texte-gris); }

/* La colonne des formulaires : 720 px pour le formulaire 1, 860 px pour le formulaire 2, et 41 px sous la barre
   (maquettes P08 et P09). L'accueil de l'étudiant, lui, reste à 760 px. */
.page--formulaire { max-width: calc(720px + 2 * var(--marge-page)); padding-top: 41px; }
.page--formulaire-large { max-width: calc(860px + 2 * var(--marge-page)); padding-top: 41px; }

/* La barre de progression.
   Elle montre « Étape 2 sur 9 · Tes domaines » et la pastille « Enregistré à 14:32 ».
   Dessous, la piste blanche est remplie d'orange foncé.
   Elle est à 50 px sous le titre de la page (34 + 16 dans la maquette).
   Quand un message s'intercale (formulaire clos), c'est lui qui prend cet écart. */
.progression {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.en-tete-page--simple + .progression,
.en-tete-page--simple + .message { margin-top: 38px; }
/* Les onglets « Formulaire 1 | Formulaire 2 » (maquettes P08 et P09.1) : 34 px sous le titre, 50 px au-dessus de la suite. */
.en-tete-page--simple + .sous-onglets { margin-top: 22px; }
.sous-onglets + .progression,
.sous-onglets + .message { margin-top: 38px; }
.progression__ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.progression__etape { font-weight: 500; }
.progression__piste {
  display: block;
  height: 6px;
  border-radius: var(--rayon-pastille);
  background: var(--fond-carte);
  overflow: hidden;
}
.progression__barre {
  display: block;
  height: 100%;
  border-radius: var(--rayon-pastille);
  background: var(--marque-orange-fonce);
}

/* Le formulaire d'une étape : ses blocs sont espacés de 12 px.
   Le <fieldset> qui les entoure sert à tout griser d'un coup (disabled) en lecture seule. */
.formulaire-etape,
.etape-champs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.etape-champs {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
/* Les cartes des formulaires sont plus serrées que celles des autres pages.
   Maquette : 12 px en haut et en bas, 14 px sur les côtés.
   :where() garde la règle aussi légère qu'une seule classe.
   Les listes de la suite (notes, classement, récapitulatif) gardent ainsi leurs propres écarts. */
.etape-champs :where(.carte) {
  gap: 10px;
  padding: 12px 14px;
}

/* Un encart orange clair : la mention RGPD (étapes 1 et 9). */
.encart--accent { background: var(--action-principal-fond); }
.encart__titre--accent { color: var(--action-texte); }

/* Les lignes « libellé | saisie | précision » (étapes 1, 6, 7).
   Le libellé fait 240 px. La saisie prend le reste de la ligne. */
.lignes-champs { gap: 10px; padding: 12px; }
.lignes-champs--sans-cadre { padding: 0; }
.ligne-champ {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px var(--espace-8);
}
.ligne-champ__libelle { color: var(--texte-encre); }
.ligne-champ__saisie { grid-column: 2; min-width: 0; }
/* Sans précision à droite (« pré-rempli »), la saisie va jusqu'au bord de la carte (maquette P08.1). */
.ligne-champ__saisie:last-child { grid-column: 2 / -1; }
/* Étapes 6 et 7 : le libellé est plus large, les saisies commencent à 268 px du bord de la carte. */
.lignes-champs--260 .ligne-champ,
.ligne-champ--260 { grid-template-columns: 260px minmax(0, 1fr) auto; }
.ligne-champ__note {
  font-size: 12px;
  line-height: 1.4;
  color: var(--texte-gris);
}
/* :where() ne compte pas dans la priorité des règles.
   La saisie grisée (.saisie-lecture, plus bas) l'emporte donc sans surenchère de sélecteurs. */
.ligne-champ input:where(:not([type="checkbox"]):not([type="radio"])),
.ligne-champ select,
.ligne-champ textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font: 400 14px/1.5 var(--police);
}
/* display: block : sans cela, un petit vide se glisse sous la zone de texte et la ligne grandit de 5 px. */
.ligne-champ textarea { display: block; min-height: 37px; resize: none; field-sizing: content; }
.ligne-champ select {
  appearance: none;
  padding-right: 30px;
  background: var(--fond-carte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234F4F4E' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer;
}
/* Un champ grisé : celui d'une valeur connue, ou tous les champs en lecture seule. */
.ligne-champ .saisie-lecture,
.etape-champs:disabled .ligne-champ input,
.etape-champs:disabled .ligne-champ select,
.etape-champs:disabled .ligne-champ textarea {
  background-color: var(--fond-entete);
  color: var(--texte-gris);
}
.ligne-champ--erreur input,
.ligne-champ--erreur select,
.ligne-champ--erreur textarea { border-color: var(--statut-rouge); }
/* Avec un message d'erreur sous la saisie, le libellé reste en face de la saisie. */
.ligne-champ--erreur { align-items: start; }
.ligne-champ--erreur .ligne-champ__libelle { padding-top: 9px; }

/* Étapes 2 et 3 : une ligne par domaine, avec cinq ronds numérotés (lignes serrées, sans filet : maquette). */
.liste-notes { padding: 12px; }
.ligne-note,
.ligne-choix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
}
.ligne-note__libelle,
.ligne-choix__libelle { flex: 1 1 180px; min-width: 0; }
.ligne-note .errorlist,
.ligne-choix .errorlist { flex-basis: 100%; }

/* L'échelle de 1 à 5. */
.echelle {
  display: flex;
  gap: 4px;
}
.echelle__point,
.choix-segmente__option,
.choix-interet__option { position: relative; }
/* Le vrai bouton radio reste là (clavier, lecteur d'écran), sans être dessiné. */
.echelle__point input,
.choix-segmente__option input,
.choix-interet__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
/* Un rond de l'échelle. */
.echelle__rond {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon-pastille);
  background: var(--fond-carte);
  color: var(--texte-gris);
  font-size: 12px;
  cursor: pointer;
}
.echelle__rond:hover { border-color: var(--action-principal); }
/* Le rond choisi est orange. */
.echelle__point input:checked + .echelle__rond {
  border-color: var(--action-principal);
  background: var(--action-principal);
  color: var(--action-texte-sur-principal);
  font-weight: 600;
}
.echelle__point input:focus-visible + .echelle__rond,
.choix-segmente__option input:focus-visible + span,
.choix-interet__option input:focus-visible ~ .choix-interet__chiffre {
  outline: 2px solid var(--action-texte);
  outline-offset: 2px;
}
.ligne-note--erreur .echelle__rond { border-color: var(--statut-rouge); }

/* Oui / Non, pourcentages : des pastilles. Celle qui est choisie est orange (étape 7). */
/* Dans la maquette, la pastille choisie n'a pas de trait : elle est donc plus petite de 2 px que les autres. */
.choix-segmente {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.choix-segmente__option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon-pastille);
  background: var(--fond-carte);
  color: var(--texte-gris);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}
/* Les pourcentages (0 % à 100 %) : des pastilles un peu plus serrées. */
.choix-segmente--court .choix-segmente__option span { padding: 4px 10px; }
.choix-segmente__option span:hover { border-color: var(--action-principal); }
.choix-segmente__option input:checked + span {
  border-width: 0;
  background: var(--action-principal);
  color: var(--action-texte-sur-principal);
}
.ligne-choix--erreur .choix-segmente__option span { border-color: var(--statut-rouge); }
/* Étape 7 : trois cartes de 12 px de marge, avec 10 px entre le titre et les lignes (maquette P08.7). */
.groupe-choix { gap: 10px; padding: 12px; }

/* Étape 4 : les compétences par domaine, avec deux colonnes de cases (maquette P08.4).
   La carte a 12 px de marge, 10 px entre ses blocs. Les colonnes « Acquise » et « À développer » font 70 et 100 px. */
.grille-competences { gap: 10px; padding: 12px; }
.grille-competences__entete,
.competence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 100px;
  align-items: center;
  gap: 8px;
}
.grille-competences__entete {
  color: var(--texte-gris);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}
.grille-competences__entete span:not(:first-child),
.competence__case { justify-self: center; }
/* Le titre d'un groupe repliable : un « + » ou un « − » devant le nom. */
.groupe-competences__titre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--rayon);
  background: var(--fond-entete);
  cursor: pointer;
  list-style: none;
}
.groupe-competences__titre::-webkit-details-marker { display: none; }
.groupe-competences__titre::before { content: "+"; color: var(--texte-gris); width: 7px; }
.groupe-competences[open] > .groupe-competences__titre::before { content: "−"; }
.groupe-competences__nom { flex: 1; font-weight: 500; }
/* Une compétence : le texte est décalé de 22 px, et 10 px la séparent de la ligne précédente. */
.competence { margin-top: 10px; padding-left: 22px; }
.competence__case { display: flex; justify-content: center; }
.competence__case input {
  display: block;       /* sans cela, un petit vide sous la case agrandit la ligne de 2 px */
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--action-principal);
}

/* Étape 5 : le compteur, le classement, la synthèse. */
.compteur-voeux {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--rayon);
  background: var(--statut-ambre-fond);
}
.compteur-voeux__libelle { font-weight: 500; }
.compteur-voeux__valeur {
  color: var(--statut-ambre);
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.liste-classement { gap: 12px; padding: 14px; }
.liste-classement--simple { padding: 0; }
.ligne-classement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
}
.ligne-classement > label { flex: 1; min-width: 0; }
.ligne-classement .errorlist { flex-basis: 100%; }
/* Le rang : une petite liste dessinée en puce, sans flèche (maquette P08.5).
   Le 1er et le 2e choix sont en orange clair, les suivants en gris clair, « - » quand il n'y a pas de rang. */
.rang {
  appearance: none;
  field-sizing: content;       /* la largeur suit le texte choisi : « 1er », « 2e », « - » (maquette P08.5) */
  padding: 3px 10px;
  border: 0;
  border-radius: var(--rayon);
  background: var(--fond-entete);
  color: var(--texte-gris);
  font: 400 14px/21px var(--police);
  text-align: center;
  text-align-last: center;
  cursor: pointer;
}
.rang:hover { box-shadow: inset 0 0 0 1px var(--trait-defaut); }
.rang:has(option[value="1"]:checked),
.rang:has(option[value="2"]:checked) {
  background-color: var(--action-principal-fond);
  color: var(--action-texte);
}
.ligne-classement--erreur .rang { box-shadow: inset 0 0 0 1px var(--statut-rouge); }
/* La synthèse en clair : « Ton 1er choix : MSI · ton 2e choix : MSR ». */
.synthese {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border-radius: var(--rayon);
  background: var(--action-principal-fond);
}
.synthese__texte {
  color: var(--action-texte);
  font-weight: 500;
}
/* La phrase du bas est en noir dans la maquette ; l'alerte garde son rouge. */
.synthese .legende:not(.legende--erreur) { color: var(--texte-encre); }

/* Étape 6 : une seule carte, la dernière expérience. */
.bloc-experience { gap: 10px; padding: 12px; }
.bloc-experience .lignes-champs { display: flex; flex-direction: column; gap: 10px; }

/* Étape 8 : le CV déposé, et la zone de dépôt.
   Le champ fichier est posé par-dessus toute la zone, invisible.
   On peut y glisser un fichier, ou cliquer n'importe où pour en choisir un. */
.depot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fichier-actuel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--rayon);
  background: var(--fond-entete);
}
.fichier-actuel__texte { flex: 1; min-width: 0; }
.fichier-actuel__nom {
  font-weight: 500;
  overflow-wrap: anywhere;
}
/* Le nom du fichier est un lien, mais il est noir dans la maquette (P08.8). */
.fichier-actuel__nom .lien-discret { color: var(--texte-encre); }
/* Le trait en pointillés est un petit dessin SVG (6 px de trait, 4 px de vide, 1,5 px d'épaisseur),
   parce que CSS ne règle pas la longueur des pointillés.
   Il y en a un par couleur : gris, orange au survol, rouge en cas d'erreur. */
.depot__zone {
  --pointilles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect x='0.75' y='0.75' width='calc(100%25 - 1.5px)' height='calc(100%25 - 1.5px)' rx='12.25' fill='none' stroke='%23bfbfbd' stroke-width='1.5' stroke-dasharray='6 4'/%3E%3C/svg%3E");
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 16px 19px;
  border-radius: var(--rayon-conteneur);
  background: var(--pointilles) no-repeat center / 100% 100%;
  text-align: center;
}
.depot__zone:hover,
.depot__zone:focus-within {
  --pointilles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect x='0.75' y='0.75' width='calc(100%25 - 1.5px)' height='calc(100%25 - 1.5px)' rx='12.25' fill='none' stroke='%23f29400' stroke-width='1.5' stroke-dasharray='6 4'/%3E%3C/svg%3E");
}
.depot__zone--erreur {
  --pointilles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect x='0.75' y='0.75' width='calc(100%25 - 1.5px)' height='calc(100%25 - 1.5px)' rx='12.25' fill='none' stroke='%238c1b3a' stroke-width='1.5' stroke-dasharray='6 4'/%3E%3C/svg%3E");
}
.depot__titre { color: var(--texte-gris); font-weight: 500; }
.depot__zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.depot--simple input[type="file"] { font: 400 14px/1.5 var(--police); }
/* Un petit bouton : « Retirer » (maquettes P08.8 et P02.4). Le texte est en graisse normale. */
.bouton--petit { padding: 5px 10px; font-size: 12px; font-weight: 400; }
.bouton--brun { color: var(--action-texte); }

/* La carte du CV de l'accueil de l'étudiant : une carte bordée, avec la zone en pointillés. */
/* Un bouton orange clair, comme « Choisir un fichier » de la maquette (146 × 37 px, sans trait). */
.bouton--clair {
  padding: 8px 16px;
  background: var(--action-principal-fond);
  color: var(--action-texte);
  font-weight: 500;
  line-height: 1.5;
}
/* Les cartes de l'accueil étudiant : 12 px entre les boutons (maquettes P02.3, P02.4 et P02.6). */
.carte--compacte .actions { gap: 12px; }

/* « Mes réponses » (maquettes P02.6 et P02.7) : une carte avec un titre, puis des lignes.
   Chaque ligne a son nom en petit gris, sa réponse dessous, et un filet gris dessous, sauf la dernière.
   La carte des notes (P02.7) laisse 13 px entre ses blocs ; celle du formulaire 1 n'en laisse pas. */
.carte--lignes { gap: 0; }
.carte--lignes:has(.rebours) { gap: 13px; }
.resume { display: flex; flex-direction: column; }
.resume__ligne {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 0;
  border-bottom: 1px solid #dbdbd6;
}
.resume__ligne:last-child { border-bottom: 0; }
.resume__titre { font-size: 12px; line-height: 1.4; color: var(--texte-gris); }

/* Le projet de l'étudiant (carte « Mon projet ») : son nom, sa description, ses domaines. */
.projet-affiche {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 0;
  border-bottom: 1px solid var(--trait-discret);
}
.projet-affiche__nom { font-weight: 400; }
.projet-affiche__description { color: var(--texte-gris); }

/* Étape 9 : le récapitulatif. Chaque ligne a un filet gris dessous, même la dernière (maquette P08.9). */
.recap { gap: 8px; padding: 12px 14px; }
.recap__ligne {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--trait-defaut);
}
.recap__texte {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.recap__titre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--texte-gris);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}
.recap__resume { overflow-wrap: anywhere; }
/* « Modifier » : un bouton sans trait de 37 px de haut (maquette P08.9). */
.lien-modifier {
  flex: none;
  padding: 10px 18px;
  color: var(--texte-encre);
  font-weight: 600;
  text-decoration: none;
}
.lien-modifier:hover { text-decoration: underline; }

/* Le bas d'une étape : « Précédent » à gauche, « Suivant » à droite. */
.navigation-etapes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
/* Le bouton d'envoi prend toute la largeur, avec sa phrase en noir dessous (maquette P08.9). */
.envoi {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.envoi .legende { color: var(--texte-encre); }
.bouton--large { width: 100%; }
/* La mention « Tes données » : un encart orange clair plus serré (maquette P08.9). */
.encart--donnees { padding: 10px 12px; }

/* Les questions ajoutées par l'admin (P23), à la fin de leur étape. */
.liste-questions { gap: 18px; }
.question__libelle { font-weight: 500; }
.cases--colonne { flex-direction: column; align-items: flex-start; gap: 6px; }

/* P09 : une carte par projet, avec quatre grandes réponses côte à côte.
   En haut : le nom du projet, et « Voir la fiche projet » à droite (maquette P09). */
.projet-voeu { gap: 8px; }
.projet-voeu__entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.projet-voeu__entete .titre-section { flex: 1; min-width: 0; overflow-wrap: anywhere; }
/* La fiche d'un projet (fenêtre et page à part) : des rubriques en deux colonnes. */
.fiche-projet {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
}
.fiche-projet dt { color: var(--texte-gris); }
.fiche-projet dd { margin: 0; }
.projet-voeu--erreur { outline: 1px solid var(--statut-rouge); }
.choix-interet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.choix-interet__option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-gris);
  text-align: center;
  cursor: pointer;
}
.choix-interet__option:hover { border-color: var(--action-principal); }
.choix-interet__chiffre { font-size: 14px; line-height: 1.5; font-weight: 500; }
.choix-interet__mot { font-size: 12px; line-height: 1.4; }
/* La réponse choisie est orange, et son texte noir (les graisses ne changent pas). */
.choix-interet__option:has(input:checked) {
  border-color: var(--action-principal);
  background: var(--action-principal);
  color: var(--action-texte-sur-principal);
}
.choix-interet__option:has(input:focus-visible) {
  outline: 2px solid var(--action-texte);
  outline-offset: 2px;
}
/* En lecture seule : le curseur ne propose plus de cliquer. */
.etape-champs:disabled .echelle__rond,
.etape-champs:disabled .choix-segmente__option span,
.etape-champs:disabled .choix-interet__option { cursor: default; }


/* P10 : le suivi des réponses (maquette « P10 · Suivi des réponses & relances »).
   Le taux de réponse : le chiffre à gauche, la barre en trois couleurs au milieu, le pourcentage à droite. */
.taux {
  display: flex;
  align-items: center;
  gap: 24px;
}
.taux__chiffre { flex: none; display: flex; flex-direction: column; gap: 2px; }
.taux__legende { font-weight: 500; }
.taux__barre { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
/* La piste grise, remplie par le vert (envoyé) puis l'ambre foncé (brouillon). Le reste est « rien commencé ». */
.taux__piste {
  display: flex;
  height: 14px;
  overflow: hidden;
  border-radius: var(--rayon);
  background: var(--statut-gris-fond);
}
.taux__segment { display: block; height: 100%; }
.taux__segment--envoye { background: var(--statut-vert); }
.taux__segment--brouillon { background: var(--statut-ambre); }
.taux__etats { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.taux__pourcentage { flex: none; }

/* Le tableau « À relancer » : un nom et une adresse, une pastille, trois chiffres, un bouton. */
/* Six colonnes aux largeurs de la maquette (190 px pour « Où il en est » : la pastille d'un brouillon y tient). */
.tableau--suivi { table-layout: fixed; width: 100%; }
.tableau--suivi th:nth-child(1) { width: 180px; }
.tableau--suivi th:nth-child(2) { width: 190px; }
.tableau--suivi th:nth-child(3) { width: 100px; }
.tableau--suivi th:nth-child(4) { width: 80px; }
.tableau--suivi th:nth-child(5) { width: 170px; }
.tableau--suivi td { vertical-align: middle; overflow-wrap: anywhere; }
/* Le texte sous le titre de P10 se coupe à 820 px, comme dans la maquette. */
.texte-820 { max-width: 820px; }
.colonne-laterale--430 { width: 430px; flex: none; }

/* « Dernières modifications » : des lignes de deux textes, 21 px entre elles, un filet gris sous chacune. */
.derniers {
  display: flex;
  flex-direction: column;
  gap: var(--espace-21);
  margin: 0;
  padding: 0;
  list-style: none;
}
.derniers__ligne {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--trait-defaut);
}
.derniers__ligne:last-child { border-bottom: 0; }

/* 15. Pictogrammes (Figma : composant « Icône ») ------------------------------------------------
   Il y a deux façons de les poser.
     - Dans un gabarit : la balise {% icone "accueil" %} (sirh/templatetags/icones.py).
       Elle écrit un petit <svg class="icone"> qui pointe vers static/img/icones.svg.
       La couleur est celle du texte autour.
       Il y a trois tailles, chacune avec l'épaisseur de trait dessinée dans Figma :
       1,3 px à 12 px, 1,47 px à 16 px, 1,67 px à 20 px.
       Le dessin fait 16 unités de large : d'où les valeurs ci-dessous.
     - Dans une pastille : rien à écrire.
       La feuille de style pose le pictogramme de son ton (::before).
       C'est un masque sur la couleur du texte. */

.icone {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4667;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icone--12 { width: 12px; height: 12px; stroke-width: 1.7333; }
.icone--20 { width: 20px; height: 20px; stroke-width: 1.3333; }

/* Le pictogramme d'une pastille, posé avant son texte. */
.pastille--vert::before,
.pastille--ambre::before,
.pastille--rouge::before,
.pastille--gris::before,
.pastille--bleu::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background-color: currentColor;
  -webkit-mask: var(--picto) center / 12px 12px no-repeat;
  mask: var(--picto) center / 12px 12px no-repeat;
}
.pastille--vert  { --picto: url("../img/pictos/check.svg"); }
.pastille--ambre { --picto: url("../img/pictos/alerte.svg"); }
.pastille--rouge { --picto: url("../img/pictos/croix.svg"); }
.pastille--gris  { --picto: url("../img/pictos/tiret.svg"); }
.pastille--bleu  { --picto: url("../img/pictos/fleche.svg"); }
.pastille--sans-picto::before { content: none; }


/* 16. Petits écrans --------------------------------------------------------------------------
   Les maquettes sont dessinées pour un ordinateur (1440 px).
   L'adaptation à la tablette et au téléphone se fait ici (architecture-ecrans.md, §10). */

/* Écran moyen (moins de 1280 px) : les onglets peuvent passer à la ligne, aucun n'est caché. */
@media (max-width: 1279px) {
  .barre-nav__onglets { flex: 0 1 auto; flex-wrap: wrap; }
}

/* 26/10/2026 : sur un écran moyen (901 à 1499 px), les onglets prennent presque toute la barre : le nom de la personne s'y affichait coupé
   (« A… », « Cd… »). Il n'y reste que l'avatar ; le nom et le rôle sont dans l'infobulle (title). */
@media (min-width: 901px) and (max-width: 1499px) {
  /* Caché à l'œil mais lu par les lecteurs d'écran (même technique que .invisible). */
  .utilisateur__qui { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); }
  .utilisateur { padding-right: 6px; }
}

/* Portable courant (1024 à 1200 px) : marges et onglets resserrés, pour que la barre de navigation tienne sur une ligne. */
@media (max-width: 1200px) {
  :root { --marge-page: 32px; }
  :root { --marge-barre: 24px; }
  .barre-nav__marque { gap: 12px; padding-right: 4px; }
}

/* Tablette : les colonnes passent l'une sous l'autre. */
@media (max-width: 1100px) {
  .deux-colonnes { flex-direction: column; align-items: stretch; }
  .colonne-laterale,
  .colonne-laterale--etroite,
  .colonne-laterale--420,
  .deux-colonnes--fixe-gauche > :first-child { width: auto; }
  .frise { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Petite tablette et grand téléphone. */
@media (max-width: 900px) {
  :root { --marge-page: 16px; --marge-barre: 16px; }

  /* La barre de navigation se replie derrière « Menu » (static/js/sirh.js). */
  .barre-nav__interieur { flex-wrap: wrap; }
  .barre-nav__marque::after { content: none; }
  .barre-nav__menu {
    display: inline-flex;
    padding: 10px 16px;
    border: 1px solid var(--nav-texte-inactif);
    border-radius: var(--rayon);
    background: transparent;
    color: var(--texte-inverse);
    font: 600 14px/1.2 var(--police);
    cursor: pointer;
  }
  .barre-nav__onglets,
  .barre-nav__deconnexion {
    display: none;
    flex-basis: 100%;
  }
  .barre-nav--ouverte .barre-nav__onglets {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    order: 3;
    padding-top: 8px;
  }
  .barre-nav--ouverte .barre-nav__deconnexion {
    display: block;
    order: 4;
  }
  /* Dans le menu replié, la déconnexion garde son mot. */
  .onglet-nav__mot {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
  .onglet-nav {
    width: 100%;
    border-radius: var(--rayon);
  }

  .page { padding-top: 24px; padding-bottom: 40px; gap: var(--espace-21); }
  .titre-page { font-size: 28px; line-height: 34px; }
  .en-tete-page { flex-direction: column; align-items: stretch; }
  .indicateurs { flex-wrap: wrap; }
  .indicateur { flex: 1 1 calc(50% - 8px); }
  .bandeau { flex-wrap: wrap; }
  .sous-onglets { column-gap: 20px; }
}

/* Téléphone. */
@media (max-width: 600px) {
  .frise { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .indicateur { flex-basis: 100%; }
  .alerte { flex-wrap: wrap; }
  .alerte__texte { flex-basis: 100%; order: 2; }
  .alerte .bouton { order: 3; }
  .bandeau { align-items: flex-start; }
  .bandeau__texte { flex-basis: 100%; }
  .grille-deux { grid-template-columns: minmax(0, 1fr); }
  .carte__ligne { flex-direction: column; align-items: stretch; }
  /* 16 px au moins : sinon le téléphone zoome sur le champ pendant la saisie. */
  .champ input:not([type="checkbox"]):not([type="radio"]),
  .champ select,
  .champ textarea,
  .saisie-nombre { font-size: 16px; }

  .carte-accueil {
    margin-top: 24px;
    padding: 28px 20px 32px;
  }
  .page-carte__pied { padding-bottom: 24px; font-size: 16px; line-height: 1.4; }

  /* Formulaires (P08, P09) :
     - le libellé est au-dessus de sa saisie ;
     - les ronds et les pastilles sont sous leur question ;
     - il y a deux réponses par ligne au formulaire 2. */
  .ligne-champ { grid-template-columns: minmax(0, 1fr); }
  .ligne-champ__saisie { grid-column: 1; }
  .ligne-champ__note { display: none; }
  .ligne-champ input:where(:not([type="checkbox"]):not([type="radio"])),
  .ligne-champ select,
  .ligne-champ textarea { font-size: 16px; }
  .echelle__rond { width: 38px; height: 38px; font-size: 14px; }
  .grille-competences__entete,
  .competence { grid-template-columns: minmax(0, 1fr) 64px 72px; }
  .choix-interet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recap__ligne { align-items: flex-start; }
  /* 16 px au moins : sinon le téléphone zoome sur le champ pendant la saisie. */
  .champ-carte input { font-size: 16px; }
}

/* Pour les personnes qui préfèrent moins d'animations. */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}


/* P05.3 et P06.3 : Importer des données (Figma : « P05.3 · Importer le catalogue de projets », « P06.3 · Importer la liste de la promo »).
   Le fichier déposé, les quatre chiffres de l'analyse, le rapport de contrôle, puis les deux boutons. */
.import-fichier {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--trait-defaut);
}
.import-fichier__texte { display: flex; flex-direction: column; gap: 4px; }
.import-chiffres {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 4px 8px;
}
.import-chiffres > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.import-chiffres__valeur { margin: 0; font: 600 28px/34px var(--police); }
.import-chiffres__libelle { margin: 0; font: 400 14px/17px var(--police); }
/* Chaque chiffre a la couleur de son sens : prêtes (bleu-vert), à corriger (ambre), refusées (framboise). */
.import-chiffres--pret { color: var(--statut-vert); }
.import-chiffres--corriger { color: var(--statut-ambre); }
.import-chiffres--refus { color: var(--statut-rouge); }
/* Le rapport : les largeurs de la maquette, et la valeur lue garde ses espaces. */
.tableau--rapport { min-width: 900px; }
.tableau--rapport th:nth-child(1) { width: 82px; }
.tableau--rapport th:nth-child(2) { width: 162px; }
.tableau--rapport th:nth-child(3) { width: 272px; }
.tableau--rapport th:nth-child(5) { width: 212px; }
.tableau--rapport th:nth-child(6) { width: 108px; }
.valeur-lue { white-space: pre-wrap; }
.decision--refus { color: var(--statut-rouge); }
.import-actions { margin-top: var(--espace-8); }
.import-actions form { margin: 0; }
/* P16 (Figma « Sprint 3_V3 ») : la carte du pourcentage d'ETP du CdP, sous les onglets : le titre à gauche, le nombre à droite. */
/* 05/11/2026 : « .carte » (plus bas dans le fichier) pose flex-direction: column et centrait le titre au-dessus de la valeur : on précise « .carte.carte-etp » pour garder la ligne. */
.carte.carte-etp { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.carte-etp .titre-section { margin: 0; }
.carte-etp__valeur { margin: 0; font: 600 24px/30px var(--police); }
/* P05.3 : choisir les colonnes du fichier (29/10/2026). Les groupes de champs, la case du semestre, l'aperçu de ce qui sera lu. */
.import-colonnes { display: flex; flex-direction: column; gap: 16px; }
.import-colonnes .sur-titre { margin: 16px 0 8px; }
.import-colonnes .legende { max-width: none; }
.import-colonnes__groupe { text-transform: none; }
.import-colonnes__case { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.import-colonnes input[type="number"] { max-width: 120px; }
/* L'aperçu a autant de colonnes que de champs choisis (jusqu'à dix-sept) : il prend la largeur de ses mots et défile dans son cadre,
   au lieu de couper « Problématique » ou « Proposition commerciale » en deux. Un long texte passe à la ligne entre deux mots. */
.import-colonnes .tableau--apercu { table-layout: auto; width: max-content; min-width: 100%; }
.import-colonnes .tableau--apercu th { white-space: nowrap; overflow-wrap: normal; vertical-align: top; padding-right: 18px; }
.import-colonnes .tableau--apercu td { overflow-wrap: normal; vertical-align: top; min-width: 80px; max-width: 280px; padding-right: 18px; }
/* Le lien d'une ligne du rapport (« Modifier », « Voir la fiche ») : du texte simple, pas un bouton. */
.lien-rapport { color: var(--texte-encre); text-decoration: none; }
.lien-rapport:hover { text-decoration: underline; }
/* Un sous-titre d'en-tête sur toute la largeur (P06.2 : il tient sur une ligne). */
.en-tete-page__titres--large p { max-width: none; }


/* P12 : Mes disponibilités ------------------------------------------------------
   Figma : « P12 · Mes disponibilités : interviewer ». Une case de 160 x 36 px par créneau :
   bleu-vert avec une coche quand la personne est disponible, framboise avec une croix et « Indisponible » sinon.
   Les couleurs sont celles de la grille de P13 (--statut-vert, --statut-rouge). */
.dispos__legende {
  display: flex;
  flex-wrap: wrap;
  gap: var(--espace-13) var(--espace-21);
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 12px;
}
.dispos__legende li { display: flex; align-items: center; gap: var(--espace-8); }
/* La colonne du résumé de P12 fait 360 px dans la maquette (340 px ailleurs). */
.colonne-laterale--dispos { width: 360px; }
.dispos__outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--espace-13); }
/* Les deux pastilles de la légende ont la taille d'une case (110 x 36 px dans la maquette). */
.dispos__legende .legende-place { box-sizing: border-box; width: 110px; height: 36px; padding: 0 10px; }
.dispos__defilement { overflow-x: auto; }
.dispos__grille { border-collapse: separate; border-spacing: 8px 6px; margin-left: -8px; }
.dispos__coin { width: 56px; }
.dispos__jour { width: 160px; text-align: left; font-size: 12px; font-weight: 600; color: var(--texte-gris); padding: 0 0 4px; }
.dispos__heure { text-align: left; font-size: 12px; font-weight: 400; color: var(--texte-gris); }
.dispos__pause { text-align: left; font-size: 12px; font-weight: 400; color: var(--texte-gris); padding: 4px 0; }
.dispo {
  --case-fond: var(--statut-vert-fond);
  --case-trait: var(--statut-vert);
  --case-texte: var(--statut-vert);
  display: flex;
  align-items: center;
  gap: 6px;
  width: 160px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--case-trait);
  border-radius: var(--rayon);
  background: var(--case-fond);
  color: var(--case-texte);
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  user-select: none;
}
.dispo--indisponible {
  --case-fond: var(--statut-rouge-fond);
  --case-trait: var(--statut-rouge);
  --case-texte: var(--statut-rouge);
}
.dispo--figee { cursor: default; }
.dispo:focus-visible { outline: 2px solid var(--texte-encre); outline-offset: 2px; }
/* Le résumé : trois chiffres en orange foncé, chacun avec sa phrase. */
.resume-dispos__ligne { display: flex; align-items: baseline; gap: 10px; margin: 0 0 var(--espace-13); font-size: 14px; }
.resume-dispos__valeur { font-size: 21px; font-weight: 600; color: var(--action-texte); font-variant-numeric: tabular-nums; }
.pourquoi-valider { padding: 0 var(--espace-8); font-size: 14px; }
.pourquoi-valider summary { cursor: pointer; color: var(--texte-gris); }
.pourquoi-valider p { margin: var(--espace-13) 0 0; }

/* La carte « Mon agenda » de l'accueil des CdP : deux étapes numérotées (maquette du 13/10/2026). */
.etapes-agenda { display: flex; flex-direction: column; gap: var(--espace-21); margin: 0; padding: 0; list-style: none; }
.etape-agenda { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--espace-13); }
.etape-agenda__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--action-principal-fond);
  color: var(--action-texte);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.etape-agenda__corps { display: flex; flex-direction: column; gap: var(--espace-8); min-width: 0; }
.etape-agenda__titre { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: var(--espace-8); }
.etape-agenda__corps .legende { margin: 0; }



/* P05.2 : la fiche d'un projet (maquette « Sprint 2_V3 »).
   Les champs sont rangés en lignes de 2 ou 3, avec 21 px entre deux champs. */
.ligne-champs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--espace-21);
}
.ligne-champs--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Les deux cases « À présenter » et « À affecter », côte à côte (34 px entre elles). */
.ligne-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px var(--espace-34);
}
/* Les cases des domaines : elles passent à la ligne, 8 px entre deux lignes. */
.cases--domaines { gap: 8px 21px; }

/* La carte « Semestres de l'affaire » : un projet par semestre. Le projet ouvert est sur fond orange clair. */
.semestres-affaire {
  display: flex;
  flex-direction: column;
  gap: var(--espace-21);
  padding: 0;
  margin: 0;
  list-style: none;
}
.semestre-affaire {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 13px;
  border-radius: var(--rayon);
  background: var(--fond-entete);
  font-size: 14px;
  line-height: 1.5;
}
.semestre-affaire--courant { background: var(--action-principal-fond); font-weight: 600; }
.semestre-affaire__texte { min-width: 0; color: inherit; text-decoration: none; }
a.semestre-affaire__texte:hover { text-decoration: underline; }


/* 17. P11 : Répartition & tendances (Figma : page « Sprint 3_V1 », cadre « P11 · Répartition & tendances ») ------------
   Un tableau de bord : des chiffres, un tableau, des barres empilées (les cinq niveaux d'intérêt), des listes courtes.
   Les cinq niveaux vont du clair au foncé : orange très pâle, pâle, orange ICAM, orange foncé, brun. */

/* Le tableau « Vœux et places » : la première colonne nomme la ligne, les autres sont des chiffres. */
.tableau--repartition { min-width: 0; }
.tableau--repartition tbody th {
  padding: 10px 6px;
  background: transparent;
  border-bottom: 1px solid var(--trait-defaut);
  color: var(--texte-encre);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}
.tableau--repartition tbody tr:last-child th { border-bottom: 0; }
.tableau--repartition th:first-child, .tableau--repartition td:first-child { padding-left: 14px; }
.tableau--repartition td { font-variant-numeric: tabular-nums; }

/* Les profils à surveiller : un nom, et son seul domaine fort. */
.profils {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.profils li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* La légende des niveaux : un carré de couleur, puis le texte. */
.niveaux-legende {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.4;
  color: var(--texte-gris);
}
.niveaux-legende li { display: inline-flex; align-items: center; gap: 6px; }
.niveau-carre {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.niveau-carre--1 { background: #ffe9c2; }
.niveau-carre--2 { background: #fbc96f; }
.niveau-carre--3 { background: #f29400; }
.niveau-carre--4 { background: #b86a00; }
.niveau-carre--5 { background: #6b3f00; }

/* Une ligne par domaine : le nom, la barre (518 px, tous les domaines ont la même longueur), le nombre d'intéressés. */
.interets {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.interet {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  align-items: center;
  column-gap: 13px;
}
.interet__nom { overflow-wrap: anywhere; }
.interet__total { font-variant-numeric: tabular-nums; }
.interet__barre {
  display: flex;
  height: 18px;
  border-radius: var(--rayon-pastille);
  background: var(--fond-entete);
}
/* Un segment : sa largeur est la part du niveau. Les deux bouts de la barre sont arrondis. */
.interet__segment {
  position: relative;
  display: block;
  height: 100%;
  box-shadow: inset -1px 0 0 var(--fond-carte);
}
/* Le nombre d'étudiants du niveau, écrit dans le segment (29/10/2026, Figma « Sprint 3_V3 ») : sombre sur les niveaux clairs, blanc sur les foncés. */
.interet__nombre {
  display: block;
  height: 100%;
  overflow: hidden;
  font: 600 11px/18px var(--police);
  text-align: center;
  white-space: nowrap;
  color: var(--texte-encre);
  font-variant-numeric: tabular-nums;
}
.niveau-carre--4 .interet__nombre, .niveau-carre--5 .interet__nombre { color: #fff; }
.interet__segment:first-child { border-radius: var(--rayon-pastille) 0 0 var(--rayon-pastille); }
.interet__segment:last-child { border-radius: 0 var(--rayon-pastille) var(--rayon-pastille) 0; box-shadow: none; }
.interet__segment:only-child { border-radius: var(--rayon-pastille); }
/* L'info-bulle d'un segment : le nombre d'étudiants et leurs noms, au survol ou au clavier. */
.interet__info {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  z-index: 20;
  width: max-content;
  max-width: 280px;
  padding: 8px 10px;
  border-radius: var(--rayon);
  background: var(--texte-encre);
  color: var(--texte-inverse);
  font-size: 12px;
  line-height: 1.4;
  transform: translateX(-50%);
}
.interet__segment:hover .interet__info,
.interet__segment:focus-visible .interet__info { display: block; }

/* La comparaison avec l'année d'avant : quatre blocs de même largeur. */
.comparaison {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--espace-21);
  padding: 0 var(--espace-13);
}
.comparaison__bloc {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (max-width: 900px) {
  .comparaison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .interet { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
}


/* 18. P16 : Vœux CdP (Figma : page « Sprint 3_V1 », cadre « P16 · Vœux CdP ») -------------------------------------------
   Le CdP vote sur les projets. Quatre boutons par projet : celui qu'il a choisi est orange.
   La liste est à gauche (960 px), l'avancement à droite (340 px). */

.corps-voeux {
  display: flex;
  flex-direction: column;
  gap: var(--espace-34);
}
.deux-colonnes--voeux { gap: 20px; }
.colonne-laterale--340 { width: 340px; }
.colonne-voeux {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* Les quatre réponses d'un projet : des boutons bordés, celui du CdP est orange. */
.tableau--voeux { min-width: 760px; }
.votes { margin: 0; }
.votes__boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vote {
  height: 33px;
  padding: 0 12px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-gris);
  font: 400 14px/1 var(--police);
  white-space: nowrap;
  cursor: pointer;
}
.vote:hover:not(:disabled) { background: var(--fond-entete); }
.vote:disabled { cursor: not-allowed; }
.vote--choisi,
.vote--choisi:hover:not(:disabled) {
  border-color: var(--action-principal);
  background: var(--action-principal);
  color: var(--action-texte-sur-principal);
  font-weight: 600;
}
/* Le coup de cœur : un cœur vide, rempli en brun quand c'est celui du CdP. */
.cellule-coeur { text-align: center; }
.cellule-coeur form { margin: 0; }
.coeur {
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--texte-gris);
  line-height: 0;
  cursor: pointer;
}
.coeur:hover:not(:disabled) { color: var(--action-texte); }
.coeur:disabled { cursor: not-allowed; }
.coeur--choisi { color: #6b3f00; }
.coeur--choisi .icone { fill: currentColor; }
/* L'avancement : « 17 / 26 », la barre, et ce qui reste à voter. */
.avancement {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avancement__chiffre {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.avancement__piste {
  flex: 1;
  height: 8px;
  border-radius: var(--rayon-pastille);
  background: var(--statut-gris-fond);
  overflow: hidden;
}
.avancement__barre {
  display: block;
  height: 100%;
  border-radius: var(--rayon-pastille);
  background: var(--marque-orange-fonce);
}
/* « Mes votes » : une barre par réponse, la plus donnée est la plus longue. */
.mes-votes {
  display: flex;
  flex-direction: column;
  gap: 21px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mes-votes li {
  display: grid;
  grid-template-columns: 128px 111px minmax(0, 1fr);
  align-items: center;
}
.mes-votes__piste {
  display: block;
  height: 8px;
  border-radius: var(--rayon-pastille);
  background: var(--statut-gris-fond);
  overflow: hidden;
}
.mes-votes__barre {
  display: block;
  height: 100%;
  border-radius: var(--rayon-pastille);
  background: var(--marque-orange-fonce);
}
.mes-votes__nombre {
  padding-left: 7px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1100px) {
  .deux-colonnes--voeux > .colonne-laterale--340 { width: auto; }
}


/* 19. P16bis (P17.1 dans Figma) : Affectation CdP (Figma : page « Sprint 3_V1 », cadres « P17.1a » et « P17.1b ») -----------
   L'admin prépare des propositions de répartition des CdP sur les projets.
   Une matrice des votes (un projet par ligne, un CdP par colonne), la charge de chaque CdP, ou une carte par CdP. */

.corps-affectation {
  display: flex;
  flex-direction: column;
  gap: var(--espace-34);
}
/* La barre des propositions : les onglets à gauche, « Dupliquer » et « Abandonner » à droite. */
.propositions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px 0 8px;
  border: 1px solid var(--trait-defaut);
  border-radius: var(--rayon);
  background: var(--fond-carte);
}
.propositions__onglets {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 4px;
}
.proposition {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px 14px;
  color: var(--texte-gris);
  text-decoration: none;
}
.proposition:hover { background: var(--fond-entete); }
.proposition__nom { font-size: 14px; line-height: 1.5; font-weight: 500; }
.proposition__sous-titre { font-size: 12px; line-height: 1.4; }
.proposition--active { border-bottom: 3px solid var(--action-principal); color: var(--texte-encre); }
.proposition__nouvelle-formulaire { display: flex; align-items: center; margin: 0; }
.proposition__nouvelle {
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--texte-encre);
  font: 600 14px/1.5 var(--police);
  cursor: pointer;
}
.proposition__nouvelle:hover { text-decoration: underline; }
/* Le lien « Importer d'Excel » (06/11/2026) a le style du bouton « + Nouvelle proposition » : un lien se centre comme lui. */
a.proposition__nouvelle { display: flex; align-items: center; text-decoration: none; }
a.proposition__nouvelle:hover { text-decoration: underline; }
.propositions .actions form { margin: 0; }

/* La matrice : à gauche, 924 px ; à droite, la charge des CdP (376 px). */
/* 17/11/2026 (demande d'Emmanuel) : la page restait collée en bas après chaque CdP affecté. Le corps est redessiné (htmx) pendant que la liste
   choisie a le focus ; le navigateur, qui « ancre » le défilement sur cette liste, perdait son repère et descendait. Le corps n'est plus un point
   d'ancrage : la page garde sa place. */
.corps-affectation { overflow-anchor: none; }
.deux-colonnes--affectation { gap: 20px; }
.colonne-laterale--376 { width: 376px; }
.tableau--matrice-cdp { min-width: 520px; }
.tableau--matrice-cdp th.col-vote {
  width: 66px;
  padding-left: 3px;
  padding-right: 3px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 29/10/2026 (Figma « Sprint 3_V3 ») : le titre d'une colonne de CdP est un lien qui trie. Le nom se coupe par trois points, la flèche reste visible. */
.tableau--matrice-cdp th.col-vote .en-tete-tri { display: flex; justify-content: center; gap: 4px; max-width: 100%; }
.tableau--matrice-cdp th.col-vote .en-tete-tri__titre { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 12/11/2026 : le nom d'un CdP passe sur deux lignes (« Amine » puis « D. ») au lieu d'être coupé par trois points : « Amine D. » et « Amine E. » donnaient deux fois « Amin… ». */
.tableau--matrice-cdp th.col-vote { white-space: normal; }
.tableau--matrice-cdp th.col-vote .en-tete-tri { align-items: center; white-space: normal; }
.tableau--matrice-cdp th.col-vote .en-tete-tri__titre {
  max-height: 2.3em;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}
.cellule-vote { padding-left: 0; padding-right: 0; text-align: center; }

/* 17/11/2026 : le nom du projet (« Client - Nom du projet ») et sa ligne grise tiennent chacun sur une ligne ; la suite est coupée par trois points. */
.cellule-projet-cdp { max-width: 260px; }
.cellule-projet-cdp p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Un vote : une pastille carrée. 1 est la plus marquée, 2 plus pâle, 3 grise, 4 et « pas de vote » sans fond. */
.vote-puce {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 34px;
  height: 26px;
  padding: 0 6px;
  border-radius: 6px;
  color: var(--texte-encre);
  font: 400 14px/1 var(--police);
  font-variant-numeric: tabular-nums;
}
.vote-puce--1 { background: #fbc96f; font-weight: 600; }
.vote-puce--2 { background: #ffe9c2; }
.vote-puce--3 { background: var(--fond-entete); }
.vote-puce--4, .vote-puce--rien { color: var(--texte-gris); }
.vote-puce .icone { width: 12px; height: 12px; fill: #6b3f00; stroke: #6b3f00; }
/* Le CdP affecté à ce projet : un contour brun autour de sa pastille. */
.vote-puce--affecte { box-shadow: 0 0 0 2px #6b3f00; }
.legende-votes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.4;
  color: var(--texte-gris);
}
.legende-votes li { display: inline-flex; align-items: center; gap: 6px; }
.legende-votes .vote-puce { min-width: 28px; height: 20px; font-size: 12px; }
.legende-votes__coeur { display: inline-flex; color: #6b3f00; }
.legende-votes__coeur .icone { fill: currentColor; }
/* « CdP affecté » : une liste déroulante dans la ligne, comme l'orientation de P06. */
.affecter { margin: 0; }
.liste-affecte {
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  max-width: 138px;
  height: 33px;
  padding: 0 24px 0 12px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4' viewBox='0 0 7 4'%3E%3Cpath d='M0 0h7L3.5 4z' fill='%234F4F4E'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--texte-encre);
  font: 400 14px/1.5 var(--police);
  cursor: pointer;
}
.liste-affecte:disabled { background-color: var(--fond-entete); color: var(--texte-gris); cursor: not-allowed; }
/* La charge des CdP : un petit tableau, et son total. */
/* 28/10/2026 : les colonnes prennent la largeur de leur mot. Les nombres et les titres ne passent jamais à la ligne ; le nom du CdP, lui, passe à la ligne
   entre deux mots. Six colonnes ne tenaient plus dans la carte dès 1500 px (« Votés 1-2 » sortait du cadre) : « Souhait » est retiré, il en reste cinq. */
.tableau--charge { min-width: 0; table-layout: auto; }
.tableau--charge th, .tableau--charge td { padding-left: 4px; padding-right: 4px; white-space: nowrap; }
.tableau--charge th:first-child, .tableau--charge td:first-child { padding-left: 10px; white-space: normal; overflow-wrap: normal; }
.tableau--charge td { font-variant-numeric: tabular-nums; }
/* Les colonnes de chiffres ont la largeur de leur titre ; le nom du CdP prend le reste (et passe à la ligne s'il le faut). */
.tableau--charge th:nth-child(1) { width: 98px; }   /* 26/10/2026 : « Emmanuelm » et « Dogheche » se coupaient en 78 px */
.tableau--charge th:nth-child(2) { width: 46px; }
.tableau--charge th:nth-child(3) { width: 44px; }
.tableau--charge th:nth-child(4) { width: 48px; }   /* Reçus */
.tableau--charge th:nth-child(5) { width: 62px; }   /* Votés 1-2. 28/10/2026 : la colonne « Souhait » est retirée, le nombre de projets vient de l'ETP (la cible). */
.tableau tfoot th, .tableau tfoot td {
  padding: 10px 6px;
  border-top: 1px solid var(--trait-defaut);
  border-bottom: 0;
  background: var(--fond-entete);
  color: var(--texte-encre);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.tableau tfoot th:first-child, .tableau tfoot td:first-child { padding-left: 10px; }
.recus-depasse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: var(--rayon-pastille);
  background: var(--statut-rouge-fond);
  color: var(--statut-rouge);
  font-weight: 600;
}
/* Par CdP : deux cartes par ligne, chacune avec son tableau « Projet CdP ». */
.cartes-cdp {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.carte-cdp { gap: var(--espace-13); }
.carte-cdp .carte__entete { align-items: center; }
/* 28/10/2026 (demande d'Amine : « mets bien les mots Semaines, Souhait ») : « Semaines » se lisait « Semain / es », « Souhait » « Souh / ait », « IP » « I / P »,
   « P-101 » « P- / 101 ». Les colonnes courtes (ID, IP, boost, semaines, souhait) prennent la largeur de leur mot, quelle que soit la taille du texte ;
   l'entreprise et le projet passent à la ligne et gardent le reste. */
.tableau--projet-cdp { min-width: 0; table-layout: auto; }
.tableau--projet-cdp th,
.tableau--projet-cdp td:not(.vide):not(:nth-child(2)):not(:nth-child(3)) { white-space: nowrap; }
/* La pastille du boost (« 1, mobile ») reste sur une ligne : le thème ICAM fait passer à la ligne les pastilles de tous les tableaux,
   ici la colonne Boost prend la place qu'il lui faut. */
.tableau.tableau--projet-cdp .pastille,
:root[data-palette] .tableau.tableau--projet-cdp .pastille { white-space: nowrap; }
.tableau--projet-cdp .icone { width: 12px; height: 12px; fill: #6b3f00; stroke: #6b3f00; vertical-align: -1px; }
@media (max-width: 1100px) {
  .deux-colonnes--affectation > .colonne-laterale--376 { width: auto; }
  .cartes-cdp { grid-template-columns: minmax(0, 1fr); }
  .propositions { flex-direction: column; align-items: flex-start; padding: 8px 10px; }
}


/* 20. P17 (P18 dans Figma) : Matrice d'affectation IP (Figma : page « 05 Affectation », cadres « P18.1a », « P18.1b », « P18.1c », « P18.2a », « P18.3a » et « P18-F1 ») ---
   L'admin place les IP sur les projets, par propositions, avec trois méthodes (matrice, kanban, liste par projet)
   et deux vues (de travail, résumé). Les vœux ont leurs couleurs : 1 vert, 2 vert pâle, 3 jaune, 4 rose.
   Une affectation verrouillée a un cadenas fermé ; une affectation provisoire est en pointillés, avec un cadenas ouvert.
   Les tailles de texte sont celles de la maquette : 10 à 13 px dans la matrice et le kanban, 12 à 14 px ailleurs. */

:root {
  --voeu-1-fond: #7fcb92;
  --voeu-1-trait: #1f6b3d;
  --voeu-2-fond: #d9f1d3;
  --voeu-2-trait: #6fae7c;
  --voeu-3-fond: #ffdf6e;
  --voeu-3-trait: #a88600;
  --voeu-4-fond: #efe0e4;
  --voeu-4-trait: #8c1b3a;

  /* 29/10/2026 (Figma « Sprint 3_V3 ») : les « Restants Voeux » sont d'un bleu de plus en plus foncé quand il reste de plus en plus d'IP
     (1, 2, 3, 4, puis 5 et plus). Le texte est foncé jusqu'au 4 (contraste de 4,9:1 sur le 4) et blanc sur le 5. */
  --restant-1: #e3eefb;
  --restant-2: #bcd5f2;
  --restant-3: #8db5e6;
  --restant-4: #5a8fd3;
  --restant-5: #2f6ab8;
  --restant-texte: #0d1f3c;

  /* Les pointillés de la maquette : des tirets de 3 px séparés de 2 px (4 px et 3 px pour les cartes et les emplacements).
     Une bordure « dashed » du navigateur trace des tirets trop longs : on dessine donc le trait en SVG, à la taille de l'élément.
     Le trait est à cheval sur le bord, donc le côté visible fait la moitié du trait écrit ici (4 : 2 px, 3 : 1,5 px, 2 : 1 px).
     Nom : couleur, rayon de l'angle, finesse. */
  --pointilles-noir-4: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' rx='4' ry='4' fill='none' stroke='%23000' stroke-width='4' stroke-dasharray='3 2'/%3E%3C/svg%3E");
  --pointilles-orange-4: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' rx='4' ry='4' fill='none' stroke='%23f29400' stroke-width='4' stroke-dasharray='3 2'/%3E%3C/svg%3E");
  --pointilles-noir-4-fin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' rx='4' ry='4' fill='none' stroke='%23000' stroke-width='3' stroke-dasharray='3 2'/%3E%3C/svg%3E");
  --pointilles-noir-6: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' rx='6' ry='6' fill='none' stroke='%23000' stroke-width='3' stroke-dasharray='3 2'/%3E%3C/svg%3E");
  --pointilles-noir-8: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' rx='8' ry='8' fill='none' stroke='%23000' stroke-width='3' stroke-dasharray='3 2'/%3E%3C/svg%3E");
  --pointilles-brun-8: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' rx='8' ry='8' fill='none' stroke='%23774700' stroke-width='3' stroke-dasharray='4 3'/%3E%3C/svg%3E");
  --pointilles-brun-8-fin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' rx='8' ry='8' fill='none' stroke='%23774700' stroke-width='2' stroke-dasharray='4 3'/%3E%3C/svg%3E");
  --pointilles-brun-6-fin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' rx='6' ry='6' fill='none' stroke='%23774700' stroke-width='2' stroke-dasharray='4 3'/%3E%3C/svg%3E");
  --pointilles-gris-6: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' rx='6' ry='6' fill='none' stroke='%23bfbfbd' stroke-width='2' stroke-dasharray='4 3'/%3E%3C/svg%3E");
  --pointilles-gris-6-court: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' rx='6' ry='6' fill='none' stroke='%23bfbfbd' stroke-width='2' stroke-dasharray='3 2'/%3E%3C/svg%3E");
}

.corps-matrice {
  display: flex;
  flex-direction: column;
  gap: var(--espace-34);
}
/* Le titre à gauche, les deux chiffres, la méthode et « Enregistrer l'affectation finale » à droite. */
.en-tete-page--matrice { align-items: center; }
.en-tete-page--matrice > .actions { flex: none; flex-wrap: nowrap; gap: 8px; margin-left: auto; }
.en-tete-page--matrice > .actions form { margin: 0; }

/* Les deux chiffres : la moyenne des vœux (sur quatre bandes de couleur) et le matching moyen. */
.kpi-matrice {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 62px;
  margin-right: 8px;
  padding: 10px 16px;
  border: 1px solid var(--trait-discret);
  border-radius: var(--rayon-conteneur);
  background: var(--fond-carte);
}
.kpi-matrice__stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 168px;
}
/* Le trait entre les deux chiffres : 16 px de chaque côté. */
.kpi-matrice__stat + .kpi-matrice__stat { margin-left: 33px; }
.kpi-matrice__stat + .kpi-matrice__stat::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: -17px;
  width: 1px;
  background: var(--trait-discret);
}
.kpi-matrice__ligne {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  white-space: nowrap;
}
.kpi-matrice__valeur {
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--texte-encre);
}
.kpi-matrice__mot { font-size: 11px; line-height: 1.2; font-weight: 500; color: var(--texte-gris); }
/* La barre des vœux : quatre bandes égales, et un repère noir à la place de la moyenne. */
.jauge-voeux {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  height: 6px;
}
.jauge-voeux > span:nth-child(1) { background: var(--voeu-1-fond); }
.jauge-voeux > span:nth-child(2) { background: var(--voeu-2-fond); }
.jauge-voeux > span:nth-child(3) { background: var(--voeu-3-fond); }
.jauge-voeux > span:nth-child(4) { background: var(--voeu-4-fond); }
.jauge-voeux__repere {
  position: absolute;
  top: -3px;
  width: 3px;
  height: 12px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--texte-encre);
}
.jauge-matching {
  height: 6px;
  border-radius: 3px;
  background: var(--statut-gris-fond);
  overflow: hidden;
}
.jauge-matching > span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--statut-vert);
}

/* « Méthode : 1 · Matrice ▾ » : un bouton en pilule, et un panneau de trois choix dessous. */
.bouton--pilule { padding: 7px 12px; border-radius: var(--rayon-pastille); font-weight: 400; line-height: 1.5; }
.menu-methode { position: relative; }
.menu-methode > summary,
.menu-tri > summary { list-style: none; cursor: pointer; }
.menu-methode > summary::-webkit-details-marker,
.menu-tri > summary::-webkit-details-marker { display: none; }
.menu-methode__panneau {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  min-width: 223px;
  margin: 0;
  padding: 6px;
  list-style: none;
  transform: translateX(-50%);
  border: 1px solid var(--trait-defaut);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  box-shadow: 0 1px 3px rgb(0 0 0 / 20%);
}
.menu-methode__choix {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--texte-encre);
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}
.menu-methode__choix:hover { background: var(--fond-entete); }
.menu-methode__choix--actif { background: var(--action-principal-fond); }
.menu-methode__coche { display: inline-flex; flex: none; color: var(--action-texte); }
.menu-methode__coche:empty { display: none; }
.menu-methode__choix strong { font-size: 13px; font-weight: 600; }
.menu-methode__choix .legende { font-size: 11px; line-height: 1.2; }
/* « Tri : places restantes d'abord ▾ » : un texte gris sans cadre, avec le même panneau. */
.menu-tri { position: relative; }
.menu-tri__puce { color: var(--texte-gris); font-size: 12px; font-weight: 500; white-space: nowrap; }
.menu-tri__panneau { left: auto; right: 0; transform: none; min-width: 210px; }

/* La barre des propositions de la matrice : un rayon de 8 px, et trois boutons sur une ligne à droite. */
.propositions > .actions { flex: none; flex-wrap: nowrap; }
.propositions .filtres { flex: none; flex-wrap: nowrap; padding: 4px; }
/* Les onglets des propositions cèdent la place (ils passent à la ligne) : « Vue de travail | Vue résumé » reste sur une seule ligne (02/11/2026). */
.propositions__onglets { flex: 1 1 0; min-width: 0; }

/* Les filtres : la recherche, le parcours, la criticité, et le choix des IP montrés. */
.filtres-matrice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.filtres-matrice__formulaire {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.recherche {
  box-sizing: border-box;
  width: 256px;   /* 26/10/2026 : « Rechercher un IP, un projet… » se coupait après « proj » en 220 px */
  max-width: 100%;
  height: 39px;
  padding: 0 12px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font: 400 14px/1.5 var(--police);
}
.select-pilule select {
  appearance: none;
  box-sizing: border-box;
  height: 37px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon-pastille);
  background: var(--fond-carte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4' viewBox='0 0 7 4'%3E%3Cpath d='M0 0h7L3.5 4z' fill='%23000000'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--texte-encre);
  font: 400 14px/1.5 var(--police);
  cursor: pointer;
  field-sizing: content;
}
/* Un filtre déjà choisi (« Domaine : Informatique × ») : un clic sur la croix le retire. */
.filtre-actif {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--action-texte);
  border-radius: var(--rayon-pastille);
  background: var(--action-principal-fond);
  color: var(--action-texte);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.filtre-actif:hover { background: #fde4bb; }
.filtre-actif--tete {
  height: auto;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  white-space: normal;
}
/* Une case dans une pilule : « Masquer les IP affectés ». */
.masquer { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.case-pilule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  height: 31px;
  padding: 0 12px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon-pastille);
  background: var(--fond-carte);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.case-pilule:hover { background: var(--fond-entete); }
.case-pilule input { width: 14px; height: 14px; margin: 0; accent-color: var(--marque-orange-fonce); }
.carte__outils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* La légende, sous le tableau, le kanban ou la liste (Figma : « Légende »). Le texte fait 12 px, en gris.
   Elle passe à la ligne : 16 px entre deux éléments, 8 px entre deux lignes. */
.legendes { display: flex; flex-direction: column; gap: 8px; }
.legende-matrice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 15px;
  color: var(--texte-gris);
}
.legende-matrice li { display: inline-flex; align-items: center; gap: 6px; }
.legende-matrice .cadenas { color: var(--texte-encre); }
.legende-matrice__cadenas--ouvert .cadenas { color: var(--action-texte); }
.legende-matrice__point .point-texte { color: var(--action-texte); }
/* Les cinq nuances de bleu des « Restants Voeux », côte à côte (Figma « Sprint 3_V3 »). */
.legende-nuances { display: inline-flex; flex: none; overflow: hidden; border-radius: 4px; }
.legende-nuances > span { width: 14px; height: 18px; }
/* La croix « IP jugé non adapté » dans la légende : un rond rouge de 14 px, hors du tableau. */
.legende-matrice .matrice-ip__non-adapte--legende { position: static; flex: none; width: 14px; height: 14px; }
.legende-matrice .matrice-ip__non-adapte--legende .icone { width: 8px; height: 8px; }
.legende-note { margin: 0; font-size: 12px; line-height: 1.25; color: var(--texte-gris); }
/* Le point d'un projet stratégique dans une ligne de texte : un rond de 0,7 em, de la couleur du texte.
   (Le caractère « ● » n'est pas dans la police Inter que le site sert : une autre police le dessinerait, plus petit.) */
.point-texte { display: inline-block; flex: none; width: 0.7em; height: 0.7em; border-radius: 50%; background: currentColor; }
.point-strategique {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--action-texte);
}
.point-strategique--grand { width: 11px; height: 11px; }
.legende--strategique { display: flex; align-items: center; gap: 6px; color: var(--action-texte); }

/* Le cadenas d'une affectation : fermé (verrouillée) ou ouvert (provisoire). Il prend la couleur du texte (currentColor). */
.cadenas { flex: none; width: 12px; height: 14px; }

/* Une pastille de la légende : 28 × 20, avec la couleur et le trait du vœu (Figma : « Légende · Vœu 1 »…). */
.pastille-voeu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
  width: 28px;
  height: 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--texte-encre);
  font-size: 12px;
  line-height: 15px;
  font-weight: 400;
}
.pastille-voeu--1 { background: var(--voeu-1-fond); border-color: var(--voeu-1-trait); font-weight: 600; }
.pastille-voeu--2 { background: var(--voeu-2-fond); border-color: var(--voeu-2-trait); }
.pastille-voeu--3 { background: var(--voeu-3-fond); border-color: var(--voeu-3-trait); }
.pastille-voeu--4 { background: var(--voeu-4-fond); border-color: var(--voeu-4-trait); color: var(--texte-gris); }
/* La case vide (vœu 4), l'IP affecté (contour noir) et l'affectation provisoire (pointillés noirs). */
.pastille-voeu--vide { color: var(--texte-gris); border-color: transparent; background-image: var(--pointilles-gris-6-court); background-size: 100% 100%; background-repeat: no-repeat; background-origin: border-box; background-clip: border-box; }
.pastille-voeu--contour { border: 2px solid var(--texte-encre); background: var(--fond-carte); }
.pastille-voeu--provisoire { height: 18px; border-color: transparent; border-radius: 4px; background-color: var(--fond-carte); background-image: var(--pointilles-noir-4-fin); background-size: 100% 100%; background-repeat: no-repeat; background-origin: border-box; background-clip: border-box; }

/* Les pastilles d'état de la matrice : places encore libres (orange), étudiants en trop (rouge foncé), alerte (contour orange). */
.pastille-etat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--marque-orange);
  color: var(--texte-encre);
  font-size: 11px;
  line-height: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pastille-etat--trop { background: var(--statut-rouge); color: var(--texte-inverse); }
.pastille-alerte {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
  width: 28px;
  height: 20px;
  border: 1.5px solid var(--marque-orange);
  border-radius: 6px;
  background: var(--action-principal-fond);
  color: var(--action-texte);
  font-size: 12px;
  line-height: 15px;
  font-weight: 700;
}

/* Une case de vœu : 1 (vert), 2 (vert pâle), 3 (jaune), 4 (rose). Elle fait 24 × 18 dans la matrice. */
.chip-voeu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 24px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--texte-encre);
  font: 400 11px/1 var(--police);
  font-variant-numeric: tabular-nums;
}
.chip-voeu--1 { background: var(--voeu-1-fond); font-weight: 600; }
.chip-voeu--2 { background: var(--voeu-2-fond); }
.chip-voeu--3 { background: var(--voeu-3-fond); }
.chip-voeu--4 { background: var(--voeu-4-fond); color: var(--texte-gris); }

/* Les lettres du parcours (« I », « AB ») et leur forme longue (« I · intégré »).
   16/11/2026 (audit visuel) : plus aucun texte sous 11 px dans la matrice et le kanban (il en restait à 10 px). */
.chip-parcours {
  display: inline-flex;
  align-items: center;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--statut-gris-fond);
  color: var(--texte-gris);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
  white-space: nowrap;
}
.chip-parcours--long { padding: 1px 5px; font-size: 11px; }

/* --- Méthode 1 : la matrice ---------------------------------------------------------------- */
/* De haut en bas (Figma « P18.1a ») : les noms des projets en biais, trois lignes « Restants Vœux », « Places restantes »,
   la bande « À placer », les IP à placer, la bande « Déjà affectés », les IP affectés.
   Le tableau fait 1278 px : un IP 150 px, un projet 32 px (ici, la place est répartie), « Affecté à » 118 px, « Vœu » 50 px. */
.carte--matrice { gap: 13px; }
.carte--matrice > .carte__entete { padding: 0; }
.carte--matrice > .carte__entete .titre-section { font-size: 21px; }
.carte--matrice .pastille--ambre {
  padding: 4px 10px;
  border-color: var(--marque-orange);
  background: var(--action-principal-fond);
  color: var(--action-texte);
}
.tableau-conteneur--matrice { border-color: var(--trait-defaut); border-radius: var(--rayon); }
.matrice-ip {
  width: 100%;
  min-width: 1278px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 12px;
}
.matrice-ip th,
.matrice-ip td {
  box-sizing: border-box;
  padding: 0;
  border-bottom: 1px solid var(--trait-discret);
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
}
.matrice-ip th.matrice-ip__ip { width: 150px; padding-left: 12px; padding-right: 6px; white-space: nowrap; overflow: hidden; }
.matrice-ip th.matrice-ip__affecte,
.matrice-ip td.matrice-ip__affecte { width: 118px; padding-left: 8px; }
.matrice-ip th.matrice-ip__voeu,
.matrice-ip td.matrice-ip__voeu { width: 50px; text-align: center; }

/* L'en-tête : 164 px de haut, sur fond gris clair. Le nom d'un projet est écrit en biais (60°), du bas vers le haut,
   à partir du milieu de sa colonne. Un point brun le précède s'il est stratégique. En gras et noir : un projet qui a des places
   libres, ou le projet choisi. */
.matrice-ip__titres th {
  position: relative;
  height: 164px;     /* 02/11/2026 : 128 px coupaient les noms de plus de 20 lettres (« Coopérative des Flan… ») ; 164 px laissent 170 px de nom */
  background: var(--fond-entete);
  color: var(--texte-gris);
  font-weight: 600;
  vertical-align: bottom;
}
.matrice-ip__titres th.matrice-ip__ip,
.matrice-ip__titres th.matrice-ip__affecte,
.matrice-ip__titres th.matrice-ip__voeu { padding-bottom: 8px; }
.matrice-ip__titres th.matrice-ip__voeu { padding-left: 0; text-align: center; }
.matrice-ip__nom {
  position: absolute;
  /* Au-dessus des cellules voisines : sinon le fond de la colonne suivante recouvre la fin du nom (le nom monte vers la droite). */
  z-index: 1;
  top: 150.5px;
  left: calc(50% - 6px);
  max-width: 170px;
  overflow: hidden;
  transform: rotate(-60deg);
  transform-origin: 0 0;
  color: var(--texte-gris);
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.matrice-ip__nom:hover { text-decoration: underline; }
.matrice-ip__nom--gras { color: var(--texte-encre); font-weight: 700; }
.matrice-ip__point { margin-right: 0.3em; color: var(--action-texte); }

/* Les quatre lignes de synthèse : 26 px chacune (« Places restantes » : 30 px, avec un trait plus marqué dessous). */
.matrice-ip__synthese th,
.matrice-ip__synthese td {
  height: 26px;
  background: var(--fond-entete);
  font-size: 11px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.matrice-ip__synthese th.matrice-ip__ip { color: var(--texte-gris); font-weight: 600; text-align: left; }
.matrice-ip__synthese th.matrice-ip__ip .chip-voeu { margin-left: 6px; vertical-align: middle; font-weight: 600; }
/* Une case des « Restants Voeux » (Figma « Sprint 3_V3 ») : le nombre d'IP restants, sur un bleu de plus en plus foncé (jusqu'à 5 et plus).
   Zéro : un chiffre gris, sans fond. */
.chip-nuance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 24px;
  height: 18px;
  border-radius: 4px;
  color: var(--restant-texte);
  font: 600 11px/1 var(--police);
  font-variant-numeric: tabular-nums;
}
.chip-nuance--1 { background: var(--restant-1); }
.chip-nuance--2 { background: var(--restant-2); }
.chip-nuance--3 { background: var(--restant-3); }
.chip-nuance--4 { background: var(--restant-4); }
.chip-nuance--5 { background: var(--restant-5); color: var(--texte-inverse); }
.matrice-ip__zero { color: var(--texte-gris); font-weight: 400; }
/* La boîte d'un nombre : 32 px de large, comme une colonne de la maquette, quelle que soit la largeur de la colonne.
   Une alerte (le projet a des places libres, mais 0 ou 1 IP restant intéressé) : boîte orange clair, contour orange. */
.matrice-ip__boite { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 32px; height: 25px; }
.matrice-ip__boite--alerte { background: var(--action-principal-fond); box-shadow: inset 0 0 0 1.5px var(--marque-orange); }
/* En alerte, la case est orange : le bleu s'efface, le nombre reste. */
.matrice-ip__boite--alerte .chip-nuance { background: transparent; color: var(--action-texte); font-weight: 700; }
.matrice-ip__boite--alerte .matrice-ip__zero { color: var(--action-texte); font-weight: 700; }
.matrice-ip__synthese--places th,
.matrice-ip__synthese--places td { height: 30px; border-bottom-color: var(--trait-defaut); }
.matrice-ip__coche { display: inline-flex; color: var(--statut-vert); }
.matrice-ip__coche .icone { width: 14px; height: 14px; stroke-width: 2.2; }

/* La ligne de l'icône « Tri et filtre », sous le nom de chaque projet (Figma « Sprint 3_V3 ») : un petit bouton de 20 × 18.
   Un clic range les IP par vœu pour ce projet ; le bouton est alors noir, et un deuxième clic remet l'ordre de départ. */
.matrice-ip__outils th,
.matrice-ip__outils td { height: 26px; background: var(--fond-entete); text-align: center; }
.matrice-ip__tri {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 20px;
  height: 18px;
  border: 1px solid var(--trait-defaut);
  border-radius: 4px;
  background: var(--fond-carte);
  color: var(--texte-gris);
}
.matrice-ip__tri:hover { border-color: var(--trait-controle); color: var(--texte-encre); }
.matrice-ip__tri:focus-visible { outline: 2px solid var(--marque-orange); outline-offset: 1px; }
.matrice-ip__tri--actif,
.matrice-ip__tri--actif:hover { border-color: var(--texte-encre); background: var(--texte-encre); color: var(--texte-inverse); }

/* Dans la colonne « Affecté à » du haut : la part des IP affectés sur leur vœu 1, 2 et 3, aux couleurs des vœux. */
.pastille-pct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  color: var(--texte-encre);
  font: 600 11px/1 var(--police);
  font-variant-numeric: tabular-nums;
}
.pastille-pct--1 { background: var(--voeu-1-fond); }
.pastille-pct--2 { background: var(--voeu-2-fond); }
.pastille-pct--3 { background: var(--voeu-3-fond); }

/* Un vœu 4 donné au formulaire : un tiret gris dans la case. Sans vœu sur le projet : un petit tiret, plus clair (09/11/2026). */
.matrice-ip td.matrice-ip__cellule { position: relative; }
.matrice-ip__tiret { display: inline-flex; vertical-align: middle; color: var(--texte-gris); opacity: 0.55; }
.matrice-ip__tiret--sans-voeu { opacity: 0.4; }
.matrice-ip__tiret--sans-voeu svg { width: 8px; height: 8px; }
/* Un CdP a jugé l'IP non adapté au projet : une petite croix blanche sur un rond rouge, au coin haut droit du chiffre. */
.matrice-ip__non-adapte {
  position: absolute;
  top: 1px;
  left: calc(50% + 8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--statut-rouge);
  color: var(--texte-inverse);
}
.matrice-ip__non-adapte .icone { width: 6px; height: 6px; stroke-width: 3; }
.matrice-ip__ligne--affectes .matrice-ip__non-adapte { opacity: 0.5; }
/* Un profil inadapté posé sur une case sans chiffre : la croix est au milieu de la case. */
.matrice-ip td .matrice-ip__non-adapte--seule { top: calc(50% - 5px); left: calc(50% - 5px); width: 11px; height: 11px; }
.matrice-ip--grande td .matrice-ip__non-adapte--seule { top: calc(50% - 7px); left: calc(50% - 7px); width: 14px; height: 14px; }

/* Les deux bandes qui séparent les IP à placer des IP déjà affectés. */
.matrice-ip__groupe th {
  height: 30px;
  padding: 0 12px;
  border-bottom-color: var(--trait-defaut);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.matrice-ip__groupe--affectes th { background: var(--statut-gris-fond); color: var(--texte-gris); }

/* Une ligne : un IP, 24 px de haut, une case de vœu par projet. Un trait orange marque les IP à placer. */
.matrice-ip__ligne th,
.matrice-ip__ligne td { height: 24px; }
.matrice-ip__ligne--a_placer > * { background: var(--fond-carte); }
.matrice-ip__ligne--a_placer > :first-child { box-shadow: inset 4px 0 0 var(--action-principal); }
.matrice-ip__ligne--affectes > * { background: var(--fond-entete); }
.matrice-ip th.matrice-ip__ip--ligne { display: table-cell; font-weight: 700; }
.matrice-ip__ligne--affectes th.matrice-ip__ip--ligne { color: var(--texte-gris); font-weight: 600; }
.matrice-ip__ip-contenu { display: flex; align-items: center; gap: 6px; max-width: 100%; color: inherit; text-decoration: none; }
/* Notes du 18/10/2026 : un nom et un prénom à rallonge se coupent par trois petits points ; la lettre du parcours reste visible. */
.matrice-ip__ip-contenu > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matrice-ip__ip-contenu > .chip-parcours { flex: none; }
.matrice-ip__ip-contenu:hover { text-decoration: underline; }
/* Notes du 18/10/2026 (« aligner ») : `.matrice-ip td` (plus précis) mettait les cases des IP à gauche, alors que les nombres
   de synthèse sont au centre de la colonne. Les deux sont maintenant centrés, sous le nom du projet. */
.matrice-ip td.matrice-ip__cellule { text-align: center; }
/* Un projet complet : sa colonne est grisée et les cases s'estompent (sauf celles de l'IP placé dessus). */
.matrice-ip__ligne > .matrice-ip__cellule--complet { background: var(--fond-entete); }
.matrice-ip__cellule--complet .chip-voeu:not(.chip-voeu--affecte):not(.chip-voeu--provisoire) { opacity: 0.4; }
/* Le projet choisi : sa colonne est en orange clair. L'IP choisi : sa ligne. */
.matrice-ip__ligne > .matrice-ip__cellule--colonne-choisie { background: var(--action-principal-fond); }
.matrice-ip__ligne--choisie > * { background: var(--action-principal-fond); }
/* Les IP déjà affectés : toute la ligne est grisée, sauf la case de leur projet. */
.matrice-ip__ligne--affectes .matrice-ip__cellule .chip-voeu { opacity: 0.25; }
.matrice-ip__ligne--affectes .matrice-ip__cellule .chip-voeu--affecte { opacity: 1; }
button.chip-voeu { cursor: pointer; font-family: var(--police); }
button.chip-voeu:hover { box-shadow: 0 0 0 2px var(--action-principal); }
/* L'IP affecté (verrouillé) : un contour noir de 2 px. L'IP provisoire : le même en pointillés. Le croisement choisi : orange. */
.chip-voeu--affecte { border: 2px solid var(--texte-encre); font-weight: 700; }
.chip-voeu--provisoire { background-image: var(--pointilles-noir-4); background-size: 100% 100%; background-repeat: no-repeat; background-origin: border-box; background-clip: border-box; }
.chip-voeu--choisie { border-color: var(--marque-orange); }
.chip-voeu--provisoire.chip-voeu--choisie { background-image: var(--pointilles-orange-4); }
span.chip-voeu--choisie:not(.chip-voeu--affecte):not(.chip-voeu--provisoire),
button.chip-voeu--choisie:not(.chip-voeu--affecte):not(.chip-voeu--provisoire) { border: 2px solid var(--marque-orange); }
.chip-voeu--4.chip-voeu--affecte,
.chip-voeu--4.chip-voeu--provisoire { opacity: 0.55; }
.matrice-ip__ligne--affectes .matrice-ip__cellule .chip-voeu--4.chip-voeu--affecte { opacity: 0.55; }
/* Où l'IP est affecté : le projet et son cadenas (noir : verrouillée) ; ou en brun avec le cadenas ouvert (provisoire). */
.matrice-ip td.matrice-ip__affecte { overflow: hidden; }
.matrice-ip__projet-affecte { display: flex; align-items: center; gap: 6px; color: var(--texte-encre); font-size: 12px; line-height: 15px; }
.matrice-ip__projet-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matrice-ip__projet-affecte--provisoire { color: var(--action-texte); font-weight: 500; }
.matrice-ip__voeu .chip-voeu { font-weight: 600; }
.pastille--a-placer {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 0;
  border-radius: var(--rayon-pastille);
  background: var(--action-principal);
  color: var(--action-texte-sur-principal);
  font-size: 11px;
  font-weight: 600;
  line-height: 13px;
  white-space: nowrap;
}
.matrice-ip .vide { padding: 14px 12px; }

/* --- La vue résumé --------------------------------------------------------------------------- */
/* Les IP sans projet, puis une ligne par projet (Figma « P18.1b » et « P18.1c »). */
.carte__entete--resume { flex-wrap: nowrap; gap: 10px; }
.resume-aide { margin: 0; font-size: 12px; line-height: 17px; color: var(--texte-gris); }
.resume-aide--choisi { color: var(--action-texte); text-decoration: none; }
.resume-aide--choisi:hover { text-decoration: underline; }
/* Une pastille d'IP sans projet : son nom et son projet préféré. Avec un projet choisi, elle prend la couleur du vœu pour ce projet. */
.pastilles-ip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pastille-ip {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 6px 10px;
  border: 1px solid var(--trait-defaut);
  border-radius: var(--rayon);
  background: var(--fond-carte);
}
.pastille-ip strong { font-size: 14px; line-height: 21px; font-weight: 500; }
.pastille-ip span { color: var(--texte-gris); font-size: 12px; line-height: 17px; font-weight: 400; }
.pastille-ip--1 { background: var(--voeu-1-fond); border-color: var(--voeu-1-trait); }
.pastille-ip--2 { background: var(--voeu-2-fond); border-color: var(--voeu-2-trait); }
.pastille-ip--3 { background: var(--voeu-3-fond); border-color: var(--voeu-3-trait); }
.pastille-ip--4 { background: var(--voeu-4-fond); border-color: var(--voeu-4-trait); opacity: 0.6; }

/* Le tableau : « Projet » 360 px, « Places » 160 px, « IP retenus » (le reste), « État » 270 px ; 12 px entre les colonnes.
   Comme la liste par projet, il est posé sur la page : sa carte est blanche. */
.tableau-conteneur--resume,
.tableau-conteneur--liste { background: var(--fond-carte); }
.tableau--resume { min-width: 900px; }
.tableau--resume th { padding: 10px 6px; }
.tableau--resume th:nth-child(1) { width: 382px; }
.tableau--resume th:nth-child(2) { width: 172px; }
.tableau--resume th:nth-child(4) { width: 292px; }
.tableau--resume td { padding: 6px; }
.tableau--resume td p { margin: 0; }
.tableau--resume .legende { font-size: 12px; line-height: 17px; }
/* Le projet choisi : sa ligne est en orange clair, cernée d'un trait orange de 2 px. */
.tableau--resume tr.tableau--resume__choisie td { background: var(--action-principal-fond); box-shadow: inset 0 2px 0 var(--action-principal), inset 0 -2px 0 var(--action-principal); }
.tableau--resume tr.tableau--resume__choisie td:first-child { box-shadow: inset 2px 0 0 var(--action-principal), inset 0 2px 0 var(--action-principal), inset 0 -2px 0 var(--action-principal); }
.tableau--resume tr.tableau--resume__choisie td:last-child { box-shadow: inset -2px 0 0 var(--action-principal), inset 0 2px 0 var(--action-principal), inset 0 -2px 0 var(--action-principal); }
/* Le nom du projet : un point brun s'il est stratégique, le nom, puis son domaine. Un clic le choisit. */
.resume-projet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--texte-encre);
  text-decoration: none;
}
.resume-projet strong { font-size: 14px; line-height: 21px; font-weight: 500; }
.resume-projet__domaine { color: var(--texte-gris); font-size: 12px; line-height: 17px; }
.resume-projet:hover strong { text-decoration: underline; }
/* Les places prises, et une jauge de 80 × 6 px. */
.resume-places { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; line-height: 21px; }
.jauge-places {
  display: block;
  width: 80px;
  height: 6px;
  border-radius: var(--rayon-pastille);
  background: var(--statut-gris-fond);
  overflow: hidden;
}
.jauge-places > span { display: block; height: 100%; min-width: 1px; border-radius: var(--rayon-pastille); background: var(--statut-vert); }
/* La jauge et les petits textes de la liste par projet. */
.tableau--liste td p { margin: 0; }
.tableau--liste td > p + p { margin-top: 3px; }
.tableau--liste .legende { font-size: 12px; line-height: 17px; }
.tableau--liste td .legende--strategique { margin-top: 3px; }
.piste-places {
  width: 120px;
  height: 8px;
  margin-top: 3px;
  border-radius: var(--rayon-pastille);
  background: var(--statut-gris-fond);
  overflow: hidden;
}
.piste-places > span { display: block; height: 100%; border-radius: var(--rayon-pastille); background: var(--statut-vert); }
/* Les IP d'un projet : un bloc de la couleur du vœu, en pointillés noirs si l'affectation est provisoire. */
.chips-ip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip-ip {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: var(--rayon);
  color: var(--texte-encre);
  font: 500 14px/21px var(--police);
  text-decoration: none;
  white-space: nowrap;
}
.chip-ip--1 { background: var(--voeu-1-fond); border-color: var(--voeu-1-trait); }
.chip-ip--2 { background: var(--voeu-2-fond); border-color: var(--voeu-2-trait); }
.chip-ip--3 { background: var(--voeu-3-fond); border-color: var(--voeu-3-trait); }
.chip-ip--4 { background: var(--voeu-4-fond); border-color: var(--voeu-4-trait); }
.chip-ip--provisoire { border-color: transparent; background-image: var(--pointilles-noir-8); background-size: 100% 100%; background-repeat: no-repeat; background-origin: border-box; background-clip: border-box; }
.chip-ip--interesse { border-color: transparent; background-color: var(--fond-carte); background-image: var(--pointilles-brun-8-fin); background-size: 100% 100%; background-repeat: no-repeat; background-origin: border-box; background-clip: border-box; }
.chip-ip--neutre {
  min-height: 19px;
  padding: 3px 8px;
  border-radius: var(--rayon-pastille);
  background: var(--statut-gris-fond);
  font-size: 11px;
  line-height: 13px;
}
a.chip-ip:hover { filter: brightness(0.96); }
.chips-ip--gris { gap: 6px; }
/* 10/11/2026 : un domaine validé par le CdP (fiche « IP × projet ») est en vert. */
.chip-ip--vert { background: var(--statut-vert-fond); color: var(--statut-vert); border-color: color-mix(in srgb, var(--statut-vert) 35%, transparent); }

/* --- Méthode 2 : le kanban ------------------------------------------------------------------- */
/* Trois colonnes (Figma « P18.2a ») : les IP sans projet (250 px), les projets à pourvoir, le projet choisi et la fiche (320 px). */
.kanban {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 320px;
  align-items: start;
  gap: var(--espace-21);
}
.kanban .titre-section { font-size: 16px; line-height: 19px; }
.kanban__ips,
.kanban__projets,
.panneau-projet { padding: 16px; }
.kanban__ips { gap: 10px; }
.kanban__projets { gap: 13px; }
.kanban__ips > .texte-gris { font-size: 12px; line-height: 15px; }
.kanban__ips .vide { font-size: 12px; }
.kanban__recherche { margin: 0; }
.kanban__recherche .recherche { width: 100%; }
.kanban__liste-ip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* La carte d'un IP : son nom, sa lettre, son cadenas ouvert s'il est provisoire, et ses vœux (les projets, colorés).
   On la glisse vers un projet. Orange : l'IP choisi. Pointillés bruns : un IP intéressé par le projet choisi. */
.carte-ip-kanban {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid var(--trait-defaut);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-encre);
  text-decoration: none;
}
.carte-ip-kanban:hover { border-color: var(--trait-controle); }
.carte-ip-kanban__tete { display: flex; align-items: center; gap: 6px; }
.carte-ip-kanban__tete strong { font-size: 13px; line-height: 16px; font-weight: 600; }
.carte-ip-kanban__cadenas { display: inline-flex; margin-left: auto; color: var(--action-texte); }
.carte-ip-kanban__voeux { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.carte-ip-kanban__voeux .legende { font-size: 11px; font-weight: 500; line-height: 14px; }
.carte-ip-kanban--interessee { border-color: transparent; background-image: var(--pointilles-brun-8-fin); background-size: 100% 100%; background-repeat: no-repeat; background-origin: border-box; background-clip: border-box; }
.carte-ip-kanban--interessee:hover { border-color: transparent; }
.carte-ip-kanban--choisie,
.carte-ip-kanban--choisie:hover { border: 2px solid var(--action-principal); border-style: solid; }
/* Une carte qu'on est en train de glisser : elle s'efface un peu. */
.carte-ip-kanban--prise,
.place-ip--prise { opacity: 0.4; }
.etiquette-voeu {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--texte-encre);
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
}
.etiquette-voeu--1 { background: var(--voeu-1-fond); }
.etiquette-voeu--2 { background: var(--voeu-2-fond); }
.etiquette-voeu--3 { background: var(--voeu-3-fond); }
.etiquette-voeu--4 { background: var(--voeu-4-fond); }

/* Les projets à pourvoir : une tuile par projet, quatre par ligne. */
.kanban__projets > .carte__entete { flex-wrap: nowrap; gap: 10px; }
.kanban__grille {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
}
.kanban__grille .vide { grid-column: 1 / -1; }
/* Une tuile : le nom, les trois pastilles « IP restants en vœu 1, 2, 3 », les places prises, les IP, les places libres.
   Un trait à gauche (29/10/2026, Figma « Sprint 3_V3 ») : d'un bleu de plus en plus foncé quand il reste de plus en plus d'IP en vœu 1,
   gris quand il n'en reste aucun. Il remplace les traits rouge (critique) et ambre (sous-demandé) : la criticité se lit dans le panneau de droite. */
.tuile-projet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--trait-discret);
  border-radius: var(--rayon);
  background: var(--fond-entete);
  overflow: hidden;
}
.tuile-projet--choisi {
  border: 2px solid var(--action-principal);
  background: var(--action-principal-fond);
}
.tuile-projet::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--trait-defaut);
}
.tuile-projet--barre-1::before { background: var(--restant-1); }
.tuile-projet--barre-2::before { background: var(--restant-2); }
.tuile-projet--barre-3::before { background: var(--restant-3); }
.tuile-projet--barre-4::before { background: var(--restant-4); }
.tuile-projet--barre-5::before { background: var(--restant-5); }
.tuile-projet__tete { display: flex; flex-direction: column; gap: 6px; }
.tuile-projet__ligne { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.tuile-projet__nom {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--texte-encre);
  text-decoration: none;
}
.tuile-projet__nom strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 15px; font-weight: 600; }
.tuile-projet__nom:hover strong { text-decoration: underline; }
.tuile-projet__point { flex: none; color: var(--action-texte); font-size: 11px; line-height: 14px; }
.tuile-projet__restants { display: inline-flex; flex: none; align-items: center; gap: 2px; }
.chip-restant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 15px;
  height: 16px;
  padding: 1px 4px;
  border-radius: 4px;
  color: var(--texte-encre);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* 29/10/2026 (Figma « Sprint 3_V3 ») : la pastille est d'un bleu de plus en plus foncé quand il reste de plus en plus d'IP (1 à 5 et plus).
   Zéro : un chiffre gris, sans fond. Les bleus sont ceux des « Restants Voeux » de la matrice. */
.chip-restant--n0 { color: var(--texte-gris); font-weight: 400; }
.chip-restant--n1 { background: var(--restant-1); color: var(--restant-texte); }
.chip-restant--n2 { background: var(--restant-2); color: var(--restant-texte); }
.chip-restant--n3 { background: var(--restant-3); color: var(--restant-texte); }
.chip-restant--n4 { background: var(--restant-4); color: var(--restant-texte); }
.chip-restant--n5 { background: var(--restant-5); color: var(--texte-inverse); }
.chip-restant--alerte { min-width: 18px; height: 17px; border: 1.5px solid var(--marque-orange); }
.tuile-projet__infos { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 11px; line-height: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tuile-projet__infos .legende { font-size: 11px; font-weight: 400; line-height: 14px; }
.etat-projet { display: inline-flex; align-items: center; gap: 2px; font-weight: 500; }
.etat-projet .icone { width: 11px; height: 11px; }
.etat-projet--complet { color: var(--statut-vert); }
/* Un IP placé : un bloc de la couleur de son vœu, avec son cadenas (fermé : verrouillé ; ouvert et en pointillés : provisoire). */
.place-ip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-sizing: border-box;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--texte-encre);
  font-size: 11px;
  line-height: 13px;
  font-weight: 600;
  text-decoration: none;
}
.place-ip--1 { background: var(--voeu-1-fond); border-color: var(--voeu-1-trait); }
.place-ip--2 { background: var(--voeu-2-fond); border-color: var(--voeu-2-trait); }
.place-ip--3 { background: var(--voeu-3-fond); border-color: var(--voeu-3-trait); }
.place-ip--4 { background: var(--voeu-4-fond); border-color: var(--voeu-4-trait); }
.place-ip--provisoire { border-color: transparent; background-image: var(--pointilles-noir-6); background-size: 100% 100%; background-repeat: no-repeat; background-origin: border-box; background-clip: border-box; }
.place-ip--provisoire .cadenas { color: var(--action-texte); }
.place-ip--choisie { box-shadow: 0 0 0 2px var(--action-principal); }
.place-ip:hover { filter: brightness(0.96); }
/* Une place libre : un emplacement en pointillés qui reçoit un IP. */
.depot-ip {
  box-sizing: border-box;
  margin: 0;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background-image: var(--pointilles-gris-6);
  background-size: 100% 100%; background-repeat: no-repeat; background-origin: border-box; background-clip: border-box;
  color: var(--texte-gris);
  font-size: 11px;
  line-height: 14px;
  text-align: center;
}
.depot-ip--cible { border-color: var(--action-principal); background: var(--action-principal-fond); }
.tuile-projet--cible { box-shadow: 0 0 0 2px var(--action-principal); }
.kanban__ips--cible { box-shadow: 0 0 0 2px var(--action-principal); }
/* Les projets complets : repliés sous les tuiles, un clic les affiche. */
.kanban__complets {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--trait-discret);
  border-radius: var(--rayon);
  background: var(--fond-entete);
  color: var(--texte-gris);
  font-size: 12px;
  line-height: 15px;
}
.kanban__complets strong { font-weight: 600; }
.kanban__complets a { color: var(--action-texte); font-weight: 500; text-decoration: none; }
.kanban__complets a:hover { text-decoration: underline; }

/* À droite : le projet choisi, puis la fiche « IP × projet ». */
.kanban__droite { display: flex; flex-direction: column; gap: var(--espace-21); min-width: 0; }
.panneau-projet { gap: 8px; }
.panneau-projet__surtitre {
  margin: 0;
  font-size: 11px;
  line-height: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--texte-gris);
}
.panneau-projet__titre {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  line-height: 19px;
  font-weight: 600;
}
/* Dans le titre du projet choisi, le point stratégique est un caractère du texte : il est noir comme lui. */
.panneau-projet__point { flex: none; }
.panneau-projet__liste {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  font-size: 12px;
  line-height: 15px;
}
.panneau-projet__liste dt { color: var(--texte-gris); }
.panneau-projet__liste dd { margin: 0; font-weight: 500; }
.panneau-projet__sous-titre { font-size: 12px; line-height: 15px; font-weight: 600; color: var(--texte-gris); }
.panneau-projet > .legende { font-size: 12px; line-height: 15px; }
.panneau-projet .chips-ip { gap: 6px; }
.panneau-projet .chip-ip { gap: 4px; padding: 3px 6px; border-radius: 6px; font-size: 11px; line-height: 13px; }
.panneau-projet .chip-ip .cadenas { color: var(--texte-encre); }
.panneau-projet .chip-ip--provisoire .cadenas { color: var(--action-texte); }
.panneau-projet .chip-ip--provisoire { background-image: var(--pointilles-noir-6); }
.panneau-projet .chip-ip--interesse { background-image: var(--pointilles-brun-6-fin); }
.panneau-projet > .bouton { align-self: flex-start; }

/* --- Méthode 3 : la liste par projet --------------------------------------------------------- */
.legende-liste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.legende-liste__titre { margin-right: 2px; font-size: 12px; color: var(--texte-encre); }
.tableau--liste { min-width: 1000px; }
.tableau--liste th { padding: 10px 6px; }
.tableau--liste th:nth-child(1) { width: 99px; }
.tableau--liste th:nth-child(2) { width: 272px; }
.tableau--liste th:nth-child(3) { width: 172px; }
.tableau--liste th:nth-child(4) { width: 139px; }
.tableau--liste td { padding-top: 14px; padding-bottom: 14px; }
.cartes-ip-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.carte-ip-petite {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
  min-width: 55px;
  padding: 6px 10px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font-size: 12px;
  line-height: 17px;
  text-decoration: none;
}
.carte-ip-petite strong { font-size: 14px; line-height: 21px; font-weight: 500; }
.carte-ip-petite span { color: var(--texte-gris); }
a.carte-ip-petite:hover { filter: brightness(0.97); }
.carte-ip-petite--suggere { border: 1.5px solid var(--action-texte); background: var(--action-principal-fond); }
.carte-ip-petite--suggere span { color: var(--action-texte); }
.carte-ip-petite--pressenti { border-color: transparent; background-image: var(--pointilles-brun-8); background-size: 100% 100%; background-repeat: no-repeat; background-origin: border-box; background-clip: border-box; }
.carte-ip-petite--pressenti span { color: var(--action-texte); }
.carte-ip-petite--retenu { border-color: var(--statut-vert); background: var(--statut-vert-fond); }
.carte-ip-petite--retenu span { color: var(--statut-vert); }
.carte-ip-petite--bloquant { border-color: transparent; background: var(--statut-gris-fond); }
/* Un profil inadapté (croix rouge) : une carte rose, avec sa petite croix, qui passe en dernier. */
.carte-ip-petite--inadapte { position: relative; border-color: var(--statut-rouge); background: var(--statut-rouge-fond); }
.carte-ip-petite--inadapte strong { color: var(--statut-rouge); }
.carte-ip-petite .matrice-ip__non-adapte--carte { position: absolute; top: -4px; right: -4px; }
.carte-ip-petite--bloquant strong { text-decoration: line-through; color: var(--texte-gris); }

/* --- La fiche « IP × projet » ---------------------------------------------------------------- */
.carte--fiche { padding: 21px; }
.fiche-ip-projet { display: flex; flex-direction: column; gap: 16px; }
.fiche-ip-projet__tete { display: flex; flex-direction: column; gap: 4px; }
.fiche-ip-projet__titres { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.fiche-ip-projet__titre { font-size: 18px; line-height: 22px; font-weight: 600; }
.fiche-ip-projet__score { margin: 0; font-size: 12px; line-height: 15px; font-weight: 500; color: var(--texte-gris); }
.fiche-ip-projet__score summary { list-style: none; cursor: pointer; }
.fiche-ip-projet__score summary::-webkit-details-marker { display: none; }
.fiche-ip-projet__lien { color: var(--action-texte); font-weight: 500; }
.fiche-ip-projet__fleche { display: inline-block; font-size: 11px; }
.fiche-ip-projet__score[open] .fiche-ip-projet__fleche { transform: rotate(90deg); }
.fiche-ip-projet__detail {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 11px;
  color: var(--texte-encre);
}
.fiche-ip-projet__detail th,
.fiche-ip-projet__detail td { padding: 4px 0; border-bottom: 1px solid var(--trait-discret); text-align: left; font-weight: 400; }
.fiche-ip-projet__detail thead th { color: var(--texte-gris); font-weight: 600; }
.fiche-ip-projet__detail td { width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.fiche-ip-projet__bloc { display: flex; flex-direction: column; gap: 6px; }
.fiche-ip-projet__bloc + .fiche-ip-projet__bloc { padding-top: 16px; border-top: 1px solid var(--trait-discret); }
.fiche-ip-projet__etiquette {
  margin: 0;
  font-size: 11px;
  line-height: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--texte-gris);
}
.fiche-ip-projet__bloc > .legende { font-size: 12px; }
.etiquettes-voeux { display: flex; flex-direction: column; gap: 6px; }
.etiquettes-voeux__rang { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.etiquettes-voeux .etiquette-voeu { padding: 3px 6px; font-size: 11px; line-height: 13px; }
.etiquette-voeu__places { color: var(--texte-gris); font-size: 11px; font-weight: 400; line-height: 14px; }
.etiquette-voeu--courante { border: 2px solid var(--action-principal); font-weight: 700; }
.etiquette-voeu--complete:not(.etiquette-voeu--courante) { opacity: 0.5; }
.message--serre { display: flex; align-items: center; gap: 6px; margin: 0; padding: 6px 10px; border-radius: 6px; font-size: 12px; line-height: 15px; font-weight: 600; }
.message--serre .icone { flex: none; width: 12px; height: 12px; }
.commentaire-entretien {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--fond-entete);
  font-size: 12px;
  line-height: 15px;
}
.commentaire-entretien p { margin: 0; }
.commentaire-entretien p:first-child { display: flex; gap: 6px; }
.commentaire-entretien .legende { font-size: 11px; line-height: 15px; }
.commentaire-projet { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 12px; line-height: 15px; }
.commentaire-projet .etiquette-voeu { flex: none; padding: 2px 6px; font-size: 11px; line-height: 13px; font-weight: 600; }
.fiche-ip-projet__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.bouton--choisi { box-shadow: inset 0 0 0 2px var(--texte-encre); }
/* La fenêtre de la fiche, ouverte depuis la liste : un trait brun, comme la maquette. */
.dialogue--fiche-ip {
  width: min(380px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 21px;
  border: 1.5px solid var(--action-texte);
  overflow: auto;
}
.dialogue--fiche-ip .dialogue__actions { margin-top: 12px; justify-content: flex-end; }

@media (max-width: 1280px) {
  .kanban { grid-template-columns: 230px minmax(0, 1fr); }
  .kanban__droite { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .kanban__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .en-tete-page--matrice { flex-wrap: wrap; }
  .en-tete-page--matrice > .actions { flex-wrap: wrap; margin-left: 0; }
  .kpi-matrice { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .kanban { grid-template-columns: minmax(0, 1fr); }
  .kanban__droite { grid-template-columns: minmax(0, 1fr); }
  .kanban__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .propositions > .actions { flex-wrap: wrap; }
}

/* P25 : le bloc « Annonce des résultats », en trois temps bien séparés (notes du 18/10/2026). */
.annonce-admin__etat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; margin-top: var(--espace-13); }
.annonce-admin__etat > p { margin: 0; }
.annonce-admin__reglage { display: flex; flex-direction: column; gap: var(--espace-13); margin-top: var(--espace-21); padding-top: var(--espace-21); border-top: 1px solid var(--trait-discret); }
.annonce-admin__grille { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(280px, 2fr); gap: var(--espace-21); align-items: start; }
.annonce-admin__cdp { margin-top: 8px; }
.annonce-admin__actions { margin-top: 0; }
.annonce-admin__retenus { display: flex; flex-direction: column; gap: var(--espace-13); margin-top: var(--espace-21); padding-top: var(--espace-21); border-top: 1px solid var(--trait-discret); }
.annonce-admin__retenus > .titre-section { margin: 0; }
@media (max-width: 720px) { .annonce-admin__grille { grid-template-columns: minmax(0, 1fr); } }

/* Une action bloquée dit pourquoi (notes du 18/10/2026) : l'enveloppe du champ bloqué, et la bulle de la raison. */
.bloque { display: inline-flex; cursor: not-allowed; border-radius: var(--rayon); }
.bloque > :disabled, .bloque > [aria-disabled="true"] { pointer-events: none; }
.bloque-zone { cursor: not-allowed; }
.bloque-zone select, .bloque-zone input { pointer-events: none; }
.bloque:focus-visible, .bloque-zone:focus-visible { outline: 2px solid var(--action-texte); outline-offset: 2px; }
.bulle-raison {
  position: absolute;
  z-index: 1000;
  max-width: 300px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--nav-barre);
  color: var(--texte-inverse);
  font: 500 13px/18px var(--police);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
/* La raison écrite à côté d'une action bloquée, quand la place le permet. */
.raison-blocage { margin: 0; font-size: 12px; line-height: 16px; color: var(--statut-ambre); max-width: 360px; }

/* Le menu du clic droit sur une case de la matrice : cadenas fermé, cadenas ouvert, rien (notes du 18/10/2026). */
.menu-contextuel {
  position: fixed;
  z-index: 1000;
  min-width: 240px;
  padding: 4px;
  border: 1px solid var(--trait-defaut);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.menu-contextuel[hidden] { display: none; }
.menu-contextuel__titre { margin: 0; padding: 6px 10px 8px; border-bottom: 1px solid var(--trait-discret); font: 600 12px/16px var(--police); color: var(--texte-gris); }
.menu-contextuel__choix {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font: 500 14px/18px var(--police);
  color: var(--texte-encre);
  text-align: left;
  cursor: pointer;
}
.menu-contextuel__choix:hover:not([aria-disabled="true"]),
.menu-contextuel__choix:focus-visible { background: var(--fond-entete); outline: none; }
.menu-contextuel__choix .legende { font-weight: 400; }
/* 10/11/2026 : le choix du menu du nom d'un IP est un lien (la fiche complète) : même allure qu'un bouton du menu. */
a.menu-contextuel__choix { box-sizing: border-box; text-decoration: none; }
.menu-contextuel__choix[aria-checked="true"] { font-weight: 700; }
.menu-contextuel__choix[aria-checked="true"]::after { content: "actuel"; margin-left: auto; font: 500 11px/14px var(--police); color: var(--texte-gris); }
.menu-contextuel__choix[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.menu-contextuel__vide { display: inline-block; width: 12px; height: 14px; border: 1px dashed var(--texte-gris); border-radius: 3px; }
/* « Croix rouge, profil inadapté » : le rond rouge de la matrice, à côté des cadenas. */
.matrice-ip__non-adapte--menu { position: static; flex: none; width: 14px; height: 14px; }
.matrice-ip__non-adapte--menu .icone { width: 8px; height: 8px; }

/* Une sous-partie d'une carte (le boost dans « Places et domaines », notes du 18/10/2026). */
.sous-section { display: flex; flex-direction: column; gap: var(--espace-8); padding-top: var(--espace-13); border-top: 1px solid var(--trait-discret); }
.sous-section__titre { margin: 0; font: 600 16px/21px var(--police); }

/* Retouche des étiquettes (19/10/2026) : moins de capsules, moins de contours, moins de symboles.
   Seuls les éléments montrés dans la demande et leurs équivalents directs changent : les statuts des tableaux, les
   compteurs du suivi des réponses, les domaines, le sélecteur de campagne et le lien « CV ». Rien ne bouge : les
   boîtes gardent leurs dimensions (la bordure reste de 1 px, elle devient seulement transparente ou discrète). */

/* 1. Les statuts d'un tableau. Fond teinté, angle de 5 px. Les statuts neutres (gris, vert) n'ont plus de contour ;
   ceux qui demandent de l'attention (ambre, rouge) gardent un contour léger et un texte un peu plus gras. */
.tableau .pastille:not([class*="pastille--lieu-"]) {
  border-radius: var(--rayon-etiquette);
  border-color: transparent;
  font-weight: 500;
}
.tableau .pastille--ambre:not([class*="pastille--lieu-"]),
.tableau .pastille--rouge:not([class*="pastille--lieu-"]) { font-weight: 600; }
@supports (color: color-mix(in srgb, red 50%, transparent)) {
  .tableau .pastille--ambre:not([class*="pastille--lieu-"]),
  .tableau .pastille--rouge:not([class*="pastille--lieu-"]) { border-color: color-mix(in srgb, currentColor 30%, transparent); }
}
/* Une étiquette neutre (un rôle, « Planifié ») : un contour de filet, pas celui d'un bouton. */
.tableau .pastille--contour:not([class*="pastille--lieu-"]),
.tableau .pastille--accent:not([class*="pastille--lieu-"]) { border-color: var(--trait-defaut); }

/* 2. Les compteurs du suivi des réponses (« Envoyé 6 ») : du texte, sans capsule, sans symbole. Le libellé est
   sobre, le nombre est en gras dans la couleur de son état (celle du segment de la barre au-dessus). */
.taux__etats .pastille {
  gap: 5px;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  color: var(--texte-encre);
  font-weight: 400;
}
.taux__etats .pastille::before { content: none; }
.taux__nombre { font-weight: 700; font-variant-numeric: tabular-nums; }
.taux__etats .pastille--vert .taux__nombre { color: var(--statut-vert); }
.taux__etats .pastille--ambre .taux__nombre { color: var(--statut-ambre); }
.taux__etats .pastille--rouge .taux__nombre { color: var(--statut-rouge); }

/* 3. Les domaines : même angle, contour de filet (ou aucun), texte sobre. Le retour à la ligne des longs noms reste. */
.pastille--longue {
  border-radius: var(--rayon-etiquette);
  font-weight: 500;
}
.pastille--longue.pastille--accent { border-color: var(--trait-defaut); }
.pastille--longue.pastille--gris { border-color: transparent; }

/* 4. Le sélecteur de campagne de l'en-tête : angle de 6 px et contour plus discret (le texte garde son contraste). */
.puce-campagne { border-radius: 6px; }
@supports (color: color-mix(in srgb, red 50%, transparent)) {
  .puce-campagne { border-color: color-mix(in srgb, var(--nav-texte-inactif) 55%, transparent); }
}

/* 5. Le lien « CV » (et « Ajouter » à côté) : un lien, dans la couleur des liens, souligné au survol et au clavier. */
.lien-cv { color: var(--action-texte); font-weight: 600; }
.lien-cv:hover { text-decoration: underline; text-underline-offset: 2px; }
.lien-cv:focus-visible { outline: 2px solid var(--marque-orange); outline-offset: 2px; border-radius: 2px; }

/* 6. Les mêmes statuts hors tableau : la pastille d'état de l'en-tête d'une carte (accueil : « Envoyé », « Terminé »,
   « Planifié »…) et le pourcentage du suivi des réponses. Même angle, mêmes contours que dans les tableaux. */
.carte__entete .pastille,
.taux__pourcentage {
  border-radius: var(--rayon-etiquette);
  border-color: transparent;
  font-weight: 500;
}
.carte__entete .pastille--ambre,
.carte__entete .pastille--rouge { font-weight: 600; }
.carte__entete .pastille--contour,
.carte__entete .pastille--accent,
.taux__pourcentage { border-color: var(--trait-defaut); }
@supports (color: color-mix(in srgb, red 50%, transparent)) {
  .carte__entete .pastille--ambre,
  .carte__entete .pastille--rouge { border-color: color-mix(in srgb, currentColor 30%, transparent); }
}

/* 7. Une application de travail, plus sobre (19/10/2026, demande d'Amine : « pro, lisible, épuré »).
   Les couleurs, les textes, les places et les fonctions ne changent pas. Ce qui change : la page suit la largeur de
   l'écran (--largeur-page), les cartes et les contrôles ont des angles moins ronds (--rayon-conteneur, --rayon), et les
   filtres et choix en « pilule » deviennent des contrôles rectangulaires de même hauteur. Les barres de progression,
   les jauges, les pastilles rondes d'un nombre et les avatars restent ronds : leur forme dit quelque chose. */
.pastille,
.pastille--a-placer { border-radius: var(--rayon-etiquette); }
.filtre-pastille,
.filtre-actif,
.bouton--pilule,
.select-pilule select,
.case-pilule,
.choix-segmente__option span,
.onglet-nav { border-radius: var(--rayon); }

/* 8. Barre de navigation, frise et cartes plus sobres (19/10/2026).
   - La barre prend toute la largeur, avec la même marge que la page ; les onglets respirent un peu plus (8 px entre eux).
   - La frise : l'étape en cours n'a plus de fond beige ni de cadre brun, mais un cadre gris fin ; son rond orange, son nom en
     gras et son bouton « Terminée » (plus compact) la désignent. Le bouton reste orange et à sa place.
   - Les pictogrammes des cartes n'ont plus de carré beige : le pictogramme brun seul, dans la même boîte de 36 px.
   - Accueil admin : les deux cartes n'ont plus la même hauteur forcée (le vide sous « À faire maintenant » disparaît). */
/* Plus d'air sur les côtés d'un grand écran : 72 px, puis 96 px à partir de 1920 px (60 px avant). La barre de navigation garde
   sa disposition (onglets groupés à gauche, sélecteur de campagne, personne connectée à droite) et ses 40 px de marge. */
@media (min-width: 1600px) { :root { --marge-page: 72px; } }
@media (min-width: 1920px) { :root { --marge-page: 96px; } }
.etape--courante,
.etape--courante:hover {
  background: var(--fond-entete);
  box-shadow: inset 0 0 0 1px var(--trait-defaut);
}
.etape--courante .etape__nom { font-weight: 600; }
.etape--courante .bouton--principal { padding: 6px 14px; font-size: 14px; line-height: 20px; min-height: 0; }
.carre-icone { background: transparent; }
.deux-colonnes--egales { align-items: flex-start; }

/* 9. Statuts plus calmes, chiffres clés avec leur pictogramme à gauche (19/10/2026, demande d'Amine : « plus pro »).
   Dans un tableau, seuls les statuts qui demandent de l'attention gardent un fond (ambre, rouge). Un statut neutre
   (« Non attendu », « Ne fait pas passer », un tiret) devient du texte gris, un statut « bon » (« Envoyé », « Concerné »,
   « Disponibilités validées ») du texte de sa couleur avec son pictogramme. Le mot dit toujours l'état. Les cellules gardent
   leur taille ; le texte se cale à gauche de la colonne, comme son titre. */
.tableau .pastille--gris:not([class*="pastille--lieu-"]),
.tableau .pastille--vert:not([class*="pastille--lieu-"]) {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  border-color: transparent;
}
.tableau .pastille--gris:not([class*="pastille--lieu-"]) { color: var(--texte-gris); font-weight: 400; }
.tableau .pastille--vert:not([class*="pastille--lieu-"]) { font-weight: 500; }
.lien-cv { font-weight: 500; }

/* Les chiffres clés : le pictogramme à gauche du chiffre, un peu plus grand (26 px dans une boîte de 36 px). */
.indicateur__entete { justify-content: flex-start; gap: 12px; }
.indicateur__entete .carre-icone .icone { width: 26px; height: 26px; }

/* 10. Moins de contours (19/10/2026, demande d'Amine : la page de connexion lui plaît, l'accueil paraît artificiel à cause de ses
   contours). Les boutons secondaires ont un filet gris clair à la place du trait foncé (le texte garde son contraste, le
   survol grise le fond). Les étiquettes de compte de l'accueil (« 13 étudiants ») perdent leur cadre : fond gris, sans trait.
   L'étape en cours de la frise a un filet presque invisible. Les champs de saisie gardent leur bordure : c'est elle qui
   montre où écrire. */
.bouton--secondaire,
.bouton--contour { border-color: var(--trait-defaut); }
.alertes .pastille--contour,
.alertes .pastille--accent {
  border-color: transparent;
  background: var(--statut-gris-fond);
}
.etape--courante,
.etape--courante:hover { box-shadow: inset 0 0 0 1px var(--trait-discret); }

/* 11. La carte de connexion, plus sobre (19/10/2026, demande d'Amine : l'encadré blanc paraît artificiel).
   Les textes et les champs ne changent pas. La carte est centrée dans la hauteur de l'écran (et non plus à 233 px du haut),
   plus étroite, son contenu est aligné à gauche ; le titre est moins gros ; les champs et le bouton ont la même largeur et
   un texte lisible (14 px) ; le bouton est à plat, sans ombre ; l'ombre de la carte est large et douce, comme celle d'une
   fenêtre posée sur la photo. */
.carte-accueil {
  width: min(440px, calc(100% - 32px));
  margin: auto;
  padding: 40px 44px 36px;
  align-items: stretch;
  gap: 22px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}
.carte-accueil__titre { font-size: 24px; font-weight: 600; text-align: left; }
.carte-accueil__texte,
.carte-accueil__legende--centree { width: 100%; text-align: left; }
.carte-accueil .messages { width: 100%; }
.formulaire-carte { width: 100%; gap: 20px; }
.champ-carte { gap: 6px; }
.champ-carte label { font-weight: 600; }
.champ-carte input { height: 44px; font-size: 14px; }
.bouton-carte { align-self: stretch; width: 100%; box-shadow: none; }
.formulaire-sso { width: 100%; }
.bouton-sso { box-shadow: none; border-color: var(--trait-controle); }
.page-carte__pied { padding-bottom: 48px; font-size: 16px; line-height: 24px; font-weight: 500; }

/* 12. Un site vivant (19/10/2026) : les changements d'état se voient (survol, clic, chargement, confirmation).
   Rien ne change de place ni de couleur ici ; les animations sont courtes (0,15 s) et coupées si la personne a demandé
   moins de mouvement dans son système. */
@media (prefers-reduced-motion: no-preference) {
  .bouton, .bouton-carte, .bouton-sso, .filtre-pastille, .filtre-actif, .onglet-nav, .filtre, .puce-campagne,
  .menu-campagne__ligne, .case-pilule, .etape, .lien, .lien-discret, .lien-cv, .tableau td {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  }
  .bouton:active, .bouton-carte:active { transform: translateY(1px); }
}
/* La ligne survolée d'un tableau (une règle explicite plus précise l'emporte : ligne choisie, statut coloré). */
:where(.tableau tbody tr:hover) > td { background-color: var(--fond-entete); }

/* Le chargement : un filet orange qui court en haut de la page pendant qu'une zone se met à jour (htmx), et la zone en
   cours de mise à jour est un peu estompée. Le script (sirh.js) pose .visible et aria-busy. */
.barre-chargement {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  height: 3px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.barre-chargement.visible { opacity: 1; }
.barre-chargement::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: var(--marque-orange);
  animation: chargement 1.1s ease-in-out infinite;
}
@keyframes chargement { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .barre-chargement::after { width: 100%; animation: none; } }
[aria-busy="true"] { opacity: 0.6; transition: opacity 0.15s ease; }
.htmx-request, .htmx-request * { cursor: progress; }

/* Les messages d'une page à l'autre (« Dates enregistrées ») : une notification en haut à droite, avec une croix, qui
   disparaît toute seule au bout de 6 s (sauf une erreur, qui reste). Sur la page de connexion, ils restent dans la carte. */
body:not(.page-carte) .messages {
  position: fixed;
  top: 76px;
  right: 24px;
  z-index: 1500;
  width: min(420px, calc(100vw - 32px));
  margin: 0;
}
body:not(.page-carte) .messages .message {
  position: relative;
  padding: 12px 40px 12px 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  animation: notification-entree 0.25s ease-out;
}
@keyframes notification-entree { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body:not(.page-carte) .messages .message { animation: none; } }
.message--sortie { opacity: 0; transform: translateY(-6px); transition: opacity 0.3s ease, transform 0.3s ease; }
.message__fermer {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 2px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: 400 20px/1.2 var(--police);
  cursor: pointer;
}
.message__fermer:hover { background: rgba(0, 0, 0, 0.08); }

/* 13. Les rôles des couleurs (19/10/2026, voir l'en-tête de la palette) : orange = action principale et marque ;
   noir = ce qui est choisi ; vert, ambre, rouge, gris = les statuts. */
.filtre-pastille[aria-current="true"] {
  border-color: var(--texte-encre);
  background: var(--texte-encre);
  color: var(--texte-inverse);
}
.filtre-actif {
  border: 1px solid var(--texte-encre);
  background: var(--fond-carte);
  color: var(--texte-encre);
}
.filtre-actif:hover { background: var(--fond-entete); }
.etape--courante .etape__repere { background: var(--texte-encre); color: var(--texte-inverse); }
.tableau tr.ligne--choisie td { background: var(--selection-fond); }
.pastille--a-placer { background: var(--statut-ambre-fond); color: var(--statut-ambre); }

/* 14. Finitions (19/10/2026, demande d'Amine : « plus pro, plus propre, plus intuitif, plus dynamique »).
   Hiérarchie des titres moins lourde, cartes dessinées par un filet fin, barre de navigation qui réagit au survol, champs qui
   montrent clairement leur focus, boutons qui répondent au survol, défilement des tableaux discret, page qui apparaît en
   douceur. Rien ne change de place ; seules les tailles des deux niveaux de titre baissent. */
.titre-page { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.01em; }
.titre-section { font-size: 18px; line-height: 24px; font-weight: 600; }

.carte,
.indicateurs { border: 1px solid var(--trait-discret); }

.onglet-nav:not([aria-current="page"]):hover { background: rgb(255 255 255 / 10%); }
.bouton--principal:hover { box-shadow: 0 2px 8px rgba(242, 148, 0, 0.35); }
.bouton--contour:hover,
.bouton--secondaire:hover { border-color: var(--trait-controle); }

.champ input:not([type="checkbox"]):not([type="radio"]):focus,
.champ select:focus,
.champ textarea:focus,
.champ-carte input:focus {
  border-color: var(--texte-encre);
  outline: 3px solid rgb(242 148 0 / 30%);
  outline-offset: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .champ input, .champ select, .champ textarea, .champ-carte input { transition: border-color 0.15s ease, outline-color 0.15s ease; }
  .bouton--principal, .bouton--contour { transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, transform 0.1s ease; }
}

.tableau-conteneur { scrollbar-width: thin; scrollbar-color: var(--trait-defaut) transparent; }

/* 15. Texte un peu plus grand (19/10/2026, demande d'Amine : « la police est petite »). +1 px sur le texte courant (14 px devient
   15 px) et sur les petits textes qui accompagnent les tableaux et les cartes (12 px devient 13 px). La barre de navigation, la
   matrice (ses colonnes ont une largeur fixe) et les titres gardent leur taille. */
body { font-size: 15px; }
.legende,
.tableau th,
.pastille,
.champ__libelle,
.etape__detail,
.indicateur__detail,
.carte__sous-titre { font-size: 13px; }
.pastille--sans-picto { font-size: 13px; }
/* Le tableau de la liste des IP a des colonnes étroites (avec la fiche à côté) : il garde ses tailles d'origine. */
.tableau--ip { font-size: 14px; }
.tableau--ip th,
.tableau--ip .pastille,
.tableau--ip .legende { font-size: 12px; }

/* 16. Comparateur de thèmes (essai du 19/10/2026, demande d'Amine : « je trouve l'application fade, froide »).
   Le menu « Thème » de la barre pose data-palette sur <html>. Sans data-palette, ou avec « origine », rien ne change :
   c'est l'apparence d'avant. Les trois autres thèmes changent les teintes (barre, fond, filets, texte), colorent le
   titre de la page dans un bandeau, agrandissent les chiffres clés et soulignent les cartes d'un filet de couleur.
   Les statuts (vert, ambre, rouge) et l'orange ICAM (l'action principale) ne changent pas. Une fois la palette choisie,
   ce bloc est réduit à ce thème et le comparateur est retiré. */
.menu-theme__panneau { width: 240px; }
/* Sur un écran moyen, le menu n'est qu'un petit rond (le nom de la personne garde sa place). */
@media (max-width: 1599px) {
  .menu-theme .puce-campagne__texte { font-size: 0; }
  .menu-theme .puce-campagne__texte::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(#f29400 0 50%, #646466 50% 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); }
}
.menu-theme__puce { flex: none; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }

:root[data-palette="marine"] {
  --nav-barre: #0f2742; --nav-onglet: #0f2742; --nav-onglet-actif: #0f2742; --nav-texte-inactif: #b9c6d8;
  --fond-page: #f3f6fa; --fond-entete: #eef2f8; --trait-discret: #e4eaf2; --trait-defaut: #c5cfdd;
  --texte-encre: #0f1b2d; --texte-gris: #4a5568; --selection-fond: #e2ebf7;
  --accent-2: #2563a8; --bandeau-fond: #0f2742;
}
:root[data-palette="petrole"] {
  --nav-barre: #0f4c5c; --nav-onglet: #0f4c5c; --nav-onglet-actif: #0f4c5c; --nav-texte-inactif: #b6d0d6;
  --fond-page: #f5f4f0; --fond-entete: #f1f2ee; --trait-discret: #e8e8e2; --trait-defaut: #c9cbc3;
  --texte-encre: #10262b; --texte-gris: #4d5a5c; --selection-fond: #e3eeed;
  --accent-2: #1b8a8f; --bandeau-fond: #0f4c5c;
}
:root[data-palette="graphite"] {
  --nav-barre: #1f1d1a; --nav-onglet: #1f1d1a; --nav-onglet-actif: #1f1d1a; --nav-texte-inactif: #bdb6ab;
  --fond-page: #f4f1ec; --fond-entete: #f6f3ee; --trait-discret: #e9e4db; --trait-defaut: #cdc6ba;
  --texte-encre: #1f1d1a; --texte-gris: #57524b; --selection-fond: #ece6db;
  --accent-2: #8a5a2b; --bandeau-fond: #2b2823;
}

/* Les trois thèmes colorés : le bandeau de titre, les chiffres clés, les pictogrammes, le filet des cartes. */
:root[data-palette="marine"] .en-tete-page,
:root[data-palette="petrole"] .en-tete-page,
:root[data-palette="graphite"] .en-tete-page {
  align-items: center;
  padding: 22px 28px;
  border-radius: var(--rayon-conteneur);
  background: var(--bandeau-fond);
  color: #ffffff;
}
:root[data-palette="marine"] .en-tete-page .titre-page,
:root[data-palette="petrole"] .en-tete-page .titre-page,
:root[data-palette="graphite"] .en-tete-page .titre-page { color: #ffffff; font-size: 32px; line-height: 38px; }
:root[data-palette="marine"] .en-tete-page__titres p,
:root[data-palette="petrole"] .en-tete-page__titres p,
:root[data-palette="graphite"] .en-tete-page__titres p { color: rgb(255 255 255 / 82%); }

:root[data-palette="marine"] .indicateur__valeur,
:root[data-palette="petrole"] .indicateur__valeur,
:root[data-palette="graphite"] .indicateur__valeur { font-size: 38px; line-height: 44px; color: var(--accent-2); }
:root[data-palette="marine"] .carre-icone,
:root[data-palette="petrole"] .carre-icone,
:root[data-palette="graphite"] .carre-icone { color: var(--accent-2); }
:root[data-palette="marine"] .carte,
:root[data-palette="petrole"] .carte,
:root[data-palette="graphite"] .carte,
:root[data-palette="marine"] .indicateurs,
:root[data-palette="petrole"] .indicateurs,
:root[data-palette="graphite"] .indicateurs { box-shadow: inset 0 3px 0 var(--accent-2); }

/* 17. Le thème « ICAM (charte) » (19/10/2026, demande d'Amine : respecter la charte graphique de l'Icam de 2018).
   Ce que dit la charte, et ce qui est repris :
   - deux couleurs de référence : l'orange #f29400 (déjà celui de l'application) et le gris #646466 ; le noir pour les textes ;
   - la police Montserrat (obligatoire quand le logotype est présent) : Light, Regular, SemiBold, Bold ;
   - l'univers graphique : les ondes orange (arcs concentriques, de manière discrète) et la petite barre de traits orange qui
     s'estompe, placées dans le bandeau de titre ;
   - des couleurs secondaires à usage mineur (ici : aucune, les statuts gardent leur vert, ambre et rouge).
   Le bandeau de titre rappelle celui du site de l'Icam (un grand titre sur un fond de couleur). Les polices sont des extraits
   latins des fichiers montserrat-latin-*.woff2 (licence OFL, voir static/fonts). */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/montserrat-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700.woff2") format("woff2"); }

:root[data-palette="icam"] {
  --police: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --nav-barre: #4d4d4f; --nav-onglet: transparent; --nav-onglet-actif: transparent; --nav-texte-inactif: #e6e6e7;
  --fond-page: #f1f1f0; --fond-entete: #f6f6f5; --trait-discret: #e6e6e4; --trait-defaut: #cfcfcd;
  --texte-gris: #646466; --selection-fond: #e8e8e6;
  --accent-2: #f29400; --bandeau-fond: #646466;
  --rayon-conteneur: 10px;
}
/* Montserrat est plus large que Inter : le texte courant passe à 14 px, les petits textes à 12 px, les boutons et la barre à 13 px. */
:root[data-palette="icam"] body { font-size: 14px; }
:root[data-palette="icam"] .legende,
:root[data-palette="icam"] .tableau th,
:root[data-palette="icam"] .pastille,
:root[data-palette="icam"] .pastille--sans-picto,
:root[data-palette="icam"] .champ__libelle,
:root[data-palette="icam"] .etape__detail,
:root[data-palette="icam"] .indicateur__detail { font-size: 12px; }
:root[data-palette="icam"] .onglet-nav,
:root[data-palette="icam"] .bouton,
:root[data-palette="icam"] .puce-campagne { font-size: 13px; }
:root[data-palette="icam"] .utilisateur__nom { font-size: 13px; }
:root[data-palette="icam"] .titre-section { font-size: 17px; font-weight: 600; }
:root[data-palette="icam"] .titre-page { font-weight: 300; font-size: 30px; line-height: 36px; letter-spacing: 0; }

/* La barre : le gris de la charte, plus foncé ; l'onglet survolé ou ouvert est souligné d'orange (le trait glisse). */
:root[data-palette="icam"] .onglet-nav:not(.onglet-nav--icone)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--marque-orange);
  opacity: 0.8;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
:root[data-palette="icam"] .onglet-nav:not(.onglet-nav--icone):hover::after,
:root[data-palette="icam"] .onglet-nav[aria-current="page"]::after { transform: scaleX(1); }
:root[data-palette="icam"] .onglet-nav[aria-current="page"]::after { opacity: 1; }

/* Le bandeau de titre : gris de la charte, ondes orange discrètes en bas à droite, petite barre de traits orange sous le titre. */
:root[data-palette="icam"] .en-tete-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-items: center;
  padding: 24px 30px;
  border-radius: var(--rayon-conteneur);
  background: linear-gradient(110deg, #58585a 0%, #646466 55%, #727274 100%);
  color: #ffffff;
}
:root[data-palette="icam"] .en-tete-page > * { position: relative; z-index: 1; }
:root[data-palette="icam"] .en-tete-page::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -170px;
  bottom: -230px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, #f29400 0 12px, transparent 12px 30px);
  -webkit-mask-image: radial-gradient(circle at center, transparent 0 40px, #000 150px);
  mask-image: radial-gradient(circle at center, transparent 0 40px, #000 150px);
  opacity: 0.32;
  pointer-events: none;
}
:root[data-palette="icam"] .en-tete-page .titre-page { color: #ffffff; }
:root[data-palette="icam"] .en-tete-page__titres p { color: rgb(255 255 255 / 86%); }
:root[data-palette="icam"] .en-tete-page__titres::after {
  content: "";
  display: block;
  width: 130px;
  height: 9px;
  margin-top: 6px;
  background: repeating-linear-gradient(90deg, #f29400 0 3px, transparent 3px 8px);
  -webkit-mask-image: linear-gradient(90deg, #000 25%, transparent);
  mask-image: linear-gradient(90deg, #000 25%, transparent);
}

/* Les cartes : blanches, un filet gris clair et une ombre à peine visible ; les chiffres clés en orange foncé de l'application. */
:root[data-palette="icam"] .carte,
:root[data-palette="icam"] .indicateurs { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
:root[data-palette="icam"] .indicateur__valeur { font-size: 36px; line-height: 42px; font-weight: 600; color: var(--marque-orange-fonce); }
:root[data-palette="icam"] .carre-icone { color: var(--marque-orange-fonce); }
:root[data-palette="icam"] .filtre-pastille[aria-current="true"] { border-color: #4d4d4f; background: #4d4d4f; }
:root[data-palette="icam"] .etape--courante .etape__repere { background: #4d4d4f; }
:root[data-palette="icam"] .bouton--principal:hover { transform: translateY(-1px); }

/* 18. Mouvements (tous les thèmes) : les cartes de la page arrivent l'une après l'autre, les barres de progression se
   remplissent. Coupés si la personne a demandé moins de mouvement. */
@media (prefers-reduced-motion: no-preference) {
  .taux__segment { transform-origin: left; animation: remplir 0.9s ease-out both; }
}
@keyframes remplir { from { transform: scaleX(0); } to { transform: none; } }
/* Montserrat étant plus large : une barre un peu plus serrée pour garder le nom de la personne entier, et le tableau de la
   liste des IP (colonnes étroites) un cran plus petit. */
:root[data-palette="icam"] .onglet-nav { padding-left: 6px; padding-right: 6px; gap: 5px; }
:root[data-palette="icam"] .barre-nav__onglets { gap: 2px; }
:root[data-palette="icam"] .puce-campagne { padding: 8px 10px 8px 12px; }
:root[data-palette="icam"] .tableau--ip { font-size: 13px; }
:root[data-palette="icam"] .tableau--ip th,
:root[data-palette="icam"] .tableau--ip .pastille,
:root[data-palette="icam"] .tableau--ip .legende { font-size: 11px; }

/* 19. Bandeau pleine largeur et texte plus grand sur grand écran (19/10/2026, demande d'Amine : « augmente la largeur du bandeau »,
   « augmente la police quand tu penses que c'est mieux », comme le site de l'Icam).
   - Le bandeau de titre va d'un bord de l'écran à l'autre, collé à la barre de navigation. Son contenu reste aligné sur celui
     de la page. Sur les pages étroites (accueil étudiant, formulaires), il va aussi jusqu'aux bords ; son texte suit la colonne.
   - Le titre est plus grand (40 px, 46 px dès 1920 px) et le sous-titre aussi (16 px).
   - Le texte courant, les petits textes, la barre et les boutons grandissent d'un cran dès 1600 px, de deux dès 1920 px : il y a
     la place, et c'est plus lisible. En dessous de 1600 px rien ne change. */
:root[data-palette="icam"] .page { --haut: 41px; --col: 1320px; }
:root[data-palette="icam"] .page--etroite { --haut: 56px; --col: 760px; }
:root[data-palette="icam"] .page--formulaire { --haut: 41px; --col: 720px; }
:root[data-palette="icam"] .page--formulaire-large { --haut: 41px; --col: 860px; }

:root[data-palette="icam"] .page:not(.page--etroite) > .en-tete-page {
  margin-left: calc(-1 * var(--marge-page));
  margin-right: calc(-1 * var(--marge-page));
  padding: 44px var(--marge-page);
  min-height: 170px;
  border-radius: 0;
}
:root[data-palette="icam"] .page:not(.page--etroite) > .en-tete-page:first-child { margin-top: calc(-1 * var(--haut)); }

/* Pages étroites : le bandeau déborde jusqu'aux bords de l'écran, son texte reste dans la colonne. */
:root[data-palette="icam"] { overflow-x: clip; }
:root[data-palette="icam"] .page--etroite > .en-tete-page {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: 0;
  padding: 40px max(var(--marge-page), calc((100vw - var(--col)) / 2));
  min-height: 150px;
  border-radius: 0;
  box-sizing: border-box;
}
:root[data-palette="icam"] .page--etroite > .en-tete-page:first-child { margin-top: calc(-1 * var(--haut)); }

:root[data-palette="icam"] .en-tete-page .titre-page { font-size: 40px; line-height: 46px; }
:root[data-palette="icam"] .en-tete-page__titres p { font-size: 16px; line-height: 24px; }
:root[data-palette="icam"] .en-tete-page::before { right: -120px; bottom: -310px; width: 640px; height: 640px; }
:root[data-palette="icam"] .en-tete-page__titres::after { width: 170px; height: 10px; margin-top: 10px; }

@media (min-width: 1600px) {
  :root[data-palette="icam"] body { font-size: 15px; }
  :root[data-palette="icam"] .legende,
  :root[data-palette="icam"] .tableau th,
  :root[data-palette="icam"] .pastille,
  :root[data-palette="icam"] .pastille--sans-picto,
  :root[data-palette="icam"] .champ__libelle,
  :root[data-palette="icam"] .etape__detail,
  :root[data-palette="icam"] .indicateur__detail { font-size: 13px; }
  :root[data-palette="icam"] .onglet-nav,
  :root[data-palette="icam"] .bouton,
  :root[data-palette="icam"] .puce-campagne,
  :root[data-palette="icam"] .utilisateur__nom { font-size: 14px; }
  :root[data-palette="icam"] .titre-section { font-size: 19px; }
  :root[data-palette="icam"] .indicateur__valeur { font-size: 40px; line-height: 46px; }
  :root[data-palette="icam"] .tableau--ip { font-size: 14px; }
  :root[data-palette="icam"] .tableau--ip th,
  :root[data-palette="icam"] .tableau--ip .pastille,
  :root[data-palette="icam"] .tableau--ip .legende { font-size: 12px; }
}
@media (min-width: 1920px) {
  :root[data-palette="icam"] body { font-size: 16px; }
  :root[data-palette="icam"] .legende,
  :root[data-palette="icam"] .tableau th,
  :root[data-palette="icam"] .pastille,
  :root[data-palette="icam"] .pastille--sans-picto,
  :root[data-palette="icam"] .champ__libelle,
  :root[data-palette="icam"] .etape__detail,
  :root[data-palette="icam"] .indicateur__detail { font-size: 14px; }
  :root[data-palette="icam"] .onglet-nav,
  :root[data-palette="icam"] .bouton,
  :root[data-palette="icam"] .puce-campagne,
  :root[data-palette="icam"] .utilisateur__nom { font-size: 15px; }
  :root[data-palette="icam"] .titre-section { font-size: 21px; }
  :root[data-palette="icam"] .en-tete-page .titre-page { font-size: 46px; line-height: 52px; }
  :root[data-palette="icam"] .en-tete-page__titres p { font-size: 18px; line-height: 26px; }
  :root[data-palette="icam"] .indicateur__valeur { font-size: 44px; line-height: 50px; }
  :root[data-palette="icam"] .tableau--ip { font-size: 15px; }
  :root[data-palette="icam"] .tableau--ip th,
  :root[data-palette="icam"] .tableau--ip .pastille,
  :root[data-palette="icam"] .tableau--ip .legende { font-size: 13px; }
}

/* 20. Une application de travail, 2026 (19/10/2026, demande d'Amine : « pro, corporate, dynamique, vraiment 2026-2027 »).
   - La barre de navigation reste collée en haut, avec une ombre dès qu'on défile ; la fiche collée de la liste des IP s'arrête dessous.
   - Les chiffres clés ont une jauge fine ; l'étape en cours de la frise pulse doucement ; les titres se répartissent mieux.
   Tout est coupé si la personne a demandé moins de mouvement. */
:root[data-palette="icam"] .barre-nav { position: sticky; top: 0; z-index: 100; transition: box-shadow 0.2s ease; }
:root[data-palette="icam"] .barre-nav--defile { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28); }
:root[data-palette="icam"] .deux-colonnes--liste > .colonne-laterale--etroite { top: 80px; }
:root[data-palette="icam"] .titre-page,
:root[data-palette="icam"] .titre-section { text-wrap: balance; }

.indicateur__jauge { height: 6px; margin: 2px 0 4px; border-radius: 3px; background: var(--trait-discret); overflow: hidden; }
.indicateur__jauge--vide { background: transparent; }
.indicateur__jauge > span { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--marque-orange); transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }

@keyframes pulsation { 0% { box-shadow: 0 0 0 0 rgba(242, 148, 0, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(242, 148, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 148, 0, 0); } }
@media (prefers-reduced-motion: no-preference) { .etape--courante .etape__repere { animation: pulsation 2.2s ease-out infinite; } }

/* 21. Le bandeau de titre sur la photo (19/10/2026, demande d'Amine, d'après la charte : « sur fond photo sombre, texte blanc »).
   La photo de la page de connexion remplace le gris, assombrie par un voile plus dense à gauche (le titre) et plus léger à
   droite (les boutons). Les ondes sont retirées : la charte ne les mêle pas à une photo ; la barre de traits orange reste. */
:root[data-palette="icam"] .en-tete-page {
  background:
    linear-gradient(90deg, rgba(30, 30, 32, 0.80) 0%, rgba(30, 30, 32, 0.62) 45%, rgba(30, 30, 32, 0.40) 100%),
    url("../img/connexion-fond.jpg") center 32% / cover no-repeat;
  background-color: #4d4d4f;
}
:root[data-palette="icam"] .en-tete-page::before { display: none; }

/* Un dégradé entre la barre grise et la photo : le haut du bandeau reprend le gris de la barre puis s'efface (demandé le 19/10/2026). */
:root[data-palette="icam"] .en-tete-page {
  background:
    linear-gradient(180deg, rgba(77, 77, 79, 0.85) 0%, rgba(77, 77, 79, 0) 16%),
    linear-gradient(90deg, rgba(30, 30, 32, 0.80) 0%, rgba(30, 30, 32, 0.62) 45%, rgba(30, 30, 32, 0.40) 100%),
    url("../img/connexion-fond.jpg") center 32% / cover no-repeat;
  background-color: #4d4d4f;
}


/* 22. Barre de navigation blanche, comme celle d'un site de formation en ligne (19/10/2026, demande d'Amine, exemple : Udemy).
   Un filet orange en haut, le logo en version monochrome (la charte l'autorise sur fond clair), des onglets en texte foncé
   soulignés d'orange, une personne connectée en rond foncé. La photo du bandeau commence sous la barre. */
:root[data-palette="icam"] .barre-nav {
  background: #ffffff;
  box-shadow: 0 1px 0 #e6e6e4;
}
:root[data-palette="icam"] .barre-nav--defile { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }
:root[data-palette="icam"] .barre-nav__logo { filter: brightness(0); }
:root[data-palette="icam"] .barre-nav__marque::after { background: #cfcfcd; }
:root[data-palette="icam"] .onglet-nav { color: #3f3f41; }
:root[data-palette="icam"] .onglet-nav:hover,
:root[data-palette="icam"] .onglet-nav[aria-current="page"] { color: #000000; }
:root[data-palette="icam"] .onglet-nav:not([aria-current="page"]):hover { background: rgba(0, 0, 0, 0.05); }
:root[data-palette="icam"] .puce-campagne {
  border-color: #cfcfcd;
  background: #ffffff;
  color: #1f1f20;
}
:root[data-palette="icam"] .puce-campagne:hover { background: #f4f4f3; }
:root[data-palette="icam"] .puce-campagne__fleche { color: #646466; }
:root[data-palette="icam"] .utilisateur__nom { color: #1f1f20; }
:root[data-palette="icam"] .utilisateur__role { color: #646466; }
:root[data-palette="icam"] .barre-nav .avatar { background: #1f1f20; color: #ffffff; }
:root[data-palette="icam"] .barre-nav__menu { border-color: #cfcfcd; color: #1f1f20; }
:root[data-palette="icam"] .en-tete-page {
  background:
    linear-gradient(180deg, rgba(26, 26, 28, 0.45) 0%, rgba(26, 26, 28, 0) 14%),
    linear-gradient(90deg, rgba(30, 30, 32, 0.80) 0%, rgba(30, 30, 32, 0.62) 45%, rgba(30, 30, 32, 0.40) 100%),
    url("../img/connexion-fond.jpg") center 32% / cover no-repeat;
  background-color: #4d4d4f;
}


/* 23. Plus d'espace (19/10/2026, demande d'Amine : « ça fait vieux site, mets des espaces »). La barre est plus haute et ses onglets
   plus aérés ; dès 1500 px, les espacements de toute l'application grandissent (entre les blocs, dans les cartes, entre les
   lignes). En dessous, rien ne change : les tableaux étroits ont besoin de leur place. */
:root[data-palette="icam"] .barre-nav__interieur { padding-top: 14px; padding-bottom: 14px; }
@media (min-width: 1500px) {
  :root[data-palette="icam"] {
    --espace-13: 16px;
    --espace-21: 26px;
    --espace-34: 44px;
    --espace-55: 70px;
  }
  :root[data-palette="icam"] .barre-nav__interieur { padding-top: 20px; padding-bottom: 20px; }
  :root[data-palette="icam"] .page { padding-top: 48px; }
  :root[data-palette="icam"] .page:not(.page--etroite) > .en-tete-page:first-child { margin-top: -48px; }
  :root[data-palette="icam"] .page { --haut: 48px; }
}
/* 26/10/2026 : les espacements aérés de la barre (entre les onglets, autour du nom) ne tiennent sur une ligne que dès 1800 px : entre 1500 et 1800 px,
   le bouton de déconnexion sortait de l'écran et toutes les pages défilaient en largeur. En dessous, la barre garde ses espacements serrés. */
@media (min-width: 1800px) {
  :root[data-palette="icam"] .barre-nav__interieur { gap: 12px; }
  :root[data-palette="icam"] .barre-nav__onglets { gap: 6px; }
  :root[data-palette="icam"] .onglet-nav { padding: 12px 14px; gap: 8px; }
  :root[data-palette="icam"] .barre-nav__logo { width: 78px; height: auto; }
  :root[data-palette="icam"] .barre-nav__marque { gap: 24px; padding-right: 16px; }
  :root[data-palette="icam"] .utilisateur { padding-left: 14px; gap: 12px; }
}

/* La liste des IP a des colonnes de largeur fixe : son texte garde la même taille à toutes les largeurs d'écran (sinon « Apprenti »
   et « Ajouter » se coupent), et le lien « Ajouter » ne passe pas à la ligne. */
:root[data-palette="icam"] .tableau--ip { font-size: 13px; }
:root[data-palette="icam"] .tableau--ip th,
:root[data-palette="icam"] .tableau--ip .pastille,
:root[data-palette="icam"] .tableau--ip .legende { font-size: 11px; }
.tableau--ip .lien-cv { white-space: nowrap; }


/* 24. Fond blanc comme sur un site de formation en ligne (19/10/2026, demande d'Amine, exemple : Udemy). La page est blanche ; les
   cartes ne se détachent plus par leur couleur mais par un filet gris fin, sans ombre. */
:root[data-palette="icam"] {
  --fond-page: #ffffff;
  --trait-discret: #dcdcdd;
  --selection-fond: #f1f1f0;
}
:root[data-palette="icam"] .carte,
:root[data-palette="icam"] .indicateurs { border: 1px solid #dcdcdd; box-shadow: none; }
:root[data-palette="icam"] .tableau-conteneur { border-color: #dcdcdd; }


/* 25. Une couleur dans la barre (demandé le 19/10/2026) : le fond crème orangé de l'application (#fef3e0, le fond clair de l'orange
   ICAM) à la place du blanc ; un filet orangé clair dessous. Le texte reste foncé, les sélecteurs restent blancs. */
:root[data-palette="icam"] .barre-nav {
  background: var(--action-principal-fond);
  box-shadow: 0 1px 0 #f2d9a8;
}
:root[data-palette="icam"] .barre-nav--defile { box-shadow: 0 4px 16px rgba(120, 70, 0, 0.16); }
:root[data-palette="icam"] .onglet-nav:not([aria-current="page"]):hover { background: rgba(242, 148, 0, 0.14); }


/* 26. La barre dans le style du bandeau (19/10/2026, demande d'Amine : « la même chose que le bandeau »). La même photo, fixée à l'écran,
   passe derrière la barre et derrière le bandeau, sous le même voile sombre : il n'y a pas de coupure entre les deux. Le texte
   est blanc, le logo en version blanche de la charte, les sélecteurs en verre sombre. */
:root[data-palette="icam"] .barre-nav {
  background:
    linear-gradient(90deg, rgba(30, 30, 32, 0.80) 0%, rgba(30, 30, 32, 0.72) 100%),
    url("../img/connexion-fond.jpg") center 32% / cover no-repeat;
  background-attachment: scroll, fixed;
  background-color: #3a3a3c;
  box-shadow: none;
}
:root[data-palette="icam"] .barre-nav--defile { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
:root[data-palette="icam"] .barre-nav__logo { filter: none; }
:root[data-palette="icam"] .barre-nav__marque::after { background: rgb(255 255 255 / 45%); }
:root[data-palette="icam"] .onglet-nav { color: rgb(255 255 255 / 88%); }
:root[data-palette="icam"] .onglet-nav:hover,
:root[data-palette="icam"] .onglet-nav[aria-current="page"] { color: #ffffff; }
:root[data-palette="icam"] .onglet-nav:not([aria-current="page"]):hover { background: rgb(255 255 255 / 12%); }
:root[data-palette="icam"] .puce-campagne {
  border-color: rgb(255 255 255 / 40%);
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
}
:root[data-palette="icam"] .puce-campagne:hover { background: rgb(255 255 255 / 20%); }
:root[data-palette="icam"] .puce-campagne__fleche { color: rgb(255 255 255 / 80%); }
:root[data-palette="icam"] .utilisateur__nom { color: #ffffff; }
:root[data-palette="icam"] .utilisateur__role { color: rgb(255 255 255 / 80%); }
:root[data-palette="icam"] .barre-nav .avatar { background: var(--action-principal-fond); color: var(--action-texte); }
:root[data-palette="icam"] .barre-nav__menu { border-color: rgb(255 255 255 / 50%); color: #ffffff; }
:root[data-palette="icam"] .en-tete-page {
  background:
    linear-gradient(180deg, rgba(30, 30, 32, 0.72) 0%, rgba(30, 30, 32, 0) 18%),
    linear-gradient(90deg, rgba(30, 30, 32, 0.80) 0%, rgba(30, 30, 32, 0.62) 45%, rgba(30, 30, 32, 0.40) 100%),
    url("../img/connexion-fond.jpg") center 32% / cover no-repeat;
  background-attachment: scroll, scroll, fixed;
  background-color: #3a3a3c;
}

/* Le raccord : la barre et le bandeau ont EXACTEMENT le même voile et la même photo fixe, sans dégradé de haut de bandeau, donc aucune
   marche à la jonction (demandé le 19/10/2026 : « cette partie est bizarre »). Un léger ombrage du texte aide la lecture à droite. */
:root[data-palette="icam"] .barre-nav {
  background:
    linear-gradient(90deg, rgba(30, 30, 32, 0.80) 0%, rgba(30, 30, 32, 0.66) 45%, rgba(30, 30, 32, 0.56) 100%),
    url("../img/connexion-fond.jpg") center 32% / cover no-repeat;
  background-attachment: scroll, fixed;
}
:root[data-palette="icam"] .en-tete-page {
  background:
    linear-gradient(90deg, rgba(30, 30, 32, 0.80) 0%, rgba(30, 30, 32, 0.66) 45%, rgba(30, 30, 32, 0.56) 100%),
    url("../img/connexion-fond.jpg") center 32% / cover no-repeat;
  background-attachment: scroll, fixed;
}
:root[data-palette="icam"] .barre-nav .onglet-nav,
:root[data-palette="icam"] .barre-nav .utilisateur__qui { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
:root[data-palette="icam"] .barre-nav { box-shadow: none; }


/* 27. Corrections du 20/10/2026 (document « regarde pq y a du blanc »).
   - Le bandeau de titre va toujours d'un bord de l'écran à l'autre, collé à la barre, sur toutes les pages (même quand il est dans
     un bloc de la page, comme la matrice) ; plus de bande blanche au-dessus, titre toujours aligné à gauche.
   - Il ne coupe plus ses menus (le choix « Méthode » de la matrice s'ouvrait caché derrière lui).
   - L'avis « lecture seule » n'est plus dans le flux (il créait la bande blanche) : c'est une note posée en bas de l'écran.
   - Les tableaux à colonnes étroites (charge des CdP, liste des IP) gardent des tailles de texte compactes pour ne plus se chevaucher. */
:root[data-palette="icam"][data-palette] main.page.page:has(.en-tete-page) { padding-top: 0; }
:root[data-palette="icam"][data-palette] main.page.page .en-tete-page {
  position: relative;
  z-index: 5;
  overflow: visible;
  box-sizing: border-box;
  width: 100vw;
  min-height: 150px;
  margin: 0 0 0 calc(50% - 50vw);
  padding: 40px var(--marge-page);
  border-radius: 0;
  text-align: left;
  align-items: center;
}
:root[data-palette="icam"][data-palette] main.page.page--etroite .en-tete-page { padding-left: max(var(--marge-page), calc((100vw - var(--col)) / 2)); padding-right: max(var(--marge-page), calc((100vw - var(--col)) / 2)); }
:root[data-palette="icam"] .en-tete-page__titres { align-items: flex-start; text-align: left; }
:root[data-palette="icam"] .en-tete-page .titre-page,
:root[data-palette="icam"] .en-tete-page__titres p { text-align: left; }

:root[data-palette="icam"] main.page > .message--info[role="note"] {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 1400;
  width: min(760px, calc(100vw - 32px));
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #dcdcdd;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  font-size: 13px;
}

:root[data-palette="icam"] .tableau--charge,
:root[data-palette="icam"] .colonne-laterale .tableau { font-size: 13px; }
:root[data-palette="icam"] .tableau--charge th,
:root[data-palette="icam"] .colonne-laterale .tableau th,
:root[data-palette="icam"] .tableau--charge .pastille { font-size: 11px; }

/* Le tableau « Charge des CdP » tient en entier dans sa carte (320 px) : texte de 12 px, colonnes resserrées. */
:root[data-palette="icam"] .tableau--charge { font-size: 12px; }
:root[data-palette="icam"] .tableau--charge th, :root[data-palette="icam"] .tableau--charge td { padding-left: 3px; padding-right: 3px; }
:root[data-palette="icam"] .tableau--charge th:first-child, :root[data-palette="icam"] .tableau--charge td:first-child { padding-left: 8px; }
:root[data-palette="icam"] .tableau--charge th { font-size: 11px; }
:root[data-palette="icam"] .tableau--charge th:nth-child(1) { width: 100px; }   /* 26/10/2026 : « Emmanuelm » et « Dogheche » se coupaient en 76 px */
:root[data-palette="icam"] .tableau--charge th:nth-child(2) { width: 44px; }
:root[data-palette="icam"] .tableau--charge th:nth-child(3) { width: 40px; }
:root[data-palette="icam"] .tableau--charge th:nth-child(4) { width: 40px; }   /* Reçus */
:root[data-palette="icam"] .tableau--charge th:nth-child(5) { width: 58px; }   /* Votés 1-2 */

/* Deux détails de largeur fixe : l'état « Brouillon, étape 4 sur 9 » du suivi garde sa taille d'origine (12 px) pour rester dans sa
   colonne, et le code d'un vœu de mémoire (« CHAIRE ») a la place de son mot avant la barre. */
:root[data-palette="icam"] .tableau--suivi .pastille { font-size: 12px; }
:root[data-palette="icam"] .voeu__code { width: 74px; flex: none; }

/* Les pastilles d'un tableau gardent 12 px à toutes les largeurs d'écran, et ne dépassent jamais leur colonne : un mot long
   (« Proposition commerciale ») passe à la ligne au lieu de recouvrir la colonne voisine. */
:root[data-palette="icam"] .tableau .pastille { font-size: 12px; max-width: 100%; white-space: normal; }

/* « Intérêt par domaine » : le nom, la barre et le total s'étalent sur toute la largeur de la carte (la barre avait 518 px fixes, ce qui
   la laissait collée à gauche sur un grand écran). */
:root[data-palette="icam"] .interet { grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) minmax(140px, 190px); column-gap: 24px; }

/* Les tableaux des cartes de droite (colonne latérale) ont des colonnes étroites : 12 px, pour que « Électrotechnique » tienne. */
:root[data-palette="icam"] .colonne-laterale .tableau { font-size: 12px; }
:root[data-palette="icam"] .colonne-laterale .tableau th { font-size: 11px; }
:root[data-palette="icam"] .colonne-laterale .tableau td:first-child { overflow-wrap: break-word; hyphens: auto; padding-right: 10px; }

/* Un bandeau « simple » est une colonne : son contenu s'étire et reste à gauche (le centrage vertical des autres bandeaux le centrait en largeur,
   comme « Bonjour CdP 1, vos entretiens »). */
:root[data-palette="icam"][data-palette] main.page.page .en-tete-page--simple { align-items: stretch; justify-content: center; }


/* Le guide de préparation d'une campagne (20/10/2026) : une liste numérotée d'étapes, la prochaine à faire est mise en avant. */
.guide__progression { height: 6px; border-radius: 3px; background: var(--trait-discret); overflow: hidden; }
.guide__progression > span { display: block; height: 100%; border-radius: 3px; background: var(--marque-orange); transition: width 0.6s ease; }
.guide--prete .guide__progression > span { background: var(--statut-vert); }
.guide__etapes { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.guide__etape {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--trait-discret);
  border-radius: var(--rayon);
}
.guide__etape:last-child { border-bottom: 0; }
.guide__repere {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--rayon-pastille);
  background: var(--statut-gris-fond);
  color: var(--texte-gris);
  font-weight: 600;
}
.guide__titre { margin: 0; font-weight: 600; }
.guide__consigne { margin: 2px 0 0; color: var(--texte-gris); }
.guide__detail { margin: 4px 0 0; font-size: 13px; font-weight: 500; color: var(--texte-gris); }
.guide__facultatif { margin-left: 6px; font-size: 11px; font-weight: 500; color: var(--texte-gris); }
.guide__suivante {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--rayon-etiquette);
  background: var(--action-principal-fond);
  color: var(--action-texte);
  font-size: 12px;
  font-weight: 600;
}
/* Une étape faite : un rond vert, le texte atténué. L'étape courante : fond orange clair et rond noir. */
.guide__etape--faite .guide__repere { background: var(--statut-vert); color: #ffffff; }
.guide__etape--faite .guide__titre { color: var(--texte-gris); font-weight: 500; }
.guide__etape--faite .guide__detail { color: var(--statut-vert); }
.guide__etape--courante { background: var(--action-principal-fond); }
.guide__etape--courante .guide__repere { background: var(--texte-encre); color: #ffffff; }
@media (max-width: 720px) {
  .guide__etape { grid-template-columns: 32px minmax(0, 1fr); }
  .guide__etape > .bouton { grid-column: 2; justify-self: start; }
}

/* 28. Le courriel du CdP à ses étudiants (accueil des interviewers, 22/10/2026) : une carte large comme « Mes entretiens ».
   À gauche, à qui et quel objet, puis les boutons ; à droite, le texte du courriel sur fond clair. */
.courriel__corps {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.5fr);
  gap: var(--espace-21);
  align-items: start;
}
.courriel__infos { display: flex; flex-direction: column; gap: var(--espace-13); min-width: 0; }
.courriel__infos > * { margin: 0; }
.courriel__liste {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
  font-size: 14px;
}
.courriel__liste dt { font-weight: 600; color: var(--texte-gris); }
.courriel__liste dd { margin: 0; }
@media (max-width: 900px) {
  .courriel__corps { grid-template-columns: minmax(0, 1fr); }
}
.courriel-apercu {
  padding: 10px 14px;
  border: 1px solid var(--trait-discret);
  border-radius: var(--rayon);
  background: var(--fond-entete);
  color: var(--texte-encre);
  font-size: 14px;
  line-height: 1.5;
}
.courriel-apercu p { margin: 0 0 10px; }
.courriel-apercu p:last-child { margin-bottom: 0; }
.courriel-apercu a { text-decoration: underline; }

/* 29. La matrice des IP en grand (22/10/2026) : avec peu de projets (12 au plus), il y a de la place, mais les cases de 18 px et le texte de
   11 px restaient minuscules sur un grand écran. Le gabarit ajoute « matrice-ip--grande » (matrice_ip.py, PROJETS_MAX_MATRICE_GRANDE).
   Avec plus de projets, la matrice garde sa taille serrée : rien ne change. */
.matrice-ip.matrice-ip--grande { font-size: 15px; }
.matrice-ip--grande th.matrice-ip__ip { width: 210px; }
.matrice-ip--grande th.matrice-ip__affecte,
.matrice-ip--grande td.matrice-ip__affecte { width: 170px; }
.matrice-ip--grande th.matrice-ip__voeu,
.matrice-ip--grande td.matrice-ip__voeu { width: 70px; }
/* Les noms de projets sont penchés à 60° : un nom de 180 px monte de 156 px. L'en-tête fait 190 px, le nom commence à 176 px du haut. */
.matrice-ip--grande .matrice-ip__titres th { height: 190px; font-size: 14px; }
.matrice-ip--grande .matrice-ip__nom { top: 176.5px; max-width: 180px; font-size: 15px; line-height: 18px; }
.matrice-ip--grande .chip-voeu,
.matrice-ip--grande .chip-nuance { min-width: 34px; height: 28px; border-radius: 5px; font-size: 15px; }
.matrice-ip--grande .pastille-pct { min-width: 56px; height: 28px; border-radius: 5px; font-size: 14px; }
.matrice-ip--grande .matrice-ip__tri { width: 28px; height: 24px; }
.matrice-ip--grande .matrice-ip__non-adapte { top: 3px; left: calc(50% + 12px); width: 12px; height: 12px; }
.matrice-ip--grande .matrice-ip__non-adapte .icone { width: 8px; height: 8px; }
.matrice-ip--grande .chip-parcours { padding: 2px 6px; font-size: 12px; }
.matrice-ip--grande .matrice-ip__ligne th,
.matrice-ip--grande .matrice-ip__ligne td { height: 42px; }
.matrice-ip--grande .matrice-ip__synthese th,
.matrice-ip--grande .matrice-ip__synthese td { height: 38px; font-size: 14px; }
.matrice-ip--grande .matrice-ip__synthese--places th,
.matrice-ip--grande .matrice-ip__synthese--places td { height: 42px; }
.matrice-ip--grande .matrice-ip__boite { width: 44px; height: 34px; }
.matrice-ip--grande .pastille-etat { min-width: 28px; height: 28px; border-radius: 14px; font-size: 14px; line-height: 16px; }
.matrice-ip--grande .matrice-ip__coche .icone { width: 20px; height: 20px; }
.matrice-ip--grande .matrice-ip__groupe th { height: 42px; font-size: 15px; }
.matrice-ip--grande .pastille--a-placer { font-size: 13px; padding: 3px 8px; }
.matrice-ip--grande .matrice-ip__projet-affecte { font-size: 15px; }

/* 30. Téléphone (23/10/2026) : deux défauts trouvés en passant les accueils et les pages du CdP sur un écran de 375 px.
   1. Le tableau « Mes entretiens ». Ses colonnes fixes (heure, série, lieu, statut, action) prenaient toute la largeur du tableau : la colonne « Étudiant »
   n'avait plus de place, le nom s'écrivait lettre par lettre. Le tableau garde donc une largeur minimale qui lui laisse
   160 px, et défile de côté sur un petit écran (le cadre .tableau-conteneur le permet déjà). */
.tableau--entretiens { min-width: 880px; }

/* Téléphone : une colonne latérale à largeur fixe (360, 376, 430 px…) ne dépasse jamais la page.
   Sur « Mes disponibilités », la carte « Résumé » touchait le bord droit : sa largeur fixe, écrite plus bas que la règle
   des petits écrans, l'emportait. Sur grand écran, rien ne change (la colonne est plus étroite que la page). */
.colonne-laterale { max-width: 100%; }


/* 31. La fiche d'un entretien : P14 (entretien 1) et P15 (entretiens 2 et 3) (23/10/2026).
   Figma : page « 04 Entretiens », cadres « P14 · Entretien 1 » et « P15 · Entretien 2 ».
   À gauche l'étudiant (340 px), à droite ce que le CdP saisit. Le code est dans entretiens/fiche.py. */

.fiche-colonnes > .fiche-gauche { flex: none; width: 340px; }
.fiche-colonnes > .fiche-droite { flex: 1; min-width: 0; }
@media (max-width: 1100px) {
  .fiche-colonnes > .fiche-gauche { width: auto; }
  /* Sur un écran étroit, ce que le CdP saisit passe avant la carte de l'étudiant (le compte rendu, ou les projets). */
  .fiche-colonnes > .fiche-droite { order: -1; }
}
/* Téléphone : des cases plus grandes à toucher (36 px). */
@media (max-width: 720px) {
  .fiche-chip { width: 36px; height: 36px; }
  .oui-non__choix { height: 36px; min-width: 60px; }
}
.fiche-entete .actions { flex-wrap: wrap; }

/* « Étudiant : IP 16 ▾ » (Figma P14-F1 et P15-F1) : une puce à droite du titre de la fiche, comme celle de la campagne dans la barre.
   Elle ouvre la liste des entretiens de l'interviewer, chacun avec son état. C'est le menu déroulant de la barre (.menu-campagne). */
.fiche-titre-etudiant {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.choix-etudiant__panneau {
  right: auto;
  left: 0;
  max-height: 70vh;
  overflow-y: auto;
}
a.menu-campagne__ligne { text-decoration: none; }
/* Le titre du panneau (« Mes entretiens du jeudi 01/10 ») est dans l'en-tête sombre de la page : sans ceci il prend le blanc et la taille des phrases de l'en-tête. */
.en-tete-page__titres .choix-etudiant__panneau p.menu-campagne__titre {
  margin: 0 0 4px;
  color: var(--texte-gris);
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
}
.choix-etudiant__autres { margin-top: 8px; padding: 0 2px; }
.choix-etudiant__autres > summary { display: inline-flex; list-style: none; cursor: pointer; }
.choix-etudiant__autres > summary::-webkit-details-marker { display: none; }
.choix-etudiant__jour { margin-top: 12px; }

/* Le bandeau « Vous avez écrit depuis le dernier enregistrement » : visible seulement quand une saisie attend. */
.fiche-bandeau {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 16px;
  border-radius: var(--rayon-conteneur);
  background: var(--statut-ambre-fond);
  color: var(--statut-ambre);
}
.fiche-bandeau[hidden] { display: none; }

/* La carte IP se replie pour laisser la place aux projets. */
.fiche-replier > summary {
  margin-bottom: 8px;
  color: var(--texte-encre);
  font-weight: 600;
  text-align: right;
  cursor: pointer;
  list-style: none;
}
.fiche-replier > summary::-webkit-details-marker { display: none; }
.fiche-replier:not([open]) > summary::after { content: " (déplier)"; font-weight: 400; color: var(--texte-gris); }
.fiche-replier > summary:focus-visible { outline: 2px solid var(--action-texte); outline-offset: 2px; }

.fiche-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.fiche-citation { color: var(--texte-gris); }

/* Le titre d'une carte, avec la pastille « Enregistré à 10:32 » à droite. */
.fiche-titre-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.fiche-etat:empty { display: none; }
.fiche-erreurs:empty { display: none; }
.fiche-erreurs { padding: 10px 12px; border-radius: var(--rayon); background: var(--statut-rouge-fond); color: var(--statut-rouge); }

/* La zone du compte rendu. */
.fiche-texte {
  width: 100%;
  min-height: 130px;
  padding: 12px 14px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font: 400 14px/1.5 var(--police);
  resize: vertical;
}
.fiche-texte:focus-visible { outline: 2px solid var(--texte-encre); outline-offset: 1px; }
.fiche-texte[readonly] { background: var(--fond-entete); }

/* Les domaines. Un domaine pas encore tranché est grisé : il reste neutre. */
.tableau--domaines { min-width: 560px; }
.tableau--domaines .cellule-titre { font-size: 14px; font-weight: 600; color: var(--texte-encre); }
.tableau--domaines tr.domaine--neutre .cellule-titre { font-weight: 400; color: var(--texte-gris); }
.tableau--domaines td { padding: 8px 6px; }

/* Une note de 1 à 5 : cinq cases. La case choisie est foncée (02/11/2026 : « faudrait un truc plus classe », l'orange faisait bouton d'action). */
.fiche-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fiche-chip-etiquette { display: inline-flex; }
.fiche-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--trait-controle);
  border-radius: 6px;
  background: var(--fond-carte);
  color: var(--texte-encre);
  font: 500 14px/1 var(--police);
  cursor: pointer;
}
button.fiche-chip:disabled { cursor: not-allowed; opacity: .6; }
.fiche-chip:hover { background: var(--fond-entete); }
.fiche-chip--actif,
.fiche-chip-etiquette input:checked + .fiche-chip {
  border-color: var(--texte-encre);
  background: var(--texte-encre);
  color: var(--texte-inverse);
  font-weight: 600;
}
.fiche-chip--actif:hover { background: var(--texte-encre); }
.fiche-chip-etiquette input:focus-visible + .fiche-chip,
.fiche-chip:focus-visible { outline: 2px solid var(--texte-encre); outline-offset: 2px; }
.fiche-declare { margin-left: 4px; color: var(--action-texte); }

/* OUI / NON : deux boutons collés. OUI choisi est vert, NON choisi est rouge. */
.oui-non { display: inline-flex; }
.oui-non__etiquette { display: inline-flex; }
.oui-non__choix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 56px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--trait-controle);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font: 500 13px/1 var(--police);
  cursor: pointer;
}
.oui-non > .oui-non__choix:first-child,
.oui-non > .oui-non__etiquette:first-child .oui-non__choix { border-radius: var(--rayon) 0 0 var(--rayon); }
.oui-non > .oui-non__choix:last-child,
.oui-non > .oui-non__etiquette:last-child .oui-non__choix { border-radius: 0 var(--rayon) var(--rayon) 0; border-left: 0; }
button.oui-non__choix:disabled { cursor: not-allowed; opacity: .6; }
.oui-non__choix--oui,
.oui-non__etiquette input:checked + .oui-non__choix--radio-oui { border-color: var(--statut-vert); background: var(--statut-vert); color: var(--texte-inverse); font-weight: 600; }
.oui-non__choix--non,
.oui-non__etiquette input:checked + .oui-non__choix--radio-non { border-color: var(--statut-rouge); background: var(--statut-rouge); color: var(--texte-inverse); font-weight: 600; }
.oui-non__etiquette input:focus-visible + .oui-non__choix,
.oui-non__choix:focus-visible { outline: 2px solid var(--texte-encre); outline-offset: 2px; }

/* La logistique : trois champs par ligne. */
.grille-trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.fiche-oui-non-ligne { margin-top: 16px; }
.fiche-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
@media (max-width: 720px) {
  .grille-trois { grid-template-columns: minmax(0, 1fr); }
}

/* 29/10/2026 : la feuille papier de l'entretien 1 (appétences, profil, autres informations, remarques, binôme à éviter). */
/* Un profil (Elec, Meca, Info...) : une case plus large, avec le mot. */
.fiche-chip--mot { width: auto; min-width: 30px; padding: 0 12px; }
/* Le déplacement (Local, Régional, France) : trois boutons collés. Le choix est de la couleur des cases choisies, ni vert ni rouge : ce n'est pas un oui ou un non. */
.oui-non > .oui-non__etiquette:not(:first-child) .oui-non__choix { border-left: 0; }
.oui-non__etiquette input:checked + .oui-non__choix--radio-zone { border-color: var(--action-principal); background: var(--action-principal); color: var(--action-texte-sur-principal); font-weight: 600; }
/* Quatre champs par ligne : le déplacement, le permis B, le permis de plus de 2 ans, le véhicule. */
.grille-quatre { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; }
@media (max-width: 1100px) { .grille-quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grille-quatre { grid-template-columns: minmax(0, 1fr); } }
/* Un champ sur deux colonnes (« Loisirs » à côté du TOEIC). */
.fiche-champ-large { grid-column: span 2; }
@media (max-width: 720px) { .fiche-champ-large { grid-column: auto; } }
/* Un texte court (« Attentes du MSI », « Point particulier ») : la zone du compte rendu, en moins haute. */
.fiche-texte--court { min-height: 80px; }
/* Le binôme à éviter : la liste des IP notés, puis la liste pour en ajouter un. */
.fiche-binome { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.fiche-binome__liste { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fiche-binome__ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 6px 12px; border: 1px solid var(--trait-defaut); border-radius: var(--rayon); }
.fiche-binome__ligne form { margin: 0; }
.fiche-binome__ajout { max-width: 320px; }

/* P15 : les filtres des projets. Le filtre choisi est noir, comme les autres filtres de l'application. */
.fiche-filtres { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--rayon); background: var(--statut-gris-fond); align-self: flex-start; }
.fiche-filtre { padding: 8px 14px; border-radius: var(--rayon); color: var(--texte-encre); font-weight: 500; text-decoration: none; }
.fiche-filtre:hover { background: var(--fond-entete); }
.fiche-filtre--actif { background: var(--fond-carte); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / 20%); }
.fiche-filtre:focus-visible { outline: 2px solid var(--texte-encre); outline-offset: 2px; }

/* P15 : la liste des projets. Un projet « à proposer » est sur fond clair. */
.fiche-projets { border: 1px solid var(--trait-defaut); border-radius: var(--rayon-conteneur); overflow: hidden; }
.fiche-projet { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--trait-defaut); }
.fiche-projet:last-child { border-bottom: 0; }
.fiche-projet--proposer { background: var(--action-principal-fond); }
.fiche-projet__tete { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; }
.fiche-projet__nom { font-size: 15px; font-weight: 600; line-height: 1.3; }
.fiche-projet__pastilles { display: flex; flex-wrap: wrap; gap: 6px; }
.fiche-projet__raison { color: var(--statut-ambre); font-size: 13px; }
.fiche-projet__saisie { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; }
.fiche-note { display: flex; flex-direction: column; gap: 4px; }
.fiche-note__commentaire { flex: 1; min-width: 220px; }
.fiche-note__commentaire input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font: 400 14px/1.5 var(--police);
}
.fiche-note__commentaire input::placeholder { color: var(--texte-gris); }
.fiche-note__commentaire input[readonly] { background: var(--fond-entete); }
.fiche-autres { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 0; color: var(--texte-gris); }
.fiche-vide { padding: 16px; }

/* Le pied de la fiche : étudiant absent, ce qui reste neutre, terminer. */
.fiche-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.fiche-pied__texte { flex: 1; min-width: 200px; margin: 0; }

/* La version imprimable de la fiche d'entretien (« Exporter en PDF ») et sa trame vide (« Télécharger la trame »), refaites le 16/11/2026.
   Une page A4 : un en-tête (l'étudiant, quand, qui, le statut), des blocs sur deux colonnes, le compte rendu en bas.
   À l'écran, la même feuille posée sur un fond gris, comme un aperçu avant impression. */
body.page-impression { background: var(--fond-entete); }
.fiche-papier {
  box-sizing: border-box; width: 210mm; max-width: 100%; margin: 16px auto 48px; padding: 10mm 13mm 8mm;
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; color: var(--texte-encre); box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
  font-size: 9pt; line-height: 1.45;
}
.fiche-impression__outils { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.fiche-papier p { margin: 0; }
.fiche-papier .legende { font-size: 7.5pt; color: var(--texte-gris); }
.fiche-papier__entete {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding-bottom: 9px; border-bottom: 3px solid var(--marque-orange);
}
.fiche-papier__surtitre { font-size: 7.5pt; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--marque-orange-fonce); }
.fiche-papier__nom { margin: 2px 0 1px; font-size: 16pt; line-height: 1.15; font-weight: 600; }
.fiche-papier__sous-titre { color: var(--texte-gris); }
.fiche-papier__infos { margin: 0; display: grid; grid-template-columns: auto auto; gap: 1px 10px; font-size: 8pt; }
.fiche-papier__infos > div { display: contents; }
.fiche-papier__infos dt { color: var(--texte-gris); text-align: right; }
.fiche-papier__infos dd { margin: 0; font-weight: 600; }
.fiche-papier__grille { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px 22px; }
.fiche-papier__bloc { display: flex; flex-direction: column; gap: 5px; min-width: 0; break-inside: avoid; }
.fiche-papier__titre {
  margin: 0 0 2px; padding: 3px 8px; font-size: 8.5pt; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  background: var(--fond-entete); border-left: 3px solid var(--marque-orange);
}
.fiche-papier__titre span { text-transform: none; font-weight: 400; letter-spacing: 0; color: var(--texte-gris); }
.fiche-papier__bloc .fiche-papier__titre ~ .fiche-papier__titre { margin-top: 8px; }
.fiche-papier__texte { white-space: normal; }
.fiche-papier__top3 { margin: 0; padding-left: 18px; }
.fiche-papier__top3 li { padding: 2px 0; }
.fiche-papier__cases { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.fiche-papier__voeu { white-space: nowrap; }
.fiche-papier__compte-rendu .fiche-papier__texte { padding: 4px 6px; border: 1px solid var(--trait-defaut); border-radius: 3px; min-height: 16mm; }
.fiche-papier__zone-ecriture {
  flex: 1; min-height: 18mm; border: 1px solid var(--trait-defaut); border-radius: 3px;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(7mm - 1px), #d9d9d7 calc(7mm - 1px), #d9d9d7 7mm);
}
.fiche-papier__compte-rendu:has(.fiche-papier__zone-ecriture) { flex: 1; }
.fiche-papier__pied {
  display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 4px;
  border-top: 1px solid var(--trait-defaut); font-size: 7pt; color: var(--texte-gris);
}

/* Les tableaux de la feuille : serrés, un filet fin entre les lignes. */
.tableau-papier { width: 100%; border-collapse: collapse; }
.tableau-papier th, .tableau-papier td { padding: 3px 6px; text-align: left; vertical-align: top; border-bottom: 1px solid #e3e3e1; }
.tableau-papier tbody th { font-weight: 400; }
.tableau-papier thead th span { font-weight: 400; }
.tableau-papier thead th { font-size: 7pt; font-weight: 600; color: var(--texte-gris); border-bottom: 1px solid var(--trait-defaut); white-space: nowrap; }
.tableau-papier__valeur { white-space: nowrap; font-weight: 600; }
.tableau-papier--colonnes tbody th { font-weight: 600; }
.tableau-papier__large { width: 30%; }
.tableau-papier--colonnes tbody th { min-width: 34mm; }
.fiche-papier--trame .tableau-papier--colonnes tbody th { min-width: 48mm; }
.tableau-papier__choix { white-space: nowrap; }
.tableau-papier__pourcent { text-align: right !important; color: var(--texte-gris); min-width: 9mm; }
:root .fiche-papier .tableau-papier .pastille { min-height: 0; height: auto; padding: 0 6px; font-size: 7pt; line-height: 1.45; border-color: color-mix(in srgb, currentColor 35%, transparent); }
/* La trame : des lignes un peu plus hautes, pour écrire. */
.fiche-papier--trame .tableau-papier th, .fiche-papier--trame .tableau-papier td { padding-top: 3px; padding-bottom: 3px; }
/* Une case vide où l'on écrit la note ou la réponse : un fond très clair, sans chiffres à entourer (16/11/2026). */
.tableau-papier__vide { width: 14mm; min-width: 14mm; background: #fafaf9; border-left: 1px solid #ececea; }
.tableau-papier__libre th { min-width: 40mm; }
.tableau-papier--etiquettes tbody th { width: 1%; white-space: nowrap; }
.fiche-papier .tableau-papier th .legende { font-size: 7.5pt; font-weight: 400; }

/* À remplir à la main : une case à cocher, une ligne, des chiffres à entourer (trame de l'entretien 2). */
.chiffres-a-entourer { display: inline-flex; gap: 3px; white-space: nowrap; }
.chiffres-a-entourer span {
  display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px;
  border: 1px solid #b5b5b3; border-radius: 50%; font-size: 6.5pt; color: var(--texte-gris);
}
/* Une case vide sur deux lignes (le point particulier). */
.tableau-papier__haute { height: 30px; }
/* Seulement dans la fiche papier : « .case » seul est la case à cocher de tout le site (critères de l'export P05, formulaires…). */
.fiche-papier .case { display: inline-block; width: 8px; height: 8px; border: 1px solid var(--texte-encre); border-radius: 2px; vertical-align: -1px; margin-left: 4px; }
.fiche-papier .case:first-child { margin-left: 0; }
.fiche-papier .case--rang { width: 13px; height: 11px; }
.ligne-a-remplir { display: block; min-width: 30mm; height: 12px; border-bottom: 1px dotted var(--texte-gris); }
.ligne-a-remplir--courte { display: inline-block; min-width: 25mm; }

/* La trame de l'entretien 2 garde la mise en page serrée de la première version (16/11/2026, « elle était mieux avant »). */
.fiche-papier--serree { padding: 11mm 12mm 9mm; gap: 8px; font-size: 8.5pt; line-height: 1.35; }
.fiche-papier--serree .fiche-papier__entete { padding-bottom: 7px; }
.fiche-papier--serree .fiche-papier__grille { grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.fiche-papier--serree .fiche-papier__bloc { gap: 3px; }
.fiche-papier--serree .fiche-papier__titre { margin: 0; padding: 2px 6px; font-size: 8pt; }
.fiche-papier--serree .fiche-papier__bloc .fiche-papier__titre ~ .fiche-papier__titre { margin-top: 4px; }
.fiche-papier--serree .tableau-papier th, .fiche-papier--serree .tableau-papier td { padding: 3px 5px; }
.fiche-papier--serree .fiche-papier__zone-ecriture { min-height: 35mm; }

@page { size: A4; margin: 0; }
@media print {
  body.page-impression { background: #fff; }
  /* Rien n'est coupé : un compte rendu très long passe sur une 2e page. La trame, elle, remplit la page (la zone du compte rendu s'allonge). */
  .fiche-papier { width: 210mm; max-width: none; margin: 0; box-shadow: none; }
  .fiche-papier--trame { min-height: 296mm; }
  .fiche-impression__outils { display: none; }
  .fiche-papier, .fiche-papier * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media screen and (max-width: 760px) {
  .fiche-papier { margin: 0; padding: 16px; box-shadow: none; }
  .fiche-papier__grille { grid-template-columns: 1fr; }
  .fiche-papier__entete { flex-direction: column; align-items: flex-start; }
}


/* 32. Finitions du 23/10/2026 (demande d'Amine : « rends le site pro, et fais en sorte qu'on ait envie de naviguer, lire,
   rentrer des données et travailler dessus »). Un passage sur tous les écrans, à 1440 px et à 375 px. Style seulement :
   aucune fonction, aucun texte, aucune donnée ne change.
   Ce qui a été trouvé, et corrigé :
     - des mots coupés au milieu dans les tableaux (« Manqu ant », « Internati onal », « Vandenberg he ») ;
     - une liste des IP écrite en 11 px, et des adresses e-mail qui passent à la ligne ;
     - de longs tableaux dont les titres disparaissent quand on descend ;
     - des paragraphes sur toute la largeur de la page (plus de 150 signes par ligne) ;
     - des champs de saisie sans survol ni état de focus bien visible. */

/* 1. Un mot n'est plus coupé au milieu. La cellule passe à la ligne entre deux mots ; un mot plus long que sa colonne
   (une adresse e-mail) est coupé seulement en dernier recours. */
.tableau td,
.tableau th { overflow-wrap: break-word; hyphens: manual; }
.tableau .pastille { max-width: 100%; text-wrap: balance; }   /* « Brouillon, étape 4 sur 9 » ne laisse plus « 9 » seul sur une ligne */
/* Une adresse e-mail reste sur une ligne, avec « … » si elle est trop longue ; l'adresse entière se lit au survol (title). */
.legende--email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 2. La liste des IP (P06). Le tableau fait 972 px à côté de la fiche. Les colonnes courtes se serrent, la colonne « Étudiant »
   prend le reste (environ 200 px) : l'adresse tient sur une ligne. Les textes passent de 11 à 12 px.
   Le tableau ne descend jamais sous 940 px : en dessous, il défile de côté dans son cadre, et la colonne « Étudiant » garde 190 px
   (sur téléphone, elle n'en avait plus que 44 : le nom et l'adresse disparaissaient). */
/* 26/10/2026 : « Rien commencé » (Form. 1) et « Manquant » (CV) dépassaient de leur pastille : ces colonnes ont 14 à 18 px de plus. Le tableau ne descend
   plus sous 880 px (et non 940) : la colonne « Étudiant » rend ces pixels (elle garde plus de 300 px), et à 1366 px le tableau tient dans son cadre.
   27/10/2026 : 810 px, pas 880. À 1280 px (un écran 1920 px réglé à 150 %), le cadre de la liste fait 810 px, à côté de la fiche rapide : à 880 px la colonne
   « CV » en sortait et sa pastille se lisait coupée (« Mar… »). « Étudiant » garde 190 px, l'adresse e-mail y tient sur une ligne. */
/* 17/11/2026 : la colonne « Parcours » a été retirée le 16/11 (le code est à côté du nom), mais les largeurs étaient données par position
   (nth-child) : elles avaient toutes glissé d'un cran. « Orientation » avait les 56 px de « 1er choix » (la liste se lisait « M… » et le titre
   « Orient / ation »), « CV » les 82 px de « E1 » (« Manquant » sortait de sa case). Chaque colonne a maintenant sa classe (col-ip-…) :
   retirer ou ajouter une colonne ne décale plus les autres. Chaque largeur laisse le texte le plus long de la colonne sur une ligne,
   titre compris ; la colonne « Étudiant » prend le reste (au moins 200 px : le nom et l'adresse e-mail).
   Le tableau ne descend pas sous 790 px : à 1280 px (un écran 1920 px réglé à 150 %), le cadre de la liste fait 795 px à côté de la fiche,
   tout y tient sans défiler. Le même jour, les 3 colonnes cachées (Issu du Bachelor, Site ICAM, 1er choix) sont retirées, et « Orientation »
   s'élargit (160 px) : la liste déroulante se lit sans se serrer. */
.tableau--ip.tableau--moyen { min-width: 790px; }
.tableau--ip thead th { white-space: nowrap; }
.tableau--ip thead th.col-ip-orientation { width: 160px; }  /* Orientation (« MSI autre site » dans la liste déroulante) */
.tableau--ip thead th.col-ip-form1 { width: 112px; }        /* Form. 1 (« Rien commencé ») */
.tableau--ip thead th.col-ip-form2 { width: 124px; }        /* Form. 2 (« Pas encore ouvert ») */
.tableau--ip thead th.col-ip-e1 { width: 100px; }           /* E1 (« Non concerné ») */
.tableau--ip thead th.col-ip-cv { width: 100px; }           /* CV (« Manquant », 14 px de marge à droite) */
.tableau--ip .liste-orientation { max-width: none; }        /* la liste prend toute sa colonne */
.tableau--ip .pastille { white-space: nowrap; }
/* Une pastille de cette liste a 6 px de marge à gauche et à droite (10 px ailleurs) : elle tient dans sa colonne. */
.tableau--ip .pastille { padding-left: 6px; padding-right: 6px; }
@media (max-width: 1599px) {
  :root[data-palette="icam"] .tableau--ip th,
  :root[data-palette="icam"] .tableau--ip .pastille,
  :root[data-palette="icam"] .tableau--ip .legende { font-size: 12px; }
}

/* L'annuaire (P07) : le titre « ETP SA 2026-27 » tient sur une ligne, et les adresses ne se coupent plus. */
@media (min-width: 1280px) {
  .tableau--annuaire thead th:nth-child(3) { width: 138px; white-space: nowrap; }
}

/* 3. La liste des projets (P05). Le client avait 104 px : « Bâtiments Vandenberghe » se coupait en « Vandenberg he ».
   Le client passe à 150 px, le statut à 176 px, les colonnes « Oui / Non » se resserrent. Le nom du projet garde le reste. */
@media (min-width: 1280px) {
  .tableau--large thead th:nth-child(3) { width: 150px; }   /* Client */
  .tableau--large thead th:nth-child(5) { width: 70px; }    /* Places (26/10/2026 : « Places » se coupait en 58 px dès que le titre passe à 14 px, sur grand écran) */
  .tableau--large thead th:nth-child(7) { width: 170px; }   /* Statut */
  .tableau--large thead th:nth-child(8) { width: 98px; }    /* À présenter */
  .tableau--large thead th:nth-child(9) { width: 80px; }    /* À affecter */
}
/* 27/10/2026 : à 1280 px (un écran 1920 px réglé à 150 %), le nom du projet n'avait que 70 px et se coupait en pleine syllabe
   (« Optimis / ation », « matéria / ux », « capteur / s »). Jusqu'à 1399 px, les colonnes voisines se resserrent et lui rendent de la place
   (172 px) ; en dessous de 1280 px, le tableau garde ces largeurs et défile de côté dans son cadre. Chaque colonne garde de quoi écrire
   son titre et son contenu en entier (« Vandenberghe » dans Client, « 1, mobile » dans Boost, « Modifier »). */
@media (max-width: 1399px) {
  .tableau--large { min-width: 1114px; }
  .tableau--large thead th:nth-child(1) { width: 94px; }    /* N° d'affaire (27/10/2026 : 4 px de plus pour la flèche du tri, pris sur « Domaines ») */
  .tableau--large thead th:nth-child(3) { width: 128px; }   /* Client */
  .tableau--large thead th:nth-child(4) { width: 146px; }   /* Domaines */
  .tableau--large thead th:nth-child(6) { width: 94px; }    /* Boost (« 1, mobile » tient sur une ligne dans sa pastille) */
  .tableau--large thead th:nth-child(7) { width: 142px; }   /* Statut */
  .tableau--large thead th:nth-child(8) { width: 92px; }    /* À présenter */
  .tableau--large thead th:nth-child(10) { width: 96px; }   /* Modifier */
}

/* 4. Les chiffres d'un tableau ont tous la même largeur : les colonnes de nombres s'alignent. */
.tableau td,
.tableau th,
.indicateur__valeur { font-variant-numeric: tabular-nums; }

/* 5. Une ligne de tableau s'éclaire au survol : on suit la ligne des yeux sur un tableau large. */
.tableau tbody tr { transition: background-color 0.12s ease; }
.tableau tbody tr:hover { background: var(--fond-entete); }
.tableau tbody tr.ligne--choisie:hover { background: var(--selection-fond); }

/* 6. Les titres d'un long tableau restent visibles quand on descend, sous la barre de navigation (74 px).
   Sur un écran large seulement (1500 px et plus : le plus étroit des trois tableaux, le suivi des réponses, y tient en entier) :
   en dessous, le tableau défile de côté dans son cadre, et un titre collant n'aurait pas de sens.
   « overflow-x: clip » garde les coins arrondis sans faire du cadre une zone de défilement, ce qui bloquerait le titre. */
@media (min-width: 1500px) {
  .tableau-conteneur:has(> .tableau--ip),
  .tableau-conteneur:has(> .tableau--large),
  .tableau-conteneur:has(> .tableau--suivi) { overflow-x: clip; }
  .tableau--ip thead th,
  .tableau--large thead th,
  .tableau--suivi thead th {
    position: sticky;
    top: 74px;
    z-index: 3;
    background: var(--fond-entete);
    box-shadow: inset 0 -1px 0 var(--trait-defaut);
  }
}
/* Un lien d'ancre (« #carte-domaines », « #cv ») ne se cache pas sous la barre collée. */
html { scroll-padding-top: 96px; }

/* 7. Lire : un paragraphe de carte ne dépasse pas 80 signes par ligne (plus long, l'œil perd sa ligne). */
.carte > p,
.carte > .legende,
.carte > .texte-gris { max-width: 80ch; }
.en-tete-page__titres p { max-width: 75ch; }

/* 8. Saisir : un champ réagit au survol, et son focus se voit sans doute possible (anneau orange, comme les boutons). */
.champ input:not([type="checkbox"]):not([type="radio"]),
.champ select,
.champ textarea,
.fiche-texte,
.fiche-note__commentaire input { transition: border-color 0.12s ease, box-shadow 0.12s ease; }
.champ input:not([type="checkbox"]):not([type="radio"]):not(:disabled):not([readonly]):hover,
.champ select:not(:disabled):hover,
.champ textarea:not(:disabled):not([readonly]):hover,
.fiche-texte:not([readonly]):hover,
.fiche-note__commentaire input:not([readonly]):hover { border-color: var(--texte-encre); }
.champ input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.champ select:focus-visible,
.champ textarea:focus-visible,
.fiche-texte:focus-visible,
.fiche-note__commentaire input:focus-visible {
  border-color: var(--texte-encre);
  outline: 0;
  box-shadow: 0 0 0 3px rgb(242 148 0 / 35%);
}
/* Un champ en erreur le dit après la saisie, pas avant : « :user-invalid » ne s'applique qu'une fois le champ quitté. */
.champ input:user-invalid,
.champ select:user-invalid,
.champ textarea:user-invalid { border-color: var(--statut-rouge); }

/* 9. Un texte sélectionné prend la couleur de la marque, et un clic sur un téléphone ne zoome pas par double touche. */
::selection { background: var(--action-principal-fond); color: var(--texte-encre); }
a, button, summary, label, select { touch-action: manipulation; }

/* 10. Le mouvement réduit : plus de transition pour qui l'a demandé. */
@media (prefers-reduced-motion: reduce) {
  .tableau tbody tr,
  .champ input,
  .champ select,
  .champ textarea,
  .fiche-texte,
  .fiche-note__commentaire input { transition: none; }
}


/* 33. Les tâches et les échéances (23/10/2026, demande d'Amine : « qu'est-ce que je dois faire maintenant ? »).
   Une tâche = un état écrit en mot (Bloqué, À traiter, En attente), ce qui coince, et le bouton qui la règle.
   Pas de pastille ni de pictogramme par ligne : la couleur ne sert qu'à l'état, et seulement à son mot.
   - Bloqué : rouge. À traiter : orange foncé. En attente : gris. Terminé : vert.
   - « retard de 3 j » est le seul autre texte rouge d'une ligne. */

.taches { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.tache {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--trait-discret);
}
.tache:last-child { border-bottom: 0; }
.tache__etat { color: var(--texte-gris); font-size: 13px; font-weight: 700; line-height: 1.3; }
.tache--bloque .tache__etat { color: var(--statut-rouge); }
.tache--a_traiter .tache__etat { color: var(--action-texte); }
.tache--termine .tache__etat { color: var(--statut-vert); }
.tache__texte { font-size: 15px; line-height: 1.45; }
.tache__texte strong { font-weight: 600; }
.tache__retard { color: var(--statut-rouge); font-weight: 600; }
/* Une tâche en attente ou terminée pèse moins : le texte est gris, le bouton reste discret. */
.tache--en_attente .tache__texte,
.tache--termine .tache__texte { color: var(--texte-gris); }
@media (max-width: 720px) {
  .tache { grid-template-columns: minmax(0, 1fr) auto; }
  .tache__etat { grid-column: 1 / -1; }
}

/* Ce qui est chez quelqu'un d'autre : replié sous la liste. */
.taches-repliees { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--trait-discret); }
.taches-repliees > summary { color: var(--texte-gris); font-weight: 600; cursor: pointer; }
.taches-repliees > summary:focus-visible { outline: 2px solid var(--action-texte); outline-offset: 2px; }
/* Le guide de préparation, quand tout est fait : la liste des étapes est repliée sous une ligne (27/10/2026, « épure l'app »). */
.guide__replie { margin-top: 12px; }
.guide__replie > summary { color: var(--texte-gris); font-weight: 600; cursor: pointer; }
.guide__replie > summary:focus-visible { outline: 2px solid var(--action-texte); outline-offset: 2px; }
.guide__replie[open] > summary { margin-bottom: 8px; }

/* L'accueil de l'admin (27/10/2026, demande d'Amine : « plus propre ») : sous le titre « Campagne SA 2026-2027 », l'étape en cours et la prochaine échéance
   sur deux lignes à deux colonnes (le nom à gauche, la valeur à droite), puis « Bonjour … » en petit. Une échéance dépassée est en saumon clair (sur la photo). */
/* 02/11/2026 : une grille à deux colonnes. La colonne du nom prend la largeur du plus long nom : « Prochaine échéance » ne passe plus à la ligne
   quand le texte grossit (écran large, zoom), ce qu'une largeur fixe de 168 px ne permettait pas. */
.etat-campagne { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 18px; margin: 6px 0 0; }
.etat-campagne > div { display: contents; }
.etat-campagne dt { color: rgb(255 255 255 / 72%); font-weight: 400; white-space: nowrap; }
.etat-campagne dd { margin: 0; color: #ffffff; font-weight: 600; }
.etat-campagne--retard dd { color: #ffc2b8; }
:root[data-palette="icam"] .etat-campagne { font-size: 16px; line-height: 24px; }
:root[data-palette="icam"] .en-tete-page__bonjour { margin-top: 10px; font-size: 14px; line-height: 20px; color: rgb(255 255 255 / 78%); }
@media (min-width: 1920px) {
  :root[data-palette="icam"] .etat-campagne { font-size: 18px; line-height: 26px; }
  :root[data-palette="icam"] .en-tete-page__bonjour { font-size: 15px; }
}
@media (max-width: 700px) {
  /* Sur un téléphone, le nom est au-dessus de sa valeur. */
  .etat-campagne { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .etat-campagne dd { margin-bottom: 6px; }
}

/* La frise : la date limite de chaque étape, sous son état. En retard, elle est rouge. */
.etape__echeance { font-size: 12px; line-height: 1.4; color: var(--texte-gris); white-space: nowrap; }   /* 27/10/2026 : « retard de 11 j » ne laisse plus « j » seul à la ligne à 1280 px */
.etape__echeance--retard { color: var(--statut-rouge); font-weight: 600; }

/* La page « À traiter » : les onglets d'état, les filtres, la recherche. */
.a-traiter__outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.a-traiter__recherche, .journal__recherche { display: flex; gap: 8px; }
.a-traiter__recherche input,
.journal__recherche input {
  min-width: 272px;   /* 27/10/2026 : « Rechercher un étudiant, un CdP… » se coupait dans 240 px */
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font: 400 14px/1.5 var(--police);
}

/* La page Historique (P22) : trois filtres, le tableau, les pages. */
.journal__filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.journal__total { margin: 0 0 0 auto; }
.tableau--journal { min-width: 820px; }
.tableau--journal .col-quand { width: 192px; }   /* 26/10/2026 : « 26/10/2026 à 14:03 » dépassait de 5 px */
.tableau--journal td:first-child { white-space: nowrap; }
.tableau--journal .col-qui { width: 160px; }
.tableau--journal .col-valeur { width: 170px; }
.tableau--journal .col-annuler { width: 110px; }   /* 02/11/2026 : la colonne « Annuler » (Figma P23) */
.annulation__avertissement { margin: 4px 0 0; font-size: 13px; line-height: 1.5; }
.tableau--journal td { vertical-align: top; }
/* 05/11/2026 : « À faire maintenant » (suivi des entretiens) et noms de groupes des onglets. */
.phrase-groupe { margin: 0; font-size: 15px; font-weight: 600; }
.groupes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.groupe { border: 1px solid var(--trait-discret); border-radius: var(--rayon-conteneur); padding: 12px 14px; background: var(--fond-carte); }
.groupe__nom { margin: 0; font-size: 15px; }
.groupe__liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.groupe__eleve { display: grid; gap: 2px; }
.groupe__quand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.carte--de .fiche-ip__orientation { margin: 4px 0; font-size: 22px; line-height: 1.3; }
.a-faire { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.a-faire__ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--bordure, #e6e6e6); border-radius: 12px; background: var(--fond-doux, #faf7f2); }
.a-faire__texte { margin: 0; display: grid; gap: 2px; max-width: 70ch; }
.a-faire__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sous-onglets__groupe { align-self: center; font-size: 12px; letter-spacing: .02em; color: var(--texte-gris); margin-right: 4px; }
.sous-onglets__groupe--suite { margin-left: 20px; padding-left: 20px; border-left: 1px solid var(--bordure, #d9d9d9); }
.journal__pages { display: flex; align-items: center; justify-content: center; gap: 12px; }

/* P04 : Référentiels (02/11/2026). Des tableaux et des listes ; chaque ligne porte ses petits formulaires (renommer, masquer, supprimer). */
.tableau--referentiel { min-width: 760px; }
.tableau--referentiel .col-ordre { width: 84px; }
.tableau--referentiel td { vertical-align: middle; }
.ordre { display: flex; gap: 2px; margin: 0; }
.ordre .bouton { min-width: 30px; padding: 4px 8px; }
.ligne--masquee td { color: var(--texte-gris); }
.ligne--masquee .cellule-principale { font-weight: 400; }
.sous-titre-section { margin: 20px 0 6px; font-size: 14px; font-weight: 600; }
.liste-referentiel { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.liste-referentiel__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; border-bottom: 1px solid var(--trait-discret); }
.liste-referentiel__ligne form { margin: 0; }
.liste-referentiel__ligne .barre-filtres { flex: 1 1 360px; }
.parametres { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.parametres__groupe { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.parametres__ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.parametres__valeur {
  width: 88px;
  padding: 7px 10px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font: 400 14px/1.5 var(--police);
  text-align: right;
}
/* 14/11/2026 : les heures de la carte « Horaires des créneaux » (le champ heure a son icône d'horloge). */
.parametres__valeur[type="time"] { width: 120px; text-align: left; }
/* Dans un tableau ou une liste de P04, le champ texte prend la place qui reste. */
.tableau--referentiel .barre-filtres input[type="text"],
.liste-referentiel__ligne .barre-filtres input[type="text"] { flex: 1 1 260px; }
.parametres__somme { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }

/* Les chiffres clés, en petit : le contexte, pas la décision. */
.indicateurs--discrets { padding: 0 8px; }
.indicateurs--discrets .indicateur { padding: 14px 21px; gap: 2px; }
:root[data-palette="icam"] .indicateurs--discrets .indicateur__valeur { font-size: 24px; line-height: 30px; }
.indicateurs--discrets .indicateur__jauge { display: none; }

/* L'interrupteur des deux affichages de l'accueil admin (à retirer quand le choix est fait). */
.choix-affichage { margin: 0; color: var(--texte-gris); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.choix-affichage a { color: var(--texte-encre); padding: 2px 10px; border: 1px solid var(--trait-controle); border-radius: 999px; text-decoration: none; }
.choix-affichage a[aria-current="true"] { background: var(--texte-encre); color: #fff; border-color: var(--texte-encre); }


/* 26/10/2026 : une passe sur toutes les pages (parcours à 1100, 1366, 1536 et 1920 px) pour trouver ce qui dépasse de sa boîte ou se coupe au milieu d'un mot.
   Sur un écran moyen (moins de 1500 px), deux tableaux de cartes étroites perdaient leur dernière colonne : « Voir la fiche » (suivi des réponses)
   et « Accéder à l'entretien » (fiche d'un IP). Leurs colonnes de texte se resserrent, le bouton garde sa place. */
@media (max-width: 1499px) {
  .tableau--suivi th:nth-child(1) { width: 150px; }
  .tableau--suivi th:nth-child(2) { width: 160px; }
  .tableau--suivi th:nth-child(3) { width: 90px; }
  .tableau--suivi th:nth-child(4) { width: 70px; }
  .tableau--suivi th:nth-child(5) { width: 130px; }
  .tableau--entretiens th:nth-child(1) { width: 110px; }
  .tableau--entretiens th:nth-child(2),
  .tableau--entretiens th:nth-child(3) { width: 130px; }
}
/* Plus étroit encore (moins de 1350 px) : le suivi des réponses resserre un cran de plus, pour que « Voir la fiche » reste entier. */
@media (max-width: 1349px) {
  /* 27/10/2026 : « Relances » se coupait en « Relance / s » (64 px) et « 26/10, Admin 1 » passait à la ligne : 72 et 126 px ; « Voir la fiche » garde 100 px. */
  .tableau--suivi th:nth-child(1) { width: 130px; }
  .tableau--suivi th:nth-child(2) { width: 146px; }
  .tableau--suivi th:nth-child(3) { width: 90px; }
  .tableau--suivi th:nth-child(4) { width: 72px; }
  .tableau--suivi th:nth-child(5) { width: 126px; }
}
/* 27/10/2026 : l'annuaire (P07) à 1280 px. La colonne « Collaborateur » n'avait que 126 px : le nom passait sur deux lignes
   (« Amirr / Emmanuelm ») et l'adresse e-mail se coupait à 106 px. Les trois colonnes d'entretiens (« Ne fait pas passer » tient en 122 px)
   et celle des rôles rendent 76 px : le collaborateur en a 202. Sous 1280 px, le tableau garde ces largeurs et défile de côté. */
@media (max-width: 1399px) {
  .tableau--annuaire { min-width: 1110px; }
  .tableau--annuaire thead th:nth-child(2) { width: 140px; }   /* Rôles */
}

/* 34. P15 refaite d'après la maquette « Sprint 4_V1 » (04/11/2026, cadre « P15 · Entretien 2 : IP 16 (vue de CdP 2) »).
   Le compte rendu passe sur toute la largeur, avec le statut de l'entretien et le motif d'absence dessous.
   La colonne de gauche garde la carte de l'étudiant en petit et ce qui s'est dit à l'entretien 1.
   La colonne de droite est la carte « Projets » : filtres, notes de l'IP, top 3 (étoile pour ajouter, glisser pour ordonner), tension.
   Le style reste celui de l'application : mêmes cartes, mêmes pastilles, mêmes cases de note. */

/* Le statut (Réalisé | Étudiant absent) et le motif d'absence (Justifiée | Non justifiée) : deux boutons collés chacun, le choix actuel est foncé. */
.fiche-statut { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 16px; }
.fiche-statut__groupe { display: flex; flex-direction: column; gap: 6px; }
.fiche-statut__groupe > .legende { margin: 0; }
.fiche-segment { display: inline-flex; align-self: flex-start; overflow: hidden; border: 1px solid var(--trait-controle); border-radius: var(--rayon); background: var(--fond-carte); }
.fiche-segment form { display: contents; }
.fiche-segment form + form .fiche-segment__choix { border-left: 1px solid var(--trait-controle); }
.fiche-segment__choix {
  height: 34px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--texte-encre);
  font: 500 13px/1 var(--police);
  cursor: pointer;
}
.fiche-segment__choix:not(:disabled):not(.fiche-segment__choix--actif):hover { background: var(--fond-entete); }
.fiche-segment__choix--actif { background: var(--texte-encre); color: var(--texte-inverse); font-weight: 600; }
.fiche-segment__choix:focus-visible { outline: 2px solid var(--texte-encre); outline-offset: -4px; }
.fiche-segment__choix:disabled { cursor: not-allowed; color: var(--texte-gris); }
.fiche-segment__choix--actif:disabled { color: var(--texte-inverse); opacity: .85; }
/* Le motif attend qu'un étudiant soit noté absent : il est grisé. */
.fiche-segment--inactif { border-color: var(--trait-defaut); }

/* La carte de l'étudiant en petit : l'identité, puis une ligne de séparation et les deux boutons. */
.carte-ip--compacte { gap: 14px; }
.carte-ip--compacte .carte-ip__actions { padding-top: 14px; border-top: 1px solid var(--trait-defaut); }

/* « Entretien 1, CdP 1, 01/10 » : les deux informations qui servent au CdP 2 (temps chez le client, point particulier), en deux lignes. */
.fiche-resume { display: flex; flex-direction: column; margin: 0; overflow: hidden; border: 1px solid var(--trait-defaut); border-radius: var(--rayon); }
.fiche-resume__ligne { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.fiche-resume__ligne + .fiche-resume__ligne { border-top: 1px solid var(--trait-defaut); }
.fiche-resume dt,
.fiche-resume dd { margin: 0; padding: 10px 12px; }
.fiche-resume dt { background: var(--fond-entete); color: var(--texte-gris); font-size: 13px; line-height: 1.35; }
.fiche-resume dd { display: flex; align-items: center; min-width: 0; overflow-wrap: anywhere; }

/* La phrase « Notes de l'IP : 2 Oui · 1 OK · 1 Pourquoi pas · 35 Non ». */
.fiche-resume-notes { margin: 0; }
.fiche-resume-notes:empty { display: none; }

/* Le top 3 : trois cases côte à côte. Une case vide est en pointillés. */
.fiche-top3 { display: flex; flex-direction: column; gap: 8px; }
.fiche-top3__titre { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; }
.fiche-top3__etoile-legende { display: inline-flex; vertical-align: -2px; }
.fiche-top3__liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.fiche-top3__case {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--trait-defaut);
  border-radius: var(--rayon-conteneur);
  background: var(--fond-carte);
}
.fiche-top3__case[draggable="true"] { cursor: grab; }
.fiche-top3__case--libre { border-style: dashed; border-color: var(--trait-controle); background: transparent; color: var(--texte-gris); }
.fiche-top3__case--deplacee { opacity: .5; }
.fiche-top3__rang {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--texte-encre);
  color: var(--texte-inverse);
  font: 600 13px/1 var(--police);
}
.fiche-top3__rang--libre { border: 1px solid var(--trait-controle); background: transparent; color: var(--texte-gris); font-weight: 500; }
.fiche-top3__texte { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.fiche-top3__nom { font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.fiche-top3__texte .legende { margin: 0; }
/* La poignée : six points, comme celle de P23. On glisse la case, ou on prend la poignée au clavier (flèches gauche et droite). */
.fiche-top3__poignee { flex: none; align-self: center; padding: 6px 3px; border: 0; border-radius: var(--rayon-mini); background: transparent; color: var(--texte-gris); line-height: 0; cursor: grab; }
.fiche-top3__poignee > span { display: block; width: 8px; height: 14px; background: radial-gradient(circle, currentColor 1.1px, transparent 1.5px) 0 0 / 4px 4.7px; }
.fiche-top3__poignee:hover { background: var(--fond-entete); }
.fiche-top3__poignee:focus-visible { outline: 2px solid var(--texte-encre); outline-offset: 1px; }
.fiche-top3__retirer-form { align-self: flex-start; margin: 0; }
.fiche-top3__retirer { padding: 4px; border: 0; border-radius: var(--rayon-mini); background: transparent; color: var(--texte-gris); line-height: 0; cursor: pointer; }
.fiche-top3__retirer:hover { background: var(--fond-entete); color: var(--texte-encre); }
.fiche-top3__retirer:focus-visible { outline: 2px solid var(--texte-encre); outline-offset: 1px; }
@media (max-width: 860px) { .fiche-top3__liste { grid-template-columns: minmax(0, 1fr); } }

/* L'étoile d'un projet : un contour ; dans le top 3, elle est pleine avec son rang (« ★ 2 »). */
.fiche-projet__titres { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fiche-projet__nom-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.fiche-projet__titres .legende { margin: 0; }
.fiche-etoile-form { margin: 0; }
.fiche-etoile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border: 1px solid var(--trait-controle);
  border-radius: 999px;
  background: var(--fond-carte);
  color: var(--texte-gris);
  font: 600 13px/1 var(--police);
  cursor: pointer;
}
.fiche-etoile:hover:not(:disabled) { border-color: var(--action-texte); color: var(--action-texte); }
.fiche-etoile:focus-visible { outline: 2px solid var(--texte-encre); outline-offset: 2px; }
.fiche-etoile:disabled { cursor: not-allowed; }
.fiche-etoile--top { border-color: transparent; background: var(--action-principal-fond); color: #6b3f00; }
.fiche-etoile--top .icone { fill: currentColor; }
.fiche-projet__avant { margin: 0; }

/* « Terminer l'entretien », en bas de la page, à droite. */
.fiche-pied--droite { justify-content: flex-end; }

/* 35. P04 (04/11/2026, maquette « Sprint 4_V1 ») : la poignée ⋮⋮ remplace les flèches pour ranger une liste, et « Contact pôle SE » est une liste dans le tableau des types de mémoire. */
.tableau--referentiel .col-ordre { width: 56px; }
.liste-referentiel__ligne > .poignee { flex: none; }
.liste-referentiel__ligne.ligne--deplacee,
tr[data-ref-id].ligne--deplacee td { opacity: 0.5; }
[data-ref-id] .poignee { cursor: grab; }
/* « ne déclenche pas de contact » : la valeur de départ d'un type, en gris comme une légende. */
.filtre-liste--discret { color: var(--texte-gris); }
/* Types de mémoire : le libellé est un champ direct de la ligne (attribut form), pas dans une barre de filtres : il a donc son propre cadre. */
.champ-ligne { width: 100%; min-width: 220px; padding: 8px 12px; border: 1px solid var(--trait-controle); border-radius: var(--rayon); background: var(--fond-carte); color: var(--texte-encre); font: 400 14px/1.5 var(--police); }
.champ-ligne:focus-visible { outline: 2px solid var(--texte-encre); outline-offset: 1px; }
/* « Contact pôle SE » : une colonne assez large pour « ne déclenche pas de contact », la liste la remplit ; l'état ne la touche plus. */
.tableau--referentiel .col-contact { width: 232px; }
.tableau--referentiel td > .filtre-liste { width: 100%; max-width: 224px; text-overflow: ellipsis; }
/* Les trois gestes d'une ligne (« Enregistrer », « Masquer », « Supprimer ») restent sur une seule ligne. */
.tableau--referentiel .actions-ligne { flex-wrap: nowrap; gap: 4px 12px; white-space: nowrap; }

/* 36. P14 refaite d'après la maquette « Sprint 4_V1 » (04/11/2026, cadre « P14 · Entretien 1 : IP 16 (vue de CdP 1) »).
   Quatre cartes à droite : « Réponses de l'IP au formulaire 1 » (avec « Corriger une réponse »), « Domaines : affectabilité » (OUI, Peut-être, NON
   et un commentaire), « Contraintes et points particuliers », puis la feuille papier repliée. À gauche, la carte de l'étudiant avec ses coordonnées.
   Le style reste celui de l'application : mêmes cartes, mêmes pastilles, mêmes cases. */

/* Le titre d'une carte : une pastille d'état et un bouton à droite (« Enregistré à 10:32 », « 8 / 9 domaines évalués », « Corriger une réponse »). */
.fiche-titre-ligne__actions { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; }

/* Les coordonnées de l'étudiant sous son nom (e-mail, téléphone, nationalité, Bachelor, site ICAM) : une ligne par information, séparées par un filet. */
.carte-ip__infos { display: flex; flex-direction: column; margin: 0; }
.carte-ip__info { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--trait-discret); }
.carte-ip__info dt { flex: none; margin: 0; color: var(--texte-gris); font-size: 13px; line-height: 1.4; }
.carte-ip__info dd { margin: 0; min-width: 0; font-size: 14px; line-height: 1.4; text-align: right; overflow-wrap: anywhere; }

/* « Réponses de l'IP au formulaire 1 » : deux colonnes quand la carte est assez large (ses intérêts et ses vœux / son expérience et sa logistique), une seule sinon. */
.fiche-reponses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px 32px; margin-top: 16px; }
.fiche-reponses__colonne { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.fiche-reponses__colonne > section { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fiche-reponses__titre { margin: 0; color: var(--texte-encre); font-size: 14px; font-weight: 600; line-height: 1.35; }

/* Une barre d'intérêt de 1 à 5 : le nom, la piste, la valeur. Une réponse forte (4 ou 5) est en gras, la barre est verte, ambre ou grise selon la note. */
.fiche-barres { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; min-width: 0; overflow: hidden; border: 1px solid var(--trait-defaut); border-radius: var(--rayon); }
.fiche-barre { display: grid; grid-template-columns: minmax(120px, 1.3fr) minmax(48px, 1fr) 22px; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; }
.fiche-barre + .fiche-barre { border-top: 1px solid var(--trait-discret); }
.fiche-barre__nom { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.35; text-align: left; overflow-wrap: break-word; }
.fiche-barre--fort > .fiche-barre__nom { font-weight: 600; }
.fiche-barre__piste { display: block; height: 8px; border-radius: var(--rayon-pastille); background: var(--statut-gris-fond); overflow: hidden; }
.fiche-barre__remplissage { display: block; height: 100%; border-radius: var(--rayon-pastille); background: var(--trait-controle); }
.fiche-barre__remplissage--vert { background: var(--statut-vert); }
.fiche-barre__remplissage--ambre { background: var(--action-principal); }
.fiche-barre__remplissage--gris { background: var(--trait-controle); }
.fiche-barre__valeur { color: var(--texte-gris); font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.fiche-barre__valeur--fort { color: var(--texte-encre); font-weight: 600; }
/* Le mode correction : la ligne garde son nom, les cinq cases remplacent la piste. */
.fiche-barre > .fiche-chips { grid-column: 2 / -1; }
.fiche-barres .fiche-chips { gap: 4px; }
.fiche-barres .fiche-chip { width: 28px; height: 28px; font-size: 13px; }

/* Les domaines : le nom, l'intérêt, puis les compétences acquises et à développer en pourcentage. */
.fiche-table-interets { width: 100%; border-collapse: collapse; table-layout: auto; }
.fiche-table-interets th,
.fiche-table-interets td { padding: 8px 6px; text-align: left; vertical-align: middle; border-top: 1px solid var(--trait-discret); }
.fiche-table-interets thead th { border-top: 0; background: var(--fond-entete); color: var(--texte-gris); font-size: 12px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.fiche-table-interets__interet { white-space: nowrap; }
.fiche-table-interets__interet > .fiche-barre__piste { display: inline-block; width: calc(100% - 30px); max-width: 110px; vertical-align: middle; }
.fiche-table-interets__interet > .fiche-barre__valeur { display: inline-block; width: 22px; margin-left: 6px; vertical-align: middle; }
.fiche-table-interets__pct { color: var(--texte-gris); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
@media (min-width: 721px) {
  .fiche-table-interets th:first-child,
  .fiche-table-interets td:first-child { padding-left: 12px; }
  .fiche-table-interets th:last-child,
  .fiche-table-interets td:last-child { padding-right: 12px; }
  .fiche-table-interets tbody th.fiche-barre__nom { width: 40%; padding-right: 10px; }
  .fiche-table-interets__interet { width: 30%; }
  .fiche-table-interets__pct { width: 16%; padding-left: 12px; }
}
/* Le mode correction : les cinq cases (1 à 5) restent sur une ligne, « déclaré : 2 » passe dessous. */
.fiche-table-interets .fiche-chips { gap: 4px; min-width: 156px; }
.fiche-table-interets .fiche-chip { width: 28px; height: 28px; font-size: 13px; }
.fiche-table-interets tr.fiche-barre--fort .fiche-table-interets__pct { color: var(--texte-encre); }

/* Les vœux de mémoire : MSI en premier, puis les suivants, chacun avec son rang. */
.fiche-voeux { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fiche-voeu { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 5px; border: 1px solid var(--trait-defaut); border-radius: var(--rayon-pastille); background: var(--fond-carte); color: var(--texte-gris); font-size: 13px; font-weight: 500; line-height: 1.2; }
.fiche-voeu__rang { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--statut-gris-fond); color: var(--statut-gris); font-size: 12px; font-weight: 600; }
/* Le 1er vœu est en foncé et plus grand, le 2e est cerné de noir, les suivants sont petits et gris (maquette « Sprint 4_V1 »). */
.fiche-voeu--premier { padding: 6px 16px 6px 6px; border-color: var(--texte-encre); background: var(--texte-encre); color: var(--texte-inverse); font-size: 16px; font-weight: 600; }
.fiche-voeu--premier .fiche-voeu__rang { width: 24px; height: 24px; background: var(--texte-inverse); color: var(--texte-encre); font-size: 13px; }
.fiche-voeu--second { padding: 5px 14px 5px 5px; border-color: var(--texte-encre); color: var(--texte-encre); font-size: 15px; font-weight: 600; }
.fiche-voeu--second .fiche-voeu__rang { background: var(--fond-entete); color: var(--texte-encre); }
.fiche-voeux__autre { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; }

/* Le mode correction d'une ligne de logistique : OUI / NON, la zone, ou un nombre, qui part quand on le change. */
.fiche-correction { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; }
.fiche-correction__nombre { width: 72px; height: 32px; padding: 0 8px; border: 1px solid var(--trait-controle); border-radius: var(--rayon); background: var(--fond-carte); color: var(--texte-encre); font: 400 14px/1 var(--police); }
.fiche-correction__nombre:focus-visible { outline: 2px solid var(--texte-encre); outline-offset: 1px; }

.fiche-correction .oui-non { flex-wrap: wrap; }
.fiche-correction .oui-non__choix { min-width: 0; padding: 0 10px; white-space: nowrap; }

/* « Domaines : affectabilité » : OUI, Peut-être, NON en trois boutons collés. « Peut-être » choisi est ambre (ni un oui ni un non). */
.oui-non > .oui-non__choix:not(:first-child):not(:last-child) { border-left: 0; border-radius: 0; }
.oui-non__choix--peut-etre { border-color: var(--action-principal); background: var(--action-principal); color: var(--action-texte-sur-principal); font-weight: 600; }
.oui-non__choix--peut-etre + .oui-non__choix { border-left: 1px solid var(--action-principal); }
.tableau--domaines td:nth-child(2) { white-space: nowrap; }
.tableau--domaines { min-width: 720px; }
.fiche-commentaire-domaine {
  width: 100%;
  min-width: 180px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--trait-controle);
  border-radius: var(--rayon);
  background: var(--fond-carte);
  color: var(--texte-encre);
  font: 400 14px/1.4 var(--police);
}
.fiche-commentaire-domaine::placeholder { color: var(--texte-gris); }
.fiche-commentaire-domaine:focus-visible { outline: 2px solid var(--texte-encre); outline-offset: 1px; }
.fiche-commentaire-domaine[readonly] { background: var(--fond-entete); }

/* « Contraintes et points particuliers » : le point particulier à gauche, le besoin d'aménagement à droite, puis le binôme à éviter dessous. */
.fiche-contraintes { display: grid; grid-template-columns: minmax(0, 2fr) minmax(200px, 1fr); align-items: start; gap: 16px 24px; margin-top: 12px; }
.fiche-contraintes__texte { min-width: 0; }
.fiche-contraintes .fiche-oui-non-ligne { margin-top: 0; }
@media (max-width: 720px) { .fiche-contraintes { grid-template-columns: minmax(0, 1fr); } }

/* La feuille papier de l'entretien 1, repliée sous les cartes de la maquette : le titre est une ligne qui se déplie. */
details.fiche-feuille { border: 1px solid var(--trait-defaut); border-radius: var(--rayon-conteneur); background: var(--fond-carte); }
.fiche-feuille__titre { display: block; padding: 14px 20px; color: var(--texte-encre); font-size: 14px; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.fiche-feuille__titre::-webkit-details-marker { display: none; }
.fiche-feuille__titre::before { content: "\25B8"; display: inline-block; width: 16px; color: var(--texte-gris); transition: transform .15s; }
details.fiche-feuille[open] > .fiche-feuille__titre::before { transform: rotate(90deg); }
.fiche-feuille__titre:hover { background: var(--fond-entete); border-radius: var(--rayon-conteneur); }
.fiche-feuille__titre:focus-visible { outline: 2px solid var(--texte-encre); outline-offset: -2px; }
details.fiche-feuille > .colonne-principale { padding: 0 20px 20px; }
@media (prefers-reduced-motion: reduce) { .fiche-feuille__titre::before { transition: none; } }

/* Téléphone (375 px) : les colonnes des deux tableaux se serraient au point de couper les mots. Chaque ligne s'empile :
   le nom d'abord, puis la barre ou les boutons, puis les pourcentages (leur libellé s'écrit devant, « Acquises : 100 % »). */
@media (max-width: 720px) {
  .fiche-table-interets,
  .fiche-table-interets tbody { display: block; }
  .fiche-table-interets thead { display: none; }
  .fiche-table-interets tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; padding: 10px 12px; border-top: 1px solid var(--trait-discret); }
  .fiche-table-interets tbody tr:first-child { border-top: 0; }
  .fiche-table-interets th,
  .fiche-table-interets td { width: auto; padding: 0; border: 0; }
  .fiche-table-interets tbody th.fiche-barre__nom,
  .fiche-table-interets__interet { grid-column: 1 / -1; }
  .fiche-table-interets__interet > .fiche-barre__piste { width: calc(100% - 34px); max-width: none; }
  .fiche-table-interets__pct { padding-left: 0; font-size: 12px; text-align: left; }
  .fiche-table-interets__pct::before { content: attr(data-libelle) " : "; }

  .tableau--domaines,
  .tableau--domaines tbody { display: block; min-width: 0; }
  .tableau--domaines thead { display: none; }
  .tableau--domaines tbody tr { display: grid; gap: 8px; padding: 12px 4px; border-bottom: 1px solid var(--trait-discret); }
  .tableau--domaines tbody th,
  .tableau--domaines tbody td { display: block; width: auto; padding: 0; border: 0; }
  .tableau--domaines td:nth-child(2) { white-space: normal; }
}

/* 06/11/2026 : « Mon groupe » (P35) sur téléphone. Chaque IP devient un petit bloc : le nom et l'état sur la première ligne,
   le rendez-vous et le lieu sur la deuxième, puis « Ouvrir l'entretien ». */
@media (max-width: 720px) {
  .tableau--groupe,
  .tableau--groupe tbody { display: block; min-width: 0; }
  .tableau--groupe thead { display: none; }
  .tableau--groupe tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--trait-discret); }
  .tableau--groupe tbody tr:last-child { border-bottom: 0; }
  .tableau--groupe td,
  .tableau--groupe td:first-child,
  .tableau--groupe td:last-child { display: block; width: auto; padding: 0; border: 0; }
  .tableau--groupe td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 600; }
  .tableau--groupe td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .tableau--groupe td:nth-child(3) { grid-column: 2; grid-row: 2; text-align: right; }
  .tableau--groupe td:nth-child(4) { grid-column: 2; grid-row: 1; justify-self: end; }
  .tableau--groupe td:nth-child(5) { grid-column: 1 / -1; grid-row: 3; }
}

/* 37. P14 : la carte « Compétences vues dans le CV » (05/11/2026). Un domaine, puis ses compétences : une case à cocher, et à droite la preuve (les mots trouvés dans le CV,
   un bout de phrase, qui a décidé). Une compétence comptée a la case foncée, comme les cases choisies de la fiche ; une compétence écartée est barrée. */
.fiche-cv { display: flex; flex-direction: column; gap: 18px; margin-top: 14px; }
.fiche-cv__groupe { min-width: 0; }
.fiche-cv__liste { margin: 6px 0 0; padding: 0; list-style: none; border: 1px solid var(--trait-defaut); border-radius: var(--rayon); overflow: hidden; }
.fiche-cv__ligne { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.5fr); align-items: start; gap: 4px 16px; padding: 8px 12px; }
.fiche-cv__ligne + .fiche-cv__ligne { border-top: 1px solid var(--trait-discret); }
.fiche-cv__case {
  display: inline-flex; align-items: flex-start; gap: 10px; width: 100%; margin: 0; padding: 2px 0;
  border: 0; background: none; color: var(--texte-encre); font: 400 14px/1.4 var(--police); text-align: left; cursor: pointer;
}
button.fiche-cv__case:disabled { cursor: not-allowed; opacity: .6; }
.fiche-cv__coche {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 1px;
  border: 1px solid var(--trait-controle); border-radius: 4px; background: var(--fond-carte); color: var(--texte-inverse); font-size: 13px; font-weight: 700; line-height: 1;
}
.fiche-cv__case:hover .fiche-cv__coche { background: var(--fond-entete); }
.fiche-cv__case--coche .fiche-cv__coche,
.fiche-cv__case--coche:hover .fiche-cv__coche { border-color: var(--texte-encre); background: var(--texte-encre); }
.fiche-cv__case--coche .fiche-cv__nom { font-weight: 600; }
.fiche-cv__case--ecartee .fiche-cv__nom { color: var(--texte-gris); text-decoration: line-through; }
.fiche-cv__case:focus-visible { outline: 2px solid var(--texte-encre); outline-offset: 2px; }
.fiche-cv__nom { min-width: 0; overflow-wrap: anywhere; }
.fiche-cv__preuve { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fiche-cv__preuve p { margin: 0; }
.fiche-cv__etat { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.fiche-cv__extrait { color: var(--texte-gris); font-size: 12px; font-style: italic; line-height: 1.45; overflow-wrap: anywhere; }
.fiche-cv__actions { margin-bottom: 4px; }
/* P04 : les mots cherchés dans le CV, sur leur propre ligne sous le nom de la compétence. */
.liste-referentiel__mots { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; min-width: 0; }
.liste-referentiel__mots .legende { flex: none; margin: 0; }
.liste-referentiel__mots input { flex: 1 1 auto; min-width: 0; }

/* L'encadré « Autres compétences du référentiel » : replié, il se déplie en cliquant sur son titre (même geste que la feuille papier). */
details.fiche-cv__autres { margin-top: 16px; border: 1px solid var(--trait-defaut); border-radius: var(--rayon-conteneur); background: var(--fond-carte); }
.fiche-cv__autres-titre { display: block; padding: 12px 16px; color: var(--texte-encre); font-size: 14px; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.fiche-cv__autres-titre::-webkit-details-marker { display: none; }
.fiche-cv__autres-titre::before { content: "\25B8"; display: inline-block; width: 16px; color: var(--texte-gris); transition: transform .15s; }
details.fiche-cv__autres[open] > .fiche-cv__autres-titre::before { transform: rotate(90deg); }
.fiche-cv__autres-titre:hover { background: var(--fond-entete); border-radius: var(--rayon-conteneur); }
.fiche-cv__autres-titre:focus-visible { outline: 2px solid var(--texte-encre); outline-offset: -2px; }
details.fiche-cv__autres > .fiche-cv { padding: 0 16px 16px; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .fiche-cv__autres-titre::before { transition: none; } }
@media (max-width: 720px) {
  .fiche-cv__ligne { grid-template-columns: minmax(0, 1fr); }
  .fiche-cv__preuve { padding-left: 30px; }
}

/* 05/11/2026 : sous chaque signal du détail de la note, ce que ce couple a donné puis la règle de calcul. */
.fiche-ip-projet__detail tr:has(+ .fiche-ip-projet__explication) th,
.fiche-ip-projet__detail tr:has(+ .fiche-ip-projet__explication) td { border-bottom: 0; }
.fiche-ip-projet__detail .fiche-ip-projet__explication td { width: auto; padding: 0 0 8px; text-align: left; font-variant-numeric: normal; }
.fiche-ip-projet__explication p { margin: 0; font-size: 12px; line-height: 16px; color: var(--texte-encre); }
.fiche-ip-projet__explication .legende { margin-top: 2px; color: var(--texte-gris); }

/* 10/11/2026 : P03, l'étape choisie dans la frise (ses tâches sont sous la frise) : un trait orange sous l'étape. */
.etape--choisie { box-shadow: inset 0 -3px 0 var(--action-principal); }
.etape--courante.etape--choisie { box-shadow: inset 0 0 0 1.5px var(--action-texte), inset 0 -3px 0 var(--action-principal); }
.guide__titre .pastille { margin-right: 6px; vertical-align: 1px; }

/* 10/11/2026 : P04, Référentiels : les champs d'une ligne tiennent dans leur colonne (avant : 220 px au moins, ils débordaient sur la voisine). */
.tableau--referentiel .champ-ligne { min-width: 0; }
.tableau--referentiel .champ-ligne--court { max-width: 96px; }
.tableau--referentiel .col-nombre { text-align: right; white-space: nowrap; }

/* 10/11/2026 (capture du client) : la fiche IP, « Compétences » domaine par domaine. Quatre colonnes : domaine, intérêt, acquises, à développer. */
.domaines-ip { border: 1px solid var(--trait-defaut); border-radius: var(--rayon); overflow: hidden; }
.domaines-ip__entete,
.domaines-ip__ligne,
.domaines-ip__competence { display: grid; grid-template-columns: minmax(150px, 1.5fr) minmax(170px, 1.3fr) 96px 110px; align-items: center; gap: 12px; padding: 10px 16px; }
.domaines-ip__entete { background: var(--fond-entete); color: var(--texte-gris); font-size: 13px; font-weight: 500; }
.domaines-ip__domaine + .domaines-ip__domaine,
.domaines-ip__entete + .domaines-ip__domaine { border-top: 1px solid var(--trait-discret); }
.domaines-ip__ligne { cursor: pointer; list-style: none; }
.domaines-ip__ligne::-webkit-details-marker { display: none; }
.domaines-ip__ligne:hover { background: var(--fond-entete); }
.domaines-ip__nom { font-weight: 600; }
.domaines-ip__nom::before { content: "▸"; display: inline-block; width: 16px; color: var(--texte-gris); font-size: 11px; transition: transform .15s; }
.domaines-ip__domaine[open] .domaines-ip__nom::before { transform: rotate(90deg); }
.domaines-ip__interet { display: flex; align-items: center; gap: 10px; }
.domaines-ip__interet .fiche-barre__piste { flex: 0 0 90px; }
.domaines-ip__note { display: inline-flex; justify-content: center; min-width: 28px; padding: 1px 8px; border: 1px solid transparent; border-radius: 6px; color: var(--texte-gris); font-weight: 600; }
.domaines-ip__note--fort { border-color: var(--statut-vert); color: var(--statut-vert); }
.domaines-ip__note--faible { border-color: var(--statut-rouge); color: var(--statut-rouge); }
.domaines-ip__compte { text-align: center; }
.domaines-ip__chiffre { display: inline-block; min-width: 44px; padding: 2px 10px; border: 1px solid transparent; border-radius: 6px; color: var(--texte-gris); }
.domaines-ip__chiffre--plein { border-color: var(--statut-vert); background: var(--statut-vert-fond); color: var(--statut-vert); font-weight: 600; }
.domaines-ip__competences { margin: 0; padding: 0; list-style: none; background: var(--fond-entete); }
.domaines-ip__competence { padding-left: 40px; }
/* 12/11/2026 : le nom de la compétence prend les colonnes « Domaine » et « Intérêt » : ses ✓ tombent sous « Acquises » et « À développer » (avant : un cran à gauche). */
.domaines-ip__competence > :first-child { grid-column: 1 / 3; }
.domaines-ip__competence .domaines-ip__compte { color: var(--statut-vert); font-weight: 600; }
.domaines-ip__competence--double { background: var(--statut-vert-fond); }
.domaines-ip__vide { margin: 0; padding: 8px 16px 12px 40px; background: var(--fond-entete); }
@media (max-width: 720px) {
  .domaines-ip__entete { display: none; }
  .domaines-ip__ligne, .domaines-ip__competence { grid-template-columns: 1fr auto auto; }
  .domaines-ip__interet { grid-column: 1 / -1; order: 2; }
  .domaines-ip__competence > :first-child { grid-column: auto; }
}

/* 10/11/2026 : les réponses d'un IP (fiche IP, « Accéder aux réponses ») en cartes sur deux colonnes. */
.reponses-ip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.reponses-ip__large { grid-column: 1 / -1; }
.reponses-ip .fiche-voeux { margin: 0; }
.reponses-ip__notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.reponses-ip__projets { margin: 0; padding-left: 18px; }
.reponses-ip__projets li + li { margin-top: 4px; }
@media (max-width: 900px) { .reponses-ip { grid-template-columns: 1fr; } }

/* 11/11/2026 : l'avancement d'une étape (« 2 tâches sur 4 ») au-dessus de la liste de ses tâches, comme dans le guide de préparation. */
.guide__avancement { margin: 0 0 8px; }

/* 11/11/2026 : les cartes de « Mes réponses » de l'étudiant (page étroite) tiennent en une colonne. */
.page--etroite .reponses-ip { grid-template-columns: 1fr; }

/* 12/11/2026 : P14, corriger le classement des vœux de mémoire (un menu de rang par type de mémoire). */
.fiche-voeux-correction { display: flex; flex-direction: column; gap: 8px; }
.fiche-voeux-correction__ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.fiche-voeux-correction__ligne + .fiche-voeux-correction__ligne { border-top: 1px solid var(--trait-discret); }
.fiche-voeux-correction .bouton { align-self: flex-start; }

/* Le message de l'enregistrement automatique des référentiels (P04, 12/11/2026) : en bas de l'écran, quelques secondes. */
.enregistrement-auto {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  max-width: min(480px, calc(100% - 48px));
  padding: 10px 14px;
  border-radius: var(--rayon);
  background: var(--statut-vert-fond);
  color: var(--statut-vert);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.enregistrement-auto--visible { opacity: 1; transform: none; }
.enregistrement-auto--erreur { background: var(--statut-rouge-fond); color: var(--statut-rouge); }

/* 12/11/2026 : le menu « Entretiens » en trois sous-menus (Figma « Sprint 4_V2 »).
   Le niveau « Entretien 1 | Entretien 2 » sous les onglets de page, « Mon planning » (P35) et la fenêtre « Intervieweurs » du suivi. */
.niveau-entretien { margin-top: -13px; }
.bandeau--info { background: var(--statut-bleu-fond); }
.bandeau--neutre { background: var(--statut-gris-fond); }
.bandeau__texte .legende { display: block; font-weight: 400; }
.legende--bloc { display: block; }
.carte--dispos { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.carte--dispos-a-saisir { background: var(--statut-ambre-fond); box-shadow: inset 0 0 0 1px var(--statut-ambre); }
.carte--dispos__texte { flex: 1; min-width: 220px; }
.carte--dispos__texte h2 { margin: 0; font-size: inherit; }
.vide--centre { padding: 48px 0; text-align: center; }
.lien-nom { color: inherit; text-decoration: none; }
.lien-nom:hover { text-decoration: underline; }
.actions--ligne { flex-wrap: wrap; gap: 4px 8px; margin: 0; }
.tableau--planning th:nth-child(1) { width: 34%; }
.tableau--planning th:nth-child(2) { width: 16%; }
.tableau--planning th:nth-child(3) { width: 14%; }
.dialogue--moyenne { width: min(480px, calc(100% - 32px)); }
.dialogue--large { width: min(540px, calc(100% - 32px)); }
.dialogue__ligne { display: grid; grid-template-columns: 1.4fr 1fr 1fr; align-items: end; gap: 12px; }
.dialogue__ligne--ajout { grid-template-columns: minmax(0, 1fr) auto; }
.dialogue__actions--fin { justify-content: flex-end; }
.champ__fixe { padding: 9px 0; font-weight: 500; }
.liste-intervieweurs { list-style: none; margin: 0; padding: 0; }
.liste-intervieweurs__ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--trait-discret); }
@media (max-width: 560px) { .dialogue__ligne { grid-template-columns: 1fr; } }

/* 13/11/2026 : la vérification en largeur de téléphone (375 px). Ces éléments poussaient la page sur le côté. */
@media (max-width: 640px) {
  /* Le taux de réponse (P10) : la barre passe sous le chiffre, le pourcentage à côté d'elle. */
  .taux { flex-wrap: wrap; gap: 12px 24px; }
  .taux__barre { flex-basis: 100%; }
  /* La recherche de l'historique, de « Mon activité » et de « À traiter » prend la largeur de l'écran. */
  .a-traiter__recherche, .journal__recherche { flex: 1 1 100%; min-width: 0; }
  .a-traiter__recherche input, .journal__recherche input { flex: 1 1 auto; min-width: 0; }
  /* Les rôles de P26 : les boutons passent à la ligne. */
  .role-ligne { flex-wrap: wrap; }
  /* Les mots cherchés dans le CV (P04, compétences) : le champ passe sous sa légende. */
  .liste-referentiel__mots { flex-wrap: wrap; }
  /* Le panneau d'un filtre à cases (P05) reste dans l'écran. */
  .filtre-multiple__panneau { max-width: calc(100vw - 32px); }
  .filtre-multiple__panneau .case { white-space: normal; }
  /* Une longue pastille (« Provisoire : choisie par l'admin… ») et un bouton d'action vont à la ligne au lieu de dépasser. */
  .pastille { max-width: 100%; white-space: normal; }
  .actions .bouton { white-space: normal; }
}

/* 13/11/2026 : sur un téléphone, les étapes 6 et 7 du formulaire 1 gardaient leur libellé de 260 px (la règle « --260 » l'emportait
   sur celle du téléphone) : il ne restait que 26 px pour « Stage » et « Alternance ». Le libellé passe au-dessus de sa saisie, comme ailleurs. */
@media (max-width: 600px) {
  .lignes-champs--260 .ligne-champ,
  .ligne-champ--260 { grid-template-columns: minmax(0, 1fr); }
  .ligne-champ .ligne-champ__saisie:last-child { grid-column: 1; }
}

/* 16/11/2026 : la carte « Prévenir mes étudiants » sur Mon planning : le lien de la page de rendez-vous, et le texte modifiable. */
.courriel__lien { display: flex; flex-direction: column; gap: var(--espace-8, 8px); }
.courriel__lien > * { margin: 0; }
.courriel__texte { display: flex; flex-direction: column; gap: var(--espace-8, 8px); min-width: 0; }
.courriel__texte > .legende { margin: 0; }
.courriel-apercu[contenteditable="true"] { cursor: text; }
.courriel-apercu[contenteditable="true"]:focus { outline: 2px solid var(--focus, currentColor); outline-offset: 2px; }

/* 16/11/2026 : P18, Synthèse par étudiant (Figma « P19 · Synthèse par étudiant : direction des études »). */
.corps-synthese { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.corps-synthese > .legende { margin: 0; }
/* « 50 lignes, tri par nom » à droite de la barre des filtres, comme dans la maquette. */
.synthese__compte { margin: 0; font-variant-numeric: tabular-nums; }
.tableau--synthese td { vertical-align: middle; }
/* Les largeurs de la maquette : l'IP étroit, le projet large, « Pôle d'affectation » sur une ligne. */
.tableau--synthese th:first-child { width: 200px; }
.tableau--synthese th:last-child { width: 150px; }
.tableau--synthese td p { margin: 0; }
.tableau--synthese td:nth-child(5) { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 16/11/2026 (audit visuel, « vas-y pour tout ») ------------------------------------------------------------------------------
   1. Bandeau compact sur les écrans de travail (la matrice) : le bandeau photo faisait 270 px et le tableau commençait sous la
      ligne de flottaison sur un écran de 1440 x 900. Même photo, même barre orange, mais moins haut et un titre de 28 px.
      Pour l'ajouter à une autre page : la classe « en-tete-page--compacte » sur son <header class="en-tete-page">. */
:root[data-palette][data-palette] main.page.page .en-tete-page.en-tete-page--compacte {
  min-height: 0;
  padding-top: 20px;
  padding-bottom: 20px;
}
:root[data-palette][data-palette] .en-tete-page.en-tete-page--compacte .titre-page { font-size: 28px; line-height: 34px; }
:root[data-palette][data-palette] .en-tete-page.en-tete-page--compacte .en-tete-page__titres::after { width: 110px; height: 6px; margin-top: 6px; }
/* Un message d'une ligne, plus fin (l'avis « affectation finale » de la matrice). */
.message--compact { padding: 8px 12px; font-size: 13px; }

/* 2. Les longues listes (promo, synthèse, projets, suivi des réponses) : sur ordinateur, le tableau défile dans son cadre, et la ligne
      des titres de colonnes reste visible en haut. Avant, à 6 000 ou 16 000 px de haut, on perdait le sens des colonnes en descendant.
      Sur téléphone et tablette (moins de 900 px), rien ne change : la page défile normalement.
      Pour l'ajouter à un autre tableau : la classe « tableau-conteneur--defilant » sur son <div class="tableau-conteneur">. */
@media (min-width: 900px) {
  .tableau-conteneur--defilant {
    max-height: calc(100vh - 150px);
    overflow: auto;
    overscroll-behavior: contain;
  }
  .tableau-conteneur--defilant > table > thead th {
    position: sticky;
    top: 0;
    z-index: 2;
  }
}

/* 3. La liste des projets : les champs modifiables de chaque ligne (places, « à présenter », « à affecter ») restent discrets.
      Leur bordure apparaît au survol de la ligne et quand on y entre au clavier. Avant : 4 champs encadrés par ligne, un effet de tableur.
      Le statut garde sa pastille de couleur : c'est une information, pas seulement un champ. */
.tableau--projets .champ-ligne__nombre,
.tableau--projets .champ-ligne__oui-non {
  border-color: transparent;
  background-color: transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.tableau--projets tr:hover .champ-ligne__nombre,
.tableau--projets tr:hover .champ-ligne__oui-non,
.tableau--projets .champ-ligne__nombre:focus,
.tableau--projets .champ-ligne__oui-non:focus {
  border-color: var(--trait-controle);
  background-color: var(--fond-carte);
}

/* 16/11/2026 : la fiche IP rangée par étape (Formulaire 1, Entretien 1, Formulaire 2, Entretien 2).
   Le code du parcours (« IB », « AB Nantes ») : un petit cadre à côté du nom, dans la liste P06 et sur la fiche. */
.code-parcours {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--texte-encre);
  border-radius: 4px;
  color: var(--texte-encre);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: middle;
}
.nom-et-code { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 0; }
.nom-et-code .lien-ligne { display: inline; }
.code-parcours--grand { margin-left: 8px; font-size: 14px; line-height: 20px; padding: 1px 8px; }
.fiche-ip__titre .pastille { margin-left: 6px; vertical-align: middle; }
.fiche-ip__entete { gap: var(--espace-13); }
.fiche-ip__decision--entretiens { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.fiche-ip__decision-e1 { padding-top: var(--espace-13); border-top: 1px solid var(--trait-discret); }
.fiche-ip__projet { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; border-top: 1px solid var(--trait-discret); }
.fiche-ip__projet-nom { font-size: 18px; line-height: 24px; font-weight: 600; }
.fiche-ip__texte { white-space: pre-line; }
.fiche-ip__generales { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--espace-21); align-items: start; }
.etape-ip { display: flex; flex-direction: column; gap: var(--espace-13); margin-top: var(--espace-21); }
.etape-ip__tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-bottom: 8px; border-bottom: 2px solid var(--texte-encre); }
.etape-ip__titre { font-size: 21px; line-height: 28px; font-weight: 700; }
.paires--questions { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.paires--questions dd + dt { margin-top: 10px; }
.fiche-ip__cv-lu { margin-top: var(--espace-21); }
@media (max-width: 900px) {
  .fiche-ip__generales, .fiche-ip__decision { grid-template-columns: 1fr; }
}
/* 4. L'historique : « Annuler » et « Revenir ici » sur une ligne (ils étaient l'un sous l'autre). La colonne s'élargit pour les deux. */
.tableau--journal .col-annuler { width: 190px; }
.journal__gestes { display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; }
.journal__gestes .bouton { white-space: nowrap; }
