/*
 * propulse dans l'espace etudiant : moteur, drawer, credits, abonnement,
 * pipeline kanban, modals et toasts.
 *
 * Design system aligne sur la reference propulse-beta (captures 2026-07-20) :
 * fond gris pale, cartes blanches radius 12-14, encre presque noire, navy
 * #11256A pour la marque et les actions, pastels semantiques (vert = contact /
 * verifie / positif, ambre = attention, rouge pale = retard, navy pale = lieu),
 * typo Inter, ombres douces, toasts noirs a coche verte.
 *
 * Tout est scope : .pr-espace pour la page, .pr-drawer / .pr-modal-fond /
 * .pr-toasts pour les couches hors flux. Le theme Superio (Jost, theme-btn)
 * est volontairement surcharge dans ces perimetres.
 */

.pr-espace,
.pr-drawer,
.pr-modal-fond,
.pr-toasts {
    --pr-fond-page: #f6f7fb;
    --pr-navy: #11256A;
    --pr-navy-fonce: #0c1a4f;
    --pr-navy-pale: #e9edfa;
    --pr-encre: #0b0d14;
    --pr-texte: #3f4454;
    --pr-gris: #6b7183;
    --pr-gris-doux: #9aa0b5;
    --pr-bord: #e7e9f0;
    --pr-blanc: #ffffff;
    --pr-vert: #177a53;
    --pr-vert-vif: #1d9f6e;
    --pr-vert-pale: #e7f6ee;
    --pr-ambre: #b45309;
    --pr-ambre-pale: #fdf1df;
    --pr-rouge: #c2372e;
    --pr-rouge-pale: #fdeaea;
    --pr-mauve-pale: #f6e9f1;
    --pr-mauve: #a64d79;
    --pr-noir-ui: #16181f;
    --pr-ombre-carte: 0 1px 2px rgba(11, 13, 20, .04), 0 8px 24px -18px rgba(11, 13, 20, .25);
    --pr-ombre-haute: 0 24px 60px -12px rgba(11, 13, 20, .35);
    --pr-police: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    font-family: var(--pr-police);
    color: var(--pr-texte);
}

/* La zone propulse vit sur son fond gris pale, comme l'app de reference. */
.pr-espace {
    background: var(--pr-fond-page);
    border-radius: 18px;
    padding: 26px 26px 34px;
}

.pr-espace h2,
.pr-espace h3,
.pr-espace h4,
.pr-espace h5,
.pr-drawer h3,
.pr-drawer h5,
.pr-modal h4 {
    font-family: var(--pr-police);
    color: var(--pr-encre);
    letter-spacing: -0.01em;
}

/* ============================================================
 * Boutons : mapping du theme Superio vers le langage propulse.
 * btn-style-one = primaire navy · btn-style-three = outline.
 * ============================================================ */

.pr-espace .theme-btn,
.pr-drawer .theme-btn,
.pr-modal .theme-btn {
    font-family: var(--pr-police);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
}

.pr-espace .theme-btn.btn-style-one,
.pr-drawer .theme-btn.btn-style-one,
.pr-modal .theme-btn.btn-style-one {
    background: var(--pr-navy);
    color: #fff;
}

.pr-espace .theme-btn.btn-style-one:hover,
.pr-drawer .theme-btn.btn-style-one:hover,
.pr-modal .theme-btn.btn-style-one:hover {
    background: var(--pr-navy-fonce);
    color: #fff;
}

.pr-espace .theme-btn.btn-style-three,
.pr-drawer .theme-btn.btn-style-three,
.pr-modal .theme-btn.btn-style-three {
    background: #fff;
    border-color: #d8dcea;
    color: var(--pr-encre);
}

.pr-espace .theme-btn.btn-style-three:hover,
.pr-drawer .theme-btn.btn-style-three:hover,
.pr-modal .theme-btn.btn-style-three:hover {
    border-color: var(--pr-navy);
    color: var(--pr-navy);
    background: #fff;
}

.pr-espace .theme-btn:disabled,
.pr-drawer .theme-btn:disabled,
.pr-modal .theme-btn:disabled {
    opacity: .55;
    cursor: default;
}

.pr-espace .theme-btn:focus-visible,
.pr-drawer .theme-btn:focus-visible,
.pr-modal .theme-btn:focus-visible {
    outline: 2px solid var(--pr-navy);
    outline-offset: 2px;
}

/* Le bouton « noir UI » de la reference (generer un email dans le drawer). */
.pr-drawer .theme-btn.est-noir {
    background: var(--pr-noir-ui);
    color: #fff;
}

.pr-drawer .theme-btn.est-noir:hover {
    background: #000;
    color: #fff;
}

/* ============================================================
 * Entete : solde, etats de l'essai
 * ============================================================ */

.pr-espace .pr-entete {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.pr-espace .pr-solde {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--pr-navy-pale);
    color: var(--pr-navy);
    font-weight: 700;
    font-size: 13.5px;
    border: 1px solid transparent;
    transition: border-color .15s ease;
}

.pr-espace .pr-solde:hover {
    border-color: var(--pr-navy);
    color: var(--pr-navy);
}

.pr-espace .pr-solde.is-bas {
    background: var(--pr-ambre-pale);
    color: var(--pr-ambre);
}

.pr-espace .pr-essai-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--pr-vert-pale);
    color: var(--pr-vert);
    font-weight: 600;
    font-size: 13px;
}

