/* Onglet Ressources : sites utiles, informations réglementaires, documents (gamme violette + dégradé « charte ») */
.rs { max-width: 1040px; margin: 0 auto; }
.rs-intro { text-align: center; max-width: 760px; margin: 0 auto 22px; color: #4a3a58; line-height: 1.6; font-size: 1.05rem; }
.rs-outils { background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(58, 12, 88, .12); padding: 18px 22px; margin-bottom: 26px; border-top: 5px solid transparent; background: var(--degrade-h) top left / 100% 5px no-repeat border-box, #fff; }
.rs-etiq { display: block; font-weight: bold; color: #3A0C58; margin-bottom: 6px; font-size: .92rem; }
.rs-recherche { width: 100%; box-sizing: border-box; padding: 11px 18px; font-size: 1rem; border: 1px solid #c9b3dd; border-radius: 26px; background: #fcfaff; }
.rs-recherche:focus { outline: none; background: #fff; border-color: #7A4CA3; box-shadow: 0 0 0 3px rgba(122, 76, 163, .25); }
.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rs-chips a:link, .rs-chips a:visited { border: 2px solid #7A4CA3; background: #fff; color: #531378 !important; border-radius: 18px; padding: 4px 14px; font-size: .86rem; font-weight: bold; text-decoration: none !important; transition: background .15s, color .15s; }
.rs-chips a:hover { background: #7A4CA3; color: #fff !important; }
.rs-compte { margin-top: 10px; min-height: 18px; font-size: .9rem; font-weight: bold; color: #7A4CA3; }
.rs-rubrique { margin-bottom: 30px; scroll-margin-top: 14px; }
.rs-titre-rub { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 1.2rem; color: #3A0C58; }
.rs-titre-rub::after { content: ""; flex: 1; height: 2px; background: #E6D6F0; }
.rs-nb { order: 2; background: #7A4CA3; color: #fff; border-radius: 12px; padding: 1px 10px; font-size: .8rem; }
.rs-titre-rub .rs-nb { margin-left: 0; }
.rs-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: stretch; }
.rs-carte { display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(58, 12, 88, .12); padding: 16px 18px 14px; border-top: 5px solid transparent; background: var(--degrade-h) top left / 100% 5px no-repeat border-box, #fff; transition: transform .2s, box-shadow .2s; }
.rs-carte:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(58, 12, 88, .22); }
.rs-carte h6 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.3; }
.rs-carte h6 a:link, .rs-carte h6 a:visited { color: #3A0C58 !important; text-decoration: none !important; }
.rs-carte h6 a:hover { text-decoration: underline !important; }
.rs-desc { flex: 1; margin: 0 0 12px; font-size: .92rem; line-height: 1.55; color: #333; text-align: left; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rs-carte:hover .rs-desc { -webkit-line-clamp: unset; display: block; }
.rs-pied { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rs-hote { font-size: .8rem; color: #6b5a78; word-break: break-all; }
.rs-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rs a.rs-bouton:link, .rs a.rs-bouton:visited { display: inline-block; background: var(--degrade-h); color: #fff !important; text-decoration: none !important; font-weight: bold; font-size: .85rem; padding: 6px 16px; border-radius: 20px; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); box-shadow: 0 2px 8px rgba(58, 12, 88, .25); }
.rs a.rs-bouton:hover { filter: brightness(1.12); }
.rs a.rs-lien-plus:link, .rs a.rs-lien-plus:visited { font-size: .8rem; font-weight: bold; color: #531378 !important; border-bottom: 1px dotted #7A4CA3; text-decoration: none !important; }
.rs-vide { text-align: center; background: #fff; border-radius: 12px; padding: 24px; color: #555; }
.rs-recherche-site { margin-top: 10px; background: linear-gradient(135deg, #f6eefb, #e6d6f0); border-radius: 14px; padding: 18px 22px; }
.rs-recherche-site h5 { margin: 0 0 8px; color: #3A0C58; font-size: 1.1rem; }
@media (max-width: 600px) { .rs-outils { padding: 14px 14px; } .rs-grille { grid-template-columns: 1fr; } }

/* lignes de documents, sigles, fenêtre de définition */
.rs-bloc { margin-bottom: 30px; }
.rs-lignes { display: grid; gap: 10px; }
.rs-ligne:link, .rs-ligne:visited { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 12px; border-left: 6px solid transparent; background: var(--degrade-v) left top / 6px 100% no-repeat border-box, #fff; box-shadow: 0 2px 8px rgba(58, 12, 88, .12); padding: 12px 16px 12px 18px; color: #3A0C58 !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.rs-ligne:hover { transform: translateX(3px); box-shadow: 0 6px 18px rgba(58, 12, 88, .2); }
.rs-type { flex: 0 0 auto; min-width: 44px; height: 34px; border-radius: 9px; background: linear-gradient(160deg, #8C5FB3, #3A0C58); color: #fff; font-size: .72rem; font-weight: bold; letter-spacing: .5px; display: flex; align-items: center; justify-content: center; }
.rs-type.pdf { background: linear-gradient(160deg, #CD0C45, #8f082f); }
.rs-ligne-txt { flex: 1; line-height: 1.45; text-align: left; }
.rs-ligne-txt b { display: block; }
.rs-ligne-txt span { display: block; font-size: .92rem; color: #444; font-weight: normal; }
.rs-badge { display: inline-block; font-style: normal; font-size: .72rem; font-weight: bold; text-transform: uppercase; letter-spacing: .4px; background: #f6eefb; color: #531378; border-radius: 10px; padding: 1px 10px; margin: 2px 0 4px; }
.rs-fleche { flex: 0 0 auto; font-size: 1.6rem; color: #7A4CA3; }
.rs-imc, .rs-texte { background: #fff; padding: 18px 22px; }
.rs-imc { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rs-imc h6 { margin: 0 0 4px; }
.rs-imc .rs-desc { margin: 0; display: block; }
.rs-texte p { margin: 0 0 10px; line-height: 1.6; text-align: left; }
.rs-texte .rs-sous { font-weight: bold; color: #3A0C58; margin-top: 4px; }
.rs-pieds-boutons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.rs a.rs-bouton-contour:link, .rs a.rs-bouton-contour:visited { background: linear-gradient(#fff, #fff) padding-box, var(--degrade-h) border-box; color: #3A0C58 !important; text-shadow: none; border: 2px solid transparent; }
.rs-bouton-btn { border: 0; cursor: pointer; font: inherit; font-weight: bold; font-size: .9rem; background: var(--degrade-h); color: #fff; padding: 8px 22px; border-radius: 22px; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); box-shadow: 0 2px 8px rgba(58, 12, 88, .25); }
.rs-bouton-btn:hover { filter: brightness(1.12); }
.rs-groupe { margin: 22px 0 10px; font-size: 1.05rem; color: #3A0C58; }
.rs-sigles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin: 0; }
.rs-sigle { border-radius: 10px; box-shadow: 0 1px 6px rgba(58, 12, 88, .12); padding: 10px 14px; text-align: left; border-left: 6px solid transparent; background: var(--degrade-v) left top / 6px 100% no-repeat border-box, #fff; }
.rs-sigle dt { font-weight: bold; color: #3A0C58; }
.rs-sigle dd { margin: 2px 0 0; font-size: .92rem; color: #444; line-height: 1.45; }
.rs-dialogue { border: 0; border-radius: 14px; padding: 0; width: min(760px, 94vw); max-height: 86vh; overflow: auto; }
.rs-dialogue::backdrop { background: rgba(27, 11, 38, .7); }
.rs-dialogue-tete { background: var(--degrade-h); color: #fff; padding: 14px 22px; font-weight: bold; font-size: 1.1rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.rs-dialogue-corps { padding: 18px 24px 6px; line-height: 1.65; }
.rs-dialogue-corps p { margin: 0 0 12px; text-align: left; }
.rs-dialogue-pied { padding: 0 24px 20px; text-align: right; }
@media (max-width: 600px) { .rs-ligne:link, .rs-ligne:visited { padding: 10px 12px 10px 14px; } .rs-sigles { grid-template-columns: 1fr; } }

/* ===== Sites utiles : barre de recherche collante, rubriques en filtres, recherche sur le site ===== */
body .content-zone-full { overflow: visible !important; }
.rs-sr { position: absolute; left: -9999px; }
.rs-outils { position: sticky; top: 8px; z-index: 40; padding: 14px 18px 12px; box-shadow: 0 4px 16px rgba(58, 12, 88, .18); }
.rs-barre { position: relative; }
.rs-loupe { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 1.05rem; opacity: .6; pointer-events: none; }
.rs-barre .rs-recherche { padding: 13px 46px 13px 44px; font-size: 1.05rem; }
.rs-effacer { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: #efe5f6; color: #531378; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.rs-effacer:hover { background: #7A4CA3; color: #fff; }
.rs-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.rs-chip { flex: 0 0 auto; border: 2px solid #7A4CA3; background: #fff; color: #531378; border-radius: 18px; padding: 4px 14px; font: inherit; font-size: .86rem; font-weight: bold; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.rs-chip span { display: inline-block; margin-left: 4px; background: #f1e9f7; color: #531378; border-radius: 10px; padding: 0 7px; font-size: .75rem; }
.rs-chip:hover { background: #f6eefb; }
.rs-chip.actif { background: var(--degrade-h); border-color: transparent; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.rs-chip.actif span { background: rgba(255, 255, 255, .28); color: #fff; }
.rs-compte { min-height: 0; margin-top: 8px; }
.rs-compte:empty { display: none; }
.rs-recherche-site p { margin: 0 0 12px; color: #4a3a58; line-height: 1.5; text-align: left; }
.rs-form-site { display: flex; gap: 10px; flex-wrap: wrap; }
.rs-form-site .rs-recherche { flex: 1 1 260px; width: auto; }
@media (max-width: 600px) { .rs-outils { top: 4px; padding: 10px 12px; } }

/* correctif : rubriques sur plusieurs lignes (plus de défilement horizontal tronqué) ; seule la barre de recherche est collante */
.rs-collant { position: sticky; top: 8px; z-index: 40; margin-bottom: 14px; background: #fafafa; padding: 4px 0 6px; }
.rs-collant .rs-barre { background: #fff; border-radius: 28px; box-shadow: 0 4px 16px rgba(58, 12, 88, .2); }
.rs-outils { position: static; z-index: auto; box-shadow: 0 2px 10px rgba(58, 12, 88, .12); padding: 16px 18px 14px; }
.rs-chips { flex-wrap: wrap; overflow: visible; margin-top: 0; padding-bottom: 0; }
.rs-compte { margin-top: 10px; }
@media (max-width: 600px) { .rs-collant { top: 4px; } }

/* extras en boutons contour, sigles plus petits avec effet de zoom */
.rs a.rs-lien-plus:link, .rs a.rs-lien-plus:visited { border: 2px solid #7A4CA3; border-bottom: 2px solid #7A4CA3; border-radius: 18px; padding: 3px 12px; font-size: .78rem; color: #3A0C58 !important; background: #fff; }
.rs a.rs-lien-plus:hover { background: #7A4CA3; color: #fff !important; }
.rs-sigles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.rs-sigle { padding: 6px 10px; border-radius: 8px; transform-origin: center; transition: transform .18s ease, box-shadow .18s ease; position: relative; }
.rs-sigle dt { font-size: .86rem; }
.rs-sigle dd { font-size: .74rem; line-height: 1.35; margin-top: 1px; }
.rs-sigle:hover { transform: scale(1.12); z-index: 5; box-shadow: 0 8px 22px rgba(58, 12, 88, .3); }
.rs-sigle:hover dt { font-size: 1rem; }
.rs-sigle:hover dd { font-size: .86rem; }
@media (max-width: 600px) { .rs-sigles { grid-template-columns: repeat(2, 1fr); } .rs-sigle:hover { transform: none; } }