/* Inscription tropicale : les valeurs du titre et du panneau reprennent celles de Connexion. */
@font-face{
  font-family:"Fredoka Login Local";
  font-style:normal;
  font-weight:600;
  font-display:swap;
  src:url("./fonts/Fredoka-SemiBold-Latin.woff2") format("woff2");
}
.auth-page-container-register{
  max-width:none;
  min-height:0;
  margin:0;
  padding:0;
  background:#17154c;
}

.auth-shell-register{
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(440px,36vw,560px);
  width:100%;
  max-width:none;
  min-height:0;
  margin:0;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:#17154c;
  box-shadow:none;
}
.auth-shell-register::before,
.auth-shell-register::after{content:none;display:none}
.auth-shell-register .auth-register-background{
  position:absolute;
  inset:0;
  z-index:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 50%;
}
.auth-shell-register .auth-visual{
  position:relative;
  z-index:1;
  min-width:0;
  min-height:0;
  height:auto;
  padding:clamp(26px,3.5vw,56px);
  overflow:visible;
  background:transparent;
  pointer-events:none;
}
.auth-shell-register .auth-visual::before{
  content:none;
  display:none;
}
.auth-shell-register .auth-visual-copy{
  position:relative;
  z-index:1;
  max-width:470px;
  text-shadow:0 3px 14px rgba(4,15,33,.6);
}
.auth-shell-register .auth-visual-kicker{
  margin:0 0 10px;
  color:#fff0ad;
  font-size:clamp(10px,1vw,12px);
  letter-spacing:.18em;
}
.auth-shell-register .auth-visual-copy h2{
  max-width:470px;
  margin:0;
  color:#fff;
  font-size:clamp(29px,3.4vw,48px);
  line-height:1.08;
  white-space:normal;
  text-shadow:0 3px 18px rgba(4,15,33,.66);
}