.pr-espace .pr-passer-pro {
    font-size: 13px;
    font-weight: 600;
    color: var(--pr-navy);
}

.pr-espace .pr-passer-pro:hover {
    text-decoration: underline;
    color: var(--pr-navy);
}

.pr-espace .pr-bandeau-epuise {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--pr-ambre-pale);
    border: 1px solid #f3ddba;
    color: var(--pr-ambre);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
}

.pr-espace .pr-bandeau-epuise .theme-btn {
    font-size: 12px;
    padding: 8px 14px;
}

/* ============================================================
 * Barre de recherche, filtres, historique
 * ============================================================ */

.pr-espace .pr-recherche {
    background: #fff;
    border: 1px solid var(--pr-bord);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--pr-ombre-carte);
    margin-bottom: 22px;
}

.pr-espace .pr-champs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pr-espace .pr-champ {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.pr-espace .pr-champ--large {
    flex: 2.2;
    min-width: 240px;
}

.pr-espace .pr-champ i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pr-gris-doux);
    font-size: 14px;
    pointer-events: none;
}

.pr-espace .pr-champ input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--pr-bord);
    border-radius: 12px;
    padding: 0 14px 0 40px;
    font-family: var(--pr-police);
    font-size: 14px;
    color: var(--pr-encre);
    background: var(--pr-fond-page);
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.pr-espace .pr-champ input:focus {
    outline: none;
    background: #fff;
    border-color: var(--pr-navy);
    box-shadow: 0 0 0 3px rgba(17, 37, 106, .12);
}

.pr-espace .pr-champs .theme-btn {
    height: 48px;
    padding: 0 26px;
    font-size: 14px;
    border-radius: 12px;
}

.pr-espace .pr-avance-toggle {
    margin-top: 12px;
    background: none;
    border: none;
    color: var(--pr-gris);
    font-family: var(--pr-police);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 0;
}

.pr-espace .pr-avance-toggle:hover {
    color: var(--pr-navy);
}

.pr-espace .pr-caret {
    font-size: 11px;
    transition: transform .18s ease;
}

.pr-espace .pr-avance-toggle.is-ouvert .pr-caret {
    transform: rotate(180deg);
}

.pr-espace .pr-avance {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px dashed var(--pr-bord);
}

.pr-espace .pr-filtre {
    border: 1px solid var(--pr-bord);
    border-radius: 10px;
    background: #fff;
    color: var(--pr-texte);
    font-family: var(--pr-police);
    font-size: 13px;
    padding: 9px 12px;
    cursor: pointer;
}

.pr-espace .pr-filtre:focus {
    outline: none;
    border-color: var(--pr-navy);
}

.pr-espace .pr-cout-hint {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--pr-gris-doux);
}

.pr-espace .pr-cout-hint i {
    margin-right: 5px;
}

.pr-espace .pr-historique {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.pr-espace .pr-historique-label {
    font-size: 12px;
    color: var(--pr-gris-doux);
    font-weight: 600;
}

.pr-espace .pr-chip {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--pr-bord);
    background: #fff;
    color: var(--pr-gris);
    font-family: var(--pr-police);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

.pr-espace .pr-chip:hover {
    border-color: var(--pr-navy);
    color: var(--pr-navy);
}

.pr-espace .pr-chip.is-actif {
    background: var(--pr-navy);
    border-color: var(--pr-navy);
    color: #fff;
}

.pr-espace .pr-chip-histo {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
 * Resultats : cartes d'offres (langage de la reference)
 * ============================================================ */

.pr-espace .pr-resultats-flex {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.pr-espace .pr-resultats-flex #prResultats {
    flex: 1;
    min-width: 0;
}

.pr-espace .pr-resultats-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.pr-espace .pr-resultats-entete h4 {
    font-size: 18px;
    font-weight: 700;
}

.pr-espace .pr-resultats-entete .theme-btn {
    font-size: 12px;
    padding: 8px 14px;
}

.pr-espace .pr-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.pr-espace .pr-offre-carte {
    background: #fff;
    border: 1px solid var(--pr-bord);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--pr-ombre-carte);
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.pr-espace .pr-offre-carte.est-cliquable {
    cursor: pointer;
}

.pr-espace .pr-offre-carte:hover {
    transform: translateY(-2px);
    border-color: #d5daeb;
    box-shadow: 0 4px 8px rgba(11, 13, 20, .05), 0 18px 40px -18px rgba(11, 13, 20, .28);
}

.pr-espace .pr-offre-tete {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pr-espace .pr-offre-icone {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--pr-mauve-pale);
    color: var(--pr-mauve);
    display: grid;
    place-items: center;
    font-size: 16px;
    flex-shrink: 0;
}

.pr-espace .pr-offre-identite {
    min-width: 0;
    flex: 1;
}

.pr-espace .pr-offre-titre {
    font-weight: 700;
    font-size: 15px;
    color: var(--pr-encre);
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.pr-espace .pr-offre-entreprise {
    color: var(--pr-gris);
    font-size: 13px;
    margin-top: 3px;
}

/* Le badge % de matching : pill blanche a pastille verte, coin haut droit. */
.pr-espace .pr-score {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--pr-bord);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--pr-vert);
}

.pr-espace .pr-score::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pr-vert-vif);
}

