/* Animations d'entree des pages compte (Claude, T43) */
@keyframes pageIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.auth-card { animation: pageIn .6s cubic-bezier(.2,.8,.2,1) both; }
.account-user, .account-user ~ * { animation: pageIn .6s cubic-bezier(.2,.8,.2,1) both; }
.account-user ~ *:nth-child(2) { animation-delay: .06s; }
.account-user ~ *:nth-child(3) { animation-delay: .12s; }
.account-user ~ *:nth-child(4) { animation-delay: .18s; }
.account-user ~ *:nth-child(n+5) { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .auth-card, .account-user, .account-user ~ * { animation: none; } }

/* Pages de connexion facon Google (Claude, T44) */
.auth-wrap, .login-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card, .login-card { width: 100%; max-width: 450px; background: var(--bg-2, #111); border: 1px solid var(--border, #2a2a2a); border-radius: 28px; padding: 48px 40px 36px; box-shadow: none; text-align: left; }
.login-card { animation: pageIn .6s cubic-bezier(.2,.8,.2,1) both; }
.auth-card .logo, .login-card .logo { font-size: 1.35rem; margin: 0 0 24px; text-align: left; }
.auth-card h2, .login-card h2 { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 2rem; line-height: 1.2; margin: 0 0 8px; color: var(--text); }
.auth-card .auth-sub, .login-card .login-sub { margin: 0 0 32px; color: var(--text-muted); font-size: 1rem; }
.g-field { position: relative; margin-bottom: 24px; }
.g-field input { width: 100%; height: 56px; padding: 0 15px; background: transparent; border: 1px solid var(--border-strong, #3a3a3a); border-radius: 6px; color: var(--text); font-size: 1rem; outline: none; transition: border-color .2s; }
.g-field input:focus { border: 2px solid var(--gold); padding: 0 14px; }
.g-field label { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); padding: 0 5px; background: var(--bg-2, #111); color: var(--text-muted); font-size: 1rem; pointer-events: none; transition: top .18s cubic-bezier(.4,0,.2,1), font-size .18s, color .18s; }
.g-field input:focus + label, .g-field input:not(:placeholder-shown) + label { top: 0; font-size: .75rem; }
.g-field input:focus + label { color: var(--gold); }
.g-show { display: flex; align-items: center; gap: 12px; margin: -6px 0 0; font-size: .92rem; color: var(--text); cursor: pointer; text-transform: none; letter-spacing: 0; }
.g-show input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
.g-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.g-actions a { color: var(--gold); font-weight: 600; font-size: .95rem; }
.g-btn { background: var(--gold); color: #0a0a0a; border: 0; border-radius: 20px; padding: 10px 26px; font-weight: 600; font-size: .95rem; cursor: pointer; transition: filter .2s, box-shadow .2s; }
.g-btn:hover { filter: brightness(1.08); box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.g-extra { margin-top: 28px; font-size: .85rem; color: var(--text-muted); line-height: 1.5; }
.g-extra a { color: var(--gold); }
.g-foot { width: 100%; max-width: 450px; display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 0 10px; font-size: .8rem; color: var(--text-dim); }
.g-foot a { color: var(--text-dim); margin-left: 16px; }
.g-foot > a:first-child { margin-left: 0; }
.g-foot a:hover { color: var(--text); }
@media (max-width: 520px) {
  .auth-card, .login-card { border: 0; background: transparent; padding: 24px 6px; }
  .g-field label { background: var(--bg, #0a0a0a); }
}

/* Connexion en 2 etapes (Claude, T45) */
.g-step[hidden] { display: none; }
.g-step { animation: gSlide .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes gSlide { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.auth-card .g-step h2, .login-card .g-step h2 { margin-bottom: 8px; }
.g-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 8px 0 30px; padding: 5px 10px 5px 14px; border: 1px solid var(--border-strong, #3a3a3a); border-radius: 18px; background: transparent; color: var(--text); font-size: .9rem; cursor: pointer; }
.g-chip b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-chip:hover { background: rgba(255,255,255,.05); }
.g-chev { color: var(--text-muted); font-size: .8rem; }
.g-error { display: none; margin: -16px 0 14px 4px; color: #f28b82; font-size: .82rem; }
.g-field.invalid input { border: 2px solid #f28b82; padding: 0 14px; }
.g-field.invalid label { color: #f28b82; }
.g-field.invalid + .g-error { display: block; }
@media (prefers-reduced-motion: reduce) { .g-step { animation: none; } }

/* Paiement Stripe integre (Claude, T51) */
#embedded-checkout { margin-top: 1.2rem; border-radius: 16px; overflow: hidden; min-height: 420px; animation: pageIn .5s ease both; }

/* Audit responsive Codex : saisie et navigation accessibles. */
.auth-wrap,.login-wrap{min-height:100dvh;overflow-x:clip}.auth-card,.login-card{min-width:0}.g-step[hidden]{display:none!important}.g-chip{min-height:44px}.g-chip b{min-width:0}.g-field label{text-transform:none;letter-spacing:0;font-weight:400;margin:0}.g-foot{flex-wrap:wrap;line-height:1.8}.g-foot>span{display:flex;flex-wrap:wrap;gap:8px 16px;justify-content:flex-end;min-width:0}.g-foot>span a{margin-left:0}.g-btn{min-height:44px}.g-show{min-height:44px}.auth-card input:not([type=checkbox]),.login-card input:not([type=checkbox]){font-size:16px}.review-card[hidden]{display:none!important}.review-card .consent input[type=checkbox]{appearance:auto;flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:3px 0 0;padding:0;accent-color:var(--gold)}.review-card .consent{min-height:44px}.stars button{width:44px;height:44px;padding:5px;flex:0 0 44px;display:grid;place-items:center;border-radius:6px}.stars button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.stars svg{max-width:32px;max-height:32px}.end-actions .btn{min-height:44px}.end-card{min-width:0;overflow-wrap:anywhere}.end-actions form{max-width:100%}.pin-box{min-width:0;overflow-wrap:anywhere}.pin-box strong,.ride-pin{font-variant-numeric:tabular-nums}.ride-pin{color:var(--gold);letter-spacing:.2em;font-size:1.4rem}.pin-box form{width:100%;margin-bottom:0}.pin-box .btn{white-space:normal}.auth-card .form-row>*{min-width:0}
@media(max-width:600px){.auth-wrap,.login-wrap{justify-content:flex-start;padding:32px 20px;min-height:100dvh}.auth-card,.login-card{padding:20px 0;max-width:450px}.g-actions{gap:16px;margin-top:28px}.g-foot{padding:0}.g-foot>span{justify-content:flex-start}.end-actions form{flex:1 1 150px}.end-actions form .btn{width:100%;white-space:normal;text-align:center}.pin-box strong{font-size:2rem;letter-spacing:.25em}.review-card textarea{font-size:16px;padding:12px;min-height:110px}.account-user{max-width:100%;gap:.6rem}.account-user>div:not(.avatar){flex:1 1 150px}.account-nav .container{justify-content:flex-start}.account-user a{min-height:44px;display:inline-flex;align-items:center}.account-intro{align-items:flex-start}.stars{gap:0}}
@media(max-height:600px){.auth-wrap,.login-wrap{justify-content:flex-start;padding-top:20px}}
@media(prefers-reduced-motion:reduce){.login-card,.end-card,#embedded-checkout{animation:none}}
