/* ==========================================================================
   Refonte des pages RolePlay : Documents, Permis, Cartes d'identité, Mes CV.
   Même langage que l'accueil RolePlay : grands titres serrés, surfaces
   arrondies sans cadre, pastilles, entrées en cascade. Chargée après staff.css
   et da2026.css (mêmes poids de sélecteur : c'est l'ordre qui tranche).
   ========================================================================== */

/* ── Brique : en-tête de page ── */
.rpx-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.4rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.rpx-kicker { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; color: var(--primary-color); }
.rpx-kicker .material-symbols-outlined { font-size: 1.15rem; }
.rpx-hero h1 { margin: .35rem 0 .6rem; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; }
.rpx-hero p { margin: 0; max-width: 46ch; font-size: 1.05rem; line-height: 1.55; color: var(--text-secondary); }
.rpx-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.rpx-chip { padding: .75rem 1.2rem; border-radius: 22px; background: var(--background-secondary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.rpx-chip b { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.rpx-chip i { font-style: normal; font-size: .8rem; color: var(--text-secondary); }

/* ── Briques : surface, entrée en cascade, boutons ── */
.rpx-panel { border-radius: 28px; background: var(--background-secondary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--shadow-sm); padding: clamp(1rem, 2.4vw, 1.7rem); }
.rpx-in { animation: rpxIn .65s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rpxIn { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { .rpx-in { animation: none; } }

body.rpx .st-btn { border-radius: 999px; padding: .7rem 1.25rem; transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .3s, background .25s; }
body.rpx .st-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--primary-color) 70%, transparent); }
body.rpx .st-btn:active:not(:disabled) { transform: scale(.97); transition-duration: .08s; }
body.rpx .st-btn.secondaire { border: 0; background: var(--background-card); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
body.rpx .st-btn.secondaire:hover:not(:disabled) { background: var(--background-card-hover); box-shadow: none; }
body.rpx .st-btn.vert { background: #2fbf63; }
body.rpx .st-vide, body.rpx .state-box { border-radius: 28px; background: var(--background-secondary); }
body.rpx .st-refus { border-radius: 32px; background: var(--background-secondary); margin: 1rem 0; }

/* Segments (onglets) : une pilule pleine, sans cadre */
.rpx-seg { position: relative; display: inline-flex; gap: .2rem; padding: .3rem; margin-bottom: 1.4rem; max-width: 100%; box-sizing: border-box; border-radius: 999px; background: var(--background-secondary); box-shadow: inset 0 0 0 1px var(--border-color); }
.rpx-seg button { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .62rem 1.15rem; border: 0; border-radius: 999px; background: none; color: var(--text-secondary); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap; transition: color .25s, background .35s cubic-bezier(.16, 1, .3, 1); }
.rpx-seg button:hover { color: var(--text-primary); }
.rpx-seg button.on { background: var(--primary-color); color: #fff; box-shadow: 0 6px 18px -6px rgba(76, 141, 255, .7); }
.rpx-seg .material-symbols-outlined { font-size: 1.15rem; }

/* Champ de recherche « projecteur » */
.rpx-spot { display: flex; align-items: center; gap: .8rem; height: 62px; padding: 0 1.3rem; border-radius: 22px; background: var(--background-secondary); box-shadow: inset 0 0 0 1px var(--border-color), var(--shadow-sm); transition: box-shadow .3s, transform .4s cubic-bezier(.16, 1, .3, 1); }
.rpx-spot:focus-within { box-shadow: 0 0 0 2px var(--primary-color), 0 18px 40px -20px rgba(76, 141, 255, .6); transform: translateY(-1px); }
.rpx-spot .material-symbols-outlined { color: var(--text-secondary); font-size: 1.5rem; }
.rpx-spot input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0; padding: 0 !important; color: var(--text-primary); font: inherit; font-size: 1.02rem; }

/* Avatars et listes de résultats */
.rpx-res { display: none; position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + .5rem); max-height: 320px; overflow-y: auto; padding: .4rem; border-radius: 22px; background: var(--background-elevated, var(--background-secondary)); box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--border-strong, var(--border-color)); }
.rpx-res.show { display: block; animation: rpxIn .3s cubic-bezier(.16, 1, .3, 1); }
.rpx-res-ligne { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .6rem .8rem; border: 0; border-radius: 16px; background: none; color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; transition: background .2s; }
.rpx-res-ligne:hover:not([disabled]) { background: var(--background-card-hover, var(--background-card)); }
.rpx-res-ligne[disabled] { opacity: .5; cursor: default; }
.rpx-res-ligne img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: var(--background-card); }
.rpx-res-ligne b { display: block; font-size: .95rem; font-weight: 600; }
.rpx-res-ligne small { display: block; font-size: .78rem; color: var(--text-secondary); }
.rpx-res-vide { padding: .9rem; color: var(--text-secondary); font-size: .88rem; }

/* ==========================================================================
   DOCUMENTS (viewer partagé : roleplay-documents.html et staff-documents.html)
   ========================================================================== */
body .docv-spot-wrap { position: relative; max-width: 720px; }
body .docv-spot-aide { margin: .7rem .4rem 0; font-size: .84rem; color: var(--text-secondary); }

body .docv-profil { display: flex; align-items: center; gap: 1.1rem; margin: 1.8rem 0 1.2rem; padding: 1.1rem 1.3rem; border-radius: 28px; background: radial-gradient(420px 140px at 0 0, rgba(76, 141, 255, .22), transparent 70%), var(--background-secondary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
body .docv-profil .docv-av { width: 72px; height: 72px; border-radius: 24px; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--background-secondary), 0 0 0 5px var(--primary-color); background: var(--background-card); }
body .docv-profil-txt { flex: 1; min-width: 0; }
body .docv-profil-txt small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); }
body .docv-profil-txt h2 { margin: .15rem 0 .2rem; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.035em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .docv-profil-txt span { font-size: .88rem; color: var(--text-secondary); }
body .docv-changer { flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1rem; border: 0; border-radius: 999px; background: var(--background-card); color: var(--text-primary); font: inherit; font-weight: 600; font-size: .86rem; cursor: pointer; transition: background .2s, transform .3s cubic-bezier(.16, 1, .3, 1); }
body .docv-changer:hover { background: var(--background-card-hover, var(--background-card)); transform: translateY(-2px); }

body .docv-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: .6rem; margin-bottom: 1.5rem; }
body .docv-type { position: relative; display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem; border: 0; border-radius: 20px; background: var(--background-secondary); color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: transform .4s cubic-bezier(.16, 1, .3, 1), background .25s, box-shadow .3s; animation: rpxIn .55s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(var(--i, 0) * 35ms); }
body .docv-type:hover { transform: translateY(-3px); background: var(--background-card-hover, var(--background-card)); }
body .docv-type.active { background: rgba(76, 141, 255, .18); box-shadow: 0 0 0 2px var(--primary-color), 0 14px 30px -16px rgba(76, 141, 255, .7); }
body .docv-type.vide { opacity: .5; }
body .docv-type .docv-ti { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: rgba(255, 255, 255, .07); }
body .docv-type.active .docv-ti { background: var(--primary-color); color: #fff; }
body .docv-type .docv-ti .material-symbols-outlined { font-size: 1.25rem; }
body .docv-type .docv-tl { flex: 1; min-width: 0; font-size: .86rem; font-weight: 600; line-height: 1.25; }
body .docv-type-badge { flex: none; min-width: 1.6rem; padding: .15rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .09); font-size: .76rem; font-weight: 700; text-align: center; }
body .docv-type.active .docv-type-badge { background: rgba(255, 255, 255, .22); color: #fff; }

body .docv-invite { border-radius: 28px; background: var(--background-secondary); padding: 3rem 1rem; }
body .docv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
body .docv-carte { display: flex; flex-direction: column; gap: .8rem; padding: .7rem .7rem 1rem; border: 0; border-radius: 26px; background: var(--background-secondary); color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .4s; animation: rpxIn .6s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
body .docv-carte:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 26px 46px -24px rgba(0, 0, 0, .8); }
body .docv-carte:active { transform: scale(.98); transition-duration: .08s; }
body .docv-carte img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border-radius: 18px; background: #080b14; }
body .docv-carte .docv-sans-image { aspect-ratio: 16 / 10; border-radius: 18px; }
body .docv-carte-nom { padding: 0 .4rem; font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
body .docv-carte-date { padding: 0 .4rem; margin-top: -.55rem; font-size: .78rem; color: var(--text-secondary); }

/* Fiche d'un document : l'image en grand à gauche, les infos à droite */
body .st-modal.docv-detail { max-width: 1040px; width: 100%; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.4rem; padding: 1.1rem; border-radius: 32px; align-items: start; }
body .docv-d-img { display: flex; align-items: center; justify-content: center; padding: .6rem; border-radius: 24px; background: #080b14; min-height: 200px; }
body .docv-d-img img { max-width: 100%; max-height: 64vh; border-radius: 14px; cursor: zoom-in; }
body .docv-d-side { display: flex; flex-direction: column; min-width: 0; padding: .4rem .4rem .4rem 0; }
body .docv-d-tete { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
body .docv-d-type { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(76, 141, 255, .18); color: #8fc1ff; font-size: .8rem; font-weight: 700; }
body .docv-d-type .material-symbols-outlined { font-size: 1.05rem; }
body .docv-d-x { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--background-card); color: var(--text-primary); cursor: pointer; transition: transform .35s cubic-bezier(.16, 1, .3, 1), background .2s; }
body .docv-d-x:hover { transform: rotate(90deg); background: var(--background-card-hover, var(--background-card)); }
body .docv-d-side h3 { margin: 0 0 .4rem; font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em; overflow-wrap: anywhere; }
body .docv-detail-meta { margin-top: .6rem; padding: .9rem 1rem; border-radius: 18px; background: var(--background-card); }
body .docv-d-lien { margin-top: .9rem; align-self: flex-start; }

@media (max-width: 860px) { body .st-modal.docv-detail { grid-template-columns: minmax(0, 1fr); padding: .8rem; } body .docv-d-side { padding: 0; } body .docv-d-img img { max-height: 46vh; } }
@media (max-width: 640px) {
    body .docv-profil { flex-wrap: wrap; padding: 1rem; }
    body .docv-profil .docv-av { width: 60px; height: 60px; border-radius: 20px; }
    body .docv-changer { width: 100%; justify-content: center; }
    body .docv-types { grid-template-columns: 1fr 1fr; }
    body .docv-type { flex-direction: column; align-items: flex-start; gap: .5rem; }
    body .docv-type-badge { position: absolute; top: .6rem; right: .6rem; }
    body .docv-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PERMIS
   ========================================================================== */
.pmx-outils { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.pmx-outils .rpx-seg { margin-bottom: 0; }
.pmx-rech { flex: 1; min-width: 220px; display: flex; align-items: center; gap: .6rem; height: 48px; padding: 0 1.1rem; border-radius: 999px; background: var(--background-secondary); box-shadow: inset 0 0 0 1px var(--border-color); }
.pmx-rech .material-symbols-outlined { color: var(--text-secondary); }
.pmx-rech input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0; padding: 0 !important; color: var(--text-primary); font: inherit; }

.pmx-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .9rem; }
.pmx-carte { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 26px; background: var(--background-secondary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .4s; animation: rpxIn .6s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.pmx-carte:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 22px 40px -24px rgba(0, 0, 0, .8); }
.pmx-av { width: 56px; height: 56px; border-radius: 20px; object-fit: cover; background: var(--background-card); display: block; }
.pmx-nom { font-size: 1.02rem; font-weight: 600; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmx-cats { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.pmx-cats span { padding: .15rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: .74rem; font-weight: 600; color: var(--text-secondary); }
.pmx-cats .aucune { background: none; padding-left: 0; font-weight: 500; }
/* Jauge de points : un anneau qui se remplit (0 à 12) */
.pmx-anneau { --p: 0; position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c, #4ade80) calc(var(--p) * 1%), rgba(255, 255, 255, .09) 0); }
.pmx-anneau::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--background-secondary); }
.pmx-anneau b { position: relative; font-size: .95rem; font-weight: 700; line-height: 1; text-align: center; }
.pmx-anneau b small { display: block; margin-top: 1px; font-size: .56rem; font-weight: 600; color: var(--text-secondary); }
.pmx-act { grid-column: 1 / -1; display: flex; gap: .5rem; }
.pmx-act .st-btn { flex: 1; }

/* Création : trois étapes numérotées */
.pmx-etapes { display: grid; gap: 1rem; max-width: 760px; }
.pmx-etape { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding: 1.3rem; border-radius: 28px; background: var(--background-secondary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.pmx-n { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-color); color: #fff; font-weight: 700; }
.pmx-etape h3 { margin: .3rem 0 .8rem; font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; }
.pmx-recherche { position: relative; }
.pmx-choisi { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: 20px; background: var(--background-card); }
.pmx-choisi img { width: 46px; height: 46px; border-radius: 16px; object-fit: cover; }
.pmx-choisi > div { flex: 1; min-width: 0; }
.pmx-choisi b { display: block; font-weight: 600; }
.pmx-choisi small { color: var(--text-secondary); font-size: .8rem; }
.pmx-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
.pmx-tuile { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1rem .6rem; border: 0; border-radius: 20px; background: var(--background-card); color: var(--text-primary); font: inherit; cursor: pointer; transition: transform .4s cubic-bezier(.16, 1, .3, 1), background .25s, box-shadow .3s; }
.pmx-tuile:hover { transform: translateY(-3px); }
.pmx-tuile.on { background: rgba(76, 141, 255, .18); box-shadow: 0 0 0 2px var(--primary-color); }
.pmx-tuile .emoji { font-size: 1.8rem; line-height: 1; }
.pmx-tuile b { font-size: .86rem; font-weight: 600; text-align: center; }
.pmx-apercu { max-width: 760px; text-align: center; }
.pmx-apercu img { width: 100%; border-radius: 22px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); margin-bottom: 1.2rem; }
.pmx-attente { display: grid; place-items: center; gap: 1rem; padding: 3rem 1rem; border-radius: 28px; background: var(--background-secondary); color: var(--text-secondary); text-align: center; }

/* Fiches (voir / gérer) */
.pmx-modal-tete { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.pmx-modal-tete img { width: 52px; height: 52px; border-radius: 18px; object-fit: cover; }
.pmx-modal-tete h3 { flex: 1; margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; min-width: 0; overflow-wrap: anywhere; }
.pmx-points { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; margin-bottom: 1rem; border-radius: 22px; background: var(--background-card); }
.pmx-points span { font-weight: 600; }
.pmx-pm { display: flex; align-items: center; gap: .7rem; }
.pmx-pm button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--background-secondary); color: var(--text-primary); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: transform .25s cubic-bezier(.16, 1, .3, 1), background .2s; }
.pmx-pm button:hover { background: var(--primary-color); color: #fff; transform: scale(1.1); }
.pmx-pm strong { min-width: 4.2rem; text-align: center; font-size: 1.1rem; }
.pmx-doc { margin-bottom: .8rem; padding: .9rem; border-radius: 24px; background: var(--background-card); }
.pmx-doc.invalide { box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .5); }
.pmx-doc-tete { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .7rem; }
.pmx-doc-tete b { display: block; font-weight: 600; }
.pmx-doc-tete small { color: var(--text-secondary); font-size: .8rem; }
.pmx-inval { margin-left: .4rem; padding: .12rem .5rem; border-radius: 999px; background: rgba(248, 113, 113, .16); color: #f87171; font-size: .7rem; font-weight: 700; }
.pmx-doc img { width: 100%; border-radius: 16px; display: block; background: #080b14; }
.pmx-doc p { margin: 0; color: var(--text-secondary); font-size: .85rem; }
body.rpx .st-modal { border-radius: 32px; }

@media (max-width: 640px) {
    .pmx-liste { grid-template-columns: minmax(0, 1fr); }
    .pmx-etape { grid-template-columns: minmax(0, 1fr); padding: 1.1rem; }
    .pmx-n { width: 32px; height: 32px; }
    .pmx-outils .rpx-seg { width: 100%; }
    .pmx-outils .rpx-seg button { flex: 1; justify-content: center; padding: .62rem .4rem; }
}

/* ==========================================================================
   CARTES D'IDENTITÉ (demandes de modification)
   ========================================================================== */
.cdx-liste { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); align-items: start; }
.cdx-carte { display: flex; flex-direction: column; gap: 1rem; padding: 1.3rem; border-radius: 30px; background: var(--background-secondary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    animation: rpxIn .6s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(var(--i, 0) * 70ms); transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .4s, height .4s; }
.cdx-carte.sortie { opacity: 0; transform: scale(.96) translateY(10px); pointer-events: none; }
.cdx-tete { display: flex; align-items: center; gap: .9rem; }
.cdx-ic { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 159, 10, .16); color: #ff9f0a; }
.cdx-tete > div { flex: 1; min-width: 0; }
.cdx-tete b { display: block; font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdx-tete small { color: var(--text-secondary); font-size: .78rem; word-break: break-all; }
.cdx-pastille { flex: none; padding: .3rem .75rem; border-radius: 999px; background: rgba(255, 159, 10, .16); color: #ffb340; font-size: .76rem; font-weight: 700; }
.cdx-changes { display: grid; gap: .5rem; }
.cdx-champ { display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.4fr); align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 18px; background: var(--background-card); }
.cdx-champ small { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.cdx-champ .material-symbols-outlined { font-size: 1.15rem; color: var(--primary-color); }
.cdx-champ b { font-size: .95rem; font-weight: 600; overflow-wrap: anywhere; }
.cdx-motif { margin: 0; padding: .8rem 1rem; border-radius: 18px; border-left: 3px solid var(--primary-color); background: rgba(76, 141, 255, .08); font-size: .9rem; line-height: 1.55; color: var(--text-secondary); }
.cdx-motif strong { display: block; margin-bottom: .2rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8fc1ff; }
.cdx-act { display: flex; gap: .6rem; }
.cdx-act .st-btn { flex: 1; padding: .85rem 1rem; }
@media (max-width: 560px) {
    .cdx-champ { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
    .cdx-champ .material-symbols-outlined { display: none; }
}

/* Confirmation maison (remplace confirm()) */
.rpx-conf { text-align: center; padding: .6rem .4rem .2rem; }
.rpx-conf .ic { width: 64px; height: 64px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 22px; background: rgba(76, 141, 255, .18); color: #8fc1ff; }
.rpx-conf .ic.danger { background: rgba(248, 113, 113, .16); color: #f87171; }
.rpx-conf .ic .material-symbols-outlined { font-size: 2rem; }
.rpx-conf h3 { margin: 0 0 .5rem; font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; }
.rpx-conf p { margin: 0 auto 1.3rem; max-width: 34ch; color: var(--text-secondary); line-height: 1.55; }
.rpx-conf .st-form-actions { justify-content: center; }
.rpx-conf .st-btn { flex: 1; max-width: 200px; }

/* ==========================================================================
   MES CV
   ========================================================================== */
body[data-rp="cv"] main[data-commu-content] { --cvx-gap: clamp(1rem, 2vw, 1.5rem); }
.cvx-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cvx-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.35rem; border: 0; border-radius: 999px; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .3s, background .25s; }
.cvx-btn.principal { background: var(--gradient-primary); color: #fff; box-shadow: 0 12px 28px -14px rgba(76, 141, 255, .8); }
.cvx-btn.second { background: var(--background-secondary); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--border-color); }
.cvx-btn:hover { transform: translateY(-3px); }
.cvx-btn:active { transform: scale(.97); transition-duration: .08s; }
.cvx-btn .material-symbols-outlined { font-size: 1.25rem; }
.cvx-titre { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; margin: clamp(1.6rem, 3vw, 2.6rem) 0 1.1rem; }
.cvx-titre h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -.035em; }
.cvx-titre p { margin: 0; font-size: .92rem; color: var(--text-secondary); }

/* Mes CV : des feuilles posées sur la table */
body[data-rp="cv"] .cv-grille-mes { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--cvx-gap); margin-bottom: 1rem; }
body[data-rp="cv"] .cv-carte { border: 0; border-radius: 26px; background: var(--background-secondary); padding: .7rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .4s; }
body[data-rp="cv"] .cv-carte:hover { transform: translateY(-8px) rotate(-.6deg); border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 50px -26px rgba(0, 0, 0, .85); }
body[data-rp="cv"] .cv-miniature { border-radius: 16px; box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .7); }
body[data-rp="cv"] .cv-carte-corps { padding: .85rem .5rem .4rem; }
body[data-rp="cv"] .cv-carte-titre { font-size: 1rem; font-weight: 600; }
body[data-rp="cv"] .cv-carte-badge { background: rgba(76, 141, 255, .16); color: #8fc1ff; }
body[data-rp="cv"] .cv-carte-actions { top: 1.2rem; right: 1.2rem; }
body[data-rp="cv"] .cv-carte-action { width: 34px; height: 34px; border-radius: 50%; }
@media (hover: none) { body[data-rp="cv"] .cv-carte-actions { opacity: 1; transform: none; } }   /* au doigt, pas de survol : les boutons restent visibles */
body[data-rp="cv"] .cv-vide-liste { border-radius: 28px; border: 0; background: var(--background-secondary); padding: 2.6rem 1.4rem; margin-bottom: 1rem; }
body[data-rp="cv"] .cv-vide-liste:not(.chargement)::before { content: 'description'; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 22px; background: rgba(76, 141, 255, .16); color: #8fc1ff; font-family: 'Material Symbols Outlined'; font-size: 2rem; }

/* Modèles : même cartes, plus généreuses */
body[data-rp="cv"] .cv-modeles-grille { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--cvx-gap); }
body[data-rp="cv"] .cv-modele-carte { border: 0; border-radius: 28px; padding: .7rem; background: var(--background-secondary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
body[data-rp="cv"] .cv-modele-carte:hover { border: 0; transform: translateY(-8px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 54px -26px rgba(0, 0, 0, .85); }
body[data-rp="cv"] .cv-modele-vignette-zone { border-radius: 18px; overflow: hidden; }
body[data-rp="cv"] .cv-modele-overlay { background: linear-gradient(200deg, color-mix(in srgb, var(--primary-color) 70%, #000) 0%, rgba(8, 10, 18, .6) 100%); }
body[data-rp="cv"] .cv-modele-corps { padding: .9rem .5rem .5rem; }
body[data-rp="cv"] .cv-modele-nom { font-size: 1.05rem; font-weight: 600; }
body[data-rp="cv"] .cv-carte-import { border: 0; border-radius: 28px; background: var(--background-secondary); box-shadow: inset 0 0 0 2px var(--border-color); }
body[data-rp="cv"] .cv-carte-import:hover { background: rgba(76, 141, 255, .1); box-shadow: inset 0 0 0 2px var(--primary-color); }
@media (hover: none) { body[data-rp="cv"] .cv-modele-overlay { display: none; } body[data-rp="cv"] .cv-modele-overlay-loupe { display: none; } }
@media (max-width: 560px) {
    body[data-rp="cv"] .cv-grille-mes, body[data-rp="cv"] .cv-modeles-grille { grid-template-columns: 1fr 1fr; gap: .8rem; }
    body[data-rp="cv"] .cv-modele-desc { display: none; }
    .cvx-actions .cvx-btn { flex: 1; justify-content: center; padding: .8rem .8rem; }
}
body[data-rp="cv"] .cv-preview-modal { border-radius: 32px; border: 0; background: var(--background-secondary); }

/* L'icône du bouton « retour » d'un écran de refus ne doit pas prendre la taille d'une illustration */
body.rpx .st-refus a .material-symbols-outlined { display: inline-block; margin: 0 .4rem 0 0; font-size: 1.2rem; opacity: 1; vertical-align: -.2em; }
body.rpx .st-refus a { border-radius: 999px; }
@media (max-width: 560px) { .cvx-btn { white-space: nowrap; font-size: .88rem; } }

/* Fenêtre qui s'ouvre depuis le bouton cliqué et y retourne en se fermant */
body.rpx .st-modal-fond.pmx-grow { animation: stFondApparait .3s ease both; }
body.rpx .st-modal-fond.pmx-grow .st-modal { animation: pmxGrow .6s cubic-bezier(.16, 1, .3, 1) both; }
body.rpx .st-modal-fond.pmx-grow.st-fermeture { animation: stFondApparait .3s ease reverse both; }
body.rpx .st-modal-fond.pmx-grow.st-fermeture .st-modal { animation: pmxGrow .32s cubic-bezier(.5, 0, .75, 0) reverse both; }
@keyframes pmxGrow { from { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(.18); border-radius: 60px; } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
.pmx-contenu { animation: rpxIn .5s cubic-bezier(.16, 1, .3, 1) backwards; }

/* ── Documents v3 : un dossier (passeport à gauche, classeur à droite) ── */
.dxv-recents { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: .9rem .2rem 0; }
.dxv-recents:empty { display: none; }
.dxv-recents > span { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); margin-right: .2rem; }
.dxv-recent { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .85rem .3rem .3rem; border: 0; border-radius: 999px; background: var(--background-secondary); color: var(--text-primary); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px var(--border-color); transition: transform .35s cubic-bezier(.16, 1, .3, 1), background .2s; }
.dxv-recent:hover { transform: translateY(-2px); background: var(--background-card); }
.dxv-recent img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

.dxv-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(1rem, 2.4vw, 2rem); align-items: start; margin-top: 1.8rem; }
.dxv-passeport { position: sticky; top: calc(var(--nav-height, 70px) + 1rem); display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding: 1.4rem; border-radius: 32px; overflow: hidden; background: var(--background-secondary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), var(--shadow-md); }
.dxv-fond { position: absolute; inset: 0 0 auto 0; height: 120px; background: linear-gradient(135deg, rgba(76, 141, 255, .7), rgba(167, 139, 250, .5)); opacity: .55; }
.dxv-av { position: relative; width: 96px; height: 96px; margin-top: 30px; border-radius: 32px; object-fit: cover; background: var(--background-card); box-shadow: 0 0 0 5px var(--background-secondary), 0 18px 36px rgba(0, 0, 0, .5); }
.dxv-passeport small { position: relative; margin-top: .9rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); }
.dxv-passeport h2 { position: relative; margin: 0; max-width: 100%; font-size: 1.7rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; overflow-wrap: anywhere; }
.dxv-stats { position: relative; display: flex; gap: .6rem; margin-top: .9rem; width: 100%; }
.dxv-stats > div { flex: 1; padding: .7rem .8rem; border-radius: 18px; background: var(--background-card); }
.dxv-stats b { display: block; font-size: 1.3rem; letter-spacing: -.03em; }
.dxv-stats i { font-style: normal; font-size: .76rem; color: var(--text-secondary); }
.dxv-barre { position: relative; width: 100%; height: 6px; margin-top: .8rem; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.dxv-barre u { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #4c8dff, #a78bfa); }
.dxv-passeport .docv-changer { position: relative; width: 100%; justify-content: center; margin-top: 1rem; }

.dxv-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.1rem; }
.dxv-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border: 0; border-radius: 999px; background: var(--background-secondary); color: var(--text-secondary); font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; box-shadow: inset 0 0 0 1px var(--border-color); transition: background .3s cubic-bezier(.16, 1, .3, 1), color .2s, transform .3s cubic-bezier(.16, 1, .3, 1); }
.dxv-chip:hover { color: var(--text-primary); transform: translateY(-2px); }
.dxv-chip.on { background: var(--primary-color); color: #fff; box-shadow: 0 8px 20px -8px rgba(76, 141, 255, .8); }
.dxv-chip .material-symbols-outlined { font-size: 1.1rem; }
.dxv-chip em { font-style: normal; font-size: .74rem; padding: .05rem .45rem; border-radius: 999px; background: rgba(255, 255, 255, .14); }

.dxv-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.dxv-carte { display: flex; flex-direction: column; gap: .65rem; padding: .6rem .6rem 1rem; border: 0; border-radius: 28px; background: var(--background-secondary); color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .4s; animation: rpxIn .6s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.dxv-carte:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 28px 46px -26px rgba(0, 0, 0, .85); }
.dxv-carte:active { transform: scale(.98); transition-duration: .08s; }
.dxv-img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: #080b14; }
.dxv-img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.dxv-carte:hover .dxv-img img { transform: scale(1.06); }
.dxv-badge { position: absolute; left: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .65rem; border-radius: 999px; background: rgba(10, 12, 20, .65); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: .72rem; font-weight: 700; color: #fff; }
.dxv-badge .material-symbols-outlined { font-size: .95rem; }
.dxv-nom { padding: 0 .5rem; font-size: .98rem; font-weight: 600; letter-spacing: -.01em; }
.dxv-carte .docv-carte-date { padding: 0 .5rem; }

/* Visionneuse : flèches sur l'image, glissement entre documents */
body .docv-d-img { position: relative; }
.dxv-fl { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(10, 12, 20, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; cursor: pointer; transition: transform .3s cubic-bezier(.16, 1, .3, 1), background .2s; }
.dxv-fl.g { left: .8rem; } .dxv-fl.d { right: .8rem; }
.dxv-fl:hover { background: var(--primary-color); transform: scale(1.1); }
.dxv-pos { margin: 0; font-size: .85rem; color: var(--text-secondary); }
body .st-modal.docv-detail.va .docv-d-img img { animation: dxvVa .45s cubic-bezier(.16, 1, .3, 1); }
body .st-modal.docv-detail.vg .docv-d-img img { animation: dxvVg .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes dxvVa { from { opacity: 0; transform: translateX(50px); } } @keyframes dxvVg { from { opacity: 0; transform: translateX(-50px); } }

@media (max-width: 900px) { .dxv-layout { grid-template-columns: minmax(0, 1fr); } .dxv-passeport { position: relative; top: 0; flex-direction: row; flex-wrap: wrap; align-items: center; } .dxv-av { margin-top: 20px; width: 76px; height: 76px; border-radius: 26px; } .dxv-passeport small { margin-top: 0; } .dxv-passeport h2 { font-size: 1.4rem; } }
@media (max-width: 560px) { .dxv-grille { grid-template-columns: minmax(0, 1fr); } .dxv-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -.2rem; padding: .2rem; } .dxv-chip { flex: none; } }

/* ── Éditeur de CV : onglets, surfaces douces, rien ne dépasse ── */
.cvt-barre { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; padding: .35rem; border-radius: 24px; background: var(--background-secondary); box-shadow: inset 0 0 0 1px var(--border-color), 0 12px 24px -16px rgba(0, 0, 0, .8); }
.cvt-barre button { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem .2rem; border: 0; border-radius: 18px; background: none; color: var(--text-secondary); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; transition: background .3s cubic-bezier(.16, 1, .3, 1), color .2s; }
.cvt-barre button .material-symbols-outlined { font-size: 1.25rem; }
.cvt-barre button:hover { color: var(--text-primary); }
.cvt-barre button.on { background: var(--primary-color); color: #fff; box-shadow: 0 8px 18px -8px rgba(76, 141, 255, .8); }
.cv-edit-topbar { border: 0; border-radius: 28px; background: var(--background-secondary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--shadow-sm); }
.cv-section { border: 0; border-left: 0; border-radius: 26px; background: var(--background-secondary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.cv-section-head h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.cv-champ input[type="text"], .cv-champ input[type="date"], .cv-champ input[type="tel"], .cv-champ input[type="email"], .cv-champ input[type="url"], .cv-champ textarea, .cv-champ select { border: 0; border-radius: 16px; background: var(--background-card); padding: .75rem .9rem; box-shadow: inset 0 0 0 1px var(--border-color); box-sizing: border-box; }
.cv-champ input:focus, .cv-champ textarea:focus, .cv-champ select:focus { box-shadow: 0 0 0 2px var(--primary-color); }
.cv-ajouter-btn { border-radius: 18px; }
.cv-preview-frame-wrap { border-radius: 20px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); }
.cv-edit-layout { grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); }
@media (max-width: 900px) {
    .cv-edit-layout { grid-template-columns: minmax(0, 1fr); padding: 1rem 1rem 5rem; }
    .cv-form-panel, .cv-section, .cv-section-corps, .cv-champ, .cv-ligne-2 > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
    .cv-ligne-2 { grid-template-columns: minmax(0, 1fr); }
    .cv-edit-topbar { margin: 1rem; }
    .cv-edit-topbar > * { min-width: 0; }
    .cvt-barre { top: calc(var(--nav-height, 64px) + .4rem); }
}

/* Fermeture de la fiche : elle retourne dans le bouton d'où elle est sortie */
body.rpx .st-modal-fond.pmx-grow.st-fermeture .st-modal { animation: pmxFerme .32s cubic-bezier(.5, 0, .75, 0) both; }
@keyframes pmxFerme { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(.18); } }

/* ── Mes CV : un atelier (liste à gauche, grand aperçu à droite) ── */
.cvl { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: clamp(1rem, 2.4vw, 2rem); align-items: start; }
.cvl[hidden] { display: none; }
.cvl-liste { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.cvl-ligne { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 1rem; align-items: center; width: 100%; padding: .6rem 1rem .6rem .6rem; border: 0; border-radius: 26px; background: var(--background-secondary); color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: transform .45s cubic-bezier(.16, 1, .3, 1), background .3s, box-shadow .3s; }
.cvl-ligne:hover { transform: translateX(5px); }
.cvl-ligne.sel { background: rgba(76, 141, 255, .16); box-shadow: 0 0 0 2px var(--primary-color), 0 18px 36px -20px rgba(76, 141, 255, .8); transform: translateX(8px); }
.cvl-mini { display: block; width: 74px; aspect-ratio: 210 / 297; border-radius: 12px; overflow: hidden; background: #f1f1f4; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .8); }
.cvl-txt { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.cvl-txt b { font-size: 1rem; font-weight: 600; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cvl-txt i { font-style: normal; font-size: .8rem; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cvl-txt em { display: inline-flex; align-items: center; gap: .3rem; align-self: flex-start; font-style: normal; font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: rgba(76, 141, 255, .16); color: #8fc1ff; }
.cvl-txt em .material-symbols-outlined { font-size: .9rem; }
.cvl-apercu { position: sticky; top: calc(var(--nav-height, 70px) + 1rem); min-width: 0; padding: clamp(.8rem, 2vw, 1.4rem); border-radius: 34px; background: var(--background-secondary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 70px -40px rgba(0, 0, 0, .9); }
.cvl-feuille { max-width: 620px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9); animation: rpxIn .5s cubic-bezier(.16, 1, .3, 1); }
.cvl-feuille img { width: 100%; display: block; }
.cvl-barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.1rem; }
.cvl-barre b { display: block; font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }
.cvl-barre span { font-size: .84rem; color: var(--text-secondary); }
.cvl-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cvx-btn.danger:hover { background: rgba(239, 68, 68, .9); color: #fff; }
.cvl-vide { text-align: center; padding: 3rem 1.2rem; border-radius: 30px; background: var(--background-secondary); color: var(--text-secondary); grid-column: 1 / -1; }
.cvl-vide .material-symbols-outlined { display: block; margin-bottom: .6rem; font-size: 2.8rem; color: var(--primary-color); }
.cvl-vide b { display: block; margin-bottom: .3rem; font-size: 1.2rem; color: var(--text-primary); }
#cvSeg em { font-style: normal; font-size: .74rem; padding: .05rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .14); }
@media (max-width: 900px) {
    .cvl { grid-template-columns: minmax(0, 1fr); }
    .cvl-apercu { position: static; order: -1; }
    .cvl-liste { flex-direction: row; flex-wrap: wrap; }
    .cvl-ligne { width: calc(50% - .3rem); grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; padding: .6rem; transform: none !important; }
    .cvl-mini { width: 60%; }
    .cvl-modele .cvl-txt i { display: none; }
    #cvSeg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-radius: 24px; }
    #cvSeg button { justify-content: center; padding: .6rem .3rem; font-size: .78rem; flex-direction: column; gap: .15rem; }
}

/* Mes CV : la vue arrive du côté d'où on vient ; coins nets sur l'aperçu */
.cvl.arrive-d { animation: cvArriveD .5s cubic-bezier(.16, 1, .3, 1); } .cvl.arrive-g { animation: cvArriveG .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes cvArriveD { from { opacity: 0; transform: translateX(7%); } } @keyframes cvArriveG { from { opacity: 0; transform: translateX(-7%); } }
.cvl-feuille, .cvl-feuille .cv-zoom-frame, .cvl-feuille .cv-page, .cvl-feuille [data-template] { border-radius: 0 !important; }
.cvl-feuille { border-radius: 16px !important; }
.cvl-mini, .cvl-mini .cv-zoom-frame, .cvl-mini .cv-page, .cvl-mini [data-template] { border-radius: 0 !important; }
.cvl-mini { border-radius: 12px !important; }
.cvl-apercu { overflow: hidden; }

/* Immobilier : un point qu'on peut prendre */
.im-pin.mobile button { cursor: grab; touch-action: none; }
.im-pin.mobile svg { transform: scale(1.25); filter: drop-shadow(0 0 8px rgba(76, 141, 255, .9)); }
.im-pin.saisi button { cursor: grabbing; } .im-pin.saisi svg { transform: scale(1.5) translateY(-4px); }

/* Documents : la fenêtre d'un document se referme en s'animant (le voile s'efface, la fiche rétrécit) */
body .st-modal-fond.st-fermeture:has(.docv-detail) { animation: dxvFondOut .28s ease both !important; }
body .st-modal-fond.st-fermeture .st-modal.docv-detail { animation: dxvOut .28s cubic-bezier(.5, 0, .75, 0) both !important; }
@keyframes dxvFondOut { to { opacity: 0; } }
@keyframes dxvOut { to { opacity: 0; transform: translateY(24px) scale(.93); } }

/* Permis > Gérer : bandeau de régénération des images */
.pmx-regen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: 1rem 1.2rem; border-radius: 22px; background: var(--background-secondary); box-shadow: inset 0 0 0 1px var(--border-color); }
.pmx-regen small { display: block; margin-top: .15rem; color: var(--text-secondary); }
@media (max-width: 640px) { .pmx-regen { flex-direction: column; align-items: stretch; } }