.pr-espace .pr-etiquettes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.pr-espace .pr-etiquette,
.pr-drawer .pr-etiquette {
    font-family: var(--pr-police);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 999px;
    background: #f1f2f7;
    color: var(--pr-gris);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pr-espace .pr-etiquette.est-contact,
.pr-drawer .pr-etiquette.est-contact {
    background: var(--pr-vert-pale);
    color: var(--pr-vert);
}

.pr-espace .pr-etiquette.est-lieu,
.pr-drawer .pr-etiquette.est-lieu {
    background: var(--pr-navy-pale);
    color: var(--pr-navy);
}

.pr-espace .pr-etiquette.est-verifiee,
.pr-drawer .pr-etiquette.est-verifiee {
    background: var(--pr-vert-pale);
    color: var(--pr-vert);
}

.pr-espace .pr-etiquette.est-score {
    background: var(--pr-navy);
    color: #fff;
}

.pr-espace .pr-offre-desc {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--pr-gris);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pr-espace .pr-offre-pied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0f1f6;
}

.pr-espace .pr-offre-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--pr-gris);
    border: 1px solid var(--pr-bord);
    border-radius: 999px;
    padding: 6px 12px;
}

.pr-espace .pr-offre-boutons {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.pr-espace .pr-offre-pied .theme-btn {
    font-size: 12.5px;
    padding: 8px 15px;
}

.pr-espace .pr-plus-wrap {
    text-align: center;
    margin-top: 20px;
}

/* ============================================================
 * Rail droit
 * ============================================================ */

.pr-espace .pr-rail {
    width: 280px;
    flex-shrink: 0;
    display: grid;
    gap: 14px;
    position: sticky;
    top: 20px;
}

.pr-espace .pr-rail-bloc {
    background: #fff;
    border: 1px solid var(--pr-bord);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--pr-ombre-carte);
}

.pr-espace .pr-rail-bloc h5 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pr-espace .pr-rail-bloc h5 i {
    color: var(--pr-navy);
    margin-right: 6px;
}

.pr-espace .pr-rail-bloc p {
    font-size: 13px;
    color: var(--pr-gris);
    line-height: 1.6;
    margin: 0;
}

.pr-espace .pr-rail-bloc iframe {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: 10px;
}

/* ============================================================
 * Loader, alertes, etats vides
 * ============================================================ */

.pr-espace .pr-loader {
    text-align: center;
    padding: 48px 20px;
    color: var(--pr-gris);
    font-size: 14px;
}

.pr-espace .pr-loader-spin {
    width: 34px;
    height: 34px;
    border: 3px solid var(--pr-navy-pale);
    border-top-color: var(--pr-navy);
    border-radius: 50%;
    margin: 0 auto 14px;
    animation: pr-rotation .8s linear infinite;
}

@keyframes pr-rotation {
    to { transform: rotate(360deg); }
}

.pr-espace .pr-alerte {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--pr-rouge-pale);
    border: 1px solid #f5cdc9;
    color: var(--pr-rouge);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 13.5px;
    margin-bottom: 16px;
}

.pr-espace .pr-alerte p {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: inherit;
    opacity: .85;
}

.pr-espace .pr-alerte-ambre {
    background: var(--pr-ambre-pale);
    border-color: #f3ddba;
    color: var(--pr-ambre);
}

.pr-espace .pr-vide {
    text-align: center;
    padding: 56px 20px;
    color: var(--pr-gris);
}

.pr-espace .pr-vide i {
    font-size: 36px;
    color: #cfd4e3;
    margin-bottom: 14px;
    display: block;
}

.pr-espace .pr-vide h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* ============================================================
 * Drawer fiche offre
 * ============================================================ */

.pr-drawer-fond {
    position: fixed;
    inset: 0;
    background: rgba(11, 13, 20, 0.45);
    backdrop-filter: blur(2px);
    z-index: 1050;
}

.pr-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(600px, 94vw);
    background: #fff;
    z-index: 1060;
    box-shadow: -16px 0 60px rgba(11, 13, 20, 0.22);
    overflow-y: auto;
    animation: pr-drawer-entree 0.22s ease;
}

@keyframes pr-drawer-entree {
    from { transform: translateX(36px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .pr-drawer,
    .pr-espace .pr-offre-carte,
    .pr-espace .pr-loader-spin {
        animation: none;
        transition: none;
    }
}

body.pr-drawer-ouvert {
    overflow: hidden;
}

.pr-drawer-fermer {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f1f2f7;
    color: var(--pr-encre);
    font-size: 15px;
    cursor: pointer;
    z-index: 2;
    transition: background .15s ease;
}

.pr-drawer-fermer:hover {
    background: var(--pr-bord);
}

.pr-drawer-corps {
    padding: 30px;
}

.pr-drawer-entete h3 {
    font-size: 21px;
    font-weight: 700;
    margin: 0 44px 6px 0;
    line-height: 1.3;
}

.pr-drawer-entreprise {
    font-size: 14px;
    color: var(--pr-gris);
    margin-bottom: 12px;
}

.pr-drawer-boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.pr-drawer-boutons .theme-btn {
    font-size: 13px;
    padding: 10px 16px;
}

.pr-drawer-section {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #f0f1f6;
}

.pr-drawer-section h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pr-drawer-section h5 small {
    font-weight: 500;
    font-size: 12px;
    color: var(--pr-vert);
}

.pr-drawer-section p {
    font-size: 13.5px;
    color: var(--pr-texte);
    line-height: 1.65;
}

.pr-drawer-discret {
    font-size: 12px !important;
    color: var(--pr-gris-doux) !important;
}

/* Tuiles factuelles (REMUNERATION / DEBUT), label uppercase discret. */
.pr-drawer .pr-tuiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0 4px;
}

.pr-drawer .pr-tuile {
    background: var(--pr-fond-page);
    border-radius: 12px;
    padding: 13px 15px;
}

.pr-drawer .pr-tuile-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--pr-gris-doux);
    margin-bottom: 5px;
}

