/* ============================================================
   auth-redesign.css — habillage SPLIT-SCREEN des pages d'entrée
   (login index.html · activation bienvenue.html · découverte inscription.html).
   Colonne gauche : marque + personnage (Luciano/Julia) sur fond crème.
   Colonne droite : barre (Retour / J'ai déjà un compte) + formulaire.
   Conserve les classes internes (.login-form .field .btn-primary .banner …)
   → le markup des formulaires et tout le JS (IDs) restent inchangés.
   À charger APRÈS style.css.
   ============================================================ */

:root{
  --auth-beige:#EBDDC8; --auth-beige-2:#F7EFE2;
  --auth-paper:#FFFFFF; --auth-ink:#4A3326; --auth-muted:#9A8B79;
  --auth-coral:#6E4A2E; --auth-coral-d:#5A3E2B; --auth-line:#E6D8C4;
}

/* — Conteneur : 2 colonnes — */
.login-page{
  margin:0; min-height:100vh; min-height:100dvh;
  background:var(--auth-paper);
  font-family:'Manrope', system-ui, sans-serif; color:var(--auth-ink);
  display:grid; grid-template-columns:minmax(0,44%) 1fr;
  align-items:stretch; justify-items:stretch; padding:0;
}
.login-page *{ box-sizing:border-box; }

