/* =========================================================
   EDUCFR — CONNEXION ET INSCRIPTION
   ---------------------------------------------------------
   Même langage visuel que la page d'accueil : blanc et bleu
   très clair, halos discrets, trajectoires légères, grands
   titres, bleu marine Educfr et une touche de rouge.

   Le dossier maître écarte explicitement la composition
   « moitié bleu / moitié formulaire blanc ». La page est donc
   claire de bout en bout : le formulaire se pose sur le même
   fond que la page d'accueil, et c'est le fil Educfr qui
   structure l'écran, pas un aplat de couleur.

   Toutes les règles sont préfixées .educfr-auth pour ne jamais
   entrer en conflit avec WordPress, Elementor, WooCommerce ou
   MasterStudy.
   ========================================================= */

.educfr-auth{
  --edu-bg:#f8fbff;
  --edu-navy:#0a2f66;
  --edu-navy-strong:#07214a;
  --edu-blue:#2157e8;
  --edu-blue-2:#0c78d7;
  --edu-cyan:#22bbe7;
  --edu-red:#ea4d43;
  --edu-text:#1e3355;
  --edu-muted:#6b7d98;
  --edu-line:#e6edf7;
  --edu-shadow:0 34px 80px -40px rgba(8,38,84,.34);
  --edu-font:"Plus Jakarta Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;

  position:relative;min-height:100vh;
  display:flex;flex-direction:column;
  font-family:var(--edu-font);color:var(--edu-text);
  background:
    radial-gradient(900px 520px at 84% -6%, rgba(33,87,232,.10), transparent 62%),
    radial-gradient(720px 460px at 6% 4%, rgba(34,187,231,.08), transparent 64%),
    linear-gradient(180deg,#fbfdff 0%,#f5f9ff 56%,#f9fbfe 100%);
  overflow-x:clip;
}

.educfr-auth *,
.educfr-auth *::before,
.educfr-auth *::after{box-sizing:border-box}

.educfr-auth img{display:block;max-width:100%}
.educfr-auth a{text-decoration:none;color:inherit}
.educfr-auth button{font:inherit;color:inherit}

/* Héritage rendu explicite : une simple règle de thème sur h1 ou p
   reprendrait sinon la main sur la police et les marges. */
.educfr-auth h1, .educfr-auth h2, .educfr-auth h3, .educfr-auth p,
.educfr-auth ul, .educfr-auth li, .educfr-auth label, .educfr-auth span,
.educfr-auth small, .educfr-auth strong, .educfr-auth b, .educfr-auth a,
.educfr-auth input, .educfr-auth button, .educfr-auth legend{font-family:inherit}
.educfr-auth ul{margin:0;padding:0;list-style:none}
.educfr-auth fieldset{margin:0;padding:0;border:0}

.educfr-auth :focus-visible{
  outline:3px solid rgba(33,87,232,.42);outline-offset:3px;border-radius:12px;
}

.educfr-auth .edu-a-sr{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ---------------------------------------------------------
   Trajectoire de fond — la signature Educfr, en très discret
   --------------------------------------------------------- */
.educfr-auth .edu-a-thread{
  position:absolute;inset:0;width:100%;height:100%;
  pointer-events:none;z-index:0;opacity:.62;
}
.educfr-auth .edu-a-thread path{fill:none;stroke-width:2.4;stroke-linecap:round}

/* =========================================================
   EN-TÊTE
   ========================================================= */
.educfr-auth .edu-a-top{
  position:relative;z-index:3;
  display:flex;align-items:center;gap:20px;
  width:min(1180px, calc(100% - 64px));margin:0 auto;padding:28px 0 0;
}
.educfr-auth .edu-a-logo img{width:132px;height:auto}
.educfr-auth .edu-a-back{
  margin-left:auto;display:inline-flex;align-items:center;gap:9px;
  font-size:14.5px;font-weight:650;color:var(--edu-muted);
}
.educfr-auth .edu-a-back::before{
  content:"";width:16px;height:8px;flex:0 0 auto;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 8'%3E%3Cpath d='M18 4H3M6 1 3 4l3 3' stroke='%23000' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 8'%3E%3Cpath d='M18 4H3M6 1 3 4l3 3' stroke='%23000' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition:transform .22s ease;
}
.educfr-auth .edu-a-back:hover{color:var(--edu-navy)}
.educfr-auth .edu-a-back:hover::before{transform:translateX(-3px)}

/* =========================================================
   CORPS
   ========================================================= */
.educfr-auth .edu-a-main{
  position:relative;z-index:2;flex:1 0 auto;
  display:flex;align-items:center;justify-content:center;
  padding:34px 32px 48px;
}
.educfr-auth .edu-a-shell{width:min(560px,100%)}

.educfr-auth .edu-a-intro{text-align:center;margin-bottom:24px}
.educfr-auth .edu-a-kicker{
  display:inline-flex;align-items:center;gap:12px;
  font-size:12.5px;font-weight:800;letter-spacing:.16em;
  text-transform:uppercase;color:#7a8dab;
}
.educfr-auth .edu-a-kicker::before{
  content:"";width:26px;height:2px;border-radius:999px;
  background:linear-gradient(90deg,var(--edu-blue) 0 62%,var(--edu-red) 62% 100%);
}
.educfr-auth .edu-a-intro h1{
  margin:14px auto 10px;max-width:16ch;font-size:clamp(26px,3.2vw,40px);
  line-height:1.06;letter-spacing:-.045em;font-weight:800;color:var(--edu-navy-strong);
}
.educfr-auth .edu-a-intro h1 span{color:var(--edu-blue)}
.educfr-auth .edu-a-intro p{
  margin:0 auto;max-width:44ch;font-size:16px;line-height:1.6;color:var(--edu-muted);
}

/* ---------------------------------------------------------
   La carte
   Un seul bloc clair, posé sur le fond de la page. Le fil
   Educfr en liseré supérieur remplace l'aplat de couleur.
   --------------------------------------------------------- */
.educfr-auth .edu-a-card{
  position:relative;overflow:hidden;
  padding:34px 38px 32px;border-radius:28px;
  background:rgba(255,255,255,.86);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border:1px solid rgba(230,237,247,.9);
  box-shadow:var(--edu-shadow);
}
.educfr-auth .edu-a-card::before{
  content:"";position:absolute;left:0;right:0;top:0;height:4px;
  background:linear-gradient(90deg,
    var(--edu-navy) 0%, var(--edu-blue) 34%, var(--edu-cyan) 74%, var(--edu-red) 100%);
}

/* Bascule connexion / inscription */
.educfr-auth .edu-a-switch{
  display:grid;grid-template-columns:1fr 1fr;gap:4px;
  padding:4px;border-radius:999px;background:#eef4fd;margin-bottom:26px;
}
.educfr-auth .edu-a-switch a{
  padding:11px 8px;border-radius:999px;text-align:center;
  font-size:14.5px;font-weight:700;color:#7a8dab;
  transition:background .22s ease, color .22s ease, box-shadow .22s ease;
}
.educfr-auth .edu-a-switch a.is-on{
  background:#fff;color:var(--edu-navy);
  box-shadow:0 6px 16px -8px rgba(8,38,84,.35);
}

/* ---------------------------------------------------------
   Champs
   --------------------------------------------------------- */
.educfr-auth .edu-a-fields{display:grid;gap:16px}
.educfr-auth .edu-a-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}

.educfr-auth .edu-a-field{position:relative;display:block}
.educfr-auth .edu-a-field > span{
  display:block;margin-bottom:7px;
  font-size:13px;font-weight:700;color:var(--edu-navy);
}
.educfr-auth .edu-a-field input,
.educfr-auth .edu-a-field select{
  width:100%;min-height:54px;padding:0 16px;
  border-radius:15px;border:1.5px solid #dbe6f6;background:#fff;
  font-size:15.5px;color:var(--edu-text);
  transition:border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance:none;appearance:none;
}
.educfr-auth .edu-a-field input::placeholder{color:#9db0cb}
.educfr-auth .edu-a-field input:focus,
.educfr-auth .edu-a-field select:focus{
  outline:none;border-color:var(--edu-blue);
  box-shadow:0 0 0 4px rgba(33,87,232,.13);
}
.educfr-auth .edu-a-field.has-icon input{padding-right:52px}

/* Bouton afficher / masquer le mot de passe */
.educfr-auth .edu-a-peek{
  /* Calé sur le haut du champ, et non sur le bas du bloc : sinon
     l'indicateur de robustesse, qui vient s'ajouter dessous, poussait
     le bouton hors de l'input. Le libellé a une taille fixe, la valeur
     est donc stable. */
  position:absolute;right:8px;top:32px;
  width:38px;height:38px;border:0;border-radius:11px;cursor:pointer;
  background:transparent;display:grid;place-items:center;color:#8fa1bc;
}
.educfr-auth .edu-a-peek:hover{color:var(--edu-blue);background:rgba(33,87,232,.07)}
.educfr-auth .edu-a-peek svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round}
.educfr-auth .edu-a-peek .edu-a-peek-off{display:none}
.educfr-auth .edu-a-peek[aria-pressed="true"] .edu-a-peek-on{display:none}
.educfr-auth .edu-a-peek[aria-pressed="true"] .edu-a-peek-off{display:block}

/* Robustesse du mot de passe */
.educfr-auth .edu-a-meter{margin-top:9px}
.educfr-auth .edu-a-meter-track{
  height:5px;border-radius:999px;background:#e6edf7;overflow:hidden;
}
.educfr-auth .edu-a-meter-fill{
  height:100%;width:0;border-radius:999px;
  background:linear-gradient(90deg,var(--edu-blue),var(--edu-cyan));
  transition:width .3s ease, background .3s ease;
}
.educfr-auth .edu-a-meter.is-weak   .edu-a-meter-fill{width:30%;background:var(--edu-red)}
.educfr-auth .edu-a-meter.is-medium .edu-a-meter-fill{width:62%;background:#eaa53f}
.educfr-auth .edu-a-meter.is-strong .edu-a-meter-fill{width:100%}
.educfr-auth .edu-a-meter small{
  display:block;margin-top:6px;font-size:12.5px;color:var(--edu-muted);
}

/* Cases à cocher */
.educfr-auth .edu-a-check{
  display:flex;align-items:flex-start;gap:11px;cursor:pointer;
  font-size:14px;line-height:1.5;color:var(--edu-muted);
}
.educfr-auth .edu-a-check input{
  flex:0 0 auto;width:20px;height:20px;margin:1px 0 0;
  border-radius:6px;border:1.5px solid #cfdcef;background:#fff;cursor:pointer;
  -webkit-appearance:none;appearance:none;position:relative;
}
.educfr-auth .edu-a-check input:checked{
  background:linear-gradient(135deg,var(--edu-blue),var(--edu-blue-2));border-color:transparent;
}
.educfr-auth .edu-a-check input:checked::after{
  content:"";position:absolute;inset:0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3 8.4 13 14.5 6.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.educfr-auth .edu-a-check a{color:var(--edu-blue);font-weight:650}

.educfr-auth .edu-a-aside{
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
}
.educfr-auth .edu-a-forgot{font-size:14px;font-weight:650;color:var(--edu-blue)}

/* ---------------------------------------------------------
   Choix du niveau — les quatre niveaux réels d'Educfr
   --------------------------------------------------------- */
.educfr-auth .edu-a-levels{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.educfr-auth .edu-a-level{position:relative;cursor:pointer}
.educfr-auth .edu-a-level input{
  position:absolute;opacity:0;width:0;height:0;
}
.educfr-auth .edu-a-level-box{
  display:block;padding:16px;border-radius:16px;
  border:1.5px solid #dbe6f6;background:#fff;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.educfr-auth .edu-a-level-box strong{
  display:block;font-size:15.5px;font-weight:750;color:var(--edu-navy);
}
.educfr-auth .edu-a-level-box small{
  display:block;margin-top:4px;font-size:12.5px;line-height:1.4;color:var(--edu-muted);
}
.educfr-auth .edu-a-level:hover .edu-a-level-box{border-color:#b7d1f2}
.educfr-auth .edu-a-level input:checked + .edu-a-level-box{
  border-color:var(--edu-blue);background:rgba(33,87,232,.05);
  box-shadow:0 0 0 3px rgba(33,87,232,.12);
}
.educfr-auth .edu-a-level input:focus-visible + .edu-a-level-box{
  outline:3px solid rgba(33,87,232,.42);outline-offset:2px;
}

/* ---------------------------------------------------------
   Bouton principal
   --------------------------------------------------------- */
.educfr-auth .edu-a-submit{
  width:100%;min-height:56px;margin-top:22px;
  border:0;border-radius:16px;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-size:16.5px;font-weight:700;color:#fff;
  background:linear-gradient(135deg,var(--edu-blue) 0%,var(--edu-blue-2) 100%);
  box-shadow:0 18px 36px -16px rgba(33,87,232,.6);
  transition:transform .2s ease, box-shadow .24s ease;
}
.educfr-auth .edu-a-submit:hover{transform:translateY(-2px);box-shadow:0 24px 44px -18px rgba(33,87,232,.66)}
.educfr-auth .edu-a-submit::after{
  content:"";width:18px;height:8px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 8'%3E%3Cpath d='M0 4h15M12 1l3 3-3 3' stroke='%23000' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 8'%3E%3Cpath d='M0 4h15M12 1l3 3-3 3' stroke='%23000' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition:transform .22s ease;
}
.educfr-auth .edu-a-submit:hover::after{transform:translateX(4px)}

.educfr-auth .edu-a-secondary{
  width:100%;min-height:52px;margin-top:12px;
  border:1.5px solid #dbe6f6;border-radius:16px;background:#fff;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:15.5px;font-weight:700;color:var(--edu-navy);
}
.educfr-auth .edu-a-secondary:hover{border-color:#b7d1f2}

/* ---------------------------------------------------------
   Étapes de l'inscription
   --------------------------------------------------------- */
.educfr-auth .edu-a-steps{
  display:flex;align-items:center;gap:10px;margin-bottom:22px;
}
.educfr-auth .edu-a-step{
  display:flex;align-items:center;gap:9px;
  font-size:13px;font-weight:700;color:#9db0cb;
}
.educfr-auth .edu-a-step i{
  width:26px;height:26px;border-radius:50%;display:grid;place-items:center;
  font-style:normal;font-size:12px;font-weight:800;
  background:#eef4fd;color:#9db0cb;
  transition:background .25s ease, color .25s ease;
}
.educfr-auth .edu-a-step.is-on{color:var(--edu-navy)}
.educfr-auth .edu-a-step.is-on i{
  background:linear-gradient(135deg,var(--edu-blue),var(--edu-blue-2));color:#fff;
}
.educfr-auth .edu-a-step.is-done i{background:rgba(34,187,231,.18);color:var(--edu-blue-2)}
.educfr-auth .edu-a-steps hr{
  flex:1;height:2px;border:0;border-radius:2px;background:#e6edf7;margin:0;
}

.educfr-auth .edu-a-pane[hidden]{display:none}

/* Amélioration progressive : sans JavaScript, les deux étapes s'affichent
   à la suite et le formulaire reste envoyable. Le découpage en étapes et
   ses boutons de navigation n'apparaissent que si le script a pu prendre
   la main. */
.educfr-auth .edu-a-steps{display:none}
.educfr-auth [data-next],
.educfr-auth [data-back]{display:none}
.educfr-auth.edu-a-js .edu-a-steps{display:flex}
.educfr-auth.edu-a-js [data-next],
.educfr-auth.edu-a-js [data-back]{display:inline-flex}

.educfr-auth .edu-a-alt{
  margin-top:24px;text-align:center;font-size:14.5px;color:var(--edu-muted);
}
.educfr-auth .edu-a-alt a{color:var(--edu-blue);font-weight:700}

/* =========================================================
   PIED DE PAGE
   ========================================================= */
.educfr-auth .edu-a-foot{
  position:relative;z-index:2;flex:0 0 auto;
  width:min(1180px, calc(100% - 64px));margin:0 auto;
  padding:22px 0 28px;border-top:1px solid var(--edu-line);
  display:flex;align-items:center;gap:14px 26px;flex-wrap:wrap;
  font-size:13.5px;color:#8fa1bc;
}
.educfr-auth .edu-a-foot nav{display:flex;gap:20px;flex-wrap:wrap;margin-left:auto}
.educfr-auth .edu-a-foot a:hover{color:var(--edu-blue)}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:720px){
  .educfr-auth .edu-a-top{width:calc(100% - 40px);padding-top:22px}
  .educfr-auth .edu-a-logo img{width:114px}
  .educfr-auth .edu-a-back span{display:none}
  .educfr-auth .edu-a-main{padding:26px 20px 36px}
  .educfr-auth .edu-a-card{padding:26px 22px 26px;border-radius:24px}
  .educfr-auth .edu-a-row{grid-template-columns:1fr}
  .educfr-auth .edu-a-levels{grid-template-columns:1fr}
  .educfr-auth .edu-a-foot{width:calc(100% - 40px);padding-bottom:24px}
  .educfr-auth .edu-a-foot nav{margin-left:0;gap:16px}
  .educfr-auth .edu-a-step span{display:none}
  .educfr-auth .edu-a-steps{gap:8px}
}

@media (max-width:400px){
  .educfr-auth .edu-a-card{padding:22px 18px 22px}
}

/* =========================================================
   MOUVEMENT RÉDUIT
   ========================================================= */
@media (prefers-reduced-motion:reduce){
  .educfr-auth *,
  .educfr-auth *::before,
  .educfr-auth *::after{transition:none !important;animation:none !important}
  .educfr-auth .edu-a-submit:hover{transform:none}
}

/* Integration WordPress Educfr */
.edu-a-feedback{margin:0 0 18px;padding:13px 15px;border-radius:12px;font-size:13px;line-height:1.55;font-weight:600}
.edu-a-feedback.is-error{background:#fff1f0;border:1px solid #ffd3cf;color:#9a2f28}
.edu-a-feedback.is-success{background:#eefaf5;border:1px solid #cbeee0;color:#17644b}
.edu-a-feedback p{margin:0}.edu-a-feedback p+p{margin-top:5px}

/* Mot de passe oublié — même langage que Connexion / Inscription */
.educfr-auth .edu-a-recovery-card{padding-top:30px}
.educfr-auth .edu-a-recovery-back{
  display:inline-flex;align-items:center;gap:8px;margin:0 0 22px;
  color:var(--edu-blue);font-size:13.5px;font-weight:700;
}
.educfr-auth .edu-a-recovery-back::before{
  content:"";width:15px;height:8px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 8'%3E%3Cpath d='M18 4H3M6 1 3 4l3 3' stroke='%23000' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 8'%3E%3Cpath d='M18 4H3M6 1 3 4l3 3' stroke='%23000' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition:transform .2s ease;
}
.educfr-auth .edu-a-recovery-back:hover::before{transform:translateX(-3px)}
.educfr-auth .edu-a-recovery-help{
  margin:14px 0 0;padding:12px 14px;border-radius:13px;
  background:#f4f8fe;border:1px solid #e3edf9;
  color:var(--edu-muted);font-size:12.5px;line-height:1.55;
}
