/* =========================================================================
   CANDIDATURE, habillage « appli Prépafoot » (03/11/2026, demande de Nicolas).
   Décalque de la feuille de l'appli-coach, qui reste le PROPRIÉTAIRE des couleurs, de la police
   et des reliefs : `1 Projets/Reflex — App vitesse de réaction/app/css/prepafoot.css`
   (version « tout ensemble » du 29/10 : fond clair, le vert porte l'action, objets dessinés,
   tuiles teintées, bord inférieur qui s'enfonce, Baloo 2). Si l'appli change, on recopie ici.
   Portée : UNIQUEMENT le module candidature (html.cand, posé avant le rendu par un script en tête
   de index.html). Les autres modules (prise en main, nutrition, Pro) gardent la direction sombre.
   ========================================================================= */

@font-face{font-family:"Baloo 2";font-style:normal;font-weight:400 800;font-display:swap;src:url("/assets/fonts/baloo2.woff2") format("woff2")}

html.cand{
  color-scheme:light;
  --vert:#2E9E4F; --vert-fonce:#1F7A3A; --pelouse:#37A85C;
  --encre:#0F3D1F; --encre-2:#07220F;
  --jaune:#FFD500; --jaune-2:#D4B000;
  --blanc:#FFFFFF; --fond:#F6F8F5;
  --bord:#E1E8E2; --bord-2:#C9D6CC;
  --muted:#4C7A5C; --pale:#EAF3EC; --pale-2:#C9DED0;
  --teinte-nerveux:#FFF2AE; --teinte-cardio:#DCE7FF; --teinte-libre:#DDF0E2;
  --rouge:#E3001B; --rouge-2:#A50013; --bleu:#0057D9; --bleu-2:#003E9C;
  --edge:5px; --r:28px; --ease:cubic-bezier(.22,1,.36,1);
  /* les jetons du moteur, redirigés vers ceux de l'appli : tout ce que le moteur dessine suit */
  --bg:var(--fond); --surface:var(--blanc); --surface2:var(--blanc);
  --border:var(--bord); --accent:var(--vert); --accent-deep:var(--vert-fonce); --lime:var(--jaune);
  --text:var(--encre); --text2:var(--muted); --muted:#4C7A5C;
}
html.cand body{font-family:"Baloo 2",system-ui,-apple-system,sans-serif;font-weight:600;background:var(--fond);color:var(--encre);line-height:1.35;-webkit-tap-highlight-color:transparent}

/* ---------- Les lignes de terrain, en vert pâle, derrière toute la page (comme chaque écran de l'appli) ---------- */
html.cand body::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.11;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 -1 68 107' preserveAspectRatio='xMidYMid slice'><g fill='none' stroke='%232E9E4F' stroke-width='0.5' stroke-linecap='round'><rect x='0' y='0' width='68' height='105'/><line x1='0' y1='52.5' x2='68' y2='52.5'/><circle cx='34' cy='52.5' r='9.15'/><circle cx='34' cy='52.5' r='0.5' fill='%232E9E4F'/><rect x='13.84' y='0' width='40.32' height='16.5'/><rect x='24.84' y='0' width='18.32' height='5.5'/><path d='M26.69 16.5A9.15 9.15 0 0 0 41.31 16.5'/><rect x='13.84' y='88.5' width='40.32' height='16.5'/><rect x='24.84' y='99.5' width='18.32' height='5.5'/><path d='M26.69 88.5A9.15 9.15 0 0 1 41.31 88.5'/></g></svg>") center/cover no-repeat}
html.cand header,html.cand .progress,html.cand main,html.cand footer{position:relative;z-index:1}

/* ---------- En-tête : le logo de l'appli, la barre de progression épaisse et ronde ---------- */
html.cand header{background:transparent;padding:max(18px,env(safe-area-inset-top)) 20px 8px;justify-content:center}
html.cand header .logo-sombre{display:none}
html.cand header .logo-vert{display:block;height:44px;width:auto}
html.cand .progress{height:12px;background:var(--pale);border-radius:999px;margin:0 20px;max-width:520px;box-shadow:inset 0 -3px 0 var(--pale-2)}
@media (min-width:560px){html.cand .progress{margin:0 auto}}
html.cand .progress i{border-radius:999px;background:var(--vert);box-shadow:inset 0 -3px 0 var(--vert-fonce);transition:width .35s var(--ease)}
html.cand main{padding:26px 20px 40px}

/* ---------- Entrée d'un écran : chaque bloc monte de 12 px, l'un après l'autre (rise de l'appli) ---------- */
@keyframes cand-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
html.cand main > *{animation:cand-rise .42s var(--ease) both}
html.cand main > :nth-child(2){animation-delay:40ms} html.cand main > :nth-child(3){animation-delay:80ms}
html.cand main > :nth-child(4){animation-delay:120ms} html.cand main > :nth-child(5){animation-delay:160ms} html.cand main > :nth-child(n+6){animation-delay:200ms}

