.aspm-directory {
  --aspm-primary:#021E3D;
  --aspm-accent:#D23D33;
  --aspm-text:#142337;
  --aspm-muted:#617084;
  width:100%; max-width:1440px; margin:30px auto; color:var(--aspm-text); font:inherit;
}
.aspm-directory *, .aspm-directory *::before, .aspm-directory *::after { box-sizing:border-box; }
.aspm-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}
.aspm-heading h2{margin:0 0 8px;color:var(--aspm-primary);font-size:clamp(1.7rem,3vw,2.55rem);line-height:1.15}
.aspm-heading p{margin:0;color:var(--aspm-muted)}
.aspm-count{padding:10px 16px;border-radius:999px;background:var(--aspm-primary);color:#fff;font-weight:800;white-space:nowrap}
.aspm-filters{display:grid;grid-template-columns:minmax(220px,1.45fr) minmax(180px,1fr) auto auto;gap:12px;margin-bottom:34px;padding:16px;border:1px solid #dbe3eb;border-radius:16px;background:#f3f6f9}
.aspm-filters input,.aspm-filters select{width:100%;min-height:44px;border:1px solid #c9d4df;border-radius:10px;background:#fff;color:var(--aspm-text);font:inherit}
.aspm-filters input{padding:8px 12px 8px 42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24' fill='none' stroke='%23617084' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:13px center}
.aspm-filters select{padding:8px 38px 8px 12px}
.aspm-filters button,.aspm-filters__reset{display:inline-flex;min-height:44px;align-items:center;justify-content:center;padding:9px 16px;border-radius:10px;font:inherit;font-weight:800;text-decoration:none!important;white-space:nowrap}
.aspm-filters button{border:0;background:var(--aspm-accent);color:#fff;cursor:pointer}.aspm-filters__reset{border:1px solid #c9d4df;background:#fff;color:var(--aspm-primary)!important}

/* Une grande carte paysage par ligne : rendu final validé. */
.aspm-grid{display:grid;grid-template-columns:1fr;gap:32px;justify-items:center}
.aspm-card{
  --aspm-seniority-color:#fff;
  position:relative; isolation:isolate; width:min(100%,1100px); min-height:690px; overflow:hidden;
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  padding:54px 58px 44px; border:1px solid rgba(74,128,170,.66); border-radius:30px;
  background:linear-gradient(145deg,#03152c 0%,#041d39 49%,#07355c 100%);
  box-shadow:0 18px 42px rgba(2,30,61,.18); color:#fff; text-align:center;
}
/* Vagues identiques à l'esprit du bandeau du site. */
.aspm-card::before,.aspm-card::after{content:"";position:absolute;z-index:-1;left:-14%;width:130%;pointer-events:none}
.aspm-card::before{bottom:-118px;height:330px;border-radius:50% 50% 0 0 / 34% 43% 0 0;background:rgba(4,45,82,.82);transform:rotate(3deg)}
.aspm-card::after{bottom:-178px;height:360px;border-radius:46% 54% 0 0 / 34% 31% 0 0;background:rgba(18,77,121,.58);transform:rotate(-5deg)}
.aspm-card__glow{position:absolute;z-index:0;top:-125px;left:50%;width:620px;height:420px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle,rgba(72,151,210,.16),transparent 70%);pointer-events:none}
.aspm-card>*{position:relative;z-index:1}
.aspm-card__logo{position:absolute;z-index:2;top:28px;right:32px;width:76px;height:76px;object-fit:contain;opacity:.17;filter:saturate(.7)}
.aspm-card__logo-fallback{position:absolute;z-index:2;top:30px;right:34px;display:grid;width:64px;height:64px;place-items:center;border:1px solid rgba(255,255,255,.12);border-radius:50%;color:rgba(255,255,255,.24);font-weight:900}

.aspm-card__user-icon{display:grid;width:180px;height:180px;margin:0 auto 24px;place-items:center;border:4px solid currentColor;border-radius:50%;background:rgba(1,14,29,.28);box-shadow:inset 0 0 0 6px rgba(255,255,255,.025),0 12px 28px rgba(0,0,0,.18);color:var(--aspm-seniority-color)}
.aspm-card__user-icon svg{width:126px;height:126px;fill:currentColor;filter:drop-shadow(0 6px 14px rgba(0,0,0,.18))}
.aspm-card__name,.aspm-card h3{margin:0 0 24px;color:var(--aspm-seniority-color);font-size:clamp(2.8rem,5.4vw,4.25rem);font-weight:900;line-height:1;text-shadow:0 4px 12px rgba(0,0,0,.26);word-break:break-word}

/* Bandeau rôle comme la maquette : sombre, large, texte seul dans la couleur Base44. */
.aspm-card__role{--aspm-role:#475569;display:inline-flex;min-width:320px;min-height:68px;max-width:86%;align-items:center;justify-content:center;padding:12px 34px;border:1px solid rgba(255,255,255,.22);border-radius:8px;background:linear-gradient(180deg,rgba(28,42,64,.98),rgba(5,16,31,.99));box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 6px 16px rgba(0,0,0,.28);color:var(--aspm-role);font-size:clamp(1.45rem,2.4vw,2rem);font-weight:900;line-height:1.1}
.aspm-card--cadet,.aspm-card--first_officer,.aspm-card--captain{--aspm-seniority-color:#d2d7de}.aspm-card--legend{--aspm-seniority-color:#f5c13a}

.aspm-card__seniority{display:flex;width:100%;align-items:center;justify-content:center;margin:30px 0 0}
.aspm-epaulette{position:relative;display:inline-flex;width:min(100%,650px);height:86px;align-items:center;justify-content:flex-start;gap:13px;padding:10px 30px 10px 44px;border:1px solid #667385;border-radius:7px;background:linear-gradient(180deg,#283348 0%,#0a1425 49%,#1c293d 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 7px 18px rgba(0,0,0,.45);white-space:nowrap}
.aspm-epaulette::before{content:"";position:absolute;top:0;bottom:0;left:0;width:23px;border-radius:6px 0 0 6px;background:linear-gradient(90deg,#4e5866 0%,#f4f5f6 48%,#697381 100%);box-shadow:inset -1px 0 1px rgba(0,0,0,.58),1px 0 2px rgba(0,0,0,.5)}
.aspm-epaulette i{display:block;flex:0 0 22px;width:22px;height:50px;border-radius:3px;background:linear-gradient(90deg,#737d89 0%,#f4f5f6 42%,#c4cad1 72%,#707a86 100%);box-shadow:inset 1px 0 0 rgba(255,255,255,.72),1px 0 2px rgba(0,0,0,.55)}
.aspm-epaulette__rank{margin-left:auto;color:#fff;font-size:clamp(1.5rem,2.6vw,2.1rem);font-weight:900;line-height:1}
.aspm-epaulette__duration{min-width:110px;margin-left:auto;color:#d2d7de;font-size:clamp(1.2rem,2vw,1.65rem);font-weight:900;line-height:1;text-align:right}
.aspm-epaulette--legend{border-color:#77818f;background:linear-gradient(180deg,#253148 0%,#081326 49%,#18263c 100%)}
.aspm-epaulette--legend::before{background:linear-gradient(90deg,#895b00 0%,#ffd23b 48%,#9e6900 100%)}
.aspm-epaulette--legend i{background:linear-gradient(90deg,#a66e00 0%,#ffdc4c 40%,#efb719 72%,#8c5b00 100%);box-shadow:inset 1px 0 0 rgba(255,246,161,.75),1px 0 2px rgba(0,0,0,.52)}
.aspm-epaulette--legend .aspm-epaulette__duration{color:#f5c13a}

/* Réseaux sans bandeau : 9 par ligne, seconde ligne automatique. */
.aspm-card__socials{display:grid;grid-template-columns:repeat(9,68px);justify-content:center;align-items:center;gap:20px 18px;width:100%;margin-top:42px;padding:0;border:0;background:transparent;box-shadow:none;color:var(--aspm-seniority-color)}
.aspm-card__socials a{display:grid;width:68px;height:68px;place-items:center;border:0;background:transparent;color:inherit;text-decoration:none!important;transition:opacity .2s ease,transform .2s ease}
.aspm-card__socials a:hover,.aspm-card__socials a:focus-visible{opacity:.78;transform:translateY(-3px)}
.aspm-card__socials svg{display:block;width:54px;height:54px;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.aspm-card__socials .fill{fill:currentColor;stroke:none}.aspm-card__socials .aspm-icon-cutout{fill:#07182e;stroke:none}.aspm-social-custom-icon{display:block;width:54px;height:54px;background:currentColor;-webkit-mask:var(--aspm-social-mask) center/contain no-repeat;mask:var(--aspm-social-mask) center/contain no-repeat}

.aspm-empty{padding:55px 20px;border:1px solid #dbe3eb;border-radius:16px;background:#f3f6f9;text-align:center}.aspm-empty h3{color:var(--aspm-primary)}
.aspm-pagination{margin-top:30px}.aspm-pagination .page-numbers{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0;padding:0;list-style:none}.aspm-pagination a,.aspm-pagination span{display:flex;min-width:40px;min-height:40px;align-items:center;justify-content:center;padding:7px 12px;border:1px solid #ccd7e1;border-radius:9px;color:var(--aspm-primary);text-decoration:none}.aspm-pagination .current{border-color:var(--aspm-primary);background:var(--aspm-primary);color:#fff}
.aspm-directory .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;margin:-1px!important;padding:0!important;clip:rect(0,0,0,0)!important;border:0!important;white-space:nowrap!important}

@media(max-width:900px){
  .aspm-filters{grid-template-columns:1fr 1fr}.aspm-card{width:100%;min-height:610px;padding:46px 28px 36px}.aspm-card__user-icon{width:145px;height:145px}.aspm-card__user-icon svg{width:101px;height:101px}.aspm-card__role{min-width:260px}.aspm-epaulette{width:min(100%,560px);height:72px}.aspm-card__socials{grid-template-columns:repeat(9,minmax(0,1fr));gap:16px 5px}.aspm-card__socials a{width:48px;height:48px}.aspm-card__socials svg,.aspm-social-custom-icon{width:40px;height:40px}
}
@media(max-width:640px){
  .aspm-directory{margin:20px auto}.aspm-heading{align-items:flex-start;flex-direction:column;gap:14px}.aspm-filters{grid-template-columns:1fr;padding:13px}.aspm-card{min-height:520px;padding:38px 14px 30px;border-radius:22px}.aspm-card__logo{width:46px;height:46px;top:15px;right:16px}.aspm-card__user-icon{width:112px;height:112px;margin-bottom:16px}.aspm-card__user-icon svg{width:78px;height:78px}.aspm-card__name,.aspm-card h3{font-size:2.25rem;margin-bottom:16px}.aspm-card__role{min-width:195px;min-height:48px;padding:8px 18px;font-size:1.05rem}.aspm-card__seniority{margin-top:20px}.aspm-epaulette{width:min(100%,390px);height:52px;gap:6px;padding:6px 12px 6px 26px}.aspm-epaulette::before{width:13px}.aspm-epaulette i{flex-basis:12px;width:12px;height:32px}.aspm-epaulette__rank{font-size:.95rem}.aspm-epaulette__duration{min-width:58px;font-size:.84rem}.aspm-card__socials{grid-template-columns:repeat(5,54px);gap:13px 10px;margin-top:26px}.aspm-card__socials a{width:54px;height:54px}.aspm-card__socials svg,.aspm-social-custom-icon{width:42px;height:42px}
}