.pr-drawer .pr-tuile-valeur {
    font-size: 14px;
    font-weight: 600;
    color: var(--pr-encre);
}

.pr-drawer-prerequis {
    margin: 10px 0 0 18px;
    font-size: 13px;
    color: var(--pr-texte);
    line-height: 1.7;
    list-style: disc;
}

/* Contacts : cartes bordees, avatar rond colore, pertinence a droite. */
.pr-contact {
    border: 1px solid var(--pr-bord);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
}

.pr-contact-id {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}

.pr-contact .pr-contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--pr-navy);
    flex-shrink: 0;
}

.pr-contact-identite {
    flex: 1;
    min-width: 0;
}

.pr-contact-id strong {
    display: block;
    font-size: 14.5px;
    color: var(--pr-encre);
    font-weight: 700;
}

.pr-contact-titre {
    color: var(--pr-gris);
    font-size: 12.5px;
}

.pr-contact-pertinence {
    flex-shrink: 0;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--pr-ambre-pale);
    color: var(--pr-ambre);
}

/* La coordonnee revelee : champ bleu pale avec copie en un clic. */
.pr-contact-valeur {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #eef2fd;
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--pr-encre);
    margin: 7px 0;
}

.pr-contact-valeur i {
    color: var(--pr-navy);
}

.pr-contact-valeur a {
    color: var(--pr-encre);
    overflow: hidden;
    text-overflow: ellipsis;
}

.pr-contact-valeur .pr-copier {
    margin-left: auto;
    border: none;
    background: none;
    color: var(--pr-gris);
    cursor: pointer;
    font-size: 13px;
    padding: 3px 6px;
    border-radius: 6px;
}

.pr-contact-valeur .pr-copier:hover {
    color: var(--pr-navy);
    background: rgba(17, 37, 106, .08);
}

.pr-contact .theme-btn {
    font-size: 12.5px;
    padding: 9px 15px;
    margin: 4px 8px 4px 0;
}

.pr-contact-suite {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--pr-bord);
}

.pr-contact-suite .theme-btn {
    margin: 0;
    flex: 1;
    min-width: 150px;
}

/* Stepper de progression : coches vertes, numeros gris, ligne fine. */
.pr-stepper {
    display: flex;
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    counter-reset: pr-etape;
}

.pr-stepper li {
    flex: 1;
    text-align: center;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--pr-gris-doux);
    position: relative;
    counter-increment: pr-etape;
}

.pr-stepper li span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eceef5;
    color: var(--pr-gris);
    font-size: 11px;
    font-weight: 700;
    margin: 0 auto 7px;
    position: relative;
    z-index: 1;
}

.pr-stepper li span::before {
    content: counter(pr-etape);
}

.pr-stepper li::before {
    content: '';
    position: absolute;
    top: 11px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: #eceef5;
}

.pr-stepper li:first-child::before {
    display: none;
}

.pr-stepper li.est-fait {
    color: var(--pr-vert);
}

.pr-stepper li.est-fait span {
    background: var(--pr-vert-vif);
    color: #fff;
}

.pr-stepper li.est-fait span::before {
    content: '\2713';
}

.pr-stepper li.est-fait::before {
    background: var(--pr-vert-vif);
}

/* ============================================================
 * Modals (cout, paywall, email, relance)
 * ============================================================ */

.pr-modal-fond {
    position: fixed;
    inset: 0;
    background: rgba(11, 13, 20, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* La confirmation de coût peut surgir PAR-DESSUS le modal de génération d'email
   (« Régénérer une variante ? », « Générer un email ? »). Sans z-index dédié, les
   deux .pr-modal-fond partagent 1100 et, à z-index égal, c'est l'ordre du DOM qui
   tranche : le modal email (déclaré après) recouvrait la confirmation. On la place
   donc au-dessus de tout modal, sous les toasts (1200). */
#prCoutModalFond {
    z-index: 1150;
}

.pr-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    width: min(430px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: var(--pr-ombre-haute);
    font-family: var(--pr-police);
}

.pr-modal h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pr-modal p {
    font-size: 13.5px;
    color: var(--pr-gris);
    line-height: 1.6;
}

.pr-cout-solde {
    margin-top: 8px;
}

.pr-cout-solde strong {
    color: var(--pr-encre);
}

.pr-cout-nepasredemander {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--pr-gris);
    margin: 16px 0 4px;
    cursor: pointer;
}

.pr-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.pr-modal-actions .theme-btn {
    font-size: 13px;
    padding: 10px 18px;
}

/* Modal email / relance */

.pr-email-modal {
    width: min(740px, 100%);
}

.pr-email-fermer {
    background: #f1f2f7;
}

.pr-email-contexte {
    font-size: 13px;
    color: var(--pr-navy);
    font-weight: 600;
    margin-bottom: 16px;
}

.pr-email-profil {
    background: var(--pr-fond-page);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.pr-email-profil-titre {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--pr-gris);
    margin-bottom: 10px;
}

