@charset "UTF-8";

/* =====================================================================
   PANAFIVE — RECRUTEMENT (/recrutement.php)
   =====================================================================
   Trois écrans servis par une seule feuille : l'annonce, un dossier, la
   file de l'équipe.

   ---------------------------------------------------------------------
   AUCUNE COULEUR EN DUR
   ---------------------------------------------------------------------
   Tout passe par les jetons de style.css, définis DEUX fois — une valeur
   pour le thème sombre, une pour le thème clair. Un #cfa43a écrit ici
   serait juste sur l'un des deux et faux sur l'autre : c'est exactement
   le défaut que les pastilles de grade ont déjà coûté au site.

   ---------------------------------------------------------------------
   LA GRILLE DE DISPONIBILITÉS EST LA PIÈCE CENTRALE
   ---------------------------------------------------------------------
   Vingt-huit cases à cocher sur un téléphone de 360 px : c'est le seul
   endroit de la page qui ne peut pas simplement se replier en colonne.
   Elle est donc enveloppée dans un conteneur qui DÉFILE — jamais la
   page — et ses cellules gardent une taille tactile minimale (44 px,
   le seuil des recommandations d'accessibilité).
   ===================================================================== */

@layer components {

	.recrut-page { display: grid; gap: var(--space-6); }

	/* -----------------------------------------------------------------
	   L'ACCROCHE
	   -----------------------------------------------------------------
	   C'est la première chose qu'on lit, et la seule qui décide si l'on
	   descend jusqu'au formulaire. Elle a donc droit à de la place, à un
	   fond distinct et à une seule colonne de texte : une phrase qui
	   traverse 1200 px ne se lit pas.
	   ----------------------------------------------------------------- */
	.recrut-hero {
		display: grid;
		gap: var(--space-3);
		padding: var(--space-7) var(--space-5);
		border: var(--contour-l) var(--contour-s) var(--pf-gold-line);
		border-radius: var(--card-radius);
		background:
			radial-gradient(120% 140% at 0% 0%, var(--pf-gold-soft), transparent 60%),
			var(--pf-surface);
		box-shadow: var(--shadow-sm);
	}

	.recrut-hero-sur {
		display: inline-flex;
		align-items: center;
		gap: var(--space-2);
		margin: 0;
		font-size: var(--fs-2xs);
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: var(--track-xwide);
		color: var(--pf-gold);
	}

	.recrut-hero h1 {
		margin: 0;
		font-size: var(--fs-3xl);
		line-height: 1.15;
	}

	/* La phrase d'accueil : bornée à une longueur de ligne confortable,
	   et volontairement plus grande que le reste du corps de texte. */
	.recrut-hero-phrase {
		max-width: 62ch;
		margin: 0;
		font-size: var(--fs-lg);
		line-height: 1.6;
		color: var(--texte-color);
	}

	.recrut-hero-note {
		max-width: 62ch;
		margin: 0;
		font-size: var(--fs-sm);
		color: var(--secondary-color);
	}

	.recrut-hero .cluster { margin-top: var(--space-2); }

	/* -----------------------------------------------------------------
	   SECTIONS
	   ----------------------------------------------------------------- */
	.recrut-section { display: grid; gap: var(--space-3); }

	.recrut-section > h2 {
		display: flex;
		align-items: center;
		gap: var(--space-2);
		margin: 0;
		font-size: var(--fs-xl);
	}

	.recrut-section > h2 .ti { color: var(--pf-gold); }

	/* -----------------------------------------------------------------
	   LES POSTES
	   ----------------------------------------------------------------- */
	.recrut-postes {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
		gap: var(--space-3);
	}

	.recrut-poste {
		display: grid;
		gap: var(--space-2);
		padding: var(--space-4);
		border: var(--contour-l) var(--contour-s) var(--border-color);
		border-radius: var(--card-radius);
		background: var(--pf-surface);
	}

	.recrut-poste-icone {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 38px;
		height: 38px;
		border-radius: var(--radius);
		background: var(--pf-gold-soft);
		color: var(--pf-gold);
	}

	.recrut-poste h3 { margin: 0; font-size: var(--fs-md); }

	.recrut-poste p {
		margin: 0;
		font-size: var(--fs-sm);
		color: var(--secondary-color);
	}

	/* -----------------------------------------------------------------
	   LES ÉTAPES — une liste numérotée, mais dessinée
	   ----------------------------------------------------------------- */
	.recrut-etapes {
		counter-reset: etape;
		display: grid;
		gap: var(--space-3);
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.recrut-etapes li {
		counter-increment: etape;
		display: grid;
		grid-template-columns: auto 1fr;
		grid-template-rows: auto auto;
		column-gap: var(--space-3);
		align-items: baseline;
	}

	.recrut-etapes li::before {
		content: counter(etape);
		grid-row: 1 / span 2;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 28px;
		height: 28px;
		border: var(--contour-l) var(--contour-s) var(--pf-gold-line);
		border-radius: 50%;
		font-size: var(--fs-xs);
		font-weight: 700;
		color: var(--pf-gold);
		align-self: start;
	}

	/* SANS CONTOUR (`data-contour="aucun"`), le numéro d'étape flottait
	   seul : l'anneau était tout son dessin. Il prend le voile doré. */
	[data-contour="aucun"] .recrut-etapes li::before { background: var(--pf-gold-soft); }

	.recrut-etapes b { font-size: var(--fs-md); }

	.recrut-etapes span {
		font-size: var(--fs-sm);
		color: var(--secondary-color);
	}

	/* -----------------------------------------------------------------
	   LES CONDITIONS
	   ----------------------------------------------------------------- */
	.recrut-conditions {
		display: grid;
		gap: var(--space-2);
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.recrut-conditions li {
		display: flex;
		align-items: flex-start;
		gap: var(--space-2);
		font-size: var(--fs-sm);
	}

	.recrut-conditions .ti { color: var(--pf-gold); flex: none; margin-top: 2px; }

	/* =================================================================
	   LE FORMULAIRE
	   ================================================================= */
	.recrut-form { display: grid; gap: var(--space-5); }

	/* Un <fieldset> par étape : ce n'est pas décoratif, c'est ce qui
	   permet à un lecteur d'écran d'annoncer « Vos disponibilités »
	   avant les vingt-huit cases qui suivent. */
	.recrut-etape {
		display: grid;
		gap: var(--space-3);
		margin: 0;
		padding: var(--space-5);
		border: var(--contour-l) var(--contour-s) var(--border-color);
		border-radius: var(--card-radius);
		background: var(--pf-surface);
	}

	.recrut-etape > legend {
		padding-inline: var(--space-2);
		font-size: var(--fs-md);
		font-weight: 700;
		color: var(--pf-gold);
	}

	.recrut-aide {
		margin: 0;
		font-size: var(--fs-sm);
		color: var(--secondary-color);
	}

	.recrut-label {
		font-size: var(--fs-sm);
		font-weight: 600;
	}

	.recrut-enonce {
		margin: 0 0 var(--space-2);
		padding: var(--space-3);
		border-left: 3px solid var(--pf-gold-line);
		border-radius: var(--radius);
		background: var(--pf-gold-soft);
		font-size: var(--fs-sm);
		font-style: italic;
	}

	.recrut-enonce .ti { color: var(--pf-gold); vertical-align: -2px; }

	.recrut-envoi {
		display: grid;
		gap: var(--space-2);
		justify-items: start;
	}

	/* --- Choix du poste : des cartes cliquables, pas une liste ------- */
	.recrut-choix {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: var(--space-3);
	}

	.recrut-choix-carte { display: block; cursor: pointer; }

	/* Le bouton radio reste dans le document — il est focalisable et
	   annoncé — mais il n'est pas dessiné : c'est la CARTE qui montre
	   l'état. `display: none` l'aurait au contraire sorti de l'ordre de
	   tabulation, et le formulaire serait devenu inutilisable au clavier. */
	.recrut-choix-carte input {
		position: absolute;
		width: 1px;
		height: 1px;
		opacity: 0;
		pointer-events: none;
	}

	.recrut-choix-corps {
		display: grid;
		gap: var(--space-1);
		height: 100%;
		padding: var(--space-4);
		border: var(--contour-l) var(--contour-s) var(--border-color);
		border-radius: var(--card-radius);
		background: var(--pf-panel);
		transition: border-color var(--pf-fade-ms) var(--pf-fade-ease),
					background var(--pf-fade-ms) var(--pf-fade-ease);
	}

	.recrut-choix-corps .ti { color: var(--pf-gold); }
	.recrut-choix-corps small { font-size: var(--fs-xs); color: var(--secondary-color); }

	.recrut-choix-carte:hover .recrut-choix-corps { border-color: var(--border-strong); }

	.recrut-choix-carte input:checked + .recrut-choix-corps {
		border-color: var(--pf-gold);
		background: var(--pf-gold-soft);
	}

	/* Le contour de focus doit rester visible alors que le radio est
	   invisible : sans cette règle, un utilisateur au clavier ne sait
	   plus où il est dans la liste. */
	.recrut-choix-carte input:focus-visible + .recrut-choix-corps {
		outline: 2px solid var(--pf-gold);
		outline-offset: 2px;
	}

	/* --- Cases à cocher, partout ------------------------------------- */
	.recrut-cases {
		display: flex;
		flex-wrap: wrap;
		gap: var(--space-3);
	}

	.cand-case {
		display: inline-flex;
		align-items: center;
		gap: var(--space-2);
		padding: var(--space-2) var(--space-3);
		border: var(--contour-l) var(--contour-s) var(--border-color);
		border-radius: var(--radius);
		background: var(--pf-panel);
		font-size: var(--fs-sm);
		cursor: pointer;
		/* 44 px de haut au doigt : le seuil au-dessous duquel une case se
		   rate une fois sur trois sur un téléphone. */
		min-height: 44px;
	}

	.cand-case:hover { border-color: var(--border-strong); }
	.cand-case input { accent-color: var(--pf-gold); width: 18px; height: 18px; flex: none; }
	.cand-case:has(input:checked) { border-color: var(--pf-gold); background: var(--pf-gold-soft); }

	.recrut-engagements { display: grid; gap: var(--space-2); }
	.recrut-engagements .cand-case { display: flex; align-items: flex-start; }
	.recrut-engagements .cand-case input { margin-top: 3px; }

	/* =================================================================
	   LA GRILLE DE DISPONIBILITÉS
	   ================================================================= */
	/* C'est ELLE qui défile sur un petit écran, jamais la page : une page
	   qui part en travers est le défaut le plus visible d'un site sur
	   téléphone. */
	.dispo-enveloppe {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		border: var(--contour-l) var(--contour-s) var(--border-color);
		border-radius: var(--card-radius);
		background: var(--pf-panel);
	}

	.dispo-grille {
		width: 100%;
		min-width: 380px;
		border-collapse: collapse;
		font-size: var(--fs-sm);
	}

	/* Un QUADRILLAGE, pas des contours : les traits de la grille sont des
	   filets, qui restent fins et pleins dans tous les modes (voir
	   `--contour-*` dans style.css). En « Aucun », la grille des
	   disponibilités devenait une nappe de cases sans repère. */
	.dispo-grille th,
	.dispo-grille td {
		padding: var(--space-1);
		border: 1px solid var(--border-color);
		text-align: center;
	}

	.dispo-grille thead th {
		padding: var(--space-2) var(--space-1);
		background: var(--pf-surface);
		font-size: var(--fs-xs);
		font-weight: 700;
		white-space: nowrap;
	}

	.dispo-grille thead th small {
		display: block;
		font-size: var(--fs-2xs);
		font-weight: 400;
		color: var(--secondary-color);
	}

	.dispo-grille tbody th {
		width: 1%;
		padding-inline: var(--space-3);
		background: var(--pf-surface);
		text-align: left;
		white-space: nowrap;
		font-weight: 600;
	}

	/* La case elle-même remplit la cellule : on coche en visant
	   n'importe où dans le carré, pas le petit carré du milieu. */
	.dispo-case {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		margin: 0;
		cursor: pointer;
	}

	.dispo-case input {
		accent-color: var(--pf-gold);
		width: 20px;
		height: 20px;
		cursor: pointer;
	}

	.dispo-grille td:has(input:checked) { background: var(--pf-gold-soft); }

	/* Variante LECTURE : plus de cases, seulement des coches. */
	.dispo-grille.est-lecture td { height: 34px; color: var(--secondary-color); }
	.dispo-grille.est-lecture td.est-coche {
		background: var(--pf-gold-soft);
		color: var(--pf-gold);
	}

	/* =================================================================
	   LISTES DE DOSSIERS
	   ================================================================= */
	.cand-liste { display: grid; gap: var(--space-2); }

	.cand-rangee {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: var(--space-3);
		padding: var(--space-3) var(--space-4);
		border: var(--contour-l) var(--contour-s) var(--border-color);
		border-radius: var(--card-radius);
		background: var(--pf-surface);
		color: inherit;
		text-decoration: none;
		transition: border-color var(--pf-fade-ms) var(--pf-fade-ease),
					background var(--pf-fade-ms) var(--pf-fade-ease);
	}

	.cand-rangee:hover {
		border-color: var(--border-strong);
		background: var(--pf-surface-2);
	}

	/* Un dossier que CE membre de l'équipe n'a pas encore ouvert. Le
	   repère est un filet à gauche, pas une couleur de fond : une rangée
	   entière colorée se lit comme une alerte, alors qu'il s'agit
	   seulement de « nouveau depuis ton dernier passage ». */
	.cand-rangee.est-neuf {
		border-left: 3px solid var(--pf-gold);
		background: var(--pf-gold-soft);
	}

	.cand-rangee-corps { min-width: 0; display: grid; gap: 2px; }
	.cand-rangee-nom { font-size: var(--fs-md); }

	.cand-rangee-meta {
		display: flex;
		align-items: center;
		gap: var(--space-1);
		flex-wrap: wrap;
		font-size: var(--fs-xs);
		color: var(--secondary-color);
	}

	.cand-rangee-etat {
		display: grid;
		gap: 2px;
		justify-items: end;
		text-align: right;
	}

	.cand-rangee-date { font-size: var(--fs-2xs); color: var(--secondary-color); }

	.cand-retard {
		display: inline-flex;
		align-items: center;
		gap: var(--space-1);
		font-size: var(--fs-2xs);
		color: var(--pf-warn);
	}

	/* La référence du dossier : encadrée, en chiffres de largeur fixe,
	   reconnaissable d'un écran à l'autre — comme B-00042 et R-00042
	   ailleurs sur le site. */
	.ref-jeton {
		display: inline-block;
		padding: 2px var(--space-2);
		border: var(--contour-l) var(--contour-s) var(--pf-gold-line);
		border-radius: var(--radius);
		background: var(--pf-gold-soft);
		font-variant-numeric: tabular-nums slashed-zero;
		font-size: var(--fs-xs);
		color: var(--pf-gold);
		white-space: nowrap;
		text-decoration: none;
	}

	/* --- La pastille d'état ------------------------------------------ */
	.cand-etat {
		display: inline-flex;
		align-items: center;
		gap: var(--space-1);
		padding: 2px var(--space-2);
		border: var(--contour-l) var(--contour-s) var(--border-color);
		border-radius: var(--radius);
		font-size: var(--fs-xs);
		font-weight: 600;
		white-space: nowrap;
	}

	.cand-etat.is-warn    { color: var(--pf-warn);    border-color: var(--pf-warn-soft);    background: var(--pf-warn-soft); }
	.cand-etat.is-info    { color: var(--pf-info);    border-color: var(--pf-info-soft);    background: var(--pf-info-soft); }
	.cand-etat.is-success { color: var(--pf-success); border-color: var(--pf-success-line); background: var(--pf-success-soft); }
	.cand-etat.is-danger  { color: var(--pf-danger);  border-color: var(--pf-danger-line);  background: var(--pf-danger-soft); }
	.cand-etat.is-plain   { color: var(--secondary-color); background: var(--pf-surface); }

	/* --- Le filtre de la file ----------------------------------------- */
	.cand-filtre {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-end;
		gap: var(--space-3);
	}

	.cand-filtre .field { margin-bottom: 0; min-width: 200px; }

	/* =================================================================
	   UN DOSSIER
	   ================================================================= */
	.cand-dossier { display: grid; gap: var(--space-4); }

	.cand-bandeau {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--space-3);
		padding: var(--space-3) var(--space-4);
		border: var(--contour-l) var(--contour-s) var(--border-color);
		border-radius: var(--card-radius);
		background: var(--pf-surface);
	}

	.cand-bandeau-fait {
		display: inline-flex;
		align-items: center;
		gap: var(--space-1);
		font-size: var(--fs-sm);
		color: var(--secondary-color);
	}

	.cand-bandeau-fait a { color: inherit; }
	.cand-bandeau-fait.est-retard { color: var(--pf-warn); }

	.cand-bloc {
		display: grid;
		gap: var(--space-3);
		padding: var(--space-5);
		border: var(--contour-l) var(--contour-s) var(--border-color);
		border-radius: var(--card-radius);
		background: var(--pf-surface);
	}

	.cand-bloc > h2 {
		display: flex;
		align-items: center;
		gap: var(--space-2);
		margin: 0;
		font-size: var(--fs-lg);
	}

	.cand-bloc > h2 .ti { color: var(--pf-gold); }

	/* --- La fiche : paires intitulé / valeur -------------------------- */
	.cand-faits {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		gap: var(--space-3);
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.cand-faits li {
		display: grid;
		gap: 2px;
		padding: var(--space-2) var(--space-3);
		border-left: 2px solid var(--pf-gold-line);
		background: var(--pf-panel);
		border-radius: var(--radius);
	}

	.cand-faits span {
		font-size: var(--fs-2xs);
		text-transform: uppercase;
		letter-spacing: var(--track-wide);
		color: var(--secondary-color);
	}

	.cand-faits strong {
		display: flex;
		align-items: center;
		gap: var(--space-2);
		flex-wrap: wrap;
		font-size: var(--fs-sm);
	}

	.cand-langue { white-space: nowrap; }

	/* Les textes libres du candidat. `pre-wrap` par nl2br() n'aurait pas
	   suffi : une motivation contient des URL et des mots d'un seul
	   tenant qui débordent la carte sans `overflow-wrap`. */
	.cand-texte {
		margin: 0;
		font-size: var(--fs-sm);
		line-height: 1.7;
		overflow-wrap: anywhere;
	}

	/* --- Engagements et antécédents ---------------------------------- */
	.cand-engagements,
	.cand-antecedents {
		display: grid;
		gap: var(--space-2);
		margin: 0;
		padding: 0;
		list-style: none;
		font-size: var(--fs-sm);
	}

	.cand-engagements li,
	.cand-antecedents li {
		display: flex;
		align-items: center;
		gap: var(--space-2);
		flex-wrap: wrap;
	}

	.cand-engagements .est-ok .ti { color: var(--pf-success); }
	.cand-engagements .est-manquant { color: var(--pf-danger); }

	/* =================================================================
	   LE FIL ET LE PANNEAU DE TRAITEMENT NE SONT PLUS DESSINÉS ICI
	   =================================================================
	   Ils l'ont été — une pile de blocs gris (`.cand-fil`, `.cand-msg`,
	   `.cand-evt`) et un formulaire à liste déroulante — et cela ne
	   pouvait pas tenir : le même écran existait déjà DEUX fois sur le
	   site, dans la messagerie et sur un dossier de débannissement, avec
	   des bulles, des avatars, le regroupement des prises de parole, la
	   césure des journées et les réactions.

	   Le dossier d'une candidature charge donc `messagerie.css` pour les
	   bulles et `registre.css` pour l'enveloppe du fil (`.reg-fil*`) et
	   le panneau de décision (`.reg-panneau*`). Aucune de ces règles
	   n'est recopiée ici : un joueur retrouve exactement le même dessin
	   d'un écran à l'autre, et il n'y a qu'un endroit à corriger.

	   Voir public/recrutement.php (page_css) et l'en-tête de
	   includes/registre_fil.php. */

	.cand-grille-2 {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
		gap: var(--space-3);
	}

	.cand-retrait { justify-self: start; }

	/* =================================================================
	   LE PANNEAU DE TRAITEMENT — SANS UNE SEULE BORDURE
	   =================================================================
	   Il reprenait celui des bannissements : un cadre doré, des cartes
	   encadrées, un filet au-dessus du pied. Quatre traits empilés dans
	   une colonne qui en portait déjà — le fil, les blocs de la fiche —
	   et l'œil ne savait plus lequel séparait quoi.

	   Ici, plus AUCUN `border`. Ce qui distingue une zone d'une autre,
	   c'est son FOND et son ESPACE : un panneau posé sur un voile un peu
	   plus clair, des champs creusés un peu plus sombres, et de l'air
	   entre les trois étapes. Un contour reste dessiné dans un seul cas,
	   et c'est une obligation : le `:focus-visible`, sans lequel on ne
	   sait plus où l'on est au clavier.
	   ================================================================= */
	.cand-panneau {
		display: flex;
		flex-direction: column;
		gap: var(--space-5);
		min-width: 0;

		margin-top: var(--space-5);
		padding: var(--space-5);
		border-radius: var(--card-radius);

		/* Un VOILE doré qui s'éteint vers le bas, posé sur la surface du
		   site : la zone se détache par sa matière, pas par un trait. */
		background:
			linear-gradient(180deg, var(--pf-gold-soft), transparent 42%),
			var(--pf-surface);
	}

	/* --- L'en-tête ---------------------------------------------------- */
	.cand-panneau-tete {
		display: flex;
		align-items: center;
		gap: var(--space-3);
		flex-wrap: wrap;
		min-width: 0;
		margin: 0;

		font-size: var(--fs-md);
		font-weight: 700;
	}

	/* Le sceau remplace le cadre : une pastille pleine qui pose le ton
	   du panneau dès le premier coup d'œil. */
	.cand-panneau-sceau {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: none;
		width: 34px;
		height: 34px;
		border-radius: 50%;
		background: var(--pf-gold-soft);
		color: var(--pf-gold);
	}

	.cand-panneau-tete > span:not(.cand-panneau-sceau):not(.cand-panneau-ref) { min-width: 0; }

	/* La référence : une puce pleine, en chiffres de largeur constante.
	   Sans contour — c'est le fond qui la détache. */
	.cand-panneau-ref {
		margin-left: auto;
		padding: 3px var(--space-3);
		border-radius: var(--radius);
		background: var(--pf-surface-2);

		font-variant-numeric: tabular-nums slashed-zero;
		font-size: var(--fs-2xs);
		font-weight: 600;
		letter-spacing: .04em;
		color: var(--secondary-color);
		white-space: nowrap;
	}

	/* --- Les trois étapes --------------------------------------------- */
	.cand-panneau-bloc,
	.cand-panneau-decision {
		display: flex;
		flex-direction: column;
		gap: var(--space-3);
		min-width: 0;
	}

	.cand-panneau-decision { gap: var(--space-5); }

	/* EN GRIS, ET NON EN OR. Trois intitulés dorés d'affilée — « Faire
	   avancer », « Trancher », « Motivation » — au-dessus d'un voile doré
	   et d'un bouton doré : l'or ne désignait plus rien, puisqu'il était
	   partout. Il reste au SCEAU et au bouton d'envoi, c'est-à-dire à
	   l'entrée et à la sortie du panneau. Les intitulés, eux, sont des
	   repères de lecture : ils doivent se lire sans se faire regarder. */
	.cand-panneau-titre {
		margin: 0;
		font-size: var(--fs-2xs);
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: var(--track-wide);
		color: var(--secondary-color);
	}

	/* --- Le suivi : des pastilles pleines ----------------------------- */
	.cand-panneau-rapide,
	.cand-panneau-pied {
		display: flex;
		align-items: center;
		gap: var(--space-2);
		flex-wrap: wrap;
		min-width: 0;
	}

	.cand-panneau-rapide form,
	.cand-panneau-pied form { margin: 0; }

	/* Un bouton sans contour : le fond dit qu'il est cliquable, et il
	   s'éclaircit au survol. `border: 0` est indispensable — theme.css
	   habille tout `button`. */
	.cand-pastille {
		display: inline-flex;
		align-items: center;
		gap: var(--space-2);

		margin: 0;
		padding: var(--space-2) var(--space-4);
		border: 0;
		border-radius: var(--radius-pill);

		background: var(--pf-surface-2);
		color: var(--texte-color);
		font-size: var(--fs-xs);
		font-weight: 600;
		line-height: 1.2;
		cursor: pointer;

		transition: background var(--pf-fade-ms) var(--pf-fade-ease),
					color var(--pf-fade-ms) var(--pf-fade-ease);
	}

	.cand-pastille .ti { color: var(--pf-gold); }

	.cand-pastille:hover {
		background: var(--pf-gold-soft);
		color: var(--pf-gold-strong);
	}

	/* Le verrou est une action de police, pas un geste courant : il vit
	   en pied, plus discret que le reste. */
	.cand-pastille.est-discret {
		background: transparent;
		color: var(--secondary-color);
	}

	.cand-pastille.est-discret:hover { background: var(--pf-surface-2); }

	/* --- Les trois issues, en cartes pleines --------------------------- */
	.cand-choix-liste {
		display: flex;
		flex-direction: column;
		gap: var(--space-2);
		min-width: 0;
	}

	.cand-choix {
		position: relative;
		display: block;
		min-width: 0;

		/* theme.css habille TOUT `label` : capitales, graisse 700,
		   interlettrage et marge basse. Quatre remises à zéro. */
		margin-bottom: 0;
		font-size: var(--fs-xs);
		font-weight: 500;
		text-transform: none;
		letter-spacing: 0;

		cursor: pointer;
	}

	.cand-choix-boite {
		display: flex;
		align-items: center;
		gap: var(--space-3);
		min-width: 0;

		padding: var(--space-3) var(--space-4);
		border-radius: var(--card-radius);
		background: var(--pf-panel);

		transition: background var(--pf-fade-ms) var(--pf-fade-ease);
	}

	.cand-choix:hover .cand-choix-boite { background: var(--pf-panel-hover); }

	/* La vignette porte la couleur de l'issue. C'est elle qui distingue
	   les trois cartes au premier regard, là où une bordure le faisait
	   avant — et elle reste lisible sur les deux thèmes, puisqu'elle ne
	   pose qu'un voile teinté derrière une icône. */
	.cand-choix-vignette {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: none;
		width: 30px;
		height: 30px;
		border-radius: 50%;
		background: var(--pf-surface-2);
		color: var(--secondary-color);
	}

	.cand-choix.est-leve  .cand-choix-vignette { background: var(--pf-success-soft); color: var(--pf-success); }
	.cand-choix.est-refus .cand-choix-vignette { background: var(--pf-danger-soft);  color: var(--pf-danger); }

	.cand-choix-corps {
		display: flex;
		flex-direction: column;
		gap: 2px;
		min-width: 0;
	}

	.cand-choix-corps strong { font-size: var(--fs-sm); font-weight: 700; }

	.cand-choix-corps em {
		font-style: normal;
		font-size: var(--fs-2xs);
		line-height: 1.45;
		color: var(--secondary-color);
	}

	/* La coche n'apparaît qu'une fois l'option retenue. Elle est en bout
	   de ligne, à la place où l'on chercherait un bouton radio. */
	.cand-choix-coche {
		margin-left: auto;
		flex: none;
		opacity: 0;
		color: var(--pf-gold);
		transition: opacity var(--pf-fade-ms) var(--pf-fade-ease);
	}

	/* L'ÉTAT COCHÉ SE DIT PAR LE FOND, pas par un contour. `input:checked
	   ~ .boîte` et non `:has()` : sur un navigateur qui ignore `:has()`,
	   on ne verrait plus du tout l'option retenue. */
	.cand-choix input:checked ~ .cand-choix-boite { background: var(--pf-gold-soft); }
	.cand-choix input:checked ~ .cand-choix-boite .cand-choix-coche { opacity: 1; }

	.cand-choix.est-leve  input:checked ~ .cand-choix-boite { background: var(--pf-success-soft); }
	.cand-choix.est-leve  input:checked ~ .cand-choix-boite .cand-choix-coche { color: var(--pf-success); }
	.cand-choix.est-refus input:checked ~ .cand-choix-boite { background: var(--pf-danger-soft); }
	.cand-choix.est-refus input:checked ~ .cand-choix-boite .cand-choix-coche { color: var(--pf-danger); }

	/* LE SEUL CONTOUR DE TOUT LE PANNEAU, et il n'est pas négociable :
	   la case est masquée, donc sans lui un utilisateur au clavier ne
	   sait plus sur quelle option il se trouve. */
	.cand-choix input:focus-visible ~ .cand-choix-boite {
		outline: 2px solid var(--pf-gold);
		outline-offset: 2px;
	}

	/* --- Les champs : creusés, jamais encadrés ------------------------- */
	.cand-champ {
		width: 100%;
		min-width: 0;
		padding: var(--space-3) var(--space-4);

		border: 0;
		border-radius: var(--card-radius);
		background: var(--pf-panel);
		color: var(--texte-color);

		font: inherit;
		font-size: var(--fs-sm);
		line-height: 1.6;
		resize: vertical;
	}

	.cand-champ::placeholder { color: var(--secondary-color); }

	.cand-champ:focus-visible {
		outline: 2px solid var(--pf-gold);
		outline-offset: 2px;
	}

	.cand-panneau-aide {
		display: flex;
		align-items: flex-start;
		gap: var(--space-2);
		margin: 0;
		font-size: var(--fs-2xs);
		color: var(--secondary-color);
	}

	.cand-panneau-aide .ti { flex: none; margin-top: 1px; color: var(--pf-gold); }

	/* --- La note interne, repliée -------------------------------------- */
	.cand-panneau-note {
		display: flex;
		flex-direction: column;
		gap: var(--space-3);
	}

	.cand-panneau-note > summary {
		display: flex;
		align-items: center;
		gap: var(--space-2);

		padding: var(--space-2) var(--space-3);
		border-radius: var(--radius);
		background: var(--pf-surface-2);

		font-size: var(--fs-xs);
		font-weight: 600;
		color: var(--secondary-color);
		cursor: pointer;
		list-style: none;
	}

	/* La flèche du navigateur est remplacée par la nôtre, qui pivote :
	   celle de Safari se dessine hors de la pastille. */
	.cand-panneau-note > summary::-webkit-details-marker { display: none; }
	.cand-panneau-note > summary:hover { color: var(--pf-gold); }

	.cand-panneau-note-fleche {
		margin-left: auto;
		transition: transform var(--pf-fade-ms) var(--pf-fade-ease);
	}

	.cand-panneau-note[open] > summary .cand-panneau-note-fleche { transform: rotate(180deg); }

	.cand-panneau-envoyer { align-self: flex-start; }

	/* Le pied n'est PAS séparé par un filet : c'est l'espace au-dessus
	   qui le détache, et le bouton y est déjà plus discret que les
	   autres. */
	.cand-panneau-pied { margin-top: calc(var(--space-2) * -1); }

	/* Les encarts du panneau — « seul un Responsable peut accepter »,
	   « ce dossier est tranché ». On leur retire le CADRE, et rien
	   d'autre : leur fond vient de leur ton (`is-warn`, `is-info`), et le
	   forcer ici ferait dire à une note d'information la couleur d'un
	   avertissement. */
	.cand-panneau > .info { border: 0; }

	/* =================================================================
	   TÉLÉPHONE
	   =================================================================
	   La rangée passe sur deux lignes plutôt que d'écraser ses trois
	   colonnes : à 360 px, « C-00042 » et une pastille d'état ne tiennent
	   pas côte à côte avec un pseudonyme.
	   ================================================================= */
	@media (max-width: 719px) {

		.recrut-hero { padding: var(--space-5) var(--space-4); }
		.recrut-hero h1 { font-size: var(--fs-2xl); }
		.recrut-hero-phrase { font-size: var(--fs-md); }

		.recrut-etape { padding: var(--space-4) var(--space-3); }
		.cand-bloc { padding: var(--space-4) var(--space-3); }

		.cand-rangee {
			grid-template-columns: auto 1fr;
			row-gap: var(--space-2);
		}

		.cand-rangee-etat {
			grid-column: 1 / -1;
			justify-items: start;
			text-align: left;
			flex-direction: row;
		}

		.cand-filtre .field { min-width: 0; width: 100%; }
	}
}
