/* RenfortPro v88.50 — corrections profil public */
#publicProfile .rpCoverSolid8850{background:var(--rp-cover-solid8850,#0b3158)!important;background-image:none!important}
#publicProfile .rpCoverGradient8850{background:var(--rp-cover-gradient8850,linear-gradient(135deg,#082f54,#1f5e78 58%,#5d6a70))!important;background-image:var(--rp-cover-gradient8850)!important}
#publicProfile .rpCoverPhoto8850{background-image:var(--rp-fb-cover)!important;background-size:cover!important;background-position:center!important}
#publicProfile .rpTopPrefs8850{white-space:nowrap}
#publicProfile .rpSkillGroup8850{margin-top:15px}
#publicProfile .rpSkillGroup8850:first-of-type{margin-top:4px}
#publicProfile .rpSkillGroup8850 h3{margin:0 0 9px;font-size:11px;font-weight:900;color:#526a7e;text-transform:uppercase;letter-spacing:.06em}
#publicProfile .rpMaterialChips8850 span{background:#f7f0e9!important;color:#71472e!important;box-shadow:inset 0 0 0 1px #ead8c9}

/* Réalisations */
#publicProfile .rpRealizationGrid8850{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#publicProfile .rpRealizationCard8850{border:1px solid #e5eaee;border-radius:12px;overflow:hidden;background:#fff}
#publicProfile .rpRealizationCard8850 img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}
#publicProfile .rpRealizationCard8850>div{padding:11px 12px}
#publicProfile .rpRealizationCard8850 b{display:block;font-size:12px;color:#203d54}
#publicProfile .rpRealizationCard8850 p{margin:5px 0 0!important;font-size:10px!important;line-height:1.45!important;color:#718290!important}

/* Calendrier public */
#publicProfile .rpPublicCalendar8850{margin-top:14px;padding-top:14px;border-top:1px solid #edf1f4}
#publicProfile .rpCalendarHead8850{display:grid;grid-template-columns:32px 1fr 32px;gap:8px;align-items:center;margin-bottom:10px}
#publicProfile .rpCalendarHead8850 button{width:32px;height:32px;border:0;border-radius:9px;background:#edf3f7;color:#173f60;font-size:20px;cursor:pointer}
#publicProfile .rpCalendarHead8850 div{text-align:center;min-width:0}
#publicProfile .rpCalendarHead8850 b{display:block;font-size:12px;color:#24445f;text-transform:capitalize}
#publicProfile .rpCalendarHead8850 small{display:block;margin-top:2px;font-size:8px;color:#81909b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#publicProfile .rpCalendarGrid8850{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
#publicProfile .rpCalendarGrid8850>span{min-width:0}
#publicProfile .rpCalendarGrid8850 .head{height:17px;display:grid;place-items:center;font-size:8px;font-weight:900;color:#8d9aa5}
#publicProfile .rpCalendarGrid8850 .blank{height:40px}
#publicProfile .rpCalendarGrid8850 .day{height:40px;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;background:#edf7f2;color:#17654c;box-shadow:inset 0 0 0 1px #d7ecdf}
#publicProfile .rpCalendarGrid8850 .day b{font-size:10px;line-height:1}
#publicProfile .rpCalendarGrid8850 .day small{font-size:6.5px;font-weight:900;line-height:1;text-transform:uppercase}
#publicProfile .rpCalendarGrid8850 .day.unavailable{background:#fff0e9;color:#a64a27;box-shadow:inset 0 0 0 1px #f2d5c7}
#publicProfile .rpCalendarGrid8850 .day.partial{background:#fff7dd;color:#806421;box-shadow:inset 0 0 0 1px #eee1ab}
#publicProfile .rpCalendarGrid8850 .day.today{outline:2px solid #0b3158;outline-offset:-2px}
#publicProfile .rpCalendarLegend8850{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
#publicProfile .rpCalendarLegend8850 span{display:inline-flex;align-items:center;gap:5px;font-size:8px;font-weight:900;color:#6b7d8b}
#publicProfile .rpCalendarLegend8850 span:before{content:"";width:8px;height:8px;border-radius:3px;background:#dcefe4}
#publicProfile .rpCalendarLegend8850 .unavailable:before{background:#f3d4c6}
#publicProfile .rpCalendarLegend8850 .partial:before{background:#efdda1}
#publicProfile .rpCalendarPrivate8850,#publicProfile .rpCalendarPublicNote8850{margin-top:12px;border-radius:9px;background:#f5f7f9;padding:11px 12px;color:#65798b;font-size:10px;line-height:1.45}
#publicProfile .rpCalendarPrivate8850 button{border:0;background:transparent;padding:0;color:#0c639d;font-size:10px;font-weight:900;cursor:pointer}
#publicProfile .rpCalendarPublicNote8850{background:#eef7f3;color:#3d6d5b}

