.profile-page{min-height:calc(100vh - 160px);padding:158px 20px 70px;background:radial-gradient(circle at 75% 5%,rgba(27,140,239,.14),transparent 34%),linear-gradient(180deg,#04172a,#061d32 62%,#041627)}
.profile-shell{width:min(1080px,100%);margin:0 auto}.profile-hero{text-align:center;margin-bottom:25px}.profile-kicker{font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:#59bdff}.profile-hero h1{margin:7px 0 10px;font-size:34px;line-height:1.15;color:#fff}.profile-hero p{max-width:760px;margin:0 auto;color:#afc7d9;line-height:1.65;font-size:14px}
.auth-panel,.profile-panel{max-width:620px;margin:0 auto;background:linear-gradient(180deg,rgba(10,39,64,.96),rgba(6,29,49,.98));border:1px solid #245878;border-radius:18px;box-shadow:0 20px 55px rgba(0,0,0,.28);padding:26px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#071c30;border:1px solid #234b68;border-radius:12px;padding:4px;margin-bottom:24px}.auth-tabs button{border:0;background:transparent;color:#9bb8cb;padding:12px;border-radius:9px;font:700 13px Inter;cursor:pointer}.auth-tabs button.active{background:#137fd1;color:#fff;box-shadow:0 8px 24px rgba(19,127,209,.25)}
.auth-panel h2,.profile-panel h2{margin:0 0 7px;color:#fff;font-size:23px}.auth-panel>p,.profile-panel>p{margin:0 0 22px;color:#9fb8ca;font-size:13px;line-height:1.55}.auth-field{display:grid;gap:7px;margin:14px 0}.auth-field label{font-size:12px;font-weight:750;color:#c7dbea}.auth-field input{width:100%;height:48px;border:1px solid #2b5b7b;border-radius:10px;background:#061a2d;color:#fff;padding:0 13px;font:500 14px Inter;outline:none}.auth-field input:focus{border-color:#2fa4f7;box-shadow:0 0 0 3px rgba(47,164,247,.13)}
.auth-primary,.auth-google,.profile-action{width:100%;min-height:48px;border-radius:10px;border:0;font:800 14px Inter;cursor:pointer}.auth-primary{background:linear-gradient(135deg,#168ee5,#0871c0);color:#fff;box-shadow:0 10px 28px rgba(12,119,199,.27)}.auth-google{background:#fff;color:#182433;border:1px solid #d6dde5;display:flex;align-items:center;justify-content:center;gap:10px}.auth-google img{width:21px;height:21px}.auth-separator{display:flex;align-items:center;gap:13px;color:#7895aa;font-size:12px;margin:18px 0}.auth-separator:before,.auth-separator:after{content:"";height:1px;background:#244b67;flex:1}.auth-error,.auth-notice{border-radius:10px;padding:11px 12px;font-size:12px;line-height:1.45;margin:12px 0}.auth-error{background:rgba(212,61,78,.14);border:1px solid rgba(255,99,116,.32);color:#ffabb5}.auth-notice{background:rgba(29,148,224,.12);border:1px solid rgba(73,181,247,.28);color:#b8e3ff}
.profile-user{display:flex;align-items:center;gap:15px;padding:16px;background:#071d31;border:1px solid #234d69;border-radius:13px;margin:18px 0}.profile-avatar{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#1699ee,#0c5d9d);font-size:21px;font-weight:800;color:#fff}.profile-user strong{display:block;color:#fff;font-size:16px}.profile-user span{display:block;color:#8eaabe;font-size:12px;margin-top:4px}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.profile-stat{background:#071d31;border:1px solid #234d69;border-radius:12px;padding:15px}.profile-stat span{display:block;color:#88a6ba;font-size:11px}.profile-stat strong{display:block;margin-top:5px;color:#fff;font-size:16px}.profile-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.profile-action{width:auto;flex:1;min-width:170px;padding:0 18px;background:#0d70b9;color:#fff}.profile-action.secondary{background:#071c2f;border:1px solid #315d7c;color:#d5e7f4}.profile-action.danger{background:#351924;border:1px solid #763044;color:#ffbcc7}.profile-sync{font-size:12px;color:#8faec2;line-height:1.55;margin-top:26px}
@media(max-width:700px){.profile-page{padding:112px 12px 52px}.profile-hero h1{font-size:28px}.auth-panel,.profile-panel{padding:18px 14px}.profile-grid{grid-template-columns:1fr}.profile-actions{display:grid}.profile-action{width:100%;min-width:0}}


/* V4.0.16 — correction position Connexion / Profil sous le menu */
@media (min-width:701px) and (max-width:1180px){.profile-page{padding-top:142px}}

/* V4.0.16 — espace explicite sous les boutons du profil */
.profile-panel .profile-actions + .profile-sync{
  display:block!important;
  margin:34px 0 0!important;
}


/* V4.0.16 — bloc d'installation de l'application CarCheck */
.profile-app-install{margin:28px 0 4px;padding-top:24px;border-top:1px solid rgba(65,125,164,.34)}
.profile-app-install h3{margin:0 0 15px;color:#fff;font-size:17px;line-height:1.25;font-weight:800}
.profile-app-install-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px;background:linear-gradient(135deg,rgba(7,31,52,.96),rgba(7,42,70,.92));border:1px solid #285a7a;border-radius:14px}
.profile-app-identity{display:flex;align-items:center;gap:14px;min-width:0}
.profile-app-identity img{width:66px;height:66px;flex:0 0 66px;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(0,120,213,.25))}
.profile-app-identity strong{display:block;color:#fff;font-size:15px;font-weight:800}
.profile-app-identity span{display:block;margin-top:4px;color:#8faec2;font-size:11px;line-height:1.4}
.profile-install-button{flex:0 0 auto;min-height:46px;padding:0 19px;border:1px solid #48b8ff;border-radius:11px;background:linear-gradient(135deg,#168ee5,#0871c0);box-shadow:0 9px 24px rgba(8,113,192,.27);color:#fff;font:800 13px Inter;cursor:pointer;white-space:nowrap;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.profile-install-button:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(8,113,192,.34);border-color:#7dceff}
.profile-install-button:disabled,.profile-install-button.installed{cursor:default;opacity:.72;transform:none;box-shadow:none}
.profile-install-status{min-height:0;margin:9px 2px 0;color:#91b4cb;font-size:11px;line-height:1.45}
.profile-install-status:empty{display:none}
@media(max-width:600px){.profile-app-install-row{align-items:stretch;flex-direction:column}.profile-install-button{width:100%}.profile-app-identity img{width:60px;height:60px;flex-basis:60px}}