/* ---------- Numéro de question = une chip en petites capitales ---------- */
html.cand .stepnum{display:inline-flex;align-items:center;min-height:28px;padding:4px 12px;border-radius:999px;background:var(--pale);color:var(--encre);
  font-family:"Baloo 2",system-ui,sans-serif;font-size:12.5px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;margin-bottom:14px}
html.cand .stepnum:empty{display:none}
html.cand h1{font-size:clamp(28px,8.5vw,34px);font-weight:800;line-height:1.05;letter-spacing:-.3px;margin-bottom:18px;text-wrap:balance}
html.cand .intro{color:var(--muted);font-size:17px;font-weight:600;line-height:1.4;margin:-6px 0 22px}
html.cand .intro b,html.cand .intro strong{color:var(--encre)}

/* ---------- Le premier écran : la photo de Nicolas et qui il est ---------- */
html.cand .who{display:flex;align-items:center;gap:12px;margin:-2px 0 18px}
html.cand .who img{width:64px;height:64px;border-radius:50%;object-fit:cover;border:3px solid var(--blanc);box-shadow:0 4px 0 var(--bord-2);flex:none}
html.cand .who .chip{display:inline-flex;align-items:center;min-height:28px;padding:4px 12px;border-radius:999px;background:var(--jaune);color:var(--encre);font-size:12.5px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;box-shadow:0 3px 0 var(--jaune-2)}

/* ---------- Champs ---------- */
html.cand .field{margin-bottom:22px}
html.cand .field > label,html.cand .sem-bloc > label{font-size:17px;font-weight:800;line-height:1.25;margin-bottom:10px}
html.cand .field .opt{color:var(--muted);font-weight:600;font-size:14px}
html.cand .hint{color:var(--muted);font-size:15px;font-weight:600;margin:-4px 0 10px}
html.cand input[type=text],html.cand input[type=email],html.cand input[type=number],html.cand input[type=date],html.cand input[type=time],html.cand textarea,html.cand select{
  background:var(--blanc);color:var(--encre);border:2px solid var(--bord);border-radius:18px;padding:14px 16px;
  font:inherit;font-size:17px;font-weight:600;box-shadow:0 4px 0 var(--bord-2);transition:border-color .15s,box-shadow .15s}
