/* Navigation plus lisible sur mobiles, sans toucher au portail historique. */
.top nav{min-width:0}
.top nav a{white-space:nowrap}
@media(max-width:1060px){
  .top{padding:12px 15px;column-gap:10px;row-gap:10px}
  .top nav{order:3;width:100%;display:flex;gap:6px;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin}
  .top nav a{flex:0 0 auto;padding:8px 11px;font-size:12px;border-radius:9px}
  .top .brand{min-width:0;font-size:13px;gap:7px}
  .top .brand span:not(.brand-logo){white-space:normal}
  .top .brand-image{max-width:125px;height:38px}
  .top .profile{margin-left:auto;gap:6px}
  .top .profile button{padding:8px 10px;font-size:12px}
}
@media(max-width:410px){
  .top .brand-image{max-width:105px}
  .top .brand{font-size:12px}
  .top .profile>span{display:none}
}

/* Compte utilisateur : nom cliquable sur écran ordinateur et mobile */
.top .profile .profile-link{text-decoration:none;color:#123d7a;font-weight:750;display:block;text-align:right;max-width:180px;overflow:hidden;text-overflow:ellipsis}
.top .profile .profile-link:hover{text-decoration:underline}
.profile-panels{display:grid;grid-template-columns:minmax(250px,1fr) minmax(280px,1.2fr);gap:18px;align-items:start}
.profile-data{display:grid;gap:16px}
.profile-data small{display:block;color:#72839d;margin-bottom:3px}
.profile-data strong{overflow-wrap:anywhere}
.alert.success{background:#e9f8ed;color:#246238;padding:12px;border-radius:8px;margin-bottom:12px}
.auth-help{margin-top:20px;text-align:right}
@media(max-width:800px){.profile-panels{grid-template-columns:1fr}}
@media(max-width:600px){.top .profile .profile-link{font-size:12px;max-width:115px}.top .profile .profile-link small{display:none}}
