/* @portee: admin */
/* =========================================================================
   Formations et distinctions (v5, agent 2) — préfixes fv- (formations), ds- (distinctions), st- (studio d'attestations)
   Variables du thème uniquement (clair / sombre).
   ========================================================================= */

/* ------------------------------------------------------------------ Sous-navigation par liens */
.fv-subnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.fv-subnav::-webkit-scrollbar { display: none; }
.fv-subnav .subtab { white-space: nowrap; text-decoration: none; }

/* ------------------------------------------------------------------ Studio : galerie */
.st-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.st-carte { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elev); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.st-carte.is-off { opacity: .62; }
.st-vignette { position: relative; display: block; aspect-ratio: 297 / 210; overflow: hidden; background: linear-gradient(135deg, var(--bg-sunken), var(--bg)); border-bottom: 1px solid var(--line); }
.st-vignette-frame { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: transparent; }
.st-carte-corps { display: flex; flex-direction: column; gap: .35rem; padding: .7rem .8rem .6rem; flex: 1; }
.st-carte-titre { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.st-clip2 { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-carte-pied { display: flex; align-items: center; gap: .15rem; margin-top: auto; padding-top: .3rem; }
.menu.menu-right { right: 0; left: auto; }

/* ------------------------------------------------------------------ Studio : éditeur */
.st-head .st-titre-ligne { flex-wrap: wrap; margin-top: .15rem; }
.st-nom-input { font: inherit; font-size: 1.55rem; font-weight: 800; letter-spacing: -.01em; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text); padding: .1rem .45rem; margin-left: -.45rem; min-width: 0; max-width: 100%; width: min(640px, 100%); }
.st-nom-input:hover { border-color: var(--line); }
.st-nom-input:focus { outline: none; border-color: var(--brand); background: var(--bg-elev); }
.st-editeur { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(330px, 400px) 1fr; gap: 1rem; }
.st-panneau { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.st-onglets { margin: .6rem .6rem 0; flex-wrap: wrap; }
.st-onglets .subtab { padding: .38rem .6rem; font-size: .8rem; }
.st-panneau-corps { flex: 1; min-height: 0; overflow-y: auto; padding: .9rem; }
.st-bloc { display: flex; flex-direction: column; gap: .3rem; }
.st-bloc + .st-bloc { padding-top: .85rem; border-top: 1px dashed var(--line); }
.st-bloc-titre { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--text-2); margin-bottom: .2rem; }
.st-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-sunken); border: 1px solid var(--line); }
.st-seg button { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: .82rem; font-weight: 600; padding: .35rem .7rem; border-radius: 8px; cursor: pointer; }
.st-seg button.is-on { background: var(--bg-elev); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.st-seg--mini button { padding: .22rem .5rem; font-size: .74rem; }
.st-palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .45rem; }
.st-palette { display: flex; flex-direction: column; gap: .25rem; border: 1px solid var(--line); border-radius: 10px; padding: .3rem; background: var(--bg-elev); cursor: pointer; text-align: left; color: var(--text); }
.st-palette.is-on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft, rgba(92, 172, 48, .25)); }
.st-palette-fond { position: relative; display: block; height: 34px; border-radius: 7px; border: 1px solid rgba(0, 0, 0, .08); overflow: hidden; }
.st-palette-fond i { position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; }
.st-palette-fond b { position: absolute; left: 34px; right: 6px; top: 9px; height: 3px; border-radius: 2px; }
.st-palette-fond em { position: absolute; left: 34px; width: 18px; top: 18px; height: 8px; border-radius: 2px; }
.st-palette-nom { font-size: .66rem; line-height: 1.2; color: var(--text-2); }
.st-couleurs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem .6rem; margin-top: .45rem; }
.st-couleur { display: flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--text-2); cursor: pointer; }
.st-couleur input { width: 30px; height: 26px; border: 1px solid var(--line); border-radius: 6px; padding: 1px; background: var(--bg-elev); cursor: pointer; }
.st-details summary { cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--text-2); }
.st-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .4rem; }
.st-tuiles--3 { grid-template-columns: repeat(3, 1fr); }
.st-tuile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; min-height: 62px; padding: .4rem .3rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elev); color: var(--text-2); font: inherit; font-size: .7rem; line-height: 1.2; text-align: center; cursor: pointer; transition: border-color .15s, transform .15s; }
.st-tuile i { font-size: 1.25rem; color: var(--text); }
.st-tuile:hover { transform: translateY(-1px); border-color: var(--text-2); }
.st-tuile.is-on { border-color: var(--brand); color: var(--text); background: var(--brand-soft, rgba(92, 172, 48, .1)); }
.st-texture-ech { width: 100%; height: 30px; border-radius: 6px; background-color: var(--fond, #fff); background-size: 120px; border: 1px solid rgba(0, 0, 0, .08); }
.st-tx-verge { background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 4px); }
.st-tx-guilloche, .st-tx-rosace { background-image: repeating-radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .14) 0 1px, transparent 1px 5px); }
.st-tx-geometrique { background-image: linear-gradient(60deg, transparent 47%, rgba(0, 0, 0, .14) 48% 52%, transparent 53%), linear-gradient(-60deg, transparent 47%, rgba(0, 0, 0, .14) 48% 52%, transparent 53%); background-size: 14px 24px; }
.st-tx-chevrons { background-image: linear-gradient(135deg, transparent 45%, rgba(0, 0, 0, .15) 46% 54%, transparent 55%), linear-gradient(45deg, transparent 45%, rgba(0, 0, 0, .15) 46% 54%, transparent 55%); background-size: 12px 8px; }
.st-tx-pointille { background-image: radial-gradient(rgba(0, 0, 0, .25) 1px, transparent 1.2px); background-size: 7px 7px; }
.st-tx-degrade { background-image: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .7), transparent 60%), linear-gradient(160deg, rgba(0, 0, 0, .1), transparent 50%, rgba(0, 0, 0, .08)); }
.st-tx-filigrane { background: var(--fond, #fff) url('../../img/eit_logo2.png') center / 26px no-repeat; opacity: .5; }
.st-curseurs { display: flex; flex-direction: column; gap: .4rem; margin-top: .45rem; }
.st-curseurs label { display: flex; flex-direction: column; gap: .15rem; font-size: .78rem; color: var(--text-2); }
.st-curseurs label span { display: flex; justify-content: space-between; }
.st-curseurs input[type=range] { width: 100%; accent-color: var(--brand); }
.st-bascules { display: flex; flex-direction: column; gap: .35rem; margin-top: .45rem; }
.st-echantillon { margin-top: .35rem; padding: .5rem .7rem; border-radius: 10px; background: var(--bg-sunken); border: 1px solid var(--line); font-size: 1.35rem; line-height: 1.25; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-variables { display: flex; flex-wrap: wrap; gap: .3rem; }
.st-variables .chip { cursor: pointer; font-family: ui-monospace, monospace; font-size: .72rem; }
.st-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .4rem; }
.st-logo { position: relative; display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .45rem .3rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elev); cursor: pointer; font-size: .7rem; color: var(--text-2); text-align: center; }
.st-logo img { height: 34px; max-width: 80px; object-fit: contain; }
.st-logo span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-logo.is-on { border-color: var(--brand); background: var(--brand-soft, rgba(92, 172, 48, .1)); }
.st-logo b { position: absolute; top: 4px; left: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .7rem; display: flex; align-items: center; justify-content: center; }
.st-logo-x { position: absolute; top: 2px; right: 2px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; padding: 2px; border-radius: 6px; }
.st-logo-x:hover { color: var(--danger); background: var(--bg-sunken); }
.st-logo--ajout { justify-content: center; border-style: dashed; min-height: 70px; }
.st-logo--ajout i { font-size: 1.3rem; }
.st-signataire { display: flex; flex-direction: column; gap: .3rem; padding: .55rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-sunken); margin-top: .4rem; }
.st-scene { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 30% 20%, var(--bg-elev), var(--bg-sunken)); }
.st-scene-barre { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.st-scene-zone { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 16px; }
.st-scene-zone.is-defile { overflow: auto; align-items: flex-start; justify-content: flex-start; }
.st-feuille { position: relative; flex: none; box-shadow: 0 18px 50px rgba(0, 0, 0, .28), 0 2px 8px rgba(0, 0, 0, .15); border-radius: 2px; overflow: hidden; background: #fff; }
.st-frame { position: absolute; left: 0; top: 0; width: var(--w); height: var(--h); border: 0; transform: scale(var(--k)); transform-origin: 0 0; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.st-frame.is-on { opacity: 1; z-index: 1; }
.st-tourne { animation: st-tourne 1s linear infinite; display: inline-block; }
@keyframes st-tourne { to { transform: rotate(360deg); } }
@media (max-width: 1023px) {
    .st-editeur { grid-template-columns: 1fr; }
    .st-scene { min-height: 320px; order: -1; }
    .st-panneau-corps { max-height: none; }
}

/* ------------------------------------------------------------------ Formations : sous-navigation compacte */
.fv-subnav .subtab { padding: .42rem .7rem; gap: .35rem; }
@media (max-width: 1599px) { .fv-subnav .subtab i { display: none; } .fv-subnav .subtab { padding: .42rem .62rem; } }
.fv-seg-a { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .65rem; border-radius: 8px; color: var(--text-2); font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.fv-seg-a.is-on { background: var(--bg-elev); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.fv-seg-a .count { font-size: .7rem; padding: 0 .35rem; border-radius: 99px; background: var(--bg-sunken); color: var(--text-2); }

/* ------------------------------------------------------------------ Tableau de bord */
.fv-tableau-zone { min-height: 0; }
.fv-tableau { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding-bottom: .5rem; }
.fv-span-2 { grid-column: span 2; }
.fv-carte { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.fv-carte .panel-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.fv-carte .panel-body { flex: 1; }
.fv-liste { display: flex; flex-direction: column; gap: .25rem; }
.fv-ligne { display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; border-radius: 10px; color: inherit; text-decoration: none; transition: background .15s; }
.fv-ligne:hover { background: var(--bg-sunken); }
.fv-pastille { flex: none; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-sunken); color: var(--text-2); font-size: 1rem; vertical-align: middle; }
.fv-pastille.tone-danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.fv-pastille.tone-warning { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
.fv-pastille.tone-success { background: var(--brand-soft, rgba(92, 172, 48, .14)); color: var(--brand-ink); }
.fv-barre { display: flex; flex-direction: column; gap: .25rem; }
.fv-barre-fond { height: 8px; border-radius: 99px; background: var(--bg-sunken); overflow: hidden; }
.fv-barre-fond i { display: block; height: 100%; border-radius: 99px; background: var(--text-2); transition: width .6s ease; }
.fv-barre.tone-success .fv-barre-fond i { background: var(--brand); }
.fv-barre.tone-info .fv-barre-fond i { background: #2F8FD8; }
.fv-barre.tone-danger .fv-barre-fond i { background: var(--danger); }
.fv-barre.tone-warning .fv-barre-fond i { background: var(--warning); }
.fv-barre.tone-muted .fv-barre-fond i { background: var(--line); }
@media (max-width: 1279px) { .fv-tableau { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .fv-tableau { grid-template-columns: 1fr; } .fv-span-2 { grid-column: auto; } }

/* ------------------------------------------------------------------ Vagues */
.fv-vague-tag { display: inline-flex; align-items: center; gap: .25rem; margin-top: .2rem; padding: .05rem .45rem; border-radius: 99px; font-size: .68rem; font-weight: 700; text-decoration: none; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.fv-vagues { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.fv-vague { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elev); color: inherit; text-decoration: none; overflow: hidden; }
.fv-vague::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.fv-vague-tete { display: flex; align-items: flex-start; gap: .6rem; }
.fv-vague-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--c); }
.fv-vague-sessions { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.fv-vague-session { display: inline-flex; flex-direction: column; align-items: center; min-width: 38px; padding: .15rem .3rem; border-radius: 8px; background: var(--bg-sunken); font-size: .62rem; text-transform: uppercase; color: var(--text-2); line-height: 1.1; }
.fv-vague-session b { font-size: .9rem; color: var(--text); }
.fv-vague-session.terminee { opacity: .55; }
.fv-vague-session.en_cours { background: color-mix(in srgb, var(--warning) 18%, transparent); }
.fv-jauge { height: 5px; border-radius: 99px; background: var(--bg-sunken); overflow: hidden; margin-top: .3rem; }
.fv-jauge i { display: block; height: 100%; background: var(--c, var(--brand)); border-radius: 99px; }
.fv-vague-detail { display: flex; flex-direction: column; gap: .6rem; }
.fv-sess { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 12px; background: var(--bg-elev); color: inherit; text-decoration: none; }
.fv-sess-chiffres { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .3rem; font-size: .75rem; color: var(--text-2); }
.fv-sess-chiffres .tone-success { color: var(--brand-ink); }
.fv-sess-chiffres .tone-danger { color: var(--danger); }
.fv-sess-chiffres .tone-violet { color: #8B5CF6; }
.fv-avatar-ext { background: color-mix(in srgb, #F47B20 22%, var(--bg-elev)) !important; color: #C2560A !important; }

/* Assistant « Programmer une vague » */
.fv-etapes { margin-bottom: .4rem; }
.fv-couleur { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.fv-couleur.is-on { border-color: var(--text); }
.fv-generateur { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem .7rem; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-sunken); }
.fv-generateur .field { margin: 0; }
.fv-generateur-btn { display: flex; align-items: flex-end; }
.fv-sessions-gen { display: flex; flex-direction: column; gap: .35rem; }
.fv-sg { display: grid; grid-template-columns: 24px 142px 108px 142px 108px minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1fr) 62px 34px; gap: .35rem; align-items: center; }
.fv-generateur .input, .fv-generateur .select, .fv-sg .input, .fv-ext .input, .fv-ext .select { min-width: 0; width: 100%; }
.fv-generateur input[type=time], .fv-sg input[type=time], .fv-sg input[type=date] { padding-inline: .5rem; }
.fv-sg-num { width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: .7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.fv-participants { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.2rem; }
.fv-externes { display: flex; flex-direction: column; gap: .35rem; margin-top: .45rem; }
.fv-ext { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr) 62px 32px; gap: .3rem; align-items: center; }
.fv-recap { display: flex; flex-wrap: wrap; gap: 1.2rem; padding: .7rem .9rem; border-radius: 12px; background: var(--bg-sunken); font-size: .9rem; }
@media (max-width: 1023px) {
    .fv-generateur { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fv-sg { grid-template-columns: 24px 1fr 1fr; }
    .fv-sg input:nth-of-type(n+5) { grid-column: span 1; }
    .fv-participants { grid-template-columns: 1fr; }
    .fv-ext { grid-template-columns: 1fr 1fr; }
}

/* Convocation */
.fv-convoc-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; }
.fv-apercu-mail { display: flex; flex-direction: column; gap: .35rem; min-height: 420px; }
.fv-apercu-mail iframe { flex: 1; width: 100%; min-height: 380px; border: 1px solid var(--line); border-radius: 12px; background: #EEF0EC; }
.fv-conv { display: grid; grid-template-columns: auto auto; grid-template-areas: "b m" "d d"; justify-content: start; align-items: center; column-gap: .15rem; row-gap: .1rem; min-width: 150px; }
.fv-conv > .badge { grid-area: b; white-space: nowrap; }
.fv-conv > .xsmall { grid-area: d; white-space: nowrap; }
.fv-conv-menu { grid-area: m; }
.fv-badge-ext { margin-left: .3rem; font-size: .62rem; }
@media (max-width: 1023px) { .fv-convoc-grille { grid-template-columns: 1fr; } .fv-apercu-mail { min-height: 300px; } }

/* ------------------------------------------------------------------ Plan / calendrier */
.fv-plan-titre { min-width: 140px; text-align: center; font-size: .95rem; }
.fv-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); min-height: 100%; }
.fv-cal-entete { background: var(--bg-sunken); padding: .35rem .5rem; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.fv-cal-jour { position: relative; background: var(--bg-elev); min-height: 92px; padding: .3rem .35rem .4rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.fv-cal-jour.is-hors { background: var(--bg); }
.fv-cal-jour.is-hors .fv-cal-num { opacity: .4; }
.fv-cal-jour.is-we { background: color-mix(in srgb, var(--bg-sunken) 60%, var(--bg-elev)); }
.fv-cal-num { font-size: .75rem; font-weight: 700; color: var(--text-2); }
.fv-cal-jour.is-auj .fv-cal-num { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: #fff; }
.fv-cal-ev { display: block; padding: .12rem .4rem; border-radius: 6px; font-size: .7rem; line-height: 1.35; color: var(--text); text-decoration: none; background: color-mix(in srgb, var(--c) 16%, var(--bg-elev)); border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-cal-ev.is-suite { opacity: .75; border-left-style: dashed; }
.fv-cal-ev b { font-weight: 800; }
.fv-cal-plus { font-size: .68rem; color: var(--text-2); padding-left: .3rem; }
.fv-agenda { display: none; padding: .5rem; flex-direction: column; gap: .8rem; }
.fv-agenda-date { font-size: .78rem; font-weight: 800; color: var(--text-2); margin: 0 0 .3rem .3rem; }
.fv-agenda .fv-ligne { background: var(--bg-elev); border: 1px solid var(--line); margin-bottom: .3rem; }
.fv-plan-an th.fv-plan-mois, .fv-plan-an td.fv-plan-cell { text-align: center; width: 6%; }
.fv-plan-mois.is-auj { color: var(--brand-ink); }
.fv-plan-pastille { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 .4rem; border-radius: 8px; font-size: .78rem; font-weight: 800; color: #fff; background: var(--c); text-decoration: none; }
@media (max-width: 1023px) { .fv-cal { display: none; } .fv-agenda { display: flex; } }

/* ------------------------------------------------------------------ Imports du module */
.fv-imports { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.fv-import { display: flex; gap: .9rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elev); }
.fv-import-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--brand-soft, rgba(92, 172, 48, .14)); color: var(--brand-ink); }

/* ------------------------------------------------------------------ Distinctions : palmarès, propositions, décerner */
.ds-palmares { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; align-items: start; }
.ds-cat { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-elev); overflow: hidden; }
.ds-cat-tete { display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; background: linear-gradient(135deg, color-mix(in srgb, #E8A317 14%, var(--bg-elev)), var(--bg-elev)); border-bottom: 1px solid var(--line); }
.ds-cat-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, #C9A13B, #8C6A1F); box-shadow: 0 4px 12px rgba(140, 106, 31, .35); }
.ds-periodes { list-style: none; margin: 0; padding: .5rem .7rem .7rem; display: flex; flex-direction: column; gap: .5rem; }
.ds-periodes li { position: relative; padding-left: .9rem; border-left: 2px solid var(--line); }
.ds-periodes li::before { content: ""; position: absolute; left: -6px; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: #C9A13B; border: 2px solid var(--bg-elev); }
.ds-periode { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin-bottom: .2rem; }
.ds-laureat { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; }
.ds-rang { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 800; color: #fff; background: #8C9487; }
.ds-rang-1 { background: linear-gradient(135deg, #E2C26A, #A67C22); }
.ds-rang-2 { background: linear-gradient(135deg, #D5DADF, #7D8894); }
.ds-rang-3 { background: linear-gradient(135deg, #E2B48A, #9A6334); }
.ds-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 1rem; align-items: start; }
.ds-prop { display: flex; flex-direction: column; gap: .55rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elev); }
.ds-prop-tete { display: flex; align-items: center; gap: .6rem; }
.ds-score { flex: none; min-width: 34px; height: 34px; padding: 0 .4rem; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; background: var(--brand-soft, rgba(92, 172, 48, .14)); color: var(--brand-ink); }
.ds-prop-motif { margin: 0; color: var(--text); line-height: 1.5; white-space: pre-line; }
.ds-inds { display: flex; flex-wrap: wrap; gap: .3rem; }
.ds-prop-pied { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding-top: .4rem; border-top: 1px dashed var(--line); }
.ds-numero { font-family: ui-monospace, "SFMono-Regular", monospace; font-size: .78rem; font-weight: 700; letter-spacing: .02em; padding: .12rem .45rem; border-radius: 6px; background: var(--bg-sunken); }
.ds-decerner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.2rem; }
.ds-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .4rem; }
@media (max-width: 1023px) { .ds-decerner { grid-template-columns: 1fr; } .ds-props { grid-template-columns: 1fr; } }

/* Navigation du module : fondu à droite quand elle déborde (voir formations-v5.js) */
.cr-modnav.fv-deborde:not(.fv-fin) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
