/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Layout principal ── */
.stag-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* ── Hero section ── */
.stag-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #7F77DD;
    margin-bottom: .5rem;
}
.stag-title {
    font-size: clamp(26px, 5vw, 38px);
    font-weight: 500;
    margin-bottom: .6rem;
    line-height: 1.15;
}
.stag-desc {
    font-size: 15px;
    color: #e9e3e3;
    max-width: 520px;
    line-height: 1.65;
    margin-bottom: 2rem;
}

/* ── Filtres ── */
.stag-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.filter-btn {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #555;
    text-decoration: none;
    transition: background .18s, border-color .18s, color .18s;
    cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
    background: #EEEDFE;
    border-color: #AFA9EC;
    color: #3C3489;
}

/* ── Grille de cartes ── */
.stag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* ── Carte stagiaire ── */
.stag-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .24s cubic-bezier(.34,1.56,.64,1), border-color .18s, box-shadow .18s;
    animation: fadeUp .4s var(--card-delay, 0ms) both;
    will-change: transform;
}
.stag-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: var(--accent-border);
    box-shadow: 0 8px 24px rgba(0,0,0,.07);
}
.stag-card:focus-visible {
    outline: 3px solid var(--accent-bar);
    outline-offset: 2px;
}

/* Haut de carte coloré */
.card-top {
    height: 88px;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.card-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--accent-bar);
    color: #fff;
    font-size: 19px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
}
.card-accent-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-bar);
}

/* Corps de carte */
.card-body {
    padding: 14px 16px 10px;
    flex: 1;
}
.card-name {
    font-size: 15px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 2px;
}
.card-role {
    font-size: 12px;
    color: #4d2424;
    margin-bottom: 10px;
}
.card-quote {
    font-size: 12.5px;
    color: #000000;
    line-height: 1.6;
    font-style: italic;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-quote::before {
    content: '\201C';
    font-size: 18px;
    color: #AFA9EC;
    font-style: normal;
    line-height: 0;
    vertical-align: -5px;
    margin-right: 2px;
}
.card-tag {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* Pied de carte */
.card-footer {
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
}
.card-arrow {
    font-size: 15px;
    color: #bbb;
    transition: color .15s, transform .2s;
}
.stag-card:hover .card-arrow {
    color: var(--accent-bar);
    transform: translateX(4px);
}

/* État vide */
.stag-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #aaa;
    font-size: 14px;
}
.stag-empty i {
    font-size: 36px;
    display: block;
    margin-bottom: .75rem;
    color: #ccc;
}

/* ── Vue profil ── */
.profil-wrap {
    max-width: 680px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #888;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color .15s;
}
.back-link:hover { color: #1D9E75; }

.profil-header {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    margin-bottom: 16px;
}
.profil-band {
    height: 72px;
    background: var(--accent-bg);
    position: relative;
}
.profil-band::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent-bar);
}
.profil-header-body {
    padding: 0 20px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-top: -28px;
}
.profil-avatar {
    width: 58px;
    min-width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
}
.profil-info { padding-top: 32px; flex: 1; }
.profil-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.profil-name { font-size: 20px; font-weight: 500; color: #1a1a1a; }
.profil-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}
.profil-role { font-size: 13px; color: #888; margin-bottom: 8px; }
.profil-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #999;
}
.profil-meta i { font-size: 14px; vertical-align: -2px; margin-right: 3px; }

.profil-section {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8e8e8;
    padding: 18px 20px;
    margin-bottom: 14px;
}
.profil-section-title {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #888;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.profil-section-title i { font-size: 15px; }

.profil-quote {
    font-size: 13.5px;
    color: #555;
    line-height: 1.75;
    font-style: italic;
    border-left: 3px solid var(--accent-bar, #ccc);
    padding-left: 14px;
    margin: 0;
}

.profil-missions {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.profil-missions li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #333;
    line-height: 1.5;
}
.mission-dot {
    width: 8px;
    min-width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 5px;
}

.profil-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.skill-pill {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f4f4f4;
    color: #444;
    border: 1px solid #e4e4e4;
}

/* ── Footer ── */
.footer-text {
    margin: 0;
    color: white;
}
.footer-text a {
    color: rgba(255,255,255,.75);
    text-decoration: underline;
}

/* ── Animation ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .stag-card { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .stag-main { padding: 1.5rem 1rem 3rem; }
    .stag-grid  { grid-template-columns: 1fr 1fr; gap: 12px; }
    .profil-header-body { flex-direction: column; align-items: flex-start; }
    .profil-meta { gap: 8px; }
}
@media (max-width: 380px) {
    .stag-grid { grid-template-columns: 1fr; }
}