.auth-shell-register .auth-panel{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:center;
  min-width:0;
  min-height:0;
  margin:0;
  padding:clamp(16px,2.3vw,32px);
  overflow:visible;
  background:transparent;
  color:#302756;
}
.auth-shell-register .auth-panel-inner{
  width:100%;
  max-width:390px;
  margin:auto;
  padding:29px 24px 27px;
  border:3px solid #a468df;
  border-radius:28px;
  background:rgba(255,255,255,.955);
  box-shadow:0 18px 48px rgba(25,13,79,.27),inset 0 1px 0 rgba(255,255,255,.95);
  -webkit-backdrop-filter:blur(10px) saturate(1.12);
  backdrop-filter:blur(10px) saturate(1.12);
  color:#302756;
}
.auth-shell-register .auth-panel-top{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:8px 12px;
  margin:0 0 10px;
}
.auth-shell-register .auth-register-inline-title{
  position:static;
  z-index:auto;
  display:block;
  width:auto;
  height:auto;
  margin:0;
  padding:0;
  overflow:visible;
  clip:auto;
  white-space:normal;
  border:0;
  color:#a468df;
  background:none;
  -webkit-text-fill-color:#a468df;
  font-family:"Fredoka Login Local",sans-serif;
  font-size:clamp(22px,2.4vw,26px);
  font-weight:600;
  line-height:1.05;
  letter-spacing:0;
  -webkit-text-stroke:0;
  text-shadow:0 1px 0 #613399;
  translate:none;
  transform:none;
  animation:none;
  text-align:left;
}
.auth-shell-register .auth-panel-badge-inline{
  flex:0 0 auto;
  margin:0;
  padding:6px 9px;
  border:1px solid rgba(48,39,86,.72);
  border-radius:999px;
  background:#302756;
  color:#fff1a6;
  font-size:8px;
  font-weight:900;
  letter-spacing:.09em;
}
.auth-shell-register .auth-panel .muted{
  max-width:440px;
  margin:0;
  color:#50496a;
  font-size:12px;
  font-weight:600;
  line-height:1.45;
}
.auth-shell-register .auth-panel .form{
  display:grid;
  gap:12px;
  margin-top:28px;
}
.auth-shell-register .auth-panel .form > label{
  display:block;
  min-width:0;
  color:#302756;
  font-size:12px;
  font-weight:800;
  line-height:1.3;
}
.auth-shell-register .auth-panel .form input:not([type="checkbox"]){
  display:block;
  width:100%;
  min-width:0;
  min-height:48px;
  height:48px;
  margin-top:5px;
  padding:10px 14px;
  border:1px solid #e2dcf0;
  border-radius:15px;
  background:#fbfaff;
  color:#302756;
  box-shadow:inset 0 1px 2px rgba(43,30,91,.035),0 3px 9px rgba(71,45,145,.055);
  font-size:15px;
}
.auth-shell-register .auth-panel .form input[type="date"]{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-inline-size:0!important;
  max-inline-size:100%!important;
  -webkit-appearance:auto;
  appearance:auto;
}
.auth-shell-register .auth-panel .form input:focus-visible{
  outline:3px solid #9065e8;
  outline-offset:2px;
  border-color:#9065e8;
  box-shadow:0 0 0 3px rgba(144,101,232,.16);
}
.auth-shell-register .auth-password-control{
  position:relative;
  display:block;
  width:100%;
  margin-top:5px;
}
.auth-shell-register .auth-password-control input{
  margin-top:0!important;
  padding-right:56px!important;
}
.auth-shell-register .auth-password-toggle{
  position:absolute;
  top:50%;
  right:9px;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  padding:0;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#3c356a;
  font-size:16px;
  line-height:1;
  transform:translateY(-50%);
  cursor:pointer;
}
.auth-shell-register .auth-password-toggle:hover,
.auth-shell-register .auth-password-toggle:focus-visible{
  outline:2px solid #6e53bc;
  outline-offset:0;
  background:#eeeafb;
}
.auth-shell-register .captcha-fieldset{
  min-width:0;
  margin:20px 0 0;
  padding:9px 10px;
  border:1px solid rgba(112,91,193,.2);
  border-radius:16px;
  background:rgba(247,245,255,.78);
  color:#27234f;
}
.auth-shell-register .captcha-title{color:#27234f}
.auth-shell-register .captcha-help{color:#625b7a}
.auth-shell-register .captcha-image-row{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px;
  margin:6px 0;
}
.auth-shell-register .captcha-image{
  flex:0 1 auto;
  width:min(100%,190px);
  max-width:190px;
  height:auto;
  margin:0;
}
.auth-shell-register .captcha-refresh{
  flex:0 1 100px;
  align-self:center;
  width:auto!important;
  min-height:40px!important;
  margin:0!important;
}
.auth-shell-register .captcha-fieldset label{color:#312b5b!important}
.auth-shell-register .captcha-fieldset .captcha-answer-label input{
  min-height:40px!important;
  height:40px!important;
  margin:4px 0 0;
  border-color:#d8d1ec;
  background:#fff;
}
.auth-shell-register .auth-panel .button.primary.full{
  width:100%;
  min-height:54px;
  margin-top:7px;
  border:0;
  border-radius:16px;
  background:linear-gradient(100deg,#7130e9 0%,#c621e4 100%);
  color:#fff;
  box-shadow:0 5px 0 #6525bb,0 9px 18px rgba(104,34,190,.2);
  font-size:14px;
  font-weight:900;
  transition:transform 200ms ease,filter 200ms ease,box-shadow 200ms ease;
}
.auth-shell-register .auth-panel .button.primary.full:hover{
  transform:translateY(-1px);
  filter:brightness(1.045);
  box-shadow:0 6px 0 #6525bb,0 12px 21px rgba(104,34,190,.24);
}
.auth-shell-register .auth-panel .button.primary.full:active{
  transform:translateY(1px) scale(.995);
  box-shadow:0 3px 0 #6525bb,0 7px 14px rgba(104,34,190,.2);
}
.auth-shell-register .auth-panel .form-foot{
  margin:15px 0 0;
  color:#827b9d;
  font-size:13px;
  text-align:center;
}
.auth-shell-register .auth-panel .form-foot a{
  color:#7138c4;
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Sous 700 px, la scène précède le formulaire sans le masquer. */
@media(max-width:700px){
  .auth-shell-register{
    display:flex;
    flex-direction:column;
  }
  .auth-shell-register .auth-register-background{
    inset:0 0 auto;
    height:clamp(280px,46vw,390px);
    object-position:41% 57%;
  }
  .auth-shell-register .auth-visual{
    flex:0 0 auto;
    width:100%;
    height:clamp(280px,46vw,390px);
    min-height:0;
    padding:27px 30px;
  }
  .auth-shell-register .auth-panel{
    width:100%;
    padding:22px 24px 28px;
    background:#17154c;
  }
  .auth-shell-register .auth-panel-inner{
    width:100%;
    max-width:620px;
    margin:0 auto;
  }
}

/* iPad portrait : l’image reste à gauche et la carte tient à droite. */
@media(min-width:701px) and (max-width:920px) and (orientation:portrait){
  body.page-register{
    display:flex;
    flex-direction:column;
    min-height:100dvh;
  }
  body.page-register .auth-page-container-register{
    display:flex;
    flex:1 0 auto;
    flex-direction:column;
  }
  .auth-shell-register{
    flex:1 0 auto;
    grid-template-columns:minmax(0,1fr) minmax(390px,52vw);
  }
  .auth-shell-register .auth-register-background{
    object-position:45% 50%;
  }
  .auth-shell-register .auth-visual{
    padding:28px 19px;
  }
  .auth-shell-register .auth-visual-copy h2{
    font-size:clamp(25px,3vw,32px);
  }
  .auth-shell-register .auth-panel{padding:15px 14px}
  .auth-shell-register .auth-panel-inner{padding:20px 18px}
  .auth-shell-register .auth-panel .form{gap:9px;margin-top:26px}
  .auth-shell-register .auth-panel .form input:not([type="checkbox"]){
    min-height:44px;
    height:44px;
  }
  .auth-shell-register .captcha-fieldset{padding:7px 8px}
  .auth-shell-register .captcha-image{width:min(100%,150px);max-width:150px}
  .auth-shell-register .captcha-refresh{flex-basis:85px;font-size:9px!important}
  .auth-shell-register .auth-panel .form-foot{margin-top:12px}
  .auth-shell-register .auth-panel .button.primary.full{min-height:50px}
  body.page-register .home-footer{
    flex:0 0 auto;
    flex-direction:row;
    flex-wrap:nowrap;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding-inline:16px;
    white-space:nowrap;
  }
  body.page-register .home-footer-social{margin-left:auto}
}
@media(min-width:701px) and (max-width:920px) and (min-height:1100px) and (orientation:portrait){
  .auth-shell-register .auth-panel-inner{padding-block:29px}
  .auth-shell-register .auth-panel .form{gap:13px}
}

/* Téléphone paysage : deux colonnes, mot de passe en rangée, défilement vertical libre. */
@media(min-width:701px) and (max-width:920px) and (orientation:landscape){
  .auth-shell-register{
    display:grid;
    grid-template-columns:minmax(0,.98fr) minmax(0,1.02fr);
  }
  .auth-shell-register .auth-register-background{
    inset:0;
    width:100%;
    height:100%;
    object-position:46% 50%;
  }
  .auth-shell-register .auth-visual{
    height:auto;
    padding:24px 16px;
  }
  .auth-shell-register .auth-visual-copy h2{font-size:29px}
  .auth-shell-register .auth-register-inline-title{font-size:20px}
  .auth-shell-register .auth-panel{
    padding:13px 12px;
    background:transparent;
  }
  .auth-shell-register .auth-panel-inner{
    max-width:390px;
    padding:16px;
  }
  .auth-shell-register .auth-panel .form{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px 9px;
    margin-top:25px;
  }
  .auth-shell-register .auth-panel .form > label:nth-of-type(1),
  .auth-shell-register .auth-panel .form > label:nth-of-type(2),
  .auth-shell-register .auth-panel .form > label:nth-of-type(5),
  .auth-shell-register .auth-panel .form > .captcha-fieldset,
  .auth-shell-register .auth-panel .form > .button.primary.full,
  .auth-shell-register .auth-panel .form > .captcha-unavailable{
    grid-column:1/-1;
  }
  .auth-shell-register .auth-panel .form > label:nth-of-type(3),
  .auth-shell-register .auth-panel .form > label:nth-of-type(4){
    display:grid;
    grid-template-rows:29px 42px;
  }
  .auth-shell-register .auth-panel .form > label:nth-of-type(3) .auth-password-control,
  .auth-shell-register .auth-panel .form > label:nth-of-type(4) .auth-password-control{
    margin-top:0;
  }
  .auth-shell-register .auth-panel .form input:not([type="checkbox"]){
    min-height:42px;
    height:42px;
  }
  .auth-shell-register .captcha-fieldset{padding:7px 8px}
  .auth-shell-register .captcha-image{width:min(100%,160px);max-width:160px}
  .auth-shell-register .captcha-refresh{flex-basis:90px;font-size:9px!important}
  .auth-shell-register .auth-panel .form-foot{margin-top:10px}
}

@media(max-width:600px) and (orientation:portrait){
  .auth-shell-register{
    border:0;
    border-radius:0;
    overflow:hidden;
  }
  .auth-shell-register .auth-panel-inner{
    background:rgba(255,255,255,.975);
  }
  .auth-shell-register .auth-register-background{
    inset:0 0 auto;
    width:100%;
    height:clamp(250px,76vw,330px);
    object-position:36% 55%;
    border-radius:0;
    clip-path:none;
  }
  .auth-shell-register .auth-visual{
    width:100%;
    height:clamp(250px,76vw,330px);
    padding:20px 17px;
    border-radius:0;
  }
  .auth-shell-register .auth-visual-copy h2{font-size:clamp(27px,7vw,34px)}
  .auth-shell-register .auth-panel{padding:0 12px 25px}
  .auth-shell-register .auth-panel-inner{padding:22px 17px 23px}
  .auth-shell-register .auth-panel-top{gap:8px}
  .auth-shell-register .auth-panel .form{gap:11px}
  .auth-shell-register .auth-panel .button.primary.full{min-height:52px;margin-top:6px}
}
@media(max-width:360px){
  .auth-shell-register .auth-panel-badge-inline{font-size:8px}
  .auth-shell-register .captcha-image-row{flex-direction:column}
  .auth-shell-register .captcha-refresh{flex:0 0 auto;width:min(100%,216px)!important}
}
@media(max-width:380px) and (orientation:portrait){
  .auth-shell-register .auth-panel .button.primary.full{min-height:54px}
}
@media(max-width:900px) and (max-height:500px) and (orientation:landscape){
  .auth-shell-register .auth-register-inline-title{font-size:20px}
  .auth-shell-register .auth-panel .button.primary.full{min-height:44px;margin-top:3px}
}

/* Navigation invitée visible sans bande horizontale sur la seule page Inscription. */
@media(max-width:920px) and (orientation:landscape){
  body.page-register .topbar{gap:8px;padding-inline:12px}
  body.page-register .brand{gap:7px;font-size:17px;letter-spacing:.045em}
  body.page-register .desktop-nav{
    flex:1 1 auto;
    min-width:0;
    gap:clamp(4px,.7vw,7px);
    overflow:visible;
    padding:0;
  }
  body.page-register .desktop-nav a{font-size:11px;white-space:nowrap}
  body.page-register .top-stats.is-guest{
    width:auto;
    flex:0 0 auto;
    gap:6px;
    margin-left:0;
  }
  body.page-register .top-stats.is-guest .guest-register-button,
  body.page-register .top-stats.is-guest .guest-login-button{
    display:inline-flex;
    flex:0 0 auto;
    width:auto;
    padding:7px 8px;
    font-size:10px;
    white-space:nowrap;
  }
}
@media(max-width:800px), (min-width:801px) and (max-width:920px) and (orientation:portrait){
  body.page-register .topbar{
    height:auto;
    min-height:68px;
    flex-wrap:wrap;
    gap:10px 12px;
    padding:12px 16px;
  }
  body.page-register .top-stats.is-guest{
    width:auto;
    flex:0 0 auto;
    gap:6px;
    margin-left:auto;
  }
  body.page-register .top-stats.is-guest .guest-register-button,
  body.page-register .top-stats.is-guest .guest-login-button{
    display:inline-flex;
    flex:0 0 auto;
    width:auto;
    padding:8px 9px;
    font-size:10px;
    white-space:nowrap;
  }
  body.page-register .desktop-nav{
    order:3;
    flex:1 0 100%;
    min-width:0;
    display:flex;
    flex-wrap:wrap;
    gap:5px 8px;
    overflow:visible;
    padding:0;
  }
  body.page-register .desktop-nav a{
    font-size:11px;
    line-height:1.1;
    white-space:nowrap;
  }
}
@media(max-width:520px){
  body.page-register .topbar{gap:9px 10px;padding:12px 14px}
  body.page-register .desktop-nav{gap:6px 9px}
}
@media(prefers-reduced-motion:reduce){
  .auth-shell-register .auth-panel .button.primary.full{transition:none}
}