/* ══════════════════════════════════════════════════════════════════════
   LE PARCOURS D'ENTRÉE : le questionnaire (commencer.html), puis la
   connexion « e-mail d'abord » (app.html, public/compte.js).

   Les deux écrans suivent les maquettes données : beaucoup d'air, un seul
   accent, des traits fins, des mouvements courts et amortis. Les couleurs
   sont celles du site (jetons de app.css) — l'indigo d'action, en clair
   comme en sombre — pour que l'entrée ressemble à ce qui suit.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --qz-ease: cubic-bezier(.2, .8, .2, 1);
  --qz-ressort: cubic-bezier(.34, 1.45, .5, 1);
  --qz-carte-ombre: 0 0 0 .5px var(--line), 0 8px 26px -12px rgba(22, 22, 26, .14);
}

body.parcours { background: var(--bg); min-height: 100dvh; }

/* ───────────────────────────── questionnaire ───────────────────────────── */

.qz {
  position: relative; max-width: 440px; min-height: 100dvh; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 8px) 20px calc(env(safe-area-inset-bottom) + 132px);
}

/* app.css donne une marge à <main> pour l'application : pas ici. */
.qz-corps { max-width: none; margin: 0; padding: 0; }

.qz-nav { display: flex; align-items: center; justify-content: space-between; height: 52px; margin: 0 -4px; }
.qz-retour {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--surface); color: var(--ink); cursor: pointer;
  box-shadow: 0 0 0 .5px var(--line), 0 4px 12px -8px rgba(22, 22, 26, .25);
  transition: transform .2s var(--qz-ease);
}
.qz-retour svg { width: 20px; height: 20px; }
.qz-retour:active { transform: scale(.94); }
.qz-passer {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border: 0; background: none;
  font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink-3); text-decoration: none; cursor: pointer;
}
.qz-passer:hover { color: var(--ink); }
.qz-passer[hidden] { display: none; }

.qz-progres { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 6px; }
.qz-seg {
  display: block; height: 5px; border-radius: 3px; overflow: hidden;
  background: color-mix(in srgb, var(--ink) 11%, transparent);
}
.qz-seg i {
  display: block; height: 100%; background: var(--action);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .7s var(--qz-ease);
}
.qz-seg.est-plein i { transform: scaleX(1); }
.qz-etape {
  margin: 14px 0 0; font-size: 13px; font-weight: 500; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.qz-etape.change { animation: qz-libelle .4s var(--qz-ease); }
.qz--fin .qz-tete { visibility: hidden; }

.qz-question {
  margin: 8px 0 0; font-size: 24px; font-weight: 700; line-height: 29px; letter-spacing: -.6px;
  color: var(--ink); text-wrap: balance;
}
.qz-sous { margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-3); text-wrap: pretty; }

/* Le champ des questions à recherche : une capsule claire, la loupe à gauche.
   Une vraie bordure (et non une ombre de 1,5 px) : elle tombe sur des
   pixels entiers quel que soit le zoom de l'écran (125 %, 150 %…). */
.qz-champ {
  display: flex; align-items: center; gap: 10px; height: 54px; margin-top: 18px; padding: 0 16px 0 14px;
  border-radius: 19px; background: var(--surface); color: var(--ink-3); cursor: text;
  border: 1px solid var(--line-strong);
  transition: border-color .2s var(--qz-ease), box-shadow .2s var(--qz-ease);
}
.qz-champ:focus-within { border-color: var(--action); box-shadow: 0 0 0 3px color-mix(in srgb, var(--action) 16%, transparent); }
.qz-champ svg { flex: none; width: 19px; height: 19px; }
.qz-champ input {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: none;
  font: inherit; font-size: 16px; color: var(--ink);
}
.qz-champ input::placeholder { color: var(--ink-4); }

/* Les cartes de choix : 72 px, toutes de la même hauteur.
   Le cadre est une VRAIE bordure de 2 px, présente sur toutes les cartes
   (transparente tant qu'on n'a pas choisi) : choisir ne change ni la
   taille ni l'épaisseur, seulement la couleur. L'ancien cadre (ombre de
   1,5 px + petit zoom de la carte) se dessinait irrégulier sur les écrans
   zoomés, et « tremblait » au clic. */
