/* =========================================
   LA PORTE DU SOURIRE
   BLACK GLASS CARD
   WHITE BACKGROUND
   NO EFFECT ON LOGO
   ========================================= */

:root{
  --bg:#ffffff;

  /* Black glass */
  --glass: rgba(0,0,0,.55);
  --glass2: rgba(0,0,0,.35);

  --stroke: rgba(255,255,255,.18);
  --shadow: 0 22px 50px rgba(0,0,0,.35);

  --text:rgb(0, 0, 0);
  --muted: rgba(0,0,0,.6);
  --accent:rgb(0, 0, 0);

  --radius:22px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:var(--font);
  background:#ffffff; /* BACKGROUND TOTAL BLANC */
  color:var(--text);
}

/* ===============================
   CONTAINER
   =============================== */
.container{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
}

/* ===============================
   CARD (BLACK GLASS)
   =============================== */
.card{
  width:min(480px,100%);
  background: linear-gradient(180deg,var(--glass),var(--glass2));
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding:26px 22px 22px;
}

/* ===============================
   TOP BAR
   =============================== */
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
}

.lang a{
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.2);
  background:#ffffff;
  color:#000;
  font-size:13px;
  font-weight:600;
}

/* ===============================
   LOGO SECTION (NO EFFECT)
   =============================== */
.brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
}

.logoWrap{
  width:86px;height:86px;
  border-radius: 26px;
  display:grid;place-items:center;
  position:relative;
  overflow:hidden;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.55);
  box-shadow: 0 16px 30px rgba(0,0,0,.10);
}
.logoWrap::before{
  content:"";
  position:absolute; inset:-70%;
  background: conic-gradient(from 120deg, white);
  animation: spin 3.4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg);} }

.logoWrap img{
  width:100%;height:100%;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.12));
  position:relative;
  z-index:1;
  animation: float 3.6s ease-in-out infinite;
}

/* ===============================
   TITRES
   =============================== */
.brand h1{
  margin:0;
  font-size:18px;
  font-weight:800;
}

.brand p{
  margin:0;
  font-size:13px;
  color:var(--muted);
}

/* ===============================
   FORM
   =============================== */
.form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.field label{
  font-size:12px;
  margin-bottom:6px;
  color:rgba(255,255,255,.85);
}

.input{
  width:100%;
  padding:13px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.95);
  color:#000;
  font-size:14px;
}

.input:focus{
  outline:none;
  box-shadow:0 0 0 4px rgba(0,0,0,.2);
}

/* ===============================
   BUTTON (BLACK)
   =============================== */
.btn{
  width:100%;
  padding:14px;
  border-radius:16px;
  border:none;
  background:#000000;
  color:#ffffff;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 16px 35px rgba(0,0,0,.45);
}

.btn:hover{opacity:.92}
.btn:active{transform:scale(.98)}

.linkRow{
  display:flex;
  justify-content:space-between;
  font-size:13px;
}

.linkRow a{
  color:#ffffff;
  text-decoration:underline;
}

/* ===============================
   ALERTS
   =============================== */
.alert{
  background:rgba(255,255,255,.9);
  color:#000;
  border:1px solid rgba(0,0,0,.2);
  padding:12px;
  border-radius:14px;
  font-size:13px;
}

.ok{
  background:rgba(255,255,255,.9);
  color:#000;
  border:1px solid rgba(0,0,0,.25);
  padding:12px;
  border-radius:14px;
  font-size:13px;
}

/* ===============================
   FOOTER
   =============================== */
.footerNote{
  margin-top:14px;
  text-align:center;
  font-size:12px;
  color:rgba(255,255,255,.7);
}

/* ===============================
   POPUP (validation / rejet)
   Glassmorphism like maintenance
   =============================== */
.pdsPopupOverlay{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index:9999;
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease;
}
.pdsPopupOverlay.show{
  opacity:1;
  pointer-events:auto;
}
.pdsPopupCard{
  width:min(560px, 100%);
  border-radius:26px;
  border:1px solid rgba(0,0,0,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.58));
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  display:flex;
  gap:14px;
  padding:16px;
  transform: translateY(10px) scale(.98);
  transition: transform .20s ease;
}
.pdsPopupOverlay.show .pdsPopupCard{ transform: translateY(0) scale(1); }

.pdsPopupIcon{
  width:48px;
  height:48px;
  border-radius:18px;
  display:grid;
  place-items:center;
  font-size:22px;
  background:rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.10);
  flex:0 0 auto;
}

.pdsPopupBody{ flex:1; min-width:0; }
.pdsPopupTitle{
  font-weight:1000;
  font-size:18px;
  letter-spacing:-.2px;
  color:#000;
}
.pdsPopupMsg{
  margin-top:6px;
  color:rgba(0,0,0,.70);
  font-size:14px;
  line-height:1.35;
  word-break: break-word;
}
.pdsPopupActions{ margin-top:14px; display:flex; justify-content:flex-end; }
.pdsPopupBtn{
  border:1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.75);
  color:#000;
  padding:10px 16px;
  border-radius:16px;
  font-weight:1000;
  cursor:pointer;
}
.pdsPopupBtn:active{ transform: scale(.99); }

.pdsPopup-success .pdsPopupIcon{ background: rgba(16,179,91,.12); border-color: rgba(16,179,91,.20); }
.pdsPopup-error .pdsPopupIcon{ background: rgba(213,0,0,.12); border-color: rgba(213,0,0,.20); }
.pdsPopup-info .pdsPopupIcon{ background: rgba(0,0,0,.08); }

@media(max-width:520px){
  .pdsPopupCard{ padding:14px; border-radius:22px; }
  .pdsPopupTitle{ font-size:16px; }
  .pdsPopupMsg{ font-size:13.5px; }
}
