/* Page de candidature (01/12/2026) : même langage que la landing (landing.css : polices, couleurs, boutons, en-tête, pied).
   Ce fichier porte aussi deux petits ajouts de la landing (carte « partenaire », lien WhatsApp secondaire), sous des classes .cand-* / .cl-*. */

.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ajouts de la landing ---------- */
.cl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cl-secondaire { font-size: 15px; font-weight: 600; color: var(--doux); text-underline-offset: 3px; }
.cl-secondaire:hover { color: var(--encre); }
.club-partenaire { position: relative; max-width: var(--large); margin: 56px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  padding: 24px 30px; border-radius: 20px; background: var(--fond); border: 1px solid var(--ligne); }
.club-partenaire b { display: block; font-size: 21px; letter-spacing: -.02em; }
.club-partenaire p { margin: 4px 0 0; color: var(--doux); font-size: 16px; }

/* ---------- page ---------- */
.page-cand { background: var(--fond); min-height: 100vh; display: flex; flex-direction: column; }
.page-cand .nav .cand-retour { padding: 10px 18px; flex: none; }
.page-cand .liens-nav { margin-left: auto; }
.bouton.or-plein { background: var(--or); color: var(--encre); }
.bouton { cursor: pointer; font-family: inherit; border: 1px solid transparent; line-height: 1.2; }
.bouton.clair { border-color: var(--ligne); }
.bouton:focus-visible, .cand input:focus-visible, .cand select:focus-visible, .cand textarea:focus-visible,
.page-cand a:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; }

.cand { flex: 1; width: 100%; max-width: 920px; margin: 0 auto; padding: 128px var(--marge) 80px; position: relative; }
.cand::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 40px; width: min(1100px, 100vw); height: 1100px; transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(255,255,255,.9) 0, rgba(244,243,239,0) 62%),
    repeating-radial-gradient(circle at center, transparent 0 119px, rgba(29,122,79,.07) 119px 120px);
  mask-image: radial-gradient(circle at center, #000 0, transparent 68%); -webkit-mask-image: radial-gradient(circle at center, #000 0, transparent 68%); pointer-events: none; }
.cand-hero { text-align: center; margin-bottom: 32px; }
.cand-hero .sur { margin-bottom: 22px; }
.cand-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -.05em; }
.cand-hero h1 em { line-height: 1.16; }
.cand-chapo { max-width: 560px; margin: 18px auto 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--doux); }

.cand-boite { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 28px; padding: clamp(22px, 4vw, 44px); box-shadow: 0 40px 100px rgba(13,27,22,.1); }

/* progression */
.cand-progres { list-style: none; margin: 0 0 14px; padding: 0; display: flex; justify-content: space-between; gap: 8px; }
.cand-progres li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--pale); }
.cand-progres i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800;
  background: rgba(13,27,22,.07); color: var(--doux); transition: background .3s, color .3s; flex: none; }