/* Modale v88.50 */
.rpModalLayer8850{position:fixed;inset:0;z-index:10120;background:rgba(8,24,38,.58);backdrop-filter:blur(5px);display:none;align-items:center;justify-content:center;padding:18px}
.rpModalLayer8850.open{display:flex}
.rpModal8850{width:min(720px,96vw);max-height:min(88vh,850px);overflow:auto;background:#fff;border-radius:16px;box-shadow:0 24px 80px rgba(5,24,39,.28)}
.rpModal8850.wide{width:min(940px,96vw)}
.rpModal8850>header{position:sticky;top:0;z-index:3;background:#fff;display:flex;justify-content:space-between;gap:16px;padding:20px 22px 16px;border-bottom:1px solid #e8edf1}
.rpModal8850>header small{display:block;color:#f06d32;font-size:9px;letter-spacing:.13em;font-weight:900}
.rpModal8850>header h2{margin:4px 0 0;font:800 22px/1.2 Arial,Helvetica,sans-serif;color:#17324a}
.rpModalClose8850{width:38px;height:38px;border:0;border-radius:50%;background:#edf1f4;color:#18364e;font-size:21px;cursor:pointer}
.rpModalBody8850{padding:20px 22px}
.rpModal8850>footer{display:flex;justify-content:flex-end;gap:9px;padding:14px 22px 20px;border-top:1px solid #edf1f4}
.rpModal8850>footer button{min-height:40px;border:0;border-radius:9px;padding:0 16px;font-size:12px;font-weight:900;cursor:pointer}
.rpModal8850>footer .ghost{background:#eaf0f4;color:#183b57}
.rpModal8850>footer .primary{background:#ff7b3d;color:#fff}
.rpField8850{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.rpField8850>span{font-size:9px;letter-spacing:.08em;font-weight:900;color:#728393}
.rpField8850 input,.rpField8850 textarea,.rpField8850 select{width:100%;border:1px solid #dbe3e9;border-radius:9px;background:#fff;color:#203a50;padding:11px 12px;font:600 13px Arial,Helvetica,sans-serif;outline:none}
.rpField8850 textarea{resize:vertical;min-height:90px}
.rpHelper8850{margin:0 0 14px;color:#748695;font-size:11px;line-height:1.5}
.rpEmpty8850{border:1px dashed #ccd8e1;border-radius:11px;padding:18px;text-align:center;color:#748695;font-size:12px}
.rpSkillMaterialGrid8850{display:grid;grid-template-columns:1fr 1fr;gap:14px}

/* Couverture */
.rpCoverModes8850{display:grid;gap:16px}
.rpCoverModes8850>section{border:1px solid #e4e9ee;border-radius:13px;padding:15px}
.rpCoverModes8850 h3{margin:0 0 12px;font-size:13px;color:#203c53}
.rpColorLine8850{display:flex;gap:10px;align-items:center}
.rpColorLine8850 input{width:58px;height:42px;border:1px solid #d8e0e6;border-radius:9px;background:#fff;padding:3px}
.rpColorLine8850 button,.rpPhotoCoverChoice8850{min-height:42px;border:0;border-radius:9px;background:#0b3158;color:#fff;padding:0 14px;font-size:11px;font-weight:900;cursor:pointer}
.rpGradientGrid8850{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.rpGradientGrid8850 button{height:66px;border:0;border-radius:10px;position:relative;overflow:hidden;cursor:pointer}
.rpGradientGrid8850 span{position:absolute;left:8px;bottom:7px;color:#fff;font-size:9px;font-weight:900;text-shadow:0 1px 4px rgba(0,0,0,.4)}
.rpPhotoCoverChoice8850{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;background:#eef3f7;color:#173c59}
.rpPhotoCoverChoice8850 small{margin-top:3px;font-size:9px;font-weight:700;color:#738595}

/* Préférences */
.rpPreferencesGrid8850{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.rpPreferencesGrid8850 h3,.rpTrustedPrefs8850 h3{margin:0 0 6px;font-size:13px;color:#203e56}
.rpSwitchRow8850{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #edf1f4}
.rpSwitchRow8850 b{display:block;font-size:11px;color:#213d54}
.rpSwitchRow8850 small{display:block;margin-top:3px;font-size:9px;line-height:1.35;color:#7b8b98}
.rpSwitch8850{position:relative;width:46px;height:26px;flex:0 0 46px}
.rpSwitch8850 input{position:absolute;opacity:0;pointer-events:none}
.rpSwitch8850 i{position:absolute;inset:0;border-radius:999px;background:#cdd6dd;transition:.18s}
.rpSwitch8850 i:after{content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.18);transition:.18s}
.rpSwitch8850 input:checked+i{background:#1b8b69}.rpSwitch8850 input:checked+i:after{transform:translateX(20px)}
.rpTrustedPrefs8850{margin-top:22px;padding-top:18px;border-top:1px solid #e8edf1}
.rpTrustedPrefRow8850{display:grid;grid-template-columns:44px minmax(0,1fr) 46px;gap:11px;align-items:center;border:1px solid #e3e9ee;border-radius:11px;padding:9px 11px;margin-top:8px;min-height:64px;overflow:hidden}
.rpTrustedPrefAvatar8850{width:44px;height:44px;border-radius:50%;overflow:hidden;background:#e9eff4;color:#174c70;display:grid;place-items:center;font-size:11px;font-weight:900;flex:0 0 44px}
.rpTrustedPrefAvatar8850 img{display:block;width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important;object-fit:cover!important;border-radius:50%!important}
.rpTrustedPrefCopy8850{min-width:0;overflow:hidden}
.rpTrustedPrefCopy8850 b{display:block;max-width:100%;font-size:12px;color:#203c53;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rpTrustedPrefCopy8850 small{display:block;margin-top:3px;max-width:100%;font-size:10px;color:#7b8b98;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Garde-fou aussi pour l'ancienne modale v88.49 : aucune image ne peut déborder. */
.rpTrustedPickRow8849{grid-template-columns:44px minmax(0,1fr) 46px!important;overflow:hidden!important;min-height:64px!important}
.rpTrustedPickRow8849>span:nth-child(2){min-width:0!important;overflow:hidden!important}
.rpTrustedPickRow8849 b,.rpTrustedPickRow8849 small{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
.rpTrustedPickRow8849 .rpTrustedAvatar8849,.rpTrustedPickRow8849 .rpTrustedAvatar8849 img{width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important;object-fit:cover!important;border-radius:50%!important;overflow:hidden!important}

/* Éditeur réalisations */
.rpRealizationEditRow8850{display:grid;grid-template-columns:150px minmax(0,1fr) 38px;gap:13px;align-items:start;border:1px solid #e3e9ee;border-radius:12px;padding:11px;margin-bottom:10px}
.rpRealizationThumb8850{width:150px;aspect-ratio:16/10;border-radius:9px;background:#edf3f7;overflow:hidden;display:grid;place-items:center;color:#668095;font-size:10px;font-weight:900}
.rpRealizationThumb8850 img{width:100%;height:100%;object-fit:cover;display:block}
.rpRealizationActions8850{display:flex;flex-direction:column;gap:5px}
.rpRealizationActions8850 button{width:34px;height:34px;border:0;border-radius:8px;background:#edf2f5;color:#254a67;font-weight:900;cursor:pointer}
.rpRealizationActions8850 button.danger{background:#fff0eb;color:#a94c2a}.rpRealizationActions8850 button:disabled{opacity:.35;cursor:default}
.rpAdd8850{width:100%;min-height:42px;margin-top:10px;border:1px dashed #aebfcb;border-radius:10px;background:#f8fafb;color:#1d567e;font-size:11px;font-weight:900;cursor:pointer}

.rpSavedFlash8850{position:fixed;z-index:11100;left:50%;bottom:26px;transform:translateX(-50%) translateY(12px);opacity:0;pointer-events:none;background:#163f5d;color:#fff;border-radius:999px;padding:10px 15px;font-size:11px;font-weight:900;box-shadow:0 8px 28px rgba(7,37,58,.22);transition:.2s}
.rpSavedFlash8850.show{opacity:1;transform:translateX(-50%) translateY(0)}

@media(max-width:760px){
  #publicProfile .rpFbHeaderActions8848 .rpTopPrefs8850{flex:1}
  #publicProfile .rpRealizationGrid8850{grid-template-columns:1fr}
  .rpModalLayer8850{padding:0;align-items:flex-end}.rpModal8850,.rpModal8850.wide{width:100%;max-width:none;max-height:92vh;border-radius:16px 16px 0 0}
  .rpModal8850>header{padding:17px 16px 13px}.rpModalBody8850{padding:16px}.rpModal8850>footer{padding:12px 16px 16px}
  .rpSkillMaterialGrid8850,.rpPreferencesGrid8850{grid-template-columns:1fr}
  .rpGradientGrid8850{grid-template-columns:1fr 1fr}
  .rpRealizationEditRow8850{grid-template-columns:92px minmax(0,1fr)}.rpRealizationThumb8850{width:92px}.rpRealizationActions8850{grid-column:1/-1;flex-direction:row;justify-content:flex-end}
}