.pr-email-profil-titre span {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--pr-gris-doux);
}

.pr-email-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pr-email-grille input,
.pr-email-grille select {
    border: 1px solid var(--pr-bord);
    border-radius: 9px;
    padding: 9px 11px;
    font-family: var(--pr-police);
    font-size: 13px;
    background: #fff;
    width: 100%;
    color: var(--pr-encre);
}

.pr-email-grille input:focus,
.pr-email-grille select:focus {
    outline: none;
    border-color: var(--pr-navy);
}

.pr-email-sujet {
    width: 100%;
    border: 1px solid var(--pr-bord);
    border-radius: 10px;
    padding: 11px 13px;
    font-family: var(--pr-police);
    font-size: 14px;
    font-weight: 600;
    color: var(--pr-encre);
    margin-bottom: 8px;
}

.pr-email-corps {
    width: 100%;
    border: 1px solid var(--pr-bord);
    border-radius: 10px;
    padding: 13px;
    font-family: var(--pr-police);
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--pr-encre);
    resize: vertical;
}

.pr-email-sujet:focus,
.pr-email-corps:focus {
    outline: none;
    border-color: var(--pr-navy);
    box-shadow: 0 0 0 3px rgba(17, 37, 106, .10);
}

.pr-email-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.pr-email-actions .theme-btn {
    font-size: 12.5px;
    padding: 9px 15px;
}

/* ============================================================
 * Toasts : noirs, coche coloree, bas droite
 * ============================================================ */

.pr-toasts {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(380px, calc(100vw - 44px));
}

.pr-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 17px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: var(--pr-noir-ui);
    box-shadow: 0 14px 40px rgba(11, 13, 20, 0.35);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.pr-toast::before {
    font-family: 'Font Awesome 6 Free', 'FontAwesome';
    font-weight: 900;
    font-size: 13px;
}

.pr-toast.est-ok::before {
    content: '\f058';
    color: var(--pr-vert-vif);
}

.pr-toast.est-erreur::before {
    content: '\f057';
    color: #ff7d70;
}

.pr-toast.est-info::before {
    content: '\f05a';
    color: #8fa2dd;
}

.pr-toast.est-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
 * Mes credits : grille des couts, packs, missions, historique
 * ============================================================ */

.pr-espace .pr-couts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 26px;
}

.pr-espace .pr-cout {
    background: #fff;
    border: 1px solid var(--pr-bord);
    border-radius: 13px;
    padding: 17px 12px;
    text-align: center;
    box-shadow: var(--pr-ombre-carte);
}

.pr-espace .pr-cout-valeur {
    font-size: 23px;
    font-weight: 700;
    color: var(--pr-navy);
    letter-spacing: -0.01em;
}

.pr-espace .pr-cout-label {
    font-size: 12px;
    color: var(--pr-gris);
    line-height: 1.4;
    margin-top: 5px;
}

.pr-espace .pr-cout.is-gratuit .pr-cout-valeur {
    color: var(--pr-vert-vif);
}

.pr-espace .pr-packs-intro {
    margin: 0 0 14px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--pr-gris);
}

.pr-espace .pr-packs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pr-espace .pr-pack {
    display: block;
    text-align: center;
    background: #fff;
    border: 1px solid var(--pr-bord);
    border-radius: 14px;
    padding: 20px 12px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.pr-espace .pr-pack:hover {
    border-color: var(--pr-navy);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -16px rgba(17, 37, 106, .35);
}

.pr-espace .pr-pack-nom {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--pr-gris);
}

.pr-espace .pr-pack-credits {
    font-size: 22px;
    font-weight: 700;
    color: var(--pr-navy);
    margin: 7px 0 3px;
}

.pr-espace .pr-pack-prix {
    font-size: 14px;
    font-weight: 600;
    color: var(--pr-encre);
}

.pr-espace .pr-missions {
    display: grid;
    gap: 12px;
}

.pr-espace .pr-mission {
    background: #fff;
    border: 1px solid var(--pr-bord);
    border-radius: 14px;
    padding: 15px 17px;
}

.pr-espace .pr-mission.est-faite {
    background: #f7fcf9;
    border-color: #cdeadb;
}

.pr-espace .pr-mission-tete {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.pr-espace .pr-mission-tete > div {
    flex: 1;
}

.pr-espace .pr-mission-tete strong {
    font-size: 14px;
    color: var(--pr-encre);
    font-weight: 700;
}

.pr-espace .pr-mission-tete p {
    font-size: 12.5px;
    color: var(--pr-gris);
    margin: 2px 0 0;
}

.pr-espace .pr-mission-credits {
    flex-shrink: 0;
    min-width: 54px;
    text-align: center;
    font-weight: 700;
    color: var(--pr-navy);
    background: var(--pr-navy-pale);
    border-radius: 10px;
    padding: 9px 6px;
    font-size: 15px;
}

.pr-espace .pr-mission-credits small {
    font-size: 11px;
    font-weight: 600;
}

.pr-espace .pr-mission-statut {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--pr-vert);
}

.pr-espace .pr-mission-statut .fa-hourglass-half {
    color: var(--pr-ambre);
}

.pr-espace .pr-mission-action {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px dashed var(--pr-bord);
}

.pr-espace .pr-mission-action input {
    flex: 1;
    min-width: 180px;
    border: 1px solid var(--pr-bord);
    border-radius: 9px;
    padding: 9px 11px;
    font-family: var(--pr-police);
    font-size: 13px;
    color: var(--pr-encre);
}