.cand-progres li.actif { color: var(--encre); }
.cand-progres li.actif i { background: var(--or); color: var(--encre); }
.cand-progres li.fait i { background: var(--vert); color: #fff; }
.cand-progres li.fait { color: var(--doux); }
.cand-barre { height: 4px; border-radius: 4px; background: rgba(13,27,22,.08); overflow: hidden; margin-bottom: 34px; }
.cand-barre > div { height: 100%; width: 33.33%; background: var(--vert); border-radius: 4px; transition: width .45s cubic-bezier(.3,.8,.3,1); }

[hidden] { display: none !important; }

/* étapes */
.cand-etape { border: 0; margin: 0; padding: 0; min-width: 0; }
.cand-etape[hidden] { display: none; }
.cand-etape:not([hidden]) { animation: cand-entre .45s ease both; }
@keyframes cand-entre { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cand-legende { padding: 0; margin: 0 0 24px; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; float: left; width: 100%; }
.cand-legende + * { clear: both; }

/* choix du profil */
.cand-profils { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cand-profil { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 22px; border-radius: 20px; background: var(--papier);
  border: 2px solid var(--ligne); cursor: pointer; transition: border-color .2s, transform .25s, box-shadow .25s, background .2s; }
.cand-profil:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(13,27,22,.1); border-color: rgba(13,27,22,.28); }
.cand-profil input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cand-profil:has(input:focus-visible) { outline: 3px solid var(--vert); outline-offset: 3px; }
.cand-profil:has(input:checked) { border-color: var(--encre); background: #fff; box-shadow: 0 18px 40px rgba(13,27,22,.12); }
.cand-profil .cp-icone { width: 52px; height: 52px; color: var(--vert); }
.cand-profil .cp-icone svg { width: 100%; height: 100%; }
.cand-profil b { font-size: 24px; letter-spacing: -.03em; margin-top: 6px; }
.cand-profil .cp-texte { color: var(--doux); font-size: 16px; line-height: 1.45; }
.cand-profil .cp-pied { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ligne); font-size: 14px; font-weight: 600; color: var(--encre); }
.cand-profil .cp-coche { position: absolute; top: 18px; right: 18px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ligne); display: grid; place-items: center;
  color: transparent; transition: background .2s, border-color .2s, color .2s; }
.cand-profil .cp-coche svg { width: 16px; height: 16px; }
.cand-profil:has(input:checked) .cp-coche { background: var(--or); border-color: var(--or); color: var(--encre); }

/* champs */
.cand-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; margin-bottom: 22px; }
.cand-champ { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.cand-champ.large { grid-column: 1 / -1; }
.cand-champ[hidden] { display: none; }
.cand-champ > label, .cand-label { font-size: 15px; font-weight: 700; color: var(--encre); }
.cand-champ abbr { text-decoration: none; color: var(--chaud); }
.opt { font-weight: 400; color: var(--pale); font-size: 13.5px; }
.cand input[type="text"], .cand input[type="email"], .cand input[type="tel"], .cand select, .cand textarea {
  width: 100%; font: 500 17px/1.3 "Outfit", system-ui, sans-serif; color: var(--encre); background-color: var(--papier);
  border: 1.5px solid rgba(13,27,22,.18); border-radius: 14px; padding: 15px 16px; transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none; }
.cand textarea { resize: vertical; min-height: 96px; }
.cand select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230d1b16' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; }
.cand input:hover, .cand select:hover, .cand textarea:hover { border-color: rgba(13,27,22,.4); }
.cand input:focus, .cand select:focus, .cand textarea:focus { outline: none; border-color: var(--vert); background-color: #fff; box-shadow: 0 0 0 4px rgba(29,122,79,.16); }
.cand input[aria-invalid="true"], .cand select[aria-invalid="true"], .cand textarea[aria-invalid="true"] { border-color: var(--chaud); background-color: #fff8f5; }
.cand input::placeholder, .cand textarea::placeholder { color: #9aa59f; font-weight: 400; }
.cand-aide { margin: 0; font-size: 13.5px; color: var(--pale); }
.cand-compteur { text-align: right; }
.cand-err { margin: 0; min-height: 0; font-size: 14px; font-weight: 600; color: #c4441c; }
.cand-err:empty { display: none; }
.cand-err::before { content: "! "; font-weight: 800; }
.cand-err:empty::before { content: none; }
.cand-piege { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* pastilles des zones, oui / non */
.cand-pastilles { display: flex; flex-wrap: wrap; gap: 10px; }
.cand-pastille { position: relative; }
.cand-pastille input, .cand-oui-non input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cand-pastille span, .cand-oui-non span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-size: 16px; font-weight: 600; color: var(--doux);
  border: 1.5px solid rgba(13,27,22,.18); background: var(--papier); transition: background .2s, border-color .2s, color .2s, transform .15s; }
.cand-pastille:hover span, .cand-oui-non label:hover span { border-color: rgba(13,27,22,.45); }
.cand-pastille input:checked + span, .cand-oui-non input:checked + span { background: var(--encre); border-color: var(--encre); color: #fff; }
.cand-pastille input:checked + span::before { content: "✓"; font-size: 14px; color: var(--or); }
.cand-pastille input:focus-visible + span, .cand-oui-non input:focus-visible + span { outline: 3px solid var(--vert); outline-offset: 3px; }
.cand-oui-non { display: flex; gap: 10px; }
.cand-oui-non label { position: relative; }

/* consentement */
.cand-consent { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 16px; background: var(--papier);
  border: 1.5px solid var(--ligne); cursor: pointer; font-size: 15.5px; line-height: 1.45; color: var(--doux); }
.cand-consent input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-case { width: 28px; height: 28px; border-radius: 8px; border: 2px solid rgba(13,27,22,.3); background: #fff; display: grid; place-items: center; color: transparent; transition: background .2s, border-color .2s, color .2s; }
.cc-case svg { width: 16px; height: 16px; }
.cand-consent:has(input:checked) .cc-case { background: var(--vert); border-color: var(--vert); color: #fff; }
.cand-consent:has(input:checked) { border-color: rgba(29,122,79,.4); background: #f1f8f4; }
.cand-consent:has(input:focus-visible) { outline: 3px solid var(--vert); outline-offset: 3px; }
.cand-consent:has(input[aria-invalid="true"]) { border-color: var(--chaud); background: #fff8f5; }

/* actions */
.cand-alerte { margin: 4px 0 18px; padding: 12px 16px; border-radius: 12px; background: #fdeee8; color: #a8381a; font-weight: 600; font-size: 15px; }
.cand-alerte[hidden] { display: none; }
.cand-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.cand-actions [hidden] { display: none !important; }
.cand-actions .cand-gros { margin-left: auto; }
.cand-gros { padding: 17px 32px; font-size: 17px; min-height: 56px; justify-content: center; }
.cand-gros:disabled { opacity: .75; cursor: progress; transform: none; box-shadow: none; }
.btn-attente { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: cand-tourne .8s linear infinite; }
.cand-gros.attente .btn-attente { display: inline-block; }
@keyframes cand-tourne { to { transform: rotate(360deg); } }

/* échec */
.cand-echec { margin-top: 28px; padding: 26px; border-radius: 18px; background: #fff8f5; border: 1.5px solid rgba(232,88,44,.35); }
.cand-echec[hidden] { display: none; }
.cand-echec h3 { font-size: 24px; }
.cand-echec p { margin: 10px 0 0; color: var(--doux); font-size: 16.5px; }
.cand-echec-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* merci */
.cand-merci { text-align: center; padding: 12px 0 4px; }
.cand-merci[hidden] { display: none; }
.cand-merci:focus { outline: none; }
.cm-rond { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: var(--or); color: var(--encre); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(255,205,60,.25); animation: cand-pop .6s cubic-bezier(.3,1.4,.5,1) both; }
.cm-rond svg { width: 42px; height: 42px; }
@keyframes cand-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.cand-merci h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; }
.cand-merci h2 em { line-height: 1.2; }
.cm-chapo { margin: 16px 0 0; font-size: 19px; color: var(--doux); }
.cm-suite { list-style: none; text-align: left; margin: 34px auto 0; padding: 0; display: grid; gap: 20px; max-width: 540px; }
.cm-suite li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--ligne); }
.cm-suite li:last-child { border-bottom: 0; padding-bottom: 0; }
.cm-suite i { font-style: normal; width: 44px; height: 44px; border-radius: 50%; background: var(--or); display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.cm-suite b { display: block; font-size: 19px; letter-spacing: -.02em; }
.cm-suite p { margin: 3px 0 0; color: var(--doux); font-size: 16px; }
.cm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

.cand-bas { text-align: center; max-width: 520px; margin: 26px auto 0; font-size: 13.5px; color: var(--pale); }
.page-cand .pied a { color: var(--doux); }

/* ---------- téléphone ---------- */
@media (max-width: 900px) {
  .page-cand .nav .cand-retour { margin-left: auto; padding: 9px 15px; font-size: 14px; }
  .cand { padding-top: 112px; padding-bottom: 56px; }
}
@media (max-width: 640px) {
  .cand-profils { grid-template-columns: 1fr; gap: 14px; }
  .cand-profil { padding: 22px 20px 18px; }
  .cand-grille { grid-template-columns: 1fr; gap: 18px; }
  .cand-progres li span { display: none; }
  .cand-progres li.actif span { display: inline; }
  .cand-boite { border-radius: 22px; padding: 22px 18px 24px; }
  .cand-actions { flex-direction: column-reverse; align-items: stretch; }
  .cand-actions .cand-gros, .cand-actions .bouton { width: 100%; justify-content: center; margin-left: 0; }
  .cand-hero { margin-bottom: 30px; }
  .cl-actions .bouton { width: 100%; justify-content: center; }
  .club-partenaire { padding: 20px; }
  .club-partenaire .bouton { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cand-etape:not([hidden]), .cm-rond, .btn-attente { animation: none; }
  .cand-barre > div, .cand-profil { transition: none; }
}

/* en-tête de la landing : le lien « Espace partenaire » ne doit pas faire passer les autres à la ligne */
.nav .liens-nav a { white-space: nowrap; }
.nav .liens-nav a[href^="https://prospection"] { font-size: 14px; color: var(--pale); }
@media (min-width: 901px) and (max-width: 1240px) {
  .nav { gap: 12px; }
  .nav .liens-nav a { padding: 8px 9px; font-size: 14px; }
}
@media (min-width: 901px) and (max-width: 1240px) {
  .nav .liens-nav a[href^="https://prospection"] { display: none; }
}

/* ---------- téléphone, reprise du 01/12/2026 : une colonne alignée, cibles de 44 px, champs à 16 px (pas de zoom iOS) ---------- */
@media (max-width: 640px) {
  /* Seulement la page de candidature : la landing charge aussi ce fichier, et un `overflow-x: hidden` sur <html> y casse
     les récits collants (position: sticky). Assemblage du 01/12/2026. */
  html:has(> body.page-cand), body.page-cand { overflow-x: hidden; max-width: 100%; }
  .page-cand .nav { width: calc(100% - 24px); max-width: none; padding: 0 8px 0 14px; gap: 8px; }
  .page-cand .nav .marque { flex: 0 1 auto; min-width: 0; white-space: nowrap; }
  .page-cand .nav .cand-retour { flex: none; min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; }
  .cand { padding: 96px 16px 40px; }
  .cand::before { display: none; }
  .cand-hero { margin-bottom: 24px; }
  .cand-hero .sur { margin-bottom: 16px; }
  .cand-hero h1 { font-size: clamp(30px, 9vw, 36px); overflow-wrap: break-word; }
  .cand-chapo { font-size: 16px; margin-top: 14px; }
  .cand-boite { padding: 20px 16px 22px; border-radius: 20px; box-shadow: 0 20px 50px rgba(13,27,22,.09); }

  /* progression : trois colonnes égales, pastille au-dessus du libellé */
  .cand-progres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
  .cand-progres li, .cand-progres li.actif { flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; text-align: center; line-height: 1.2; }
  .cand-progres li span, .cand-progres li.actif span { display: block; }
  .cand-barre { margin-bottom: 26px; }
  .cand-legende { font-size: 24px; margin-bottom: 18px; overflow-wrap: break-word; }

  .cand-profil { padding: 20px 16px 16px; }
  .cand-profil b { font-size: 21px; padding-right: 34px; }
  .cand-profil .cp-texte { font-size: 15.5px; }
  .cand-profil:hover { transform: none; }

  .cand-champ > label, .cand-label { font-size: 15px; }
  .cand input[type="text"], .cand input[type="email"], .cand input[type="tel"], .cand select, .cand textarea {
    font-size: 16px; min-height: 50px; padding: 13px 14px; }
  .cand select { padding-right: 42px; text-overflow: ellipsis; }
  .cand textarea { min-height: 110px; }
  .cand-pastilles { gap: 8px; }
  .cand-pastille span, .cand-oui-non span { min-height: 44px; padding: 10px 16px; font-size: 15.5px; }
  .cand-oui-non { flex-wrap: wrap; }
  .cand-consent { padding: 14px; gap: 12px; font-size: 15px; grid-template-columns: 28px minmax(0, 1fr); }

  .cand-actions { margin-top: 24px; gap: 10px; }
  .cand-actions .bouton, .cand-gros { min-height: 52px; padding: 14px 20px; font-size: 16.5px; }
  .cand-actions .bouton.clair { min-height: 48px; }
  .cand-echec { padding: 20px 16px; }
  .cand-echec-actions { flex-direction: column; }
  .cand-echec-actions .bouton { width: 100%; justify-content: center; min-height: 48px; }

  /* remerciement : centré, étapes lisibles */
  .cand-merci { padding: 8px 0 0; }
  .cm-rond { width: 72px; height: 72px; box-shadow: 0 0 0 9px rgba(255,205,60,.25); }
  .cand-merci h2 { font-size: clamp(30px, 9vw, 38px); overflow-wrap: anywhere; }
  .cm-chapo { font-size: 17px; }
  .cm-suite { margin-top: 26px; gap: 16px; }
  .cm-suite li { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
  .cm-suite i { width: 36px; height: 36px; font-size: 16px; }
  .cm-suite b { font-size: 17px; }
  .cm-suite p { font-size: 15px; }
  .cm-actions { flex-direction: column; margin-top: 26px; }
  .cm-actions .bouton { width: 100%; justify-content: center; min-height: 50px; }

  .cand-bas { margin-top: 20px; padding: 0 4px; }
  .page-cand .pied { flex-direction: column; align-items: flex-start; padding: 24px 16px; }
}
@media (max-width: 380px) {
  .page-cand .nav .marque { font-size: 13.5px; letter-spacing: .1em; }
  .page-cand .nav .marque svg { width: 24px; height: 24px; }
  .page-cand .nav .cand-retour { padding: 8px 12px; font-size: 13.5px; }
}

/* « Déjà partenaire ? Se connecter » sous les deux profils (06/12/2026) */
.cand-deja { margin: 14px 0 0; font-size: 15px; color: var(--doux); }
.cand-deja a { color: var(--vert); font-weight: 700; text-underline-offset: 3px; }