.qz-choix { display: grid; gap: 10px; margin-top: 22px; }
.qz-choix:empty { display: none; }
.qz-carte {
  display: flex; align-items: center; gap: 14px; width: 100%; height: 72px; padding: 0 14px 0 12px;
  border: 2px solid transparent; border-radius: 32px; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink); background-color: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 8px 26px -12px rgba(22, 22, 26, .14);
  transition: background-color .3s var(--qz-ease), border-color .3s var(--qz-ease), box-shadow .3s var(--qz-ease);
  -webkit-tap-highlight-color: transparent;
}
.qz-carte:hover { box-shadow: 0 0 0 1px var(--line-strong), 0 8px 26px -12px rgba(22, 22, 26, .18); }
/* Au clavier : un anneau à part, qui ne se confond jamais avec le choix. */
.qz-carte:focus { outline: none; }
.qz-carte:focus-visible { outline: 2px solid color-mix(in srgb, var(--action) 55%, transparent); outline-offset: 3px; }
.qz-apparait { animation: qz-fondu .18s ease both; }
.qz-ico {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-3); color: var(--ink);
  transition: background .35s var(--qz-ease), color .35s var(--qz-ease);
}
.qz-ico svg { width: 21px; height: 21px; }
.qz-ico-txt { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.qz-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.qz-titre { font-size: 16px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qz-aide { font-size: 12px; line-height: 1.3; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qz-radio {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background .35s var(--qz-ease), box-shadow .35s var(--qz-ease);
}
.qz-radio svg {
  width: 14px; height: 14px; fill: none; stroke: var(--on-action); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .35s var(--qz-ease) .05s;
}

/* Choisie : teinte, bordure accent, pastille pleine, coche qui se dessine.
   La carte elle-même ne bouge pas ; seul le bouton radio fait un petit rebond. */
.qz-carte[aria-checked="true"] {
  background-color: color-mix(in srgb, var(--action) 9%, var(--surface));
  border-color: var(--action);
  box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--action) 65%, transparent);
}
.qz-carte[aria-checked="true"] .qz-ico { background: var(--action); color: var(--on-action); }
.qz-carte[aria-checked="true"] .qz-radio { background: var(--action); box-shadow: none; }
.qz-carte[aria-checked="true"] .qz-radio svg { stroke-dashoffset: 0; }
.qz-carte.vient-detre-choisie .qz-radio { animation: qz-radio .45s var(--qz-ressort); }

/* Les métiers d'exemple, avant de taper : des puces, pas des cartes — on
   voit qu'il s'agit d'exemples, et qu'on peut écrire le sien. */
.qz-exemples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.qz-exemples[hidden] { display: none; }
.qz-exemples-titre { width: 100%; font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 2px; }
.qz-puce {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line-strong);
  transition: border-color .2s var(--qz-ease), color .2s var(--qz-ease);
}
.qz-puce:hover { border-color: var(--action); color: var(--action); }
.qz-puce:focus-visible { outline: 2px solid color-mix(in srgb, var(--action) 55%, transparent); outline-offset: 2px; }

.qz-vide { margin: 16px 2px 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }

/* « Suivant » : éteint tant que rien n'est choisi, la seule surface pleine sinon. */
.qz-bas {
  position: fixed; left: 0; right: 0; bottom: calc(34px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; padding: 0 20px; pointer-events: none;
}
.qz-suivant {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: min(400px, 100%); height: 56px; border: 0; border-radius: 28px; pointer-events: auto; cursor: pointer;
  font: inherit; font-size: 16.5px; font-weight: 650;
  background: var(--action); color: var(--on-action);
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--action) 70%, transparent);
  transition: background-color .4s var(--qz-ease), color .4s var(--qz-ease), box-shadow .4s var(--qz-ease), transform .2s var(--qz-ease);
}
.qz-suivant svg { width: 19px; height: 19px; }
.qz-suivant:disabled { background: var(--surface-3); color: var(--ink-3); box-shadow: none; cursor: default; }
.qz-suivant:not(:disabled):hover { background: var(--action-fort); }
.qz-suivant:focus-visible { outline: none; box-shadow: var(--anneau); }
.qz-suivant.appuye { animation: qz-appui .28s var(--qz-ease); }
.qz-suivant[hidden] { display: none; }