.pr-espace .pr-mission-action input:focus {
    outline: none;
    border-color: var(--pr-navy);
}

.pr-espace .pr-mission-action .theme-btn {
    font-size: 12px;
    padding: 9px 14px;
}

.pr-espace .pr-mission-aide {
    width: 100%;
    font-size: 12px;
    color: var(--pr-gris-doux);
}

.pr-espace .pr-histo {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--pr-police);
}

.pr-espace .pr-histo th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    color: var(--pr-gris-doux);
    padding: 10px 12px;
    border-bottom: 1px solid var(--pr-bord);
}

.pr-espace .pr-histo td {
    padding: 12px;
    border-bottom: 1px solid #f0f1f6;
    font-size: 13.5px;
    color: var(--pr-texte);
}

.pr-espace .pr-montant {
    font-weight: 700;
}

.pr-espace .pr-montant.is-debit {
    color: var(--pr-rouge);
}

.pr-espace .pr-montant.is-credit {
    color: var(--pr-vert-vif);
}

/* Les widgets Superio (ls-widget) dans la zone propulse. */
.pr-espace .ls-widget {
    background: #fff;
    border: 1px solid var(--pr-bord);
    border-radius: 16px;
    box-shadow: var(--pr-ombre-carte);
}

.pr-espace .ls-widget .widget-title h4 {
    font-size: 16px;
    font-weight: 700;
}

/* ============================================================
 * Abonnement / offre
 * ============================================================ */

.pr-espace .pr-offre {
    background: #fff;
    border: 1px solid var(--pr-bord);
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: var(--pr-ombre-carte);
}

.pr-espace .pr-offre-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.pr-espace .pr-offre h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pr-espace .pr-offre-lead {
    color: var(--pr-gris);
    font-size: 14.5px;
    line-height: 1.7;
    max-width: 460px;
    margin: 0 auto 26px;
}

.pr-espace .pr-badge-pro {
    display: inline-block;
    background: var(--pr-navy);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 15px;
    border-radius: 999px;
    margin: 6px 0 18px;
}

.pr-espace .pr-prix {
    font-size: 46px;
    font-weight: 800;
    color: var(--pr-encre);
    line-height: 1;
    letter-spacing: -0.02em;
}

.pr-espace .pr-prix .pr-prix-unite {
    font-size: 16px;
    font-weight: 500;
    color: var(--pr-gris);
    letter-spacing: 0;
}

.pr-espace .pr-prix-note {
    color: var(--pr-gris);
    font-size: 13.5px;
    margin: 8px 0 22px;
}

.pr-espace .pr-reassurance {
    color: var(--pr-vert);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
}

.pr-espace .pr-reassurance i {
    margin-right: 6px;
}

.pr-espace .pr-valeur {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 540px;
    margin: 0 auto 28px;
    text-align: left;
}

.pr-espace .pr-valeur-bloc {
    background: var(--pr-fond-page);
    border-radius: 14px;
    padding: 18px;
}

.pr-espace .pr-valeur-bloc i {
    color: var(--pr-navy);
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
}

.pr-espace .pr-valeur-bloc strong {
    display: block;
    font-size: 14px;
    color: var(--pr-encre);
    font-weight: 700;
    margin-bottom: 6px;
}

.pr-espace .pr-valeur-bloc p {
    font-size: 13px;
    color: var(--pr-gris);
    line-height: 1.6;
    margin: 0;
}

.pr-espace .pr-avantages {
    text-align: left;
    max-width: 440px;
    margin: 0 auto 30px;
    display: grid;
    gap: 12px;
}

.pr-espace .pr-avantage {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--pr-texte);
    line-height: 1.5;
}

.pr-espace .pr-avantage i {
    color: var(--pr-vert-vif);
    margin-top: 4px;
    flex-shrink: 0;
}

.pr-espace .pr-mini-faq details {
    border-bottom: 1px solid #f0f1f6;
    padding: 13px 0;
}

.pr-espace .pr-mini-faq summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--pr-encre);
}

.pr-espace .pr-mini-faq p {
    font-size: 13px;
    color: var(--pr-gris);
    line-height: 1.65;
    margin: 10px 0 0;
}

.pr-espace .pr-bientot {
    opacity: .6;
    cursor: default;
}

/* ============================================================
 * Pipeline kanban : KPI, barre, colonnes a lisere, cartes
 * ============================================================ */

.pr-espace .pr-kpis {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.pr-espace .pr-kpi {
    background: #fff;
    border: 1px solid var(--pr-bord);
    border-radius: 14px;
    padding: 17px 18px;
    text-align: center;
    box-shadow: var(--pr-ombre-carte);
}

.pr-espace .pr-kpi-valeur {
    font-size: 27px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.pr-espace .pr-kpi-label {
    font-size: 12px;
    color: var(--pr-gris);
    margin-top: 7px;
}

.pr-espace .pr-barre {
    margin-bottom: 22px;
}

.pr-espace .pr-barre-piste {
    display: flex;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #eceff5;
}

.pr-espace .pr-barre-seg {
    display: block;
    height: 100%;
}

.pr-espace .pr-barre-legende {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 10px;
}

.pr-espace .pr-barre-leg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--pr-gris);
}

