/* Dossier d'embauche « Pochette » (composant) : la feuille au centre, les intercalaires sur le bord droit,
   la fiche de poste trombonée sur le coin gauche. Construit par dossier.js (window.UltimateDossier.monter) dans une racine
   fournie par la page : tout est rangé sous .dz-rec (enveloppe créée par le script) et .pc (le dossier).
   Isolé du reste du site : couleurs du papier, polices, petites remises à zéro et classes utilitaires (dz-sr, dz-trame,
   dz-couronne, dz-pulse) sont définies ici ; aucune classe générique de la page (.btn, .ht, .tape, .sr, .pulse…) n'est utilisée.
   Référence visuelle : maquettes-recrutement/formulaire-b2-pochette.html (validée). */

/* ---------- Enveloppe du composant : réglages et remises à zéro (sans poids, la page garde la main ailleurs) ---------- */
.dz-rec {
  --dz-acc: #ecd3b1; --dz-beige: linear-gradient(180deg, #f3dfc2, #e2c39b);
  --dz-ease: cubic-bezier(.22, 1, .36, 1);
  --dz-font: 'Poppins', system-ui, sans-serif;
  /* Signature du dossier : gothique mais lisible. Repli lisible si Pirata One n'est pas encore là */
  --dz-font-signe: 'Pirata One', Georgia, 'Times New Roman', serif;
  container: dz-rec / inline-size; padding: 10px 0 150px;
  font-family: var(--dz-font); font-size: 15px; line-height: 1.6;
}
:where(.dz-rec, .dz-rec *, .dz-rec *::before, .dz-rec *::after) { box-sizing: border-box; }
:where(.dz-rec) :where(img) { display: block; max-width: 100%; }
:where(.dz-rec) :where(a) { color: inherit; text-decoration: none; }
:where(.dz-rec) :where(button, input, textarea, select) { font: inherit; color: inherit; }
:where(.dz-rec) :where(button) { background: none; border: 0; padding: 0; cursor: pointer; }
:where(.dz-rec) :focus-visible { outline: 2px solid var(--dz-acc); outline-offset: 3px; }
.dz-rec [hidden] { display: none !important; }

/* Classes utilitaires du composant */
.dz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Trame de points (papier imprimé) */
.dz-trame { position: relative; }
.dz-trame::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .22;
  background-image: radial-gradient(rgba(0, 0, 0, .55) 1px, transparent 1.5px); background-size: 4px 4px; }
/* Couronne Ultimate : une seule forme (couronne-blanche.png en masque), colorée par currentColor */
.dz-couronne { display: inline-block; flex: none; aspect-ratio: 833 / 614; background: currentColor;
  -webkit-mask: url(assets/couronne-blanche.png) center / contain no-repeat; mask: url(assets/couronne-blanche.png) center / contain no-repeat; }
/* Pastille du recrutement : verte (ouvert), orange (places très limitées), rouge et fixe (fermé) */
.dz-pulse { --st: 98, 212, 127; flex: none; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--st)); animation: dz-pulse 2s infinite; }
[data-st="limite"] .dz-pulse { --st: 245, 160, 60; }
[data-st="ferme"] .dz-pulse { --st: 236, 86, 72; animation: none; box-shadow: 0 0 0 3px rgba(236, 86, 72, .22); }
@keyframes dz-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--st), .55); } 70% { box-shadow: 0 0 0 9px rgba(var(--st), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--st), 0); } }

/* ======================================================================
   POCHETTE : la feuille au centre, les intercalaires à droite, la fiche de poste à gauche
   ====================================================================== */
.pc { --tab: 160px; --tuck: 26px;
  --papier: #efe6d8; --encre: #16130f; --encre-2: #3a3129; --gris: #685a49; --brun: #7a5a33;
  --trait: rgba(22, 19, 15, .16); --trait-fort: rgba(22, 19, 15, .4); --rouge: #a3291d; --vert: #2c6a3c; --surligneur: rgba(222, 189, 145, .55);
  position: relative; width: min(980px, 100% - 2 * 176px); margin: 0 auto; padding-bottom: 28px; color: var(--encre); }
.pc :focus-visible { outline-color: var(--encre); }
.pc-corps { position: relative; z-index: 2; isolation: isolate; }

/* Chemise cartonnée derrière la feuille */
.pc-chemise { position: absolute; z-index: 0; inset: -16px -14px -22px -14px; border-radius: 6px; rotate: -.7deg;
  background: linear-gradient(165deg, #e6cca6 0%, #d3b287 48%, #c09b6d 100%);
  box-shadow: 0 60px 90px -40px rgba(0, 0, 0, .95), 0 18px 30px -18px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(0, 0, 0, .08); }
.pc-chemise::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .22; mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(0, 0, 0, .5) 1px, transparent 1.5px); background-size: 4px 4px; }