/* L'écran final. */
.qz-fin { display: grid; justify-items: start; margin-top: 18px; }
.qz-fin-ico {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--action); color: var(--on-action); margin-bottom: 18px;
}
.qz-fin-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: qz-coche .5s var(--qz-ease) .35s both; }
.qz-fin--calcul .qz-fin-ico { background: var(--surface-3); }
.qz-sablier {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid color-mix(in srgb, var(--ink) 18%, transparent); border-top-color: var(--action);
  animation: qz-tourne .9s linear infinite;
}
.qz-fin .qz-question { font-size: 28px; line-height: 33px; letter-spacing: -.7px; }
.qz-fin-chiffre { margin: 10px 0 0; font-size: 17px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.qz-fin-chiffre b { font-size: 34px; font-weight: 700; letter-spacing: -.8px; color: var(--ink); margin-right: 4px; }
.qz-lien {
  margin-top: 20px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 500; color: var(--action);
}
.qz-lien:hover { text-decoration: underline; text-underline-offset: 3px; }

/* L'arrivée : chaque bloc monte de 10 px en fondu, l'un après l'autre. */
.qz-entre { animation: qz-monte .6s var(--qz-ease) both; animation-delay: var(--d, 0ms); }

@keyframes qz-monte { from { opacity: 0; transform: translateY(10px); } }
@keyframes qz-libelle { from { opacity: 0; transform: translateY(4px); } }
@keyframes qz-pop { 40% { transform: scale(1.025); } }
@keyframes qz-radio { 45% { transform: scale(1.06); } }
@keyframes qz-appui { 50% { transform: scale(.97); } }
@keyframes qz-coche { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes qz-tourne { to { transform: rotate(360deg); } }

/* Sur grand écran, le bouton suit la question au lieu d'attendre tout en bas. */
@media (min-width: 720px) and (min-height: 680px) {
  .qz { padding-top: clamp(24px, 8vh, 88px); padding-bottom: 64px; }
  .qz-bas { position: static; padding: 0; margin-top: 28px; justify-content: stretch; }
  .qz-suivant { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .qz-entre, .qz-etape.change { animation: qz-fondu .2s ease both; animation-delay: 0ms; }
  .qz-carte.vient-detre-choisie, .qz-carte.vient-detre-choisie .qz-radio, .qz-suivant.appuye { animation: none; }
  .qz-seg i { transition-duration: .2s; }
  .qz-radio svg, .qz-fin-ico svg { transition: none; animation: none; stroke-dashoffset: 0; }
  .qz-sablier { animation-duration: 2s; }
}
@keyframes qz-fondu { from { opacity: 0; } }

/* ───────────────────────────── connexion, e-mail d'abord ───────────────────────────── */

.ef {
  position: relative; width: 100%; max-width: 420px; margin: 0 auto;
  min-height: calc(100dvh - 40px); padding: clamp(40px, 13vh, 112px) 28px 88px;
  display: flex; flex-direction: column;
}
.ef-logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--action); }
.ef-logo::before, .ef-logo::after { content: ''; grid-area: 1 / 1; background: var(--on-action); border-radius: 1px; }
.ef-logo::before { width: 3.6px; height: 15.6px; }
.ef-logo::after { width: 15.6px; height: 3.6px; }
.ef-titre { margin: 22px 0 0; font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.8px; color: var(--ink); }
.ef-sous { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-3); }
.ef-info { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.ef-form { margin-top: 34px; display: grid; gap: 12px; }

/* Le champ : la capsule, le texte, la suggestion fantôme, la flèche. */
.ef-champ {
  position: relative; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 14px;
  border-radius: 19px; background: var(--surface); border: 1px solid var(--line-strong);
  transition: border-color .2s var(--qz-ease), box-shadow .2s var(--qz-ease);
}
.ef-champ:focus-within { border-color: var(--action); box-shadow: 0 0 0 3px color-mix(in srgb, var(--action) 16%, transparent); }
.ef-champ[hidden] { display: none; }
.ef-saisie { position: relative; flex: 1; min-width: 0; height: 100%; }
.ef-saisie input {
  position: relative; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; outline: none; background: none;
  font: inherit; font-size: 15.5px; letter-spacing: 0; color: var(--ink);
}
.ef-saisie input::placeholder { color: var(--ink-4); }
.ef-fantome {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; overflow: hidden;
  font-size: 15.5px; letter-spacing: 0; white-space: pre; pointer-events: none;
}
.ef-fantome .ef-tape { visibility: hidden; }
.ef-fantome .ef-reste {
  color: var(--ink-3); opacity: 0; pointer-events: auto; cursor: pointer;
  transition: opacity .4s var(--qz-ease), color .2s var(--qz-ease);
}
.ef-fantome.est-visible .ef-reste { opacity: .7; }
.ef-moi {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 0 4px 0 14px; font-size: 15px; color: var(--ink-2);
}
.ef-moi b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ef-moi[hidden] { display: none; }

.ef-fleche {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: var(--surface-3); color: var(--ink-3); cursor: default;
  transition: background-color .25s var(--qz-ease), color .25s var(--qz-ease);
}
.ef-fleche svg { width: 18px; height: 18px; }
.ef-fleche:not(:disabled) { background: var(--action); color: var(--on-action); cursor: pointer; }
.ef-fleche:not(:disabled):hover { background: var(--action-fort); }
.ef-fleche:focus-visible { outline: none; box-shadow: var(--anneau); }
.ef-fleche.vient-de-sallumer { animation: ef-pop .55s var(--qz-ressort); }
.ef-fleche .ef-roue {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--on-action) 35%, transparent); border-top-color: var(--on-action);
  animation: qz-tourne .8s linear infinite;
}
.ef-voir {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--ink-4); cursor: pointer;
}
.ef-voir svg { width: 19px; height: 19px; }
.ef-voir:hover, .ef-voir[aria-pressed="true"] { color: var(--ink); }