.pr-espace .pr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.pr-espace .pr-filtres-origine {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

/* Colonnes : fond doux, lisere de couleur en haut (var --pr-accent posee par
   le template depuis StatutPipeline::couleurPastille). */
.pr-espace .pr-kanban {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    gap: 12px;
    align-items: start;
    overflow-x: auto;
    padding-bottom: 12px;
}

.pr-espace .pr-col {
    background: #eef0f6;
    border-radius: 14px;
    border-top: 3px solid var(--pr-accent, var(--pr-navy));
    padding: 12px 10px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pr-espace .pr-col.est-survolee {
    background: var(--pr-navy-pale);
    box-shadow: inset 0 0 0 2px var(--pr-navy);
}

.pr-espace .pr-col-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 10px;
    padding: 0 4px;
}

.pr-espace .pr-col-titre {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--pr-encre);
    line-height: 1.25;
}

.pr-espace .pr-col-nb {
    font-size: 12px;
    font-weight: 600;
    color: var(--pr-gris-doux);
    flex-shrink: 0;
}

.pr-espace .pr-col-corps {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/* Cartes repliees au-dela du seuil, revelees par le bouton « Afficher plus ». */
.pr-espace .pr-carte--masquee {
    display: none;
}

.pr-espace .pr-col-plus {
    margin-top: 2px;
    width: 100%;
    border: 1px dashed var(--pr-bord);
    background: #fff;
    color: var(--pr-navy);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.pr-espace .pr-col-plus:hover {
    background: var(--pr-navy-pale);
    border-color: var(--pr-navy);
}

.pr-espace .pr-col-vide {
    color: #c4cad9;
    font-size: 12px;
    text-align: center;
    padding: 10px 0;
}

.pr-espace .pr-carte {
    background: #fff;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 13px;
    cursor: grab;
    box-shadow: 0 1px 2px rgba(11, 13, 20, .06);
    transition: box-shadow .15s ease, border-color .15s ease;
}

.pr-espace .pr-carte:hover {
    border-color: #d5daeb;
    box-shadow: 0 10px 24px -14px rgba(11, 13, 20, .3);
}

.pr-espace .pr-carte.est-en-deplacement {
    opacity: .5;
}

.pr-espace .pr-carte-haut {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.pr-espace .pr-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--pr-navy-pale);
    color: var(--pr-navy);
    display: grid;
    place-items: center;
    font-size: 11.5px;
    font-weight: 700;
    flex-shrink: 0;
}

.pr-espace .pr-carte-textes {
    min-width: 0;
}

.pr-espace .pr-carte-titre {
    font-weight: 600;
    font-size: 13px;
    color: var(--pr-encre);
    line-height: 1.4;
}

.pr-espace .pr-carte-sous {
    font-size: 12px;
    color: var(--pr-gris);
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pr-espace .pr-carte-sous i {
    font-size: 10.5px;
    margin-right: 4px;
    color: var(--pr-gris-doux);
}

.pr-espace .pr-badge-mia {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .05em;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e3edfb;
    color: #2f7de1;
    vertical-align: middle;
    margin-left: 4px;
}

.pr-espace .pr-badge-traitement {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--pr-ambre-pale);
    color: var(--pr-ambre);
    vertical-align: middle;
    margin-left: 4px;
}

.pr-espace .pr-carte-relance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    margin-top: 9px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--pr-navy-pale);
    color: var(--pr-navy);
}

.pr-espace .pr-carte-relance.est-en-retard {
    background: var(--pr-rouge-pale);
    color: var(--pr-rouge);
}

/* Rangee d'icones d'action de la carte, comme la reference. */
.pr-espace .pr-carte-actions {
    display: flex;
    gap: 4px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #f0f1f6;
}

.pr-espace .pr-carte-actions a,
.pr-espace .pr-carte-actions button {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: none;
    background: none;
    color: var(--pr-gris-doux);
    font-size: 13px;
    cursor: pointer;
    transition: background .12s ease, color .12s ease;
}

.pr-espace .pr-carte-actions a:hover,
.pr-espace .pr-carte-actions button:hover {
    background: #f1f2f7;
    color: var(--pr-navy);
}

.pr-espace .pr-carte-actions .pr-supprimer:hover {
    color: var(--pr-rouge);
    background: var(--pr-rouge-pale);
}

/* ============================================================
 * Responsive
 * ============================================================ */

@media only screen and (max-width: 1023px) {
    .pr-espace .pr-rail {
        display: none;
    }

    .pr-espace .pr-kpis {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 767px) {
    .pr-espace {
        padding: 16px 14px 26px;
        border-radius: 14px;
    }

    .pr-espace .pr-offre {
        padding: 28px 20px;
    }

    .pr-espace .pr-couts,
    .pr-espace .pr-packs {
        grid-template-columns: repeat(2, 1fr);
    }

    .pr-espace .pr-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .pr-espace .pr-valeur,
    .pr-email-grille {
        grid-template-columns: 1fr;
    }

    .pr-drawer-corps {
        padding: 22px 18px;
    }

    .pr-drawer .pr-tuiles {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
 * Lot conversion / wow : hero, timeline, suggestions, celebrations
 * ============================================================ */

/* Hero : l'etoile de la marque sur un degrade navy discret. */
.pr-espace .pr-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(115deg, #11256A 0%, #1c3a8f 55%, #3a4f96 100%);
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 22px;
}

.pr-espace .pr-hero h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1.2;
}

.pr-espace .pr-hero-tagline {
    color: rgba(255, 255, 255, .82);
    font-size: 13.5px;
    margin-top: 3px;
}

.pr-espace .pr-hero-etoile {
    filter: brightness(0) invert(1);
    animation: pr-etoile-pulse 3.2s ease-in-out infinite;
}

@keyframes pr-etoile-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.12) rotate(8deg); opacity: .9; }
}