/* — Colonne gauche : marque + personnage — */
.auth-aside{
  position:relative; overflow:hidden;
  background:linear-gradient(165deg,var(--auth-beige-2) 0%,var(--auth-beige) 100%);
  display:flex; flex-direction:column;
}
.auth-brand{ display:inline-flex; align-items:center; gap:12px; padding:30px 34px; z-index:2; text-decoration:none; color:inherit; cursor:pointer; align-self:flex-start; }
.auth-brand img{ width:46px; height:auto; }
.auth-brand span{ font-size:23px; font-weight:800; color:#5A3A26; letter-spacing:-.3px; }
.auth-brand sup{ font-size:.5em; font-weight:700; vertical-align:super; }
.auth-hero{
  position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  height:90%; width:auto; max-width:98%; object-fit:contain; object-position:bottom;
}

/* — Colonne droite : barre + formulaire — */
.auth-main{ position:relative; display:flex; flex-direction:column; min-height:100vh; min-height:100dvh; overflow-y:auto; }
.auth-topbar{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:26px 40px; }
.auth-back{ display:inline-flex; align-items:center; gap:9px; color:var(--auth-muted); font-weight:600; font-size:15px; text-decoration:none; }
.auth-back:hover{ color:var(--auth-ink); }
.auth-back svg{ width:18px; height:18px; }
.auth-alt{
  display:inline-flex; align-items:center; justify-content:center; gap:11px;
  border:none; border-radius:999px; padding:11px 11px 11px 22px;
  background:var(--auth-coral-d); color:#fff; font-weight:700; font-size:14px;
  text-decoration:none; transition:background .15s ease;
}
.auth-alt::after{
  content:"\2192"; flex:0 0 auto;
  width:28px; height:28px; border-radius:50%;
  background:#E08A52; color:#fff;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:15px; font-weight:700; line-height:1;
  transition:background .15s ease;
}
.auth-alt:hover{ background:#48301F; }
.auth-alt:hover::after{ background:#E9975F; }

.auth-content{ flex:1 0 auto; display:flex; flex-direction:column; justify-content:center; align-items:center; padding:20px 40px 40px; }
.auth-help{ text-align:center; margin-top:28px; font-size:14px; color:var(--auth-ink); font-weight:700; }
.auth-help a{ display:block; color:var(--auth-coral); font-weight:700; text-decoration:none; margin-top:4px; }
.auth-help a:hover{ text-decoration:underline; }

/* — « Carte » = simple conteneur de formulaire (plus de boîte blanche) — */
.login-card{ width:100%; max-width:430px; background:transparent; border:0; box-shadow:none; padding:0; margin:auto 0; font-family:'Manrope', system-ui, sans-serif; }

/* Marque centrale : masquée en desktop (elle est dans l'aside), ré-affichée en mobile */
.login-logo{ display:none; text-align:center; margin-bottom:14px; }
.login-logo img{ width:178px; height:auto; }

.auth-title{ font-size:29px; font-weight:800; text-align:center; letter-spacing:-.5px; margin:0 0 6px; color:#5A3A26; }
.login-subtitle{ text-align:center; color:var(--auth-muted); font-size:15px; font-weight:600; line-height:1.45; margin:0 0 26px; }
.login-subtitle strong{ color:#6B5B4D; font-weight:800; }

/* — Formulaires — */
.login-form{ display:flex; flex-direction:column; gap:15px; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.field{ display:flex; flex-direction:column; }
.field label{ font-size:12px; font-weight:700; color:#8B7B6B; margin-bottom:6px; }
.field input,
.field select{
  width:100%; border:1.5px solid var(--auth-line); background:#fff; border-radius:12px;
  padding:13px 15px; font-family:'Manrope', system-ui, sans-serif; font-size:15px;
  color:var(--auth-ink); outline:none; transition:border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus{ border-color:#9FB0CE; box-shadow:0 0 0 3px rgba(159,176,206,.15); }
.field input::placeholder{ color:#C2B2A0; }

/* — Boutons pilule pleine largeur (brun + flèche dans un cercle, façon CTA) — */
.btn-primary{
  position:relative;
  background:var(--auth-coral-d); color:#fff; border:none; border-radius:999px; padding:14px 52px;
  font-family:'Manrope', system-ui, sans-serif; font-weight:700; font-size:15px;
  cursor:pointer; width:100%; box-shadow:none;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s ease, transform .1s ease;
}
.btn-primary::after{
  content:"\2192"; position:absolute; right:7px; top:50%; transform:translateY(-50%);
  width:30px; height:30px; border-radius:50%;
  background:#E08A52; color:#fff;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:15px; font-weight:700; line-height:1;
  transition:background .15s ease;
}
.btn-primary:hover{ background:#48301F; box-shadow:none; }
.btn-primary:hover::after{ background:#E9975F; }
.btn-primary:active{ transform:scale(.99); }
.btn-primary:disabled{ background:#C9B7A6; cursor:not-allowed; }
.btn-primary:disabled::after{ background:#E0C9B4; color:#fff; }
.btn-secondary{
  background:#fff; color:var(--auth-coral); border:1px solid var(--auth-line); border-radius:999px;
  padding:12px 20px; font-family:'Manrope', system-ui, sans-serif; font-weight:700; font-size:14px;
  cursor:pointer; width:100%; transition:background .15s ease, border-color .15s ease;
}
.btn-secondary:hover{ background:#FCF4ED; border-color:var(--auth-coral); }

/* — Pieds de carte (liens) — */
.login-footer{ text-align:center; font-size:13px; color:var(--auth-muted); margin-top:18px; line-height:1.6; }
.login-footer a{ color:var(--auth-coral); text-decoration:none; font-weight:700; }
.login-footer a:hover{ text-decoration:underline; }

/* — Sous-formulaire « mot de passe oublié » — */
.reset-form{ margin-top:20px; display:flex; flex-direction:column; gap:14px; border-top:1px solid #F0E9DD; padding-top:20px; }

/* — Messages & bannières — */
.error-msg{ color:#C0392B; font-size:13px; font-weight:600; }
.banner{ border-radius:13px; padding:12px 14px; font-size:13px; line-height:1.5; display:flex; align-items:center; gap:9px; }
.banner-info{ background:#EAF0FA; color:#1C3A6B; }
.banner-success{ background:#E7F3EA; color:#2E7D32; }
.banner-warning{ background:#FBF1DD; color:#8A5A12; }
.banner-error{ background:#FDECEA; color:#C0392B; }

/* — Note de confidentialité (présente dans le markup existant) — */
.confidential-note{ display:flex; align-items:center; justify-content:center; gap:7px; margin-top:22px; font-size:12px; color:var(--auth-muted); font-weight:600; }

/* — Widget « aide » flottant (décoratif → mailto) — */
.auth-chat{
  align-self:center; margin:4px 0 18px; cursor:pointer;
  transform:translateX(-300px);
  display:inline-flex; align-items:center; gap:11px;
  background:#fff; border:1px solid var(--auth-line); border-radius:999px;
  padding:8px 20px 8px 8px; box-shadow:0 12px 32px rgba(74,51,38,.16);
  text-decoration:none; color:var(--auth-ink);
}
.auth-chat img{ width:44px; height:44px; border-radius:50%; object-fit:cover; }
.auth-chat b{ font-size:15px; font-weight:800; display:block; line-height:1.15; }
.auth-chat .on{ font-size:12px; color:#2E9E5B; font-weight:700; display:inline-flex; align-items:center; gap:5px; }
.auth-chat .on::before{ content:""; width:7px; height:7px; border-radius:50%; background:#2ECC71; display:inline-block; }
.auth-chat.hide{ display:none; }
.auth-chat{ cursor:pointer; }

/* — Panneau de chat Julia (accueil) — */
.julia-panel{
  position:fixed; left:372px; right:auto; bottom:22px; z-index:60;
  width:370px; max-width:calc(100vw - 32px); height:540px; max-height:calc(100vh - 44px);
  background:#fff; border:1px solid var(--auth-line); border-radius:22px;
  box-shadow:0 22px 60px rgba(74,51,38,.24);
  display:none; flex-direction:column; overflow:hidden;
  font-family:'Manrope', system-ui, sans-serif;
}
.julia-panel.open{ display:flex; }
.jp-head{ display:flex; align-items:center; gap:11px; padding:13px 15px; background:#F6E7DA; border-bottom:1px solid var(--auth-line); }
.jp-head img{ width:42px; height:42px; border-radius:50%; object-fit:cover; }
.jp-id b{ display:block; font-size:15px; font-weight:800; color:var(--auth-ink); line-height:1.15; }
.jp-on{ font-size:12px; color:#2E9E5B; font-weight:700; display:inline-flex; align-items:center; gap:5px; }
.jp-on::before{ content:""; width:7px; height:7px; border-radius:50%; background:#2ECC71; display:inline-block; }
.jp-close{ margin-left:auto; border:none; background:transparent; font-size:24px; line-height:1; color:#9A8270; cursor:pointer; padding:2px 8px; border-radius:9px; }
.jp-close:hover{ background:rgba(0,0,0,.06); color:var(--auth-ink); }
.jp-msgs{ flex:1; overflow-y:auto; padding:15px; display:flex; flex-direction:column; gap:9px; background:#FCF8F3; }
.jp-msg{ max-width:84%; padding:10px 13px; border-radius:15px; font-size:14px; line-height:1.46; word-wrap:break-word; }
.jp-assistant{ align-self:flex-start; background:#fff; border:1px solid var(--auth-line); color:var(--auth-ink); border-bottom-left-radius:5px; }
.jp-user{ align-self:flex-end; background:var(--auth-coral-d); color:#fff; border-bottom-right-radius:5px; }
.jp-typing{ color:#9A8270; letter-spacing:3px; font-size:18px; }
.jp-caret{ display:inline-block; width:7px; height:1em; background:#C0A98F; margin-left:1px; vertical-align:-2px; animation:jp-blink .9s steps(1) infinite; }
@keyframes jp-blink{ 50%{ opacity:0; } }
.jp-form{ display:flex; gap:8px; padding:11px; border-top:1px solid var(--auth-line); background:#fff; }
.jp-input{ flex:1; min-width:0; border:1.5px solid var(--auth-line); border-radius:999px; padding:11px 16px; font-family:inherit; font-size:14px; color:var(--auth-ink); outline:none; }
.jp-input:focus{ border-color:#9FB0CE; box-shadow:0 0 0 3px rgba(159,176,206,.15); }
.jp-send{ flex:0 0 auto; width:44px; height:44px; border:none; border-radius:50%; background:#E08A52; color:#fff; font-size:19px; font-weight:700; cursor:pointer; transition:background .15s ease; }
.jp-send:hover{ background:#E9975F; }
.jp-send:disabled{ background:#E0C9B4; cursor:not-allowed; }
@media (max-width:560px){
  .julia-panel{ left:12px; right:12px; bottom:12px; width:auto; height:72vh; }
}

/* — Spinner (bienvenue.html) — */
.spinner{ width:34px; height:34px; border:3px solid #EFE6DA; border-top-color:var(--auth-coral); border-radius:50%; animation:auth-spin .8s linear infinite; }
@keyframes auth-spin{ to{ transform:rotate(360deg); } }

/* — Mobile : on masque le panneau visuel, on ré-affiche le logo au-dessus du form — */
@media (max-width:900px){
  .login-page{ grid-template-columns:1fr; }
  .auth-aside{ display:none; }
  .login-logo{ display:block; }
  .auth-topbar{ padding:18px 20px; }
  .auth-content{ padding:8px 20px 36px; }
  .auth-chat{ display:none; }
}
@media (max-width:480px){
  .grid-2{ grid-template-columns:1fr; }
  .auth-title{ font-size:25px; }
}

/* — Footer légal (commun aux 3 pages d'entrée ; même rendu que la page d'accueil) — */
.site-footer{ margin-top:auto; padding:14px 20px 18px; display:flex; gap:8px 14px; align-items:center; justify-content:center; flex-wrap:wrap; font-size:11.5px; color:#9d8a76; font-weight:500; }
.site-footer a{ color:#9d8a76; text-decoration:none; }
.site-footer a:hover{ color:#5A3A26; }
.site-footer .dot{ opacity:.5; }
.site-footer .fc-s{ display:none; }
@media (max-width:600px){
  .site-footer .fc-copy{ display:none; }
  .site-footer .fc-l{ display:none; }
  .site-footer .fc-s{ display:inline; }
}