/* La ligne sous le champ : les domaines, ou une précision. */
.ef-ligne { display: flex; align-items: center; gap: 8px; min-height: 30px; flex-wrap: wrap; }
.ef-puce {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-3);
  background: none; border: 1px solid var(--line-strong);
  animation: ef-puce .55s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--d, 0ms);
}
.ef-puce:first-child { color: var(--action); border-color: var(--action); }
.ef-puce:hover { color: var(--ink); border-color: var(--ink-3); }
.ef-puce:first-child:hover { color: var(--action-fort); border-color: var(--action-fort); }
.ef-precision { margin: 0; font-size: 13px; color: var(--ink-3); }
.ef-erreur { margin: 0; padding: 10px 13px; border-radius: 12px; background: var(--swiss-soft); color: var(--swiss); font-size: 14px; font-weight: 500; }
.ef-erreur[hidden] { display: none; }

.ef-ou { display: flex; align-items: center; gap: 12px; margin: 30px 0 0; font-size: 13px; color: var(--ink-3); }
.ef-ou::before, .ef-ou::after { content: ''; flex: 1; height: .5px; background: var(--line-strong); }
.ef-social {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin-top: 12px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: none; cursor: pointer;
  font: inherit; font-size: 15.5px; font-weight: 500; color: var(--ink);
  transition: border-color .2s var(--qz-ease), background .2s var(--qz-ease);
}
.ef-social:hover { border-color: var(--ink-3); background: color-mix(in srgb, var(--ink) 3%, transparent); }
.ef-social:focus-visible { outline: none; box-shadow: var(--anneau); }
.ef-social svg { width: 17px; height: 17px; flex: none; }
.ef-social .ef-apple { width: 16px; height: 16px; fill: currentColor; }
.ef-note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.ef-note a { color: var(--action); }
.ef-note[hidden] { display: none; }
.ef-bascule { margin: 22px 0 0; font-size: 14px; color: var(--ink-3); }
.ef-bascule .lien { font-size: 14px; }
.ef-pied { margin: auto 0 0; padding-top: 32px; text-align: center; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.ef-pied a, .qz-mention a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ef-pied a:hover, .qz-mention a:hover { color: var(--ink); }

/* Après l'envoi : « Lien envoyé à … » (la coche, seul accent), le code, le renvoi. */
.ef-envoye { display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; font-size: 14px; color: var(--ink-2); }
.ef-envoye b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ef-coche {
  display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--action); color: var(--on-action); animation: ef-pop .55s var(--qz-ressort);
}
.ef-coche svg { width: 12px; height: 12px; }
.ef-champ--code input { font-size: 20px; font-weight: 600; letter-spacing: .32em; font-variant-numeric: tabular-nums; }
.ef-champ--code input::placeholder { font-size: 15.5px; font-weight: 400; letter-spacing: 0; }
.ef-renvoi { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.ef-renvoi .lien { font-size: 14px; }
.ef-renvoi .lien:disabled { color: var(--ink-4); cursor: default; text-decoration: none; }
.ef-renvoi[hidden], .ef-autres[hidden] { display: none; }
.ef-oubli { font-size: 13.5px; }
.ef-continuer { margin-top: 6px; }

/* La page du lien reçu par e-mail (lien.html). */
.lien-actions { display: grid; gap: 14px; margin-top: 30px; }
.lien-adresse { margin: 0; font-size: 15px; color: var(--ink-2); }
.lien-adresse b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.lien-bouton { display: block; text-align: center; text-decoration: none; }
.lien-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.lien .ef-erreur { margin-top: 14px; }

.ef-entre { animation: qz-monte .6s var(--qz-ease) both; animation-delay: var(--d, 0ms); }

@keyframes ef-pop { 0% { transform: scale(.3); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes ef-puce { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  .ef-entre, .ef-puce { animation: qz-fondu .2s ease both; animation-delay: 0ms; }
  .ef-fleche.vient-de-sallumer, .ef-coche { animation: none; }
  .ef-fleche .ef-roue { animation-duration: 1.6s; }
}

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

/* ───────────────────────────── la fenêtre de connexion ─────────────────────────────
   Par-dessus la page du questionnaire : un voile sombre qui laisse voir le
   résultat derrière. Sur téléphone, un panneau qui monte du bas ; sur
   grand écran, une carte au centre. */

html.qz-fige { overflow: hidden; }
.ef-modale { position: fixed; inset: 0; z-index: 90; display: grid; align-items: end; justify-items: center; }
.ef-modale[hidden] { display: none; }
.ef-voile { position: absolute; inset: 0; background: rgba(14, 14, 18, .42); animation: qz-fondu .28s ease both; }
.ef-feuille {
  position: relative; width: 100%; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 28px 28px 0 0;
  box-shadow: 0 -18px 48px -12px rgba(0, 0, 0, .28);
  padding-bottom: env(safe-area-inset-bottom);
  animation: ef-monte .38s var(--qz-ease) both;
}
.ef-poignee {
  display: block; width: 40px; height: 5px; margin: 8px auto 0; border-radius: 3px;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
}
.ef-fermer {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: var(--surface-3); color: var(--ink-2); cursor: pointer;
}
.ef-fermer svg { width: 18px; height: 18px; }
.ef-fermer:hover { color: var(--ink); }
.ef-fermer:focus-visible { outline: none; box-shadow: var(--anneau); }

/* L'écran d'entrée, resserré pour tenir dans la fenêtre. */
.ef--modale { min-height: 0; padding: 20px 24px 22px; }
.ef--modale .ef-titre { margin-top: 16px; font-size: 26px; }
.ef--modale .ef-form { margin-top: 24px; }
.ef--modale .ef-ou { margin-top: 20px; }
.ef--modale .ef-bascule { margin-top: 16px; }
.ef--modale .ef-pied { margin-top: 0; padding-top: 20px; }

@media (min-width: 640px) {
  .ef-modale { align-items: center; }
  .ef-feuille { width: min(440px, calc(100% - 40px)); border-radius: 28px; animation: ef-apparait .32s var(--qz-ease) both; }
  .ef-poignee { display: none; }
  .ef--modale { padding-top: 30px; }
}

@keyframes ef-monte { from { transform: translateY(100%); } }
@keyframes ef-apparait { from { opacity: 0; transform: translateY(14px) scale(.98); } }

@media (prefers-reduced-motion: reduce) {
  .ef-feuille { animation: qz-fondu .2s ease both; }
}

/* ───────────────────────────── la question du CV ───────────────────────────── */

/* La barre compte autant de segments que de questions. */
.qz-progres { grid-template-columns: repeat(var(--n, 5), 1fr); }

/* La zone de dépôt : une carte en pointillés au repos ; prête, elle prend
   le contour accent des cartes choisies ; un souci, un contour ambre. */
.qz-depot {
  display: flex; align-items: center; gap: 14px; min-height: 80px; margin-top: 22px; padding: 12px 14px 12px 12px;
  border: 2px dashed var(--line-strong); border-radius: 32px; cursor: pointer;
  background: var(--surface); color: var(--ink);
  transition: border-color .25s var(--qz-ease), background-color .25s var(--qz-ease);
}
.qz-depot:hover, .qz-depot.est-survolee { border-color: var(--action); background: color-mix(in srgb, var(--action) 5%, var(--surface)); }
.qz-depot:focus-within { outline: 2px solid color-mix(in srgb, var(--action) 55%, transparent); outline-offset: 3px; }
.qz-depot.est-pret { border-style: solid; border-color: var(--action); background: color-mix(in srgb, var(--action) 9%, var(--surface)); }
.qz-depot.est-pret .qz-ico { background: var(--action); color: var(--on-action); }
.qz-depot.est-averti { border-style: solid; border-color: var(--orange); }
.qz-depot.est-averti .qz-ico { background: var(--amber-soft); color: var(--amber); }
.qz-depot .qz-aide { white-space: normal; }
.qz-depot-action {
  flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--action); background: var(--surface); border: 1px solid var(--line-strong);
}
.qz-depot-action:empty { display: none; }
.qz-roue {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid color-mix(in srgb, var(--ink) 18%, transparent); border-top-color: var(--action);
  animation: qz-tourne .9s linear infinite;
}
.qz-competences { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.qz-competences[hidden] { display: none; }
.qz-competence {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--green-fort); background: var(--green-soft);
}
.qz-competence--plus { color: var(--ink-3); background: var(--surface-3); }
.qz-mention { margin: 14px 2px 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-4); }
