/*
 * Espace abonné : pastille de profil (barre du haut), menu latéral et page
 * « Mon profil ». Couleur de marque : #003366 (bleu ALLED).
 */
:root {
    --esp-marque: #003366;
    --esp-marque-clair: #e6eef6;
    --esp-texte: #1f2937;
    --esp-texte-doux: #6b7280;
    --esp-bordure: #e5e7eb;
    --esp-fond: #f8fafc;
}

/* ---- Barre du haut : pastille de profil ---- */
.esp-profil-pastille {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .25rem .8rem .25rem .25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff !important;
    text-transform: none;
    text-decoration: none;
    line-height: 1.15;
}
.esp-profil-pastille:hover,
.esp-profil-pastille:focus { background: rgba(255, 255, 255, .2); }
.esp-profil-pastille .esp-nom { font-size: .9rem; font-weight: 600; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esp-profil-pastille .esp-role { font-size: .72rem; color: #c9dcef; }

.esp-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #c9dcef;
    color: var(--esp-marque);
    font-weight: 700;
    font-size: .85rem;
}
.esp-avatar-lg { width: 88px; height: 88px; font-size: 1.6rem; }

.esp-profil-menu {
    min-width: 250px;
    padding: .4rem 0;
    border: 1px solid var(--esp-bordure);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    text-transform: none;
    font-weight: 400; /* la barre du thème met tout en gras */
}
.esp-profil-menu .esp-entete { padding: .5rem 1rem .7rem; border-bottom: 1px solid var(--esp-bordure); margin-bottom: .3rem; }
.esp-profil-menu .esp-entete strong { display: block; color: var(--esp-texte); font-weight: 700; }
.esp-profil-menu .esp-entete small { display: block; color: var(--esp-texte-doux); font-weight: 400; word-break: break-all; }
.esp-profil-menu .dropdown-item { display: flex; align-items: center; gap: .6rem; padding: .5rem 1rem; color: var(--esp-texte); font-size: .92rem; }
.esp-profil-menu .dropdown-item i { width: 18px; text-align: center; color: var(--esp-marque); }
.esp-profil-menu .dropdown-item:hover { background: var(--esp-marque-clair); }
.esp-profil-menu .esp-deconnexion,
.esp-profil-menu .esp-deconnexion i { color: #b42318; }

/* ---- Menu latéral ---- */
.esp-menu {
    background: #fff;
    border: 1px solid var(--esp-bordure);
    border-radius: 12px;
    padding: .75rem .6rem;
    margin-bottom: 1.5rem;
}
.esp-menu-bouton { width: 100%; margin-bottom: .75rem; background: var(--esp-marque); color: #fff; border-radius: 10px; }
.esp-menu-bouton:hover { color: #fff; background: #002244; }

.esp-abonnement {
    border: 1px solid var(--esp-bordure);
    background: var(--esp-fond);
    border-radius: 10px;
    padding: .6rem .75rem;
    margin-bottom: .6rem;
    font-size: .85rem;
}
.esp-abonnement .esp-etiquette { color: var(--esp-texte-doux); font-size: .78rem; }
.esp-badge { display: inline-block; margin-top: .25rem; padding: .1rem .5rem; border-radius: 6px; font-size: .78rem; font-weight: 600; }
.esp-badge-actif { background: #dcfce7; color: #166534; }
.esp-badge-inactif { background: #fee2e2; color: #991b1b; }

.esp-rubrique {
    margin: .9rem .6rem .3rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b; /* contraste 4,8:1 sur blanc (#94a3b8 : 2,6:1) */
}
.esp-lien {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .5rem .65rem;
    border-radius: 8px;
    color: var(--esp-texte) !important;
    font-size: .95rem;
    text-decoration: none;
}
.esp-lien i.esp-icone { width: 20px; text-align: center; color: var(--esp-marque); font-size: 1rem; }
.esp-lien:hover { background: var(--esp-marque-clair); }
.esp-lien.active { background: var(--esp-marque); color: #fff !important; font-weight: 600; }
.esp-lien.active i { color: #fff; }
.esp-lien .esp-chevron { margin-left: auto; font-size: .75rem; color: var(--esp-texte-doux); transition: transform .2s; }
.esp-lien[aria-expanded="true"] .esp-chevron { transform: rotate(180deg); }
.esp-compteur { margin-left: auto; background: var(--esp-marque-clair); color: var(--esp-marque); border-radius: 999px; padding: 0 .5rem; font-size: .75rem; font-weight: 700; }
.esp-lien.active .esp-compteur { background: rgba(255, 255, 255, .2); color: #fff; }
.esp-sous-menu { margin: .15rem 0 .3rem 1.6rem; padding-left: .6rem; border-left: 2px solid var(--esp-bordure); }
.esp-sous-menu .esp-lien { font-size: .88rem; padding: .35rem .55rem; }
.esp-sous-menu .esp-lien.active { background: var(--esp-marque-clair); color: var(--esp-marque) !important; }

/* ---- En-tête commun des pages ---- */
.esp-entete-page { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--esp-bordure); }
.esp-fil { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .82rem; color: var(--esp-texte-doux); margin-bottom: .6rem; }
.esp-fil a { color: var(--esp-texte-doux); text-decoration: none; }
.esp-fil a:hover { color: var(--esp-marque); text-decoration: underline; }
.esp-fil i { font-size: .6rem; }
.esp-fil [aria-current] { color: var(--esp-texte); font-weight: 600; }
.esp-entete-corps { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; }
.esp-entete-icone { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--esp-marque-clair); color: var(--esp-marque); font-size: 1.3rem; flex-shrink: 0; }
.esp-entete-texte { flex: 1 1 260px; min-width: 0; }
.esp-entete-texte h1 { font-size: 1.45rem; font-weight: 700; color: var(--esp-marque); margin: 0; }
.esp-entete-texte p { margin: .15rem 0 0; color: var(--esp-texte-doux); font-size: .95rem; }
.esp-entete-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.esp-bouton-secondaire { background: #fff; border: 1px solid var(--esp-marque); color: var(--esp-marque); }
.esp-bouton-secondaire:hover { background: var(--esp-marque-clair); color: var(--esp-marque); }

/* ---- État vide ---- */
.esp-etat-vide { text-align: center; padding: 2.5rem 1rem; border: 1px dashed #cbd5e1; border-radius: 12px; background: var(--esp-fond); }
.esp-etat-vide-icone { font-size: 2.2rem; color: #94a3b8; margin-bottom: .6rem; }
.esp-etat-vide-titre { font-weight: 700; color: var(--esp-texte); margin-bottom: .25rem; }
.esp-etat-vide-texte { color: var(--esp-texte-doux); margin-bottom: 1rem; }

/* ---- Statuts ---- */
.esp-statut { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.esp-statut-succes { background: #dcfce7; color: #166534; }
.esp-statut-attente { background: #fef3c7; color: #92400e; }
.esp-statut-danger { background: #fee2e2; color: #991b1b; }
.esp-statut-info { background: var(--esp-marque-clair); color: var(--esp-marque); }
.esp-statut-neutre { background: #f1f5f9; color: #475569; }

/* ---- Page « Mon profil » ---- */
.esp-carte { background: #fff; border: 1px solid var(--esp-bordure); border-radius: 12px; padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; }
.esp-carte h5 { color: var(--esp-marque); font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.esp-carte .form-label { font-weight: 600; font-size: .9rem; color: var(--esp-texte); }
.esp-aide { font-size: .82rem; color: var(--esp-texte-doux); }
.esp-bouton { background: var(--esp-marque); border-color: var(--esp-marque); color: #fff; }
.esp-bouton:hover { background: #002244; border-color: #002244; color: #fff; }

/* ---- Tableau de bord (lot B) ---- */
.esp-section-titre { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 700; color: var(--esp-texte); margin: 1.5rem 0 .8rem; }
.esp-section-titre i { color: var(--esp-marque); }
.esp-bandeau { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 12px; border: 1px solid var(--esp-bordure); background: #fff; }
.esp-bandeau-icone { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.esp-bandeau-actif .esp-bandeau-icone { background: #dcfce7; color: #166534; }
.esp-bandeau-inactif { border-color: #fcd34d; background: #fffbeb; }
.esp-bandeau-inactif .esp-bandeau-icone { background: #fef3c7; color: #92400e; }
.esp-bandeau-texte { flex: 1 1 240px; min-width: 0; }
.esp-bandeau-texte strong { display: block; color: var(--esp-texte); }
.esp-bandeau-texte span { color: var(--esp-texte-doux); font-size: .9rem; }
.esp-tuile { display: flex; align-items: center; gap: .9rem; height: 100%; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--esp-bordure); background: #fff; color: var(--esp-texte) !important; text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.esp-tuile:hover, .esp-tuile:focus-visible { border-color: var(--esp-marque); box-shadow: 0 6px 16px rgba(0, 51, 102, .08); transform: translateY(-2px); }
.esp-tuile-icone { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; background: var(--esp-marque-clair); color: var(--esp-marque); }
.esp-tuile-vert .esp-tuile-icone { background: #dcfce7; color: #166534; }
.esp-tuile-orange .esp-tuile-icone { background: #fef3c7; color: #92400e; }
.esp-tuile-gris .esp-tuile-icone { background: #f1f5f9; color: #475569; }
.esp-tuile-nombre { font-size: 1.6rem; font-weight: 800; line-height: 1; color: var(--esp-texte); }
.esp-tuile-libelle { font-size: .88rem; color: var(--esp-texte-doux); margin-top: .2rem; }
.esp-tuile-fleche { margin-left: auto; color: #cbd5e1; font-size: .8rem; }
.esp-tuile:hover .esp-tuile-fleche { color: var(--esp-marque); }
.esp-tuile-alerte { border-color: #fcd34d; background: #fffbeb; }
.esp-raccourci { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 10px; border: 1px solid var(--esp-bordure); background: var(--esp-fond); color: var(--esp-texte) !important; text-decoration: none !important; font-weight: 600; font-size: .9rem; height: 100%; }
.esp-raccourci i { color: var(--esp-marque); width: 18px; text-align: center; }
.esp-raccourci:hover { background: var(--esp-marque-clair); border-color: var(--esp-marque); }

/* ---- Parcours d'un programme de mentorat (lot B) ---- */
.esp-parcours { list-style: none; display: flex; padding: 0; margin: 0 0 .9rem; counter-reset: etape; }
.esp-parcours li { flex: 1; position: relative; text-align: center; font-size: .68rem; color: var(--esp-texte-doux); line-height: 1.2; padding: 0 .1rem; }
.esp-parcours li::before { content: counter(etape); counter-increment: etape; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0 auto .3rem; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; font-weight: 700; font-size: .72rem; position: relative; z-index: 1; }
.esp-parcours li + li::after { content: ''; position: absolute; top: 11px; right: 50%; width: 100%; height: 2px; background: #cbd5e1; }
.esp-parcours li.fait::before { content: '\2713'; background: #16a34a; border-color: #16a34a; color: #fff; }
.esp-parcours li.fait::after, .esp-parcours li.courant::after { background: #16a34a; }
.esp-parcours li.courant { color: var(--esp-marque); font-weight: 700; }
.esp-parcours li.courant::before { border-color: var(--esp-marque); background: var(--esp-marque); color: #fff; }
.esp-parcours-aide { font-size: .85rem; color: var(--esp-texte-doux); margin-bottom: .7rem; }
.esp-replie { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Cartes de liste (rendez-vous, abonnements) ---- */
.esp-carte-liste { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--esp-bordure); border-radius: 12px; padding: 1.1rem 1.2rem; }
.esp-carte-liste-haut { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; margin-bottom: .7rem; }
.esp-carte-liste h5 { font-size: 1rem; font-weight: 700; color: var(--esp-texte); margin: 0; }
.esp-date { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--esp-marque); font-size: .92rem; margin-bottom: .5rem; }
.esp-carte-liste .esp-detail { font-size: .88rem; color: var(--esp-texte-doux); margin-bottom: .35rem; }
.esp-carte-liste-bas { margin-top: auto; padding-top: .8rem; display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
.esp-carte-liste.esp-en-cours { border-color: #86efac; box-shadow: 0 0 0 1px #86efac inset; }

/* ---- Contenus : bibliothèque, cours, événements (lot C) ---- */
.esp-recherche { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.25rem; }
.esp-recherche .form-control { flex: 1 1 240px; max-width: 480px; }
.esp-recherche-resultat { font-size: .88rem; color: var(--esp-texte-doux); }
.esp-repliable-texte { display: -webkit-box; -webkit-line-clamp: var(--esp-lignes, 4); -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem; line-height: 1.5; color: var(--esp-texte); text-align: justify; }
.esp-repliable-texte * { font-size: inherit !important; font-family: inherit !important; }
.esp-repliable.ouvert .esp-repliable-texte { display: block; -webkit-line-clamp: unset; }
.esp-lire-suite { background: none; border: 0; padding: .2rem 0; color: var(--esp-marque); font-weight: 600; font-size: .85rem; }
.esp-lire-suite:hover { text-decoration: underline; }
.esp-repliable.court .esp-lire-suite { display: none; }
.esp-document { display: flex; gap: 1.25rem; align-items: flex-start; }
.esp-document-corps { flex: 1 1 auto; min-width: 0; }
.esp-document-apercu { flex: 0 0 170px; }
.esp-document-apercu canvas { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, .08); }
.esp-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .86rem; color: var(--esp-texte-doux); margin: .3rem 0 .7rem; }
.esp-meta i { color: var(--esp-marque); margin-right: .25rem; }
.esp-dossier { display: flex; align-items: center; gap: .9rem; height: 100%; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--esp-bordure); background: #fff; color: var(--esp-texte) !important; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.esp-dossier:hover { border-color: var(--esp-marque); box-shadow: 0 6px 16px rgba(0, 51, 102, .08); }
.esp-dossier-icone { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #fef3c7; color: #b45309; font-size: 1.3rem; flex-shrink: 0; }
.esp-dossier-titre { font-weight: 700; color: var(--esp-marque); line-height: 1.3; }
.esp-dossier-nombre { font-size: .85rem; color: var(--esp-texte-doux); }
.esp-evenement-image { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.esp-evenement-quand { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .6rem 0; }
.esp-compte-a-rebours { font-size: .82rem; font-weight: 600; color: #b45309; }
@media (max-width: 575.98px) {
    .esp-document { flex-direction: column-reverse; }
    .esp-document-apercu { flex-basis: auto; width: 140px; }
}

/* ---- Suppression du compte ---- */
.esp-zone-danger { border-color: #fecaca; }
.esp-zone-danger h5, .esp-zone-danger h5 i { color: #b91c1c; }

/* ---- « En bref » des webinaires, réunions en ligne et formations de groupe ---- */
.esp-repere-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem 1.25rem; margin: 0 0 .9rem; }
.esp-repere-grille dt { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--esp-marque); margin-bottom: .15rem; }
.esp-repere-grille dd { margin: 0; font-size: .92rem; color: var(--esp-texte); }
.esp-repere-lien { display: inline-flex; align-items: center; gap: .35rem; margin-left: .6rem; font-weight: 600; color: var(--esp-marque); }

/* ---- Mes paiements ---- */
.esp-table-paiements th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #475569; background: var(--esp-fond); white-space: nowrap; }
.esp-table-paiements td, .esp-table-paiements th { padding: .75rem .9rem; }
.esp-table-paiements td:nth-child(2) { min-width: 210px; }
/* Téléphone : une carte par paiement, libellé au-dessus de chaque valeur. */
@media (max-width: 767.98px) {
    .esp-table-paiements thead { display: none; }
    .esp-table-paiements tr { display: block; padding: .6rem 0; border-bottom: 1px solid var(--esp-bordure); }
    .esp-table-paiements td { display: block; border: 0; padding: .3rem 1rem; text-align: left !important; min-width: 0 !important; }
    .esp-table-paiements td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #475569; }
}

/* ---- Visionneuse de documents (défilement continu) ---- */
.esp-visionneuse-barre { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .6rem .8rem; background: #fff; border: 1px solid var(--esp-bordure); border-radius: 12px 12px 0 0; }
.esp-visionneuse-pages { display: flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--esp-texte); }
.esp-visionneuse-pages input { width: 4.5rem; text-align: center; }
.esp-visionneuse-zoom { min-width: 4.2rem; opacity: 1 !important; }
.esp-visionneuse-zone { position: relative; height: calc(100vh - 230px); min-height: 420px; overflow: auto; background: #525659; border: 1px solid var(--esp-bordure); border-top: 0; border-radius: 0 0 12px 12px; padding: 16px; user-select: none; -webkit-user-select: none; }
.esp-visionneuse-zone:focus { outline: 2px solid var(--esp-marque); outline-offset: -2px; }
#vis-pages { min-height: 100%; }
/* EPUB : epub.js gère son propre défilement (une seule barre). */
.esp-visionneuse[data-format="epub"] .esp-visionneuse-zone { overflow: hidden; padding: 0; background: #fff; }
.esp-visionneuse[data-format="epub"] .esp-visionneuse-message { position: absolute; inset: 0 0 auto 0; color: var(--esp-texte); }
.esp-visionneuse[data-format="epub"] #vis-pages { height: 100%; }
.esp-visionneuse-page { margin: 0 auto 16px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.esp-visionneuse-page canvas { display: block; }
.esp-visionneuse-message { color: #fff; text-align: center; padding: 3rem 1rem; }
.esp-visionneuse-erreur { background: #fee2e2; color: #991b1b; border-radius: 8px; padding: 1rem; }
.esp-visionneuse-impression { display: none; }
@media print {
    .esp-visionneuse { display: none !important; }
    .esp-visionneuse-impression { display: block !important; padding: 2rem; font-size: 1.2rem; }
}

/* ---- Ressources publiques ---- */
.esp-ressource { transition: border-color .15s, box-shadow .15s; }
.esp-ressource:hover { border-color: #b6c9dc; box-shadow: 0 4px 14px rgba(0, 51, 102, .08); }
.esp-ressource-titre { font-size: 1.05rem; font-weight: 700; line-height: 1.35; color: var(--esp-texte); margin: 0 0 .45rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.esp-ressource-bas { justify-content: space-between; align-items: center; }
.esp-ressource .esp-repliable-texte { text-align: left; }
.esp-ressource-site { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; max-width: 55%; font-size: .8rem; color: var(--esp-texte-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Demande de stage ---- */
.esp-stage-resume { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .7rem 1.2rem; margin: 0; }
.esp-stage-resume dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #475569; }
.esp-stage-resume dd { margin: 0; color: var(--esp-texte); }
.esp-stage-etapes { list-style: none; counter-reset: etape; padding: 0; margin: 0 0 1rem; }
.esp-stage-etapes li { counter-increment: etape; position: relative; padding: 0 0 .9rem 2.4rem; }
.esp-stage-etapes li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--esp-marque-clair); color: var(--esp-marque); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.esp-stage-etapes strong { display: block; color: var(--esp-texte); }
.esp-stage-etapes span { font-size: .9rem; color: var(--esp-texte-doux); }

/* ---- CVthèque ---- */
.esp-onglets { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 1px solid var(--esp-bordure); }
.esp-onglet { padding: .55rem 1rem; border-radius: 10px 10px 0 0; color: var(--esp-texte-doux); font-weight: 600; text-decoration: none; border: 1px solid transparent; border-bottom: 0; margin-bottom: -1px; }
.esp-onglet:hover { color: var(--esp-marque); }
.esp-onglet.active { color: var(--esp-marque); background: #fff; border-color: var(--esp-bordure); }
.esp-filtres { padding: .9rem 1rem; }
.esp-profil-infos { list-style: none; padding: 0; margin: 0 0 .4rem; font-size: .9rem; color: var(--esp-texte); }
.esp-profil-infos li { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .25rem; }
.esp-profil-infos i { width: 1rem; color: var(--esp-marque); text-align: center; flex-shrink: 0; }
.esp-profil-carte .esp-avatar { width: 44px; height: 44px; font-size: .95rem; flex-shrink: 0; }
.esp-sous-titre { font-size: .9rem; font-weight: 700; color: var(--esp-texte); margin-bottom: .3rem; }
.esp-stage-resume-colonne { grid-template-columns: 1fr; }
.esp-consultation { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--esp-bordure); }
.esp-consultation:last-child { border-bottom: 0; }
.esp-consultation-nom { font-weight: 600; color: var(--esp-texte); }

/* ---- Mes offres (organisation) ---- */
.esp-alerte-refus { background: #fef2f2; border-left: 4px solid #dc2626; color: #7f1d1d; border-radius: 6px; padding: .6rem .8rem; font-size: .9rem; }

/* Recherche unique dans le menu (RechercheController). */
.esp-menu-recherche { display: flex; gap: .35rem; margin: 0 0 .9rem; }
.esp-menu-recherche .form-control { min-width: 0; }
.esp-menu-recherche .btn { flex-shrink: 0; }
mark { background: #fff1c2; padding: 0 .1em; border-radius: 3px; }