html.cand input[type=number],html.cand input[type=time],html.cand input[type=date],html.cand select{font-family:inherit;font-size:17px}
html.cand input::placeholder,html.cand textarea::placeholder{color:#8AA893;font-weight:500}
html.cand input:focus,html.cand textarea:focus,html.cand select:focus{border-color:var(--vert);box-shadow:0 4px 0 var(--vert-fonce);background:var(--blanc);outline:none}
html.cand textarea{min-height:110px}
html.cand .suffixe select{max-width:150px}
html.cand .suffixe span{color:var(--muted);font-size:17px;font-weight:700}

/* ---------- Choix (radio, cases) : une carte blanche par option, qui s'enfonce, verte quand elle est choisie ---------- */
html.cand .radio{gap:10px;padding-bottom:var(--edge)}
html.cand .radio label{background:var(--blanc);border:2px solid var(--bord);border-radius:20px;padding:14px 16px;font-size:16.5px;font-weight:700;line-height:1.3;
  box-shadow:0 var(--edge) 0 var(--bord-2);transition:transform .09s var(--ease),box-shadow .09s var(--ease),background .15s,border-color .15s;align-items:center}
html.cand .radio label:active{transform:translateY(var(--edge));box-shadow:0 0 0 transparent}
html.cand .radio label:has(input:checked){background:var(--teinte-libre);border-color:var(--vert);box-shadow:0 var(--edge) 0 var(--vert)}
html.cand .radio input{appearance:none;-webkit-appearance:none;width:24px;height:24px;flex:none;margin:0;border-radius:50%;border:2px solid var(--bord-2);background:var(--blanc);display:grid;place-items:center;transition:background .15s,border-color .15s}
html.cand .radio input[type=checkbox]{border-radius:8px}
html.cand .radio input:checked{background:var(--vert);border-color:var(--vert-fonce)}
html.cand .radio input:checked::after{content:"";width:12px;height:7px;border-left:3px solid #fff;border-bottom:3px solid #fff;transform:translateY(-2px) rotate(-45deg);border-radius:1px}
html.cand .rsous{font-size:14px;font-weight:600;color:var(--muted);margin-top:3px;line-height:1.4}
html.cand .rprix{display:block;font-family:inherit;font-size:15px;font-weight:800;color:var(--encre);margin-top:8px;letter-spacing:.2px}

/* ---------- Choix-boutons : des tuiles, comme l'accueil de l'appli ---------- */
html.cand .btns{display:grid;gap:12px;padding-bottom:var(--edge)}
html.cand .btns[data-cols="2"]{grid-template-columns:1fr 1fr}
html.cand .btns[data-cols="3"]{grid-template-columns:1fr 1fr 1fr}
html.cand .btns .btn{flex:none;width:100%;min-height:62px;padding:14px 16px;border-radius:999px;background:var(--blanc);color:var(--encre);border:2px solid var(--bord);
  box-shadow:0 var(--edge) 0 var(--bord-2);font-size:19px;font-weight:800;letter-spacing:.3px;text-transform:none;display:flex;align-items:center;justify-content:center;gap:10px;text-align:center}
html.cand .btns .btn:hover{background:var(--blanc);transform:none}
html.cand .btns .btn:active{transform:translateY(var(--edge));box-shadow:0 0 0 transparent}
/* une tuile avec un objet dessiné : teinte pâle de sa famille, bord inférieur en couleur pleine */
html.cand .btns .tile{flex-direction:column;gap:6px;border-radius:22px;padding:14px 10px 14px;min-height:150px;border-color:rgba(7,34,15,.08);background:var(--teinte-libre);box-shadow:0 var(--edge) 0 var(--vert)}
html.cand .btns .tile.nerveux{background:var(--teinte-nerveux);box-shadow:0 var(--edge) 0 var(--jaune-2)}
html.cand .btns .tile.cardio{background:var(--teinte-cardio);box-shadow:0 var(--edge) 0 var(--bleu)}
html.cand .btns .tile.blanc{background:var(--blanc);border-color:var(--bord);box-shadow:0 var(--edge) 0 var(--bord-2)}
html.cand .btns .tile .illu{display:block;width:72px;height:72px;flex:none}
html.cand .btns .tile .illu svg{display:block;width:100%;height:100%;overflow:visible}
html.cand .btns .tile .tlbl{font-size:17px;font-weight:800;line-height:1.05;letter-spacing:-.2px;text-wrap:balance}
html.cand .btns .tile .tsous{font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);line-height:1.2}
/* une tuile sans objet mais pleine largeur (joueur / parent) : grande, teintée, le texte au milieu */
html.cand .btns .tile.wide{min-height:92px;flex-direction:row;padding:16px 18px;font-size:clamp(19px,5.6vw,22px)}
html.cand .btns[data-cols] .tile.wide{grid-column:1 / -1;min-height:96px;gap:14px;justify-content:center}
html.cand .btns[data-cols] .tile.wide .illu{width:56px;height:56px}
html.cand .btns[data-cols] .tile.wide .tlbl{font-size:19px}

/* ---------- Le bas de chaque écran : Continuer en pilule verte, Retour en rond blanc ---------- */
html.cand .nav{gap:10px;margin-top:26px;padding-bottom:var(--edge);align-items:center}
html.cand .btn{background:var(--vert);color:var(--blanc);border-radius:999px;min-height:62px;padding:0 22px;font-size:19px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;
  box-shadow:0 var(--edge) 0 var(--vert-fonce);transition:transform .09s var(--ease),box-shadow .09s var(--ease)}
html.cand .btn:hover{background:var(--vert);transform:none}
html.cand .btn:active{transform:translateY(var(--edge));box-shadow:0 0 0 transparent}
html.cand .back{flex:none;min-width:64px;height:62px;border-radius:999px;border:2px solid var(--bord);background:var(--blanc);color:var(--encre);font-size:15px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;padding:0 18px;
  box-shadow:0 var(--edge) 0 var(--bord-2);transition:transform .09s var(--ease),box-shadow .09s var(--ease)}
html.cand .back:hover{color:var(--encre);border-color:var(--bord)}
html.cand .back:active{transform:translateY(var(--edge));box-shadow:0 0 0 transparent}
html.cand .err{color:var(--blanc);background:var(--rouge);border-radius:16px;padding:10px 14px;font-size:15px;font-weight:700;text-align:center;box-shadow:0 4px 0 var(--rouge-2);margin-top:14px}
html.cand .savenote{font-family:inherit;font-size:13px;font-weight:700;color:var(--muted);letter-spacing:.2px}
html.cand .savenote b{color:var(--vert-fonce)}

/* ---------- Semaine type et repas (prise en main : jamais en candidature, mais au cas où) ---------- */
html.cand .jour{font-family:inherit;border:2px solid var(--bord);background:var(--blanc);color:var(--muted)}
html.cand .jour.on{border-color:var(--vert);background:var(--teinte-libre);color:var(--encre)}
html.cand .jour.match{background:var(--vert);color:var(--blanc)}

/* ---------- Écran final ---------- */
html.cand .done .check{background:var(--vert);box-shadow:0 var(--edge) 0 var(--vert-fonce);width:72px;height:72px}
html.cand .done .check svg{stroke:#fff;width:34px;height:34px}
html.cand .done p{color:var(--encre);font-size:17px;font-weight:600;line-height:1.45}
html.cand .done .vsl{border:2px solid var(--bord);border-radius:var(--r);box-shadow:0 var(--edge) 0 var(--bord-2)}
html.cand .done .rappel{font-family:inherit;font-size:12.5px;letter-spacing:.8px;color:var(--muted)}
html.cand .done .btn{display:inline-flex;text-decoration:none}
html.cand footer{font-family:inherit;font-size:12px;letter-spacing:.6px;color:var(--muted);font-weight:700}

/* ---------- Chargement ---------- */
html.cand .loader i{border-color:var(--pale-2);border-top-color:var(--vert)}

@media (prefers-reduced-motion:reduce){html.cand *{animation:none!important;transition:none!important}}