/* ---------- Intercalaires : ils sortent de sous la feuille, sur le bord droit ---------- */
.pc-rail { position: absolute; z-index: 1; top: 30px; bottom: 40px; left: calc(100% - var(--tuck)); width: calc(var(--tab) + var(--tuck) + 14px); pointer-events: none; }
.pc-onglets { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pc-onglets li { display: flex; }
.pc-onglet { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 9px; width: calc(var(--tab) + var(--tuck)); height: 64px;
  padding: 0 8px 0 calc(var(--tuck) + 22px); text-align: left; border-radius: 0 12px 12px 0; color: rgba(22, 19, 15, .62);
  background: linear-gradient(90deg, rgba(60, 40, 15, .22), transparent 34%), var(--k, #d4b68c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset -1px 0 0 rgba(255, 255, 255, .18), 0 12px 18px -12px rgba(0, 0, 0, .75);
  transform: translateX(-6px); transition: transform .6s var(--dz-ease), color .3s, box-shadow .4s; }
.pc-onglet::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .45s;
  background: linear-gradient(90deg, rgba(150, 110, 60, .3), transparent 30%), linear-gradient(180deg, #f3dfc2, #e2c39b); }
.pc-onglet > * { position: relative; }
.pc-pastille { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 17px;
  transition: background .35s, color .35s, border-color .35s; }
/* Pastille cochée des intercalaires terminés */
.pc-coche { position: absolute; top: -5px; right: -6px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--vert); color: #fff;
  font-size: 14px; box-shadow: 0 0 0 2px #e9d4b2; transform: scale(0) rotate(-40deg); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.pc-onglet-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.pc-onglet-t small { font-size: 9.5px; font-weight: 700; letter-spacing: .2em; color: var(--brun); }
.pc-onglet-t b { font-size: 12.5px; font-weight: 800; font-style: italic; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.pc-onglet:disabled { cursor: default; }
.pc-onglet.is-done { cursor: pointer; color: rgba(22, 19, 15, .8); }
.pc-onglet.is-done .pc-coche { transform: none; }
.pc-onglet.is-done:not(:disabled):hover { transform: translateX(0); color: var(--encre); }
/* Intercalaire ouvert : sorti plus loin et beige */
.pc-onglet.is-active { z-index: 2; transform: translateX(6px); color: var(--encre); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 12px 14px 26px -12px rgba(0, 0, 0, .8); }
.pc-onglet.is-active::before { opacity: 1; }
.pc-onglet.is-active .pc-pastille { background: var(--encre); border-color: var(--encre); color: var(--dz-acc); }

/* ---------- Pile de feuilles ---------- */
.pc-pile { position: relative; z-index: 2; }
.pc-pile::before, .pc-pile::after { content: ""; position: absolute; z-index: -1; inset: 0; background: #e2d7c4; box-shadow: 0 22px 40px -26px rgba(0, 0, 0, .9); }
.pc-pile::before { rotate: 1.1deg; translate: 6px 6px; background: #d8cbb5; }
.pc-pile::after { rotate: -.6deg; translate: -4px 6px; }
.pc-feuille { container: dz-feuille / inline-size; position: relative; z-index: 1; padding: 34px 54px 30px; background: linear-gradient(180deg, #f3ebdf, #ece2d2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.pc-feuille.dz-trame::after { opacity: .1; }
/* Copie de la feuille qu'on retire (ou qu'on recouvre) pendant le changement d'étape */
.pc-feuille.pc-copie { position: absolute; left: 0; right: 0; top: 0; z-index: 3; pointer-events: none; }
.pc-feuille.pc-copie.is-dessous { z-index: 0; }
.pc-copie *, .pc-copie *::before, .pc-copie *::after { animation: none !important; transition: none !important; }
.pc-copie .pc-signe { clip-path: none; }
.pc-copie .dz-save { opacity: 0; }
/* Scotch en travers du coin bas gauche */
.pc-tape { position: absolute; z-index: 2; left: -34px; bottom: -4px; width: 86px; height: 26px; rotate: 45deg; background: rgba(236, 211, 177, .68); }

/* En-tête de la feuille : une ligne, sans fioritures */
.pc-tete { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 2.5px solid var(--encre); }
/* Macaron du logo : le logo avec son fond (assets/logo-fond.webp : couronne blanche sur beige), un seul élément */
.pc-macaron { flex: none; display: inline-block; width: 46px; height: 46px; border-radius: 50%;
  background: #e2c39b url(assets/logo-fond.webp) center / cover no-repeat;
  box-shadow: inset 0 0 0 1.5px rgba(122, 90, 51, .32), 0 4px 10px -4px rgba(60, 40, 15, .5); }
.pc-tete-t { flex: 1; min-width: 0; }
.pc-doc { margin: 0; font-size: 21px; font-weight: 900; font-style: italic; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; }
.pc-poste { display: flex; align-items: center; gap: 6px; margin: 5px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .18em; line-height: 1.2; text-transform: uppercase; color: var(--brun); }
.pc-poste i { font-size: 15px; }
/* Avancement : anneau discret */
.pc-anneau { position: relative; flex: none; display: grid; place-items: center; width: 42px; height: 42px; }
.pc-anneau svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.pc-anneau circle { fill: none; stroke-width: 3; }
.pc-anneau .f { stroke: var(--trait); }
.pc-anneau .v { stroke: var(--encre); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .7s var(--dz-ease), stroke .4s; }
.pc-anneau.is-plein .v { stroke: var(--vert); }
.pc-anneau b { font-size: 11px; font-weight: 800; font-style: italic; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pc-anneau b small { font-size: 8px; font-weight: 700; }

/* Pages */
.pc-page { border: 0; margin: 0; padding: 0; min-width: 0; }
.pc-titre { display: flex; align-items: center; gap: 12px; margin: 26px 0 24px; font-size: clamp(24px, 4.2cqi, 32px); font-weight: 900; font-style: italic; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.pc-titre-n { flex: none; display: grid; place-items: center; width: 44px; height: 34px; background: var(--encre); color: var(--dz-acc); font-size: 15px; transform: skewX(-8deg); }
.pc-titre-n > span { transform: skewX(8deg); }
.pc-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 38px; }
.pc-champ { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pc-champ.is-large { grid-column: 1 / -1; }
.pc-champ.shake { animation: pc-secoue .45s; }
@keyframes pc-secoue { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
/* Repère rouge dans la marge quand un champ est à corriger */
.pc-champ::before { content: ""; position: absolute; left: -20px; top: 2px; bottom: 2px; width: 3px; border-radius: 2px; background: var(--rouge); transform: scaleY(0); transition: transform .4s var(--dz-ease); }
.pc-champ.is-error::before { transform: scaleY(1); }
.pc-label-l { display: flex; align-items: center; gap: 6px; min-height: 18px; }
.pc-label { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1.45; text-transform: uppercase; color: var(--gris); transition: color .3s; }
.pc-fac { font-style: italic; font-weight: 600; letter-spacing: .04em; text-transform: none; color: rgba(104, 90, 73, .75); }
.pc-champ.is-error .pc-label { color: var(--rouge); }
/* Aide cachée derrière (?) : bulle à l'encre ; affichée aussi sous le champ en cas d'erreur */
.pc-q { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; margin: -3px 0; border-radius: 50%; color: var(--gris); font-size: 17px;
  transition: color .25s, background .25s, transform .45s var(--dz-ease); }
.pc-q:hover, .pc-champ.is-aide .pc-q { color: var(--encre); background: var(--surligneur); transform: rotate(-10deg); }
.pc-aide { display: none; margin: 0; font-size: 12.5px; line-height: 1.5; }
.pc-champ.is-aide .pc-aide { display: block; position: absolute; z-index: 8; top: 30px; left: -12px; width: min(330px, calc(100% + 24px)); padding: 11px 14px;
  background: var(--encre); color: #f3e9da; font-weight: 500; box-shadow: 0 18px 32px -12px rgba(0, 0, 0, .6); }
/* Flèche de la bulle, placée sous le (?) par le script (--dz-fleche) */
.pc-champ.is-aide .pc-aide::before { content: ""; position: absolute; top: -5px; left: var(--dz-fleche, 120px); width: 11px; height: 11px; background: inherit; rotate: 45deg; }
.pc-champ.is-error:not(.is-aide) .pc-aide { display: block; font-style: italic; color: var(--gris); }

/* Ligne de saisie : aucun effet quand on clique dedans (demande de l'utilisateur) ; le trait rouge ne sert qu'aux erreurs */
.dz-ligne { position: relative; display: block; }
.dz-ligne::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rouge); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.dz-ligne input, .dz-ligne textarea { position: relative; z-index: 1; display: block; width: 100%; height: 42px; padding: 10px 30px 6px 2px; border: 0; border-bottom: 1.5px solid var(--trait-fort); border-radius: 0;
  background: transparent; outline: 0; font-size: 16.5px; font-weight: 600; color: var(--encre); caret-color: var(--brun); }
/* Réponse courte en texte libre : la même ligne soulignée, mais Entrée passe à la ligne et la zone grandit avec la réponse
   (une ligne = 42 px, comme un champ simple ; repli JS « grandir » sans field-sizing) */
.dz-ligne textarea { height: auto; min-height: 42px; line-height: 24.5px; resize: none; overflow: hidden; field-sizing: content; }
.dz-ligne input::placeholder, .dz-ligne textarea::placeholder, .dz-ta textarea::placeholder { color: rgba(22, 19, 15, .34); font-weight: 500; font-style: italic; }
.dz-ligne input[type="number"] { -moz-appearance: textfield; }
.dz-ligne input::-webkit-inner-spin-button, .dz-ligne input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.dz-ok { position: absolute; z-index: 2; right: 0; bottom: 9px; font-size: 22px; color: var(--vert); opacity: 0; transform: scale(.4) rotate(-20deg); transition: opacity .3s, transform .5s cubic-bezier(.34, 1.56, .64, 1); pointer-events: none; }
.pc-champ.is-ok .dz-ok { opacity: 1; transform: none; }
.pc-champ.is-error .dz-ligne :is(input, textarea) { border-bottom-color: var(--rouge); }
.pc-champ.is-error .dz-ligne::after { background: var(--rouge); transform: scaleX(1); }
/* Texte long : papier ligné */
.dz-ta { position: relative; }
/* Barre rouge à gauche seulement en cas d'erreur (aucun effet au clic) */
.dz-ta::before { content: ""; position: absolute; left: -14px; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--rouge); transform: scaleY(0); transform-origin: top; }
/* La zone grandit avec la réponse (4 lignes minimum) : pas de texte caché derrière un défilement interne */
.dz-ta textarea { display: block; width: 100%; min-height: 120px; padding: 0 2px; border: 0; border-radius: 0; outline: 0; resize: vertical; field-sizing: content;
  background: linear-gradient(transparent 29px, rgba(22, 19, 15, .22) 29px) 0 0 / 100% 30px local;
  line-height: 30px; font-size: 15.5px; font-weight: 500; color: var(--encre); caret-color: var(--brun); }
.pc-champ.is-error .dz-ta textarea { background-image: linear-gradient(transparent 29px, rgba(163, 41, 29, .45) 29px); }
.pc-champ.is-error .dz-ta::before { background: var(--rouge); transform: scaleY(1); }
.dz-compte { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--gris); font-variant-numeric: tabular-nums; }
.dz-compte-b { width: 64px; height: 3px; background: var(--trait); overflow: hidden; }
.dz-compte-b i { display: block; height: 100%; background: var(--encre); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--dz-ease), background .3s; }
.dz-compte.is-ok { color: var(--vert); }
.dz-compte.is-ok .dz-compte-b i { background: var(--vert); }
/* Question du cas pratique : bloc imprimé à l'encre */
.dz-cas { margin: 2px 0 6px; padding: 16px 18px; background: var(--encre); color: #f3e9da; font-size: 14.5px; font-weight: 600; font-style: italic; line-height: 1.6; box-shadow: 6px 6px 0 rgba(22, 19, 15, .14); }
/* Cases à cocher dessinées */
.dz-cases { display: flex; flex-wrap: wrap; gap: 12px 22px; padding-top: 4px; }
.dz-case, .pc-certif { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.dz-case input, .pc-certif input, .dz-note-b input, .dz-grille-c input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dz-box { position: relative; flex: none; width: 20px; height: 20px; border: 1.8px solid var(--encre); border-radius: 2px; transition: background .25s, border-color .25s; }
.is-rond .dz-box { border-radius: 50%; }
.dz-box svg { position: absolute; left: -2px; top: -7px; width: 27px; height: 27px; overflow: visible; }
.dz-box path { fill: none; stroke: var(--encre); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .38s var(--dz-ease); }
.pc input:checked + .dz-box path { stroke-dashoffset: 0; }
.dz-case:hover .dz-box, .pc-certif:hover .dz-box { background: var(--surligneur); }
.pc input:focus-visible + .dz-box { outline: 2px solid var(--encre); outline-offset: 3px; }
.dz-case-t { font-size: 14.5px; font-weight: 600; color: var(--encre-2); background: linear-gradient(transparent 58%, var(--surligneur) 58%) 0 0 / 0% 100% no-repeat; transition: background-size .45s var(--dz-ease), color .25s; }
.pc input:checked ~ .dz-case-t { color: var(--encre); font-weight: 700; background-size: 100% 100%; }
.pc-champ.is-error .dz-box { border-color: var(--rouge); }
/* Note de 1 à 5 : le chiffre choisi est entouré au stylo */
.dz-note { display: grid; grid-template-columns: auto auto auto; align-items: center; justify-content: start; gap: 6px 14px; }
.dz-note-r { display: flex; gap: 6px; }
.dz-note-b { position: relative; display: grid; place-items: center; width: 48px; height: 40px; cursor: pointer; }
.dz-note-b > span { font-size: 20px; font-weight: 800; font-style: italic; color: rgba(22, 19, 15, .5); transition: color .25s, transform .35s var(--dz-ease); }
.dz-note-b:hover > span { color: var(--encre); transform: translateY(-2px); }
.dz-note-b input:checked ~ span { color: var(--encre); }
.dz-note-b input:focus-visible ~ span { outline: 2px solid var(--encre); outline-offset: 6px; }
.dz-cercle { position: absolute; left: -3px; top: -2px; width: calc(100% + 6px); height: calc(100% + 4px); overflow: visible; pointer-events: none; }
.dz-cercle path { fill: none; stroke: var(--encre); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .55s var(--dz-ease); }
.dz-note-b input:checked ~ .dz-cercle path { stroke-dashoffset: 0; }
.pc-champ.is-error .dz-cercle path { stroke: var(--rouge); }
.pc-champ.is-error .dz-note-b > span { color: rgba(163, 41, 29, .7); }
.dz-note-l { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.dz-err { display: none; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--rouge); }
.dz-err i { font-size: 16px; }
.pc-champ.is-error .dz-err { display: flex; animation: pc-err-in .4s var(--dz-ease) both; }
@keyframes pc-err-in { from { opacity: 0; transform: translateY(-4px); } }

/* Vérification : une ligne courte par étape (crayon pour modifier), certification, signature */
.pc-recap { display: flex; flex-direction: column; margin-bottom: 24px; border-top: 1.5px solid var(--encre); }
.pc-recap-s { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--trait-fort); }
.pc-recap-h { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.pc-recap-h i { font-size: 16px; color: var(--brun); }
.pc-recap-v { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--encre-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-modif { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 17px; color: var(--brun); transition: color .25s, background .25s, transform .4s var(--dz-ease); }
.pc-modif:hover { color: var(--encre); background: var(--surligneur); transform: rotate(-14deg); }
.pc-certif { align-items: flex-start; gap: 14px; font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.pc-certif .dz-box { width: 24px; height: 24px; margin-top: -1px; }
.pc-certif .dz-box svg { left: -1px; top: -6px; width: 30px; height: 30px; }
.pc-signature { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-top: 22px; }
.pc-signature > div { flex: 0 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pc-signature > div > span, .pc-signature time { font-size: 9.5px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--gris); }
.pc-signature b { min-height: 40px; display: flex; align-items: flex-end; padding-bottom: 4px; border-bottom: 1.5px solid var(--trait-fort); overflow: hidden; }
/* Signature en Pirata One : gothique mais lisible ; la marge basse garde les jambages (p, q, g) dans la ligne */
.pc-signe { min-width: 0; max-width: 100%; padding: 2px 4px 2px 0; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--dz-font-signe); font-size: 28px; font-weight: 400; font-style: normal; line-height: 1.12; letter-spacing: .02em; text-transform: none;
  white-space: nowrap; clip-path: inset(0 100% 0 0); }
.pc-page.is-active .pc-signe { animation: pc-signer 1.5s cubic-bezier(.6, .1, .3, 1) .7s forwards; }
@keyframes pc-signer { to { clip-path: inset(0 0 0 0); } }

/* Navigation de la feuille */
.pc-nav { display: flex; align-items: center; gap: 14px; margin-top: 32px; padding-top: 22px; border-top: 1.5px dashed var(--trait-fort); }
.dz-save { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 700; font-style: italic; color: var(--vert);
  opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .5s var(--dz-ease); }
.dz-save i { font-size: 16px; }
.dz-save.is-on { opacity: 1; transform: none; }
.dz-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px;
  font-size: 13.5px; font-weight: 800; font-style: italic; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  transform: skewX(-8deg); transition: transform .5s var(--dz-ease), background .3s, color .3s, box-shadow .4s, border-color .3s, opacity .3s; }
.dz-btn > * { transform: skewX(8deg); transition: transform .45s var(--dz-ease); }
.dz-btn i { font-size: 20px; }
.dz-btn-encre { background: var(--encre); color: var(--dz-acc); box-shadow: 6px 6px 0 rgba(22, 19, 15, .16); }
.dz-btn-encre:hover { transform: skewX(-8deg) translate(-2px, -2px); box-shadow: 9px 9px 0 rgba(22, 19, 15, .22); }
.dz-btn-trait { border: 2px solid var(--encre); color: var(--encre); }
.dz-btn-trait:hover { background: var(--encre); color: var(--dz-acc); }
.dz-btn:hover > .bx-right-arrow-alt, .dz-btn:hover > .bx-send { transform: skewX(8deg) translateX(4px); }
.dz-btn:hover > .bx-left-arrow-alt { transform: skewX(8deg) translateX(-4px); }
.dz-btn:disabled { pointer-events: none; }
.dz-btn.is-loading { opacity: .88; }
.pc-suivant { margin-left: auto; }
.pc-suivant.is-envoi { box-shadow: 6px 6px 0 rgba(140, 104, 58, .35); }

/* ---------- Tampon « REÇU » / « FERMÉ » (placé par le script au centre de sa zone) ---------- */
.dz-tampon { position: absolute; z-index: 6; left: 0; top: 0; width: 272px; rotate: -12deg; color: #7d5731; mix-blend-mode: multiply; pointer-events: none; }
.dz-tampon.is-ferme { color: #a3291d; }
/* Encre irrégulière : grain en masque, pleine dans l'ensemble avec quelques manques */
.dz-encre { position: relative; display: block; padding: 12px 16px 14px; border: 5px solid currentColor; border-radius: 12px; text-align: center; opacity: .9;
  -webkit-mask: var(--grain) 0 0 / 260px 260px repeat; mask: var(--grain) 0 0 / 260px 260px repeat;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.5' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.4 0 0 0 2.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.dz-encre::before { content: ""; position: absolute; inset: 4px; border: 2px solid currentColor; border-radius: 7px; }
.dz-tampon-h { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; }
.dz-tampon-h .dz-couronne { width: 22px; }
.dz-encre b { display: block; margin: 0 0 4px; font-size: 86px; font-weight: 900; font-style: italic; line-height: .95; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.dz-tampon.is-ferme .dz-encre b { padding: 6px 0 4px; font-size: 60px; }
.dz-encre small { display: block; padding-top: 6px; border-top: 2px solid currentColor; font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }
.dz-onde { position: absolute; inset: -10px; border: 3px solid currentColor; border-radius: 18px; opacity: 0; }
.dz-goutte { position: absolute; border-radius: 50%; background: currentColor; opacity: 0; }

/* Écran final : candidature envoyée / poste fermé */
.pc-fini { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 38%); align-items: center; gap: 24px; padding: 30px 0 8px; }
.pc-fini-place { min-height: 230px; }
.pc-fini-t { margin: 0 0 16px; font-size: clamp(32px, 6.4cqi, 54px); font-weight: 900; font-style: italic; line-height: 1.14; letter-spacing: -.03em; text-transform: uppercase; outline: 0; }
.pc .pc-fini-t { outline: 0; }
.pc-fini-p { max-width: 420px; margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--encre-2); }
.pc-fini-b { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.pc-lien { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; font-size: 13px; font-weight: 800; font-style: italic; letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(var(--encre), var(--encre)) 0 100% / 100% 2px no-repeat; transition: background-size .45s var(--dz-ease), color .3s; }
.pc-lien:hover { background-size: 0 2px; background-position: 100% 100%; color: var(--brun); }
/* Bande beige derrière un mot, posée au feutre */
.dz-hl { position: relative; display: inline-block; padding: 0 .14em; isolation: isolate; }
.dz-hl::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: .02em; bottom: .02em; background: linear-gradient(180deg, #e8cba2, #d9b685);
  transform: skewX(-8deg) scaleX(0); transform-origin: left; transition: transform .9s var(--dz-ease) .15s; }
.dz-hl.is-in::before { transform: skewX(-8deg) scaleX(1); }
.pc.is-ferme .pc-onglet { opacity: .6; }

/* ---------- Fiche de poste trombonée sur le coin gauche du dossier ---------- */
.pc-fiche { position: absolute; z-index: 6; top: 40px; right: calc(100% - 18px); width: 206px; rotate: -2.5deg; }
.pc-fiche-carte { position: relative; padding: 8px 8px 12px; background: #f8f3eb; color: var(--encre); transform-origin: 80% 0;
  box-shadow: 0 24px 36px -16px rgba(0, 0, 0, .85), 0 2px 4px rgba(0, 0, 0, .2); }
.pc-trombone { position: absolute; z-index: 3; top: 18px; right: -30px; width: 80px; height: 23px; overflow: visible; filter: drop-shadow(0 2px 1.5px rgba(0, 0, 0, .4)); }
.pc-trombone path { fill: none; stroke: url(#pc-acier); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.pc-fiche-photo { display: block; aspect-ratio: 4 / 3; background: #2a2622 var(--img) var(--pos) / var(--size) no-repeat; filter: saturate(.85) contrast(1.05) sepia(.08); }
.pc-fiche-photo.dz-trame::after { opacity: .28; }
.pc-fiche-id { padding: 11px 3px 0; }
.pc-fiche-nom { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 16px; font-weight: 900; font-style: italic; line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; }
.pc-fiche-nom > i { flex: none; font-size: 18px; color: var(--brun); }
.pc-fiche-nom .dz-pulse { margin-left: 2px; }
/* Bouton de la fiche : ouverte, il porte le titre (« Conditions requises » / « Le poste ») et replie ;
   repliée, il dit clairement ce qu'il montre (« Voir les conditions requises ») */
.pc-fiche-btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 6px; min-height: 38px; margin-top: 12px; padding: 7px 10px 7px 12px;
  background: var(--encre); color: var(--dz-acc); font-size: 10.5px; font-weight: 800; font-style: italic; line-height: 1.25; letter-spacing: .04em; text-align: left; text-transform: uppercase;
  transform: skewX(-8deg); transition: background .3s, color .3s, transform .5s var(--dz-ease), box-shadow .4s; box-shadow: 4px 4px 0 rgba(22, 19, 15, .14); }
.pc-fiche-btn > * { transform: skewX(8deg); }
.pc-fiche-btn i { flex: none; font-size: 19px; transition: transform .5s var(--dz-ease); }
.pc-fiche-btn:hover { transform: skewX(-8deg) translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(22, 19, 15, .2); }
.pc-fiche.is-open .pc-fiche-btn { background: var(--dz-beige); color: var(--encre); }
.pc-fiche.is-open .pc-fiche-btn i { transform: skewX(8deg) rotate(180deg); }
.pc-fiche-plus { height: 0; overflow: hidden; }
.pc-fiche-in { display: flex; flex-direction: column; gap: 14px; padding: 16px 3px 2px; }
.pc-fiche-in h3 { margin: 0 0 7px; font-size: 9.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--brun); }
.pc-fiche-in ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pc-fiche-in li { display: flex; gap: 7px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.pc-fiche-in li i { flex: none; margin-top: 1px; font-size: 15px; color: var(--brun); }

/* Fiche longue (conditions requises et attentes du poste) : texte un peu plus serré */
.pc-fiche.is-longue .pc-fiche-in { gap: 16px; }
.pc-fiche.is-longue .pc-fiche-in li { font-size: 12.5px; line-height: 1.4; }

/* ---------- Six intercalaires (questionnaire complet) : plus serrés pour tenir sur le bord ---------- */
.pc.is-long { --tab: 172px; }
.pc.is-long .pc-onglets { gap: 7px; }
.pc.is-long .pc-onglet { height: 56px; padding-left: calc(var(--tuck) + 18px); }
.pc.is-long .pc-pastille { width: 30px; height: 30px; font-size: 16px; }
/* La feuille garde la hauteur des six intercalaires, même sur une page courte (navigation en bas) */
.pc.is-long .pc-feuille { display: flex; flex-direction: column; min-height: 446px; }
.pc.is-long .pc-pages { flex: 1 0 auto; }

/* ---------- Questionnaire complet : questions lisibles, sections, note, pièce jointe, grille ---------- */
.pc.is-questionnaire .pc-grille { gap: 30px 40px; }
.pc.is-questionnaire .pc-label { font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1.45; text-transform: none; color: var(--encre-2); }
.pc.is-questionnaire .pc-fac { font-size: 13px; }
.pc.is-questionnaire .pc-champ.is-error .pc-label { color: var(--rouge); }
.pc.is-questionnaire .dz-ligne input { height: 38px; padding-top: 6px; }
.pc.is-questionnaire .dz-ligne textarea { min-height: 38px; padding-top: 6px; }
/* Sections : espacées, titre court à l'encre suivi d'un filet ; une suite sans titre est séparée par un pointillé */
.pc-sec + .pc-sec > .pc-sec-in { padding-top: 34px; }
.pc-sec-in.is-suite::before { content: ""; display: block; margin-bottom: 30px; border-top: 1.5px dashed var(--trait-fort); }
.pc-sec-t { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; font-size: 13px; font-weight: 900; font-style: italic; letter-spacing: .07em; line-height: 1.25; text-transform: uppercase; }
.pc-sec-t::before { content: ""; flex: none; width: 16px; height: 6px; background: var(--encre); transform: skewX(-8deg); }
.pc-sec-t::after { content: ""; flex: 1; min-width: 24px; height: 1.5px; background: var(--trait-fort); }
/* Note d'information (ex. délai de 14 jours) */
.pc-note { display: flex; gap: 12px; max-width: 720px; margin: -6px 0 28px; padding: 13px 18px 13px 15px; border-left: 3px solid var(--brun);
  background: rgba(255, 252, 246, .55); box-shadow: inset 0 0 0 1px var(--trait); font-size: 13.5px; font-weight: 500; line-height: 1.65; color: var(--encre-2); }
.pc-note i { flex: none; margin-top: 2px; font-size: 19px; color: var(--brun); }
/* Information importante (étape « Envoi », juste avant la certification) : avertissement sobre, texte en italique */
.pc-info { display: flex; gap: 13px; margin: 0 0 24px; padding: 14px 18px 15px 15px; border-left: 3px solid var(--rouge);
  background: rgba(163, 41, 29, .05); box-shadow: inset 0 0 0 1px rgba(163, 41, 29, .16); }
.pc-info > i { flex: none; margin-top: 1px; font-size: 20px; color: var(--rouge); }
.pc-info-t { margin: 0 0 5px; font-size: 12.5px; font-weight: 900; font-style: italic; letter-spacing: .07em; line-height: 1.3; text-transform: uppercase; color: var(--encre); }
.pc-info-p { margin: 0; font-size: 13.5px; font-weight: 500; font-style: italic; line-height: 1.65; color: var(--encre-2); }

/* Pièce jointe : zone de dépôt, puis aperçu de l'image */
.dz-fichier { display: flex; flex-direction: column; gap: 10px; }
.dz-depot { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1.8px dashed var(--trait-fort); border-radius: 4px; cursor: pointer;
  background: rgba(255, 252, 246, .35); transition: background .3s, border-color .3s; }
.dz-depot:hover, .dz-depot.is-survol { background: var(--surligneur); border-color: var(--encre); }
.dz-depot > i { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--encre); color: var(--dz-acc); font-size: 23px;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.dz-depot:hover > i, .dz-depot.is-survol > i { transform: translateY(-3px) rotate(-8deg); }
.dz-depot-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dz-depot-t b { font-size: 15px; font-weight: 800; font-style: italic; line-height: 1.3; }
.dz-depot-t span { font-size: 12.5px; font-weight: 500; line-height: 1.45; color: var(--gris); }
.dz-fichier-btn { flex: none; height: 44px; padding: 0 18px; font-size: 12px; }
.dz-fichier-btn i { font-size: 18px; }
.pc-champ.is-error .dz-depot { border-color: var(--rouge); }
.dz-apercu { display: flex; align-items: center; gap: 18px; padding: 10px 10px 10px 12px; border: 1.5px solid var(--trait-fort); border-radius: 4px; background: rgba(255, 252, 246, .5); }
.dz-vignette { flex: none; display: block; width: 104px; aspect-ratio: 4 / 3; padding: 4px; background: #fbf7f0; rotate: -2.5deg; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .15); }
.dz-vignette img { width: 100%; height: 100%; object-fit: cover; }
.dz-apercu-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dz-nom { overflow: hidden; font-size: 14.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.dz-poids { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--gris); font-variant-numeric: tabular-nums; }
.dz-poids i { font-size: 16px; color: var(--vert); }
.dz-rejoindre { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 9px 12px; border-left: 3px solid #b8691c; background: rgba(245, 160, 60, .14);
  font-size: 13px; font-weight: 600; line-height: 1.5; color: #7a4512; }
.dz-rejoindre i { flex: none; margin-top: 1px; font-size: 17px; }

/* Grille des disponibilités : jours × créneaux, cases dessinées */
.dz-grille { display: flex; flex-direction: column; border-top: 1.5px solid var(--encre); }
.dz-grille-h, .dz-grille-l { display: grid; grid-template-columns: minmax(92px, 1.1fr) repeat(4, minmax(0, 1fr)); align-items: center; }
.dz-grille-h { padding: 10px 0 9px; border-bottom: 1px solid var(--trait-fort); }
.dz-grille-h > span { display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.dz-grille-h b { font-size: 11.5px; font-weight: 800; font-style: italic; letter-spacing: .06em; text-transform: uppercase; }
.dz-grille-h small { font-size: 10.5px; font-weight: 600; color: var(--gris); font-variant-numeric: tabular-nums; }
.dz-grille-l { border-bottom: 1px dashed var(--trait-fort); transition: background .25s; }
.dz-grille-l:hover { background: rgba(222, 189, 145, .22); }
.dz-grille-j { padding-left: 4px; font-size: 14px; font-weight: 700; color: var(--encre-2); transition: color .25s; }
.dz-grille-l:has(input:checked) .dz-grille-j { color: var(--encre); }
.dz-grille-c { position: relative; display: grid; place-items: center; height: 42px; cursor: pointer; }
.dz-grille-c:hover .dz-box { background: var(--surligneur); }
.dz-grille-p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Feuille : adaptation à sa propre largeur ---------- */
@container dz-feuille (max-width: 600px) {
  .pc-grille { grid-template-columns: 1fr; gap: 26px; }
  .pc-recap-s { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .pc-recap-v { grid-column: 1; }
  .pc-modif { grid-column: 2; grid-row: 1 / 3; }
  .pc-fini { grid-template-columns: 1fr; gap: 0; padding-top: 12px; }
  .pc-fini-place { order: -1; min-height: 172px; }
  .pc.is-questionnaire .pc-grille { gap: 28px; }
}
/* Grille sur petite feuille : une ligne par jour, quatre puces */
@container dz-feuille (max-width: 480px) {
  .dz-grille { gap: 14px; border-top: 0; }
  .dz-grille-h { display: none; }
  .dz-grille-l { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px 5px; border: 0; }
  .dz-grille-l:hover { background: none; }
  .dz-grille-j { grid-column: 1 / -1; padding: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
  .dz-grille-l:has(input:checked) .dz-grille-j { color: var(--encre); }
  .dz-grille-c { height: 46px; border: 1.5px solid var(--trait-fort); border-radius: 3px; transition: background .25s, border-color .25s; }
  .dz-grille-c .dz-box { display: none; }
  .dz-grille-p { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.15; text-align: center; }
  .dz-grille-p b { font-size: 11.5px; font-weight: 700; letter-spacing: -.01em; color: var(--encre-2); }
  .dz-grille-p small { font-size: 9.5px; font-weight: 600; color: var(--gris); font-variant-numeric: tabular-nums; }
  .dz-grille-c:hover { background: var(--surligneur); }
  .dz-grille-c:has(input:checked) { background: var(--encre); border-color: var(--encre); }
  .dz-grille-c:has(input:checked) b { color: var(--dz-acc); }
  .dz-grille-c:has(input:checked) small { color: rgba(236, 211, 177, .7); }
  .dz-grille-c:has(input:focus-visible) { outline: 2px solid var(--encre); outline-offset: 2px; }
  .pc-champ.is-error .dz-grille-c { border-color: rgba(163, 41, 29, .55); }
  .dz-depot { flex-wrap: wrap; padding: 14px; gap: 12px 14px; }
  .dz-fichier-btn { flex: 1 1 100%; }
  .dz-apercu { gap: 12px; }
  .dz-vignette { width: 78px; }
  .pc-note { padding: 12px 14px 12px 12px; font-size: 13px; }
  .pc-info { gap: 11px; padding: 12px 14px 13px 12px; }
  .pc-info-p { font-size: 13px; }
}
@container dz-feuille (max-width: 440px) {
  .pc-doc { font-size: 17px; }
  .pc-poste { font-size: 10px; letter-spacing: .14em; }
  .pc-macaron { width: 40px; height: 40px; }
  .pc-titre { margin: 22px 0 22px; }
  .pc-champ::before { left: -12px; }
  .dz-ta::before { left: -10px; }
  .dz-note { grid-template-columns: auto auto; }
  .dz-note-r { grid-column: 1 / -1; order: -1; }
  .dz-note-b { width: 46px; }
  .dz-note-l:last-child { justify-self: end; margin-right: 4px; }
  .dz-cases { gap: 12px 18px; }
  /* Quatre réponses courtes (5h00 … 20h+) : elles tiennent sur une ligne, sans « 20h+ » seul en dessous */
  .pc.is-questionnaire .dz-cases { gap: 12px 13px; }
  .pc.is-questionnaire .dz-case { gap: 8px; }
  .pc-nav { flex-wrap: wrap; gap: 12px; margin-top: 28px; }
  .dz-save { order: -1; flex: 1 1 100%; justify-content: flex-start; }
  .pc-nav .dz-btn { flex: 1 1 auto; padding: 0 18px; }
  .pc-retour { flex: 0 1 auto !important; }
  .pc-signature { flex-wrap: wrap; }
  .pc-fini-b .dz-btn { flex: 1 1 100%; }
  .pc-fini-b { justify-content: center; }
}

/* ---------- Dossier moyen : la fiche passe au-dessus, les intercalaires gardent juste leur pastille ---------- */
@container dz-rec (max-width: 999px) {
  .pc { --tab: 56px; width: calc(100% - 70px); margin-left: 0; }
  .pc-onglet { padding: 0 0 0 calc(var(--tuck) + 20px); height: 58px; }
  .pc-onglet-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pc-onglet.is-active { transform: translateX(6px); }
  .pc-fiche { position: relative; top: auto; right: auto; width: auto; max-width: 560px; margin: 0 0 24px 6px; rotate: -1deg; }
  .pc-fiche-carte { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 0 16px; padding: 8px; }
  .pc-fiche-photo { aspect-ratio: 7 / 9; background-position: var(--pos-m); background-size: var(--size-m); }
  .pc-fiche-id { align-self: center; padding: 0; }
  .pc-fiche-btn { width: auto; display: inline-flex; gap: 10px; margin-top: 10px; padding: 7px 14px; font-size: 11.5px; letter-spacing: .06em; }
  .pc-fiche-plus { grid-column: 1 / -1; }
  .pc-fiche-in { flex-direction: row; gap: 24px; padding: 14px 6px 4px; }
  .pc-fiche-in > div { flex: 1; min-width: 0; }
  /* Trombone vertical, pincé sur le bord haut de la carte, à droite de la photo */
  .pc-trombone { top: -16px; right: 26px; width: 70px; rotate: 90deg; translate: 0 -10px; }
  .pc.is-long { --tab: 56px; }
  .pc.is-long .pc-onglets { gap: 6px; }
  .pc.is-long .pc-onglet { height: 50px; padding-left: calc(var(--tuck) + 18px); }
  .pc.is-long .pc-feuille { min-height: 420px; }
}
/* ---------- Téléphone : les intercalaires passent en haut, en petites languettes ---------- */
@container dz-rec (max-width: 639px) {
  .pc { width: 100%; }
  .pc-rail { position: relative; inset: auto; width: auto; height: 46px; padding: 0 8px; pointer-events: auto; }
  .pc-onglets { position: static; flex-direction: row; align-items: flex-start; gap: 5px; }
  .pc-onglets li { flex: 0 0 auto; }
  .pc-onglets li:has(> .is-active) { flex: 1 1 auto; min-width: 0; }
  .pc-onglet { width: 100%; height: 54px; padding: 0 10px; align-items: flex-start; padding-top: 7px; gap: 8px; border-radius: 10px 10px 0 0; transform: translateY(10px);
    background: linear-gradient(180deg, transparent 50%, rgba(60, 40, 15, .2)), var(--k, #d4b68c); }
  .pc-onglet::before { background: linear-gradient(180deg, #f3dfc2, #e2c39b); }
  .pc-onglet.is-active { transform: translateY(0); }
  .pc-onglet.is-done:not(:disabled):hover { transform: translateY(6px); }
  .pc-onglet.is-active .pc-onglet-t { position: relative; width: auto; height: auto; overflow: visible; clip: auto; flex-direction: row; align-items: baseline; gap: 7px; padding-top: 7px; }
  .pc-pastille { width: 30px; height: 30px; font-size: 16px; }
  .pc-chemise { top: 36px; left: -6px; right: -6px; bottom: -14px; rotate: -.3deg; }
  .pc-pile::before { rotate: .35deg; translate: 4px 5px; }
  .pc-pile::after { rotate: -.2deg; translate: -3px 5px; }
  .pc-feuille { padding: 24px 18px 22px; }
  .pc-fiche { margin: 0 4px 24px; rotate: -.8deg; }
  .pc-fiche-carte { grid-template-columns: 62px minmax(0, 1fr); gap: 0 12px; }
  .pc-fiche-nom { font-size: 15px; }
  /* Fiche ouverte au-dessus du dossier : listes serrées, le dossier n'est pas repoussé trop loin */
  .pc-fiche-in { flex-direction: column; gap: 12px; padding: 12px 4px 2px; }
  .pc-fiche-in h3 { margin-bottom: 6px; }
  .pc-fiche-in ul { gap: 4px; }
  .pc-fiche-in li, .pc-fiche.is-longue .pc-fiche-in li { gap: 6px; font-size: 12.5px; line-height: 1.32; }
  .pc-fiche-in li i { margin-top: 0; font-size: 14px; }
  .pc-tape { display: none; }
  .dz-tampon { width: 212px; }
  .dz-encre { padding: 9px 12px 10px; border-width: 4px; }
  .dz-tampon-h { font-size: 10px; letter-spacing: .2em; }
  .dz-encre b { font-size: 62px; }
  .dz-tampon.is-ferme .dz-encre b { padding: 4px 0 3px; font-size: 45px; }
  .dz-encre small { font-size: 8.5px; letter-spacing: .14em; }
  .pc { padding-bottom: 22px; }
  /* Six languettes : celles qui attendent ne gardent que leur pastille, l'ouverte affiche son nom */
  .pc.is-long .pc-rail { padding: 0 4px; }
  .pc.is-long .pc-onglets { gap: 4px; }
  .pc.is-long .pc-onglet { height: 54px; padding: 8px 5px 0; gap: 6px; }
  .pc.is-long .pc-onglet.is-active { padding: 8px 9px 0 7px; }
  .pc.is-long .pc-pastille { width: 25px; height: 25px; font-size: 14px; border-width: 1.3px; }
  .pc.is-long .pc-coche { top: -4px; right: -5px; width: 14px; height: 14px; font-size: 12px; }
  .pc.is-long .pc-onglet.is-active .pc-onglet-t { padding-top: 5px; }
  .pc.is-long .pc-onglet.is-active .pc-onglet-t small { display: none; }
  .pc.is-long .pc-onglet-t b { font-size: 11.5px; }
  .pc.is-long .pc-feuille { min-height: 0; }
}
@media (max-width: 700px) {
  .dz-rec { padding-bottom: 110px; }
}

/* ======================================================================
   COMPTE DISCORD (compte.js) : bloc du dossier, bandeau « candidature en cours », messages d'erreur à l'envoi
   ====================================================================== */
/* Bouton Discord : la couleur de Discord, la forme des boutons du dossier */
.dz-btn-discord { background: #5865f2; color: #fff; box-shadow: 5px 5px 0 rgba(88, 101, 242, .26); }
.dz-btn-discord:hover { transform: skewX(-8deg) translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(88, 101, 242, .32); }
.dz-btn-discord i { font-size: 21px; }
/* Bloc « Compte Discord » : identité non modifiable, ou bouton de connexion */
.dz-discord { display: flex; flex-direction: column; gap: 10px; }
.dz-discord .dz-btn { height: 44px; padding: 0 18px; font-size: 12px; }
.dz-discord .dz-btn i { font-size: 19px; }
.dz-dc-carte { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 11px 14px 11px 12px;
  border: 1.5px solid var(--trait-fort); border-radius: 4px; background: rgba(255, 252, 246, .5); }
.dz-dc-carte.is-ok { border-left: 3px solid var(--vert); }
.dz-dc-carte.is-attente { color: var(--gris); }
.dz-dc-carte.is-attente > i { font-size: 20px; }
.dz-dc-ident { display: flex; align-items: center; gap: 13px; min-width: 0; }
.dz-dc-ava { position: relative; flex: none; width: 48px; height: 48px; }
.dz-dc-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #d8cbb5; box-shadow: 0 0 0 2px #fbf7f0, 0 6px 12px -6px rgba(0, 0, 0, .5); }
.dz-dc-ava.is-vide { border-radius: 50%; background: linear-gradient(90deg, #e2d7c4, #efe6d8, #e2d7c4) 0 0 / 200% 100%; animation: dz-vide 1.2s linear infinite; }
@keyframes dz-vide { to { background-position: -200% 0; } }
.dz-dc-ava > i { position: absolute; right: -4px; bottom: -3px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #5865f2; color: #fff; font-size: 13px; box-shadow: 0 0 0 2px #f3ebdf; }
.dz-dc-nom { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.dz-dc-nom b { overflow: hidden; font-size: 15.5px; font-weight: 800; font-style: italic; text-overflow: ellipsis; white-space: nowrap; }
.dz-dc-nom span { overflow: hidden; font-size: 13px; font-weight: 600; color: var(--encre-2); text-overflow: ellipsis; white-space: nowrap; }
.dz-dc-nom small { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--gris); font-variant-numeric: tabular-nums; }
.dz-dc-changer { flex: none; font-size: 11.5px; }
.dz-dc-etat { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--vert); }
.dz-dc-etat i { font-size: 17px; }
.dz-dc-alerte { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-left: 3px solid #b8691c; background: rgba(245, 160, 60, .14); color: #7a4512; }
.dz-dc-alerte > i { flex: none; margin-top: 1px; font-size: 19px; }
.dz-dc-alerte > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 13.5px; line-height: 1.5; }
.dz-dc-alerte b { font-weight: 800; color: #5e340c; }
.dz-dc-b { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 10px; }
.dz-dc-alerte .dz-btn-trait { border-color: #7a4512; color: #7a4512; }
.dz-dc-alerte .dz-btn-trait:hover { background: #7a4512; color: #fbf1e3; }
.dz-dc-connexion { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 16px; border: 1.8px dashed var(--trait-fort); border-radius: 4px; background: rgba(255, 252, 246, .35); }
.dz-dc-connexion p { flex: 1 1 220px; margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.5; color: var(--encre-2); }
.pc-champ.is-error .dz-dc-connexion, .pc-champ.is-error .dz-dc-carte { border-color: var(--rouge); }
.dz-btn.is-loading { pointer-events: none; }

/* Bandeau au-dessus du dossier : une candidature à ce poste est déjà en cours d'examen */
.dz-bandeau { position: relative; display: flex; align-items: center; gap: 14px; width: min(980px, 100% - 2 * 176px); margin: 0 auto 34px; padding: 13px 18px 13px 20px;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 3px; background: rgba(14, 13, 12, .62); color: #f6f1ea;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dz-bandeau::before { content: ""; position: absolute; left: 3px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--dz-acc); }
.dz-bandeau > i { flex: none; font-size: 24px; color: var(--dz-acc); }
.dz-bandeau p { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(246, 241, 234, .75); }
.dz-bandeau b { font-size: 13px; font-weight: 800; font-style: italic; text-transform: uppercase; color: #f6f1ea; }
.dz-bandeau-l { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; font-style: italic; text-transform: uppercase; color: var(--dz-acc); white-space: nowrap; }
.dz-bandeau-l i { font-size: 19px; transition: transform .45s var(--dz-ease); }
.dz-bandeau-l:hover i { transform: translateX(4px); }
@container dz-rec (max-width: 999px) { .dz-bandeau { width: calc(100% - 70px); margin-left: 0; } }
@container dz-rec (max-width: 639px) {
  .dz-bandeau { width: 100%; flex-wrap: wrap; margin-bottom: 26px; }
  .dz-bandeau p { flex-basis: calc(100% - 40px); }
  .dz-bandeau-l { margin-left: 38px; }
}

/* Message d'erreur à l'envoi (au-dessus du bouton « Envoyer ma candidature ») */
.pc-alerte { display: flex; gap: 13px; margin-top: 26px; padding: 15px 18px 16px 15px; border-left: 3px solid var(--rouge);
  background: rgba(163, 41, 29, .06); box-shadow: inset 0 0 0 1px rgba(163, 41, 29, .18); }
.pc-alerte > i { flex: none; margin-top: 1px; font-size: 21px; color: var(--rouge); }
.pc-alerte > div { min-width: 0; }
.pc-alerte-t { display: block; font-size: 13px; font-weight: 900; font-style: italic; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; }
.pc-alerte-p { margin: 4px 0 0; font-size: 14px; font-weight: 500; line-height: 1.6; color: var(--encre-2); }
.pc-alerte-b { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 12px; }
.pc-alerte-b .dz-btn { height: 44px; padding: 0 18px; font-size: 12px; }
.pc-alerte-b .dz-btn i { font-size: 19px; }
.pc-alerte.is-ok { border-left-color: var(--vert); background: rgba(44, 106, 60, .07); box-shadow: inset 0 0 0 1px rgba(44, 106, 60, .2); }
.pc-alerte.is-ok > i { color: var(--vert); }

/* ======================================================================
   LECTURE (espace staff) : le dossier reçu, sur le même papier, réponses en clair
   ====================================================================== */
.dz-lu {
  --dz-acc: #ecd3b1; --dz-beige: linear-gradient(180deg, #f3dfc2, #e2c39b);
  --dz-ease: cubic-bezier(.22, 1, .36, 1);
  --dz-font: 'Poppins', system-ui, sans-serif;
  --dz-font-signe: 'Pirata One', Georgia, 'Times New Roman', serif;
  container: dz-lu / inline-size; font-family: var(--dz-font); font-size: 15px; line-height: 1.6;
}
:where(.dz-lu, .dz-lu *, .dz-lu *::before, .dz-lu *::after) { box-sizing: border-box; }
:where(.dz-lu) :where(img) { display: block; max-width: 100%; }
:where(.dz-lu) :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.dz-lu [hidden] { display: none !important; }
.pc.pc-lu { width: auto; margin: 0; padding-bottom: 14px; }
.pc-lu .pc-feuille { padding: 34px 54px 36px; }
/* Feuille très haute : les feuilles du dessous à peine tournées (sinon elles débordent largement en haut et en bas) */
.pc-lu .pc-pile::before { rotate: .22deg; translate: 6px 8px; }
.pc-lu .pc-pile::after { rotate: -.14deg; translate: -5px 8px; }
.pc-lu .pc-champ::before { display: none; }
.pc-lu-recu { flex: none; display: flex; flex-direction: column; align-items: flex-end; margin: 0; line-height: 1.2; }
.pc-lu-recu small { font-size: 9.5px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--gris); }
.pc-lu-recu b { font-size: 15px; font-weight: 800; font-style: italic; font-variant-numeric: tabular-nums; }
.pc-lu-etape + .pc-lu-etape { margin-top: 40px; padding-top: 6px; border-top: 1.5px dashed var(--trait-fort); }
/* Réponse courte : sur la ligne, comme écrite à la main dans le dossier */
.pc-lu-rep { margin: 0; padding: 2px 2px 7px; border-bottom: 1.5px solid var(--trait-fort); font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--encre);
  white-space: pre-wrap; overflow-wrap: anywhere; }
.pc-lu-rep a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; color: var(--encre); }
.pc-lu-rep a i { margin-left: 5px; font-size: 15px; vertical-align: -2px; color: var(--brun); }
/* Réponse longue : papier ligné, retours à la ligne gardés, rien de coupé */
.pc-lu-long { padding: 0 2px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; font-weight: 500; line-height: 30px; color: var(--encre);
  background: linear-gradient(transparent 29px, rgba(22, 19, 15, .22) 29px) 0 0 / 100% 30px local; }
.pc-lu-vide { margin: 0; font-size: 13.5px; font-style: italic; font-weight: 500; color: var(--gris); }
/* Cases cochées : en lecture seule, les réponses non choisies s'effacent */
.pc-lu .dz-case, .pc-lu .dz-grille-c, .pc-lu .dz-note-b, .pc-lu .pc-certif { cursor: default; }
.pc-lu .dz-case:hover .dz-box, .pc-lu .dz-grille-c:hover .dz-box, .pc-lu .pc-certif:hover .dz-box { background: none; }
.pc-lu .dz-case:not(.is-choisi) { opacity: .45; }
.pc-lu .dz-grille-l:hover { background: none; }
.pc-lu .dz-grille-c:has(input:checked) { background: var(--surligneur); }
/* Petite feuille (une ligne par jour) : créneaux choisis à l'encre comme dans le dossier, les autres effacés */
@container dz-feuille (max-width: 480px) {
  .pc-lu .dz-grille-c:has(input:checked) { background: var(--encre); }
  .pc-lu .dz-grille-c:not(:has(input:checked)) { opacity: .4; }
}
.pc-lu .dz-note-b:hover > span { color: rgba(22, 19, 15, .5); transform: none; }
.pc-lu .dz-note-b input:checked ~ span { color: var(--encre); }
.pc-lu .dz-dc-carte .pc-lien { font-size: 11.5px; }
.pc-lu .pc-signe.pc-lu-signe { clip-path: none; animation: none; }
.pc-lu .pc-certif { margin-top: 4px; }
/* Pièce jointe : la capture en grand, encadrée comme une photo ; agrandie au clic */
.pc-lu-image { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.pc-lu-zoom { display: block; width: 100%; padding: 8px; background: #fbf7f0; rotate: -.5deg; cursor: zoom-in;
  box-shadow: 0 16px 28px -16px rgba(0, 0, 0, .6), 0 1px 2px rgba(0, 0, 0, .15); transition: rotate .5s var(--dz-ease), transform .5s var(--dz-ease), box-shadow .4s; }
.pc-lu-zoom:hover:not(:disabled) { rotate: 0deg; transform: translateY(-2px); box-shadow: 0 22px 34px -16px rgba(0, 0, 0, .65), 0 1px 2px rgba(0, 0, 0, .15); }
.pc-lu-zoom:disabled { cursor: default; }
.pc-lu-zoom img { width: 100%; max-height: 560px; object-fit: contain; background: #e9e1d3; }
.pc-lu-charge { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 220px; background: #efe6d8; font-size: 13px; font-weight: 600; color: var(--gris); }
.pc-lu-charge i { font-size: 20px; }
.pc-lu-charge.is-erreur { color: var(--rouge); }
.pc-lu-image figcaption { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--gris); }
.pc-lu-image figcaption i { flex: none; font-size: 17px; color: var(--brun); }
.pc-lu-image figcaption > span:not(.pc-lu-astuce) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--encre-2); }
.pc-lu-image figcaption small { flex: none; font-size: 12px; font-variant-numeric: tabular-nums; }
.pc-lu-astuce { flex: none; margin-left: auto; font-style: italic; }
.pc-lu-image:not(.is-pret) .pc-lu-astuce { display: none; }
@container dz-lu (max-width: 639px) {
  .pc-lu .pc-feuille { padding: 24px 18px 24px; }
  .pc-lu .pc-pile::before { rotate: .12deg; translate: 4px 6px; }
  .pc-lu .pc-pile::after { rotate: -.08deg; translate: -3px 6px; }
  .pc-lu-recu b { font-size: 13px; }
  .pc-lu-astuce { display: none; }
}