/* Accueil : suggestions pretes a cliquer. */
.pr-espace .pr-accueil {
    background: #fff;
    border: 1px dashed #d8dcea;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.pr-espace .pr-accueil-titre {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--pr-encre);
    margin: 0 0 12px;
}

.pr-espace .pr-accueil-titre i {
    color: var(--pr-navy);
    margin-right: 6px;
}

.pr-espace .pr-suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* Timeline de recherche : chaque etape se coche en direct. */
.pr-espace .pr-loader {
    padding: 26px 20px;
    text-align: left;
    max-width: 560px;
    margin: 0 auto;
}

.pr-espace .pr-timeline {
    background: #fff;
    border: 1px solid var(--pr-bord);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: var(--pr-ombre-carte);
    display: grid;
    gap: 12px;
}

.pr-espace .pr-etape {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 13px;
    color: var(--pr-gris-doux);
    transition: color .2s ease;
}

.pr-espace .pr-etape-puce {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #eceef5;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    position: relative;
}

.pr-espace .pr-etape.est-active {
    color: var(--pr-encre);
    font-weight: 600;
}

.pr-espace .pr-etape.est-active .pr-etape-puce {
    background: var(--pr-navy-pale);
}

.pr-espace .pr-etape.est-active .pr-etape-puce::after {
    content: '';
    width: 10px;
    height: 10px;
    border: 2px solid var(--pr-navy);
    border-top-color: transparent;
    border-radius: 50%;
    animation: pr-rotation .7s linear infinite;
}

.pr-espace .pr-etape.est-faite {
    color: var(--pr-vert);
}

.pr-espace .pr-etape.est-faite .pr-etape-puce {
    background: var(--pr-vert-vif);
}

.pr-espace .pr-etape.est-faite .pr-etape-puce::after {
    content: '\2713';
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

/* Cartes squelettes : les resultats s'annoncent. */
.pr-espace .pr-skeletons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.pr-espace .pr-skeleton {
    background: #fff;
    border: 1px solid var(--pr-bord);
    border-radius: 14px;
    padding: 16px;
    display: grid;
    gap: 10px;
}

.pr-espace .pr-skeleton span {
    display: block;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #eef0f6 25%, #f7f8fc 50%, #eef0f6 75%);
    background-size: 200% 100%;
    animation: pr-brillance 1.4s ease infinite;
}

.pr-espace .pr-skeleton span:first-child { width: 70%; height: 16px; }
.pr-espace .pr-skeleton span:nth-child(2) { width: 45%; }

@keyframes pr-brillance {
    to { background-position: -200% 0; }
}

/* Entree des cartes en cascade. */
.pr-espace .pr-offre-carte.est-entrante {
    animation: pr-carte-entree .4s ease both;
}

@keyframes pr-carte-entree {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Outils des resultats + bandeau de reprise. */
.pr-espace .pr-resultats-outils {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pr-espace .pr-reprise {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--pr-gris);
    background: var(--pr-navy-pale);
    border-radius: 10px;
    padding: 9px 14px;
    margin-bottom: 14px;
}

.pr-espace .pr-reprise i {
    color: var(--pr-navy);
}

/* Pulse du solde quand il change. */
.pr-espace .pr-solde.est-pulse {
    animation: pr-solde-pulse .5s ease;
}

@keyframes pr-solde-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* Confettis (celebrations des premieres fois). */
.pr-confettis {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1300;
    overflow: hidden;
}

.pr-confettis span {
    position: absolute;
    top: -12px;
    width: 9px;
    height: 14px;
    border-radius: 2px;
    animation: pr-confetti-chute linear both;
}

@keyframes pr-confetti-chute {
    0% { transform: translateY(-4vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(104vh) rotate(560deg); opacity: .7; }
}

/* Paywall premium. */
.pr-paywall {
    text-align: center;
}

.pr-paywall-etoile {
    margin-bottom: 6px;
}

.pr-paywall-prix {
    font-size: 38px;
    font-weight: 800;
    color: var(--pr-encre);
    letter-spacing: -0.02em;
    margin: 2px 0 14px;
}

.pr-paywall-prix span {
    font-size: 15px;
    font-weight: 500;
    color: var(--pr-gris);
}

.pr-paywall-points {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
    text-align: left;
    display: grid;
    gap: 9px;
}

.pr-paywall-points li {
    font-size: 13.5px;
    color: var(--pr-texte);
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.pr-paywall-points li i {
    color: var(--pr-vert-vif);
    margin-top: 2px;
}

.pr-paywall .pr-modal-actions {
    justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
    .pr-espace .pr-hero-etoile,
    .pr-espace .pr-offre-carte.est-entrante,
    .pr-espace .pr-skeleton span,
    .pr-confettis span,
    .pr-espace .pr-solde.est-pulse {
        animation: none;
    }
}

@media only screen and (max-width: 767px) {
    .pr-espace .pr-skeletons {
        grid-template-columns: 1fr;
    }

    .pr-espace .pr-hero {
        padding: 18px;
    }
}
