:root{--portal-green:#063b24;--portal-rust:#b66043;--portal-cream:#f6f1e7;--portal-line:#d9d7ce;--portal-ink:#183128}
.calendar-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:22px}.calendar-head h2{font:clamp(32px,4vw,50px)/1 Winky,sans-serif;color:var(--portal-green);margin:8px 0 0;text-transform:capitalize}.calendar-controls{display:flex;align-items:center;gap:7px}.calendar-controls button{border:1px solid var(--portal-green);background:#fff;color:var(--portal-green);min-height:42px;padding:9px 14px;font:700 13px DM,Arial,sans-serif;cursor:pointer}.calendar-controls button:first-child,.calendar-controls button:last-child{font-size:22px;line-height:1;padding:7px 15px}.calendar-scroll{overflow-x:auto;border:1px solid var(--portal-line);background:#fff;box-shadow:0 15px 45px rgba(37,50,42,.06)}.calendar-scroll:focus-visible{outline:3px solid rgba(182,96,67,.5);outline-offset:3px}.calendar-weekdays,.publication-calendar{min-width:980px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-weekdays{background:var(--portal-green);color:#fff}.calendar-weekdays span{padding:11px;text-align:center;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.calendar-day{min-height:148px;padding:9px;border-right:1px solid var(--portal-line);border-bottom:1px solid var(--portal-line);background:#fff}.calendar-day:nth-child(7n){border-right:0}.calendar-day.is-outside{background:#f2f0e9;color:#8d948e}.calendar-day.is-today{box-shadow:inset 0 0 0 2px var(--portal-rust)}.calendar-day-head{height:25px;display:flex;align-items:start;justify-content:space-between}.calendar-day-head time{display:grid;place-content:center;width:25px;height:25px;font-size:12px;font-weight:800;border-radius:50%}.calendar-day.is-today .calendar-day-head time{background:var(--portal-rust);color:#fff}.calendar-add{border:0;background:transparent;color:var(--portal-green);font-size:20px;line-height:1;cursor:pointer;opacity:.58}.calendar-add:hover{opacity:1}.calendar-events{display:grid;gap:5px;margin-top:7px}.calendar-event{display:grid;gap:2px;width:100%;padding:7px 8px;border:0;border-left:4px solid #9da7a0;background:#f1f2ef;color:var(--portal-ink);text-align:left;cursor:pointer;overflow:hidden}.calendar-event span,.calendar-event small{font-size:10px;color:#657168}.calendar-event strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-event.event-review{border-left-color:#d59b1d;background:#fff4d7}.calendar-event.event-approved{border-left-color:#2d8a4c;background:#e7f4e9}.calendar-event.event-revision{border-left-color:#c75e40;background:#ffebe5}.calendar-event.event-published{border-left-color:var(--portal-green);background:#dcece1}.calendar-foot{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-top:16px}.calendar-foot p{margin:0;color:#6a756d;font-size:13px}.calendar-legend{display:flex;gap:14px;flex-wrap:wrap}.calendar-legend span{position:relative;padding-left:14px;font-size:11px;color:#657168}.calendar-legend span::before{content:"";position:absolute;left:0;top:4px;width:8px;height:8px;border-radius:50%;background:#9da7a0}.calendar-legend .legend-review::before{background:#d59b1d}.calendar-legend .legend-approved::before{background:#2d8a4c}.calendar-legend .legend-revision::before{background:#c75e40}.calendar-legend .legend-published::before{background:var(--portal-green)}.post-card{transition:box-shadow .3s,transform .3s}.post-card.is-highlighted{box-shadow:0 0 0 3px var(--portal-rust),0 18px 50px rgba(37,50,42,.18);transform:translateY(-3px)}
@media(max-width:800px){.calendar-head,.calendar-foot{align-items:start;flex-direction:column}.calendar-controls{width:100%}.calendar-controls button:nth-child(2){flex:1}.calendar-weekdays,.publication-calendar{min-width:760px}.calendar-day{min-height:125px;padding:6px}.calendar-event{padding:6px}.calendar-event small{display:none}}

/* Univers Particuliers : tons doux, formes arrondies et interface plus éditoriale */
body.portal-body{--portal-green:#9b4b33;--portal-rust:#c7756d;--portal-cream:#fbf7f4;--portal-line:#e5d7d1;--portal-ink:#493a35;background:linear-gradient(180deg,#f4e3dc 0,#fbf7f4 320px);color:var(--portal-ink)}
.portal-body .portal-top{padding:14px clamp(18px,4vw,52px);background:rgba(251,247,244,.9);border-color:rgba(155,75,51,.14);box-shadow:0 8px 35px rgba(100,61,49,.07)}.portal-body .portal-top img{width:72px;height:72px}.portal-body .portal-top span{color:#8a6d64}.portal-body .portal-top strong{color:#9b4b33}.portal-body .portal-link{color:#9b4b33;text-decoration:none;border:1px solid rgba(155,75,51,.32);border-radius:999px;padding:8px 14px}
.portal-body .portal-shell{width:min(1420px,calc(100% - 44px));padding-top:55px}.portal-body .portal-login{gap:clamp(30px,7vw,110px)}.portal-body .login-visual h1,.portal-body .portal-welcome h1,.portal-body .workspace-head h1{color:#9b4b33}.portal-body .login-visual h1{font-family:Marion,Georgia,serif;font-style:italic;font-weight:400}.portal-body .eyebrow{color:#9b4b33}.portal-body .script-note{color:#9b4b33}
.portal-body .portal-card,.portal-body .post-card,.portal-body .stat-row,.portal-body .invoice-row,.portal-body .empty-state{border:1px solid rgba(155,75,51,.14);border-radius:26px;background:rgba(255,255,255,.88);box-shadow:0 20px 65px rgba(94,58,46,.08);overflow:hidden}.portal-body .client-picker{border-radius:24px}.portal-body input,.portal-body select,.portal-body textarea{border:1px solid #dfd4cf;border-radius:16px;background:#fffdfc;padding:14px 16px;outline:none;transition:border-color .2s,box-shadow .2s}.portal-body input:focus,.portal-body select:focus,.portal-body textarea:focus{border-color:#c7756d;box-shadow:0 0 0 4px rgba(199,117,109,.13)}
.portal-body .portal-button{border-color:#9b4b33;background:#9b4b33;border-radius:999px;padding:12px 22px;box-shadow:0 9px 24px rgba(155,75,51,.18)}.portal-body .portal-button:hover{background:#7f3d2b;transform:translateY(-1px)}.portal-body .portal-button.light{background:#fff;color:#9b4b33;box-shadow:none}.portal-body .workspace-actions{gap:9px}
.portal-body .portal-tabs{gap:8px;border:0;margin-bottom:26px;padding:5px;overflow-x:auto}.portal-body .portal-tabs button{border:1px solid transparent;border-radius:999px;background:rgba(255,255,255,.62);padding:11px 20px;color:#7f6e68}.portal-body .portal-tabs button.active{background:#9b4b33;border-color:#9b4b33;color:#fff;box-shadow:0 8px 24px rgba(155,75,51,.18)}
.portal-body .calendar-filters{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 34px}.portal-body .calendar-filters button{border:1px solid transparent;border-radius:999px;background:#eee9e7;color:#756761;padding:9px 16px;font:650 12px DM,Arial,sans-serif;cursor:pointer}.portal-body .calendar-filters button.active{border-color:#9b4b33;background:#fff;color:#9b4b33}.portal-body .calendar-head h2{font-family:Marion,Georgia,serif;font-style:italic;font-weight:400;color:#9b4b33}.portal-body .calendar-controls button{border-color:#d8c6bf;border-radius:999px;background:#fffdfc;color:#9b4b33}.portal-body .calendar-scroll{border-color:#e2d6d1;border-radius:28px;background:#fff;box-shadow:0 22px 65px rgba(94,58,46,.07)}.portal-body .calendar-weekdays{background:#f2e6e1;color:#75635d}.portal-body .calendar-weekdays span{padding:15px 10px}.portal-body .calendar-day{min-height:168px;border-color:#eee5e1;background:#fff}.portal-body .calendar-day.is-outside{background:#faf7f5;color:#b1a7a3}.portal-body .calendar-day.is-today{background:#faefef;box-shadow:inset 0 0 0 2px #c7756d}.portal-body .calendar-day.is-today .calendar-day-head time{background:linear-gradient(135deg,#c7756d,#de9a89)}.portal-body .calendar-add{color:#9b4b33}.portal-body .calendar-event{border-left:0;border-radius:10px;background:#f1efee}.portal-body .calendar-event.event-review{background:#fff2dc;color:#7d5613}.portal-body .calendar-event.event-approved{background:#e9f1ff;color:#315d9c}.portal-body .calendar-event.event-revision{background:#f8e4e1;color:#954d3e}.portal-body .calendar-event.event-published{background:#e1f4ea;color:#256c4c}.portal-body .calendar-legend span::before{border-radius:4px}.portal-body .calendar-foot{padding:0 4px}
.portal-body .post-card{border-radius:28px}.portal-body .post-content{background:#fff}.portal-body .post-heading h2,.portal-body .comments h3{color:#9b4b33}.portal-body .post-actions button{border-color:#cdaaa0;border-radius:999px;color:#9b4b33;background:#fff}.portal-body .comment{border-radius:15px;background:#fbf4f1}.portal-body .comment-form input{border-radius:999px}.portal-body .metric{border-radius:22px;background:linear-gradient(145deg,#9b4b33,#be7561);box-shadow:0 16px 42px rgba(155,75,51,.17)}.portal-body .grid-item{border-radius:18px}.portal-body .status{border-radius:999px}
.portal-body .portal-dialog form{border-radius:30px;background:#fffaf8;padding:clamp(28px,5vw,52px);box-shadow:0 35px 100px rgba(60,35,29,.24)}.portal-body .portal-dialog h2{font-family:Marion,Georgia,serif;font-style:italic;font-weight:400;color:#9b4b33;margin-bottom:8px}.portal-body .dialog-intro{margin:0 0 14px;color:#7a6d68}.portal-body .dialog-close{right:22px;top:17px;color:#9b4b33}.portal-body .upload-field{position:relative;border:2px dashed #d9c9c3;border-radius:20px;padding:24px;text-align:center;background:#fff}.portal-body .upload-field input{padding:0;border:0;border-radius:0;box-shadow:none}.portal-body .upload-field span{display:block;margin-top:10px;color:#8a726a;font-size:13px}.portal-body .status-choice-group{border:0;padding:0;margin:4px 0}.portal-body .status-choice-group legend{font-weight:700;margin-bottom:10px}.portal-body .status-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.portal-body .status-choice-grid label{display:block;cursor:pointer}.portal-body .status-choice-grid input{position:absolute;opacity:0;pointer-events:none}.portal-body .status-choice-grid span{display:grid;gap:3px;min-height:80px;padding:16px 18px;border:2px solid #e3dcda;border-radius:18px;background:#fff;transition:.2s}.portal-body .status-choice-grid strong{font-size:15px}.portal-body .status-choice-grid small{color:#8b807c;font-weight:400}.portal-body .status-choice-grid input:checked+span{border-color:#c7756d;background:#fff3f1;box-shadow:0 7px 22px rgba(199,117,109,.12)}.portal-body .dialog-submit{justify-self:start;min-width:230px}
.portal-body .portal-toast{border-radius:16px;background:#9b4b33;box-shadow:0 15px 40px rgba(82,45,34,.24)}
@media(max-width:800px){.portal-body .portal-shell{width:min(100% - 20px,1420px);padding-top:32px}.portal-body .portal-top img{width:56px;height:56px}.portal-body .calendar-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:7px}.portal-body .calendar-filters button{white-space:nowrap}.portal-body .calendar-weekdays,.portal-body .publication-calendar{min-width:760px}.portal-body .status-choice-grid{grid-template-columns:1fr}.portal-body .portal-dialog form{border-radius:24px}.portal-body .calendar-day{min-height:128px}}

/* Éditeur de publication avec aperçu social en direct */
.portal-body .post-editor-dialog{width:min(1500px,calc(100% - 28px));max-height:96vh}.portal-body .post-editor-dialog form{display:block;max-height:94vh;overflow:hidden;padding:0;border-radius:30px}.portal-body .post-editor-heading{padding:28px 40px 22px;border-bottom:1px solid #eaded9;background:#fff}.portal-body .post-editor-heading h2{font-size:clamp(34px,4vw,52px)}.portal-body .post-editor-heading .dialog-intro{margin-bottom:0}.portal-body .post-editor-dialog .dialog-close{z-index:3}.portal-body .post-editor-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr);max-height:calc(94vh - 145px)}.portal-body .post-editor-fields{display:grid;gap:24px;padding:30px 38px 42px;overflow-y:auto;background:#fffaf8}.portal-body .post-preview-pane{padding:32px clamp(24px,3vw,48px);overflow-y:auto;background:#f7f1ed;border-left:1px solid #eaded9}.portal-body .preview-kicker{text-transform:uppercase;letter-spacing:.22em;font-size:11px;color:#9b8178}.portal-body .preview-kind{width:max-content;margin:22px auto 18px;padding:8px 15px;border-radius:999px;background:#fff;color:#7a6b66;font-size:12px}
.portal-body .option-group{border:0;padding:0;margin:0}.portal-body .option-group legend{font-size:16px;font-weight:700;margin-bottom:11px}.portal-body .platform-choice-grid,.portal-body .content-choice-grid,.portal-body .format-choice-grid{display:grid;gap:10px}.portal-body .platform-choice-grid{grid-template-columns:repeat(4,1fr)}.portal-body .content-choice-grid{grid-template-columns:repeat(4,1fr)}.portal-body .format-choice-grid{grid-template-columns:repeat(3,1fr)}.portal-body .option-group label{display:block;cursor:pointer}.portal-body .option-group input{position:absolute;opacity:0;pointer-events:none}.portal-body .option-group label>span{min-height:94px;display:flex;align-items:center;justify-content:center;gap:10px;padding:13px;border:2px solid #e4dedb;border-radius:20px;background:#fff;text-align:center;transition:.2s}.portal-body .content-choice-grid label>span,.portal-body .format-choice-grid label>span{min-height:120px;display:grid;place-content:center;gap:4px}.portal-body .option-group label>span>b{display:grid;place-content:center;width:38px;height:38px;border-radius:12px;background:#f4e8e3;color:#9b4b33;font-size:20px}.portal-body .option-group label>span>strong{font-size:14px}.portal-body .option-group label>span>small{color:#928781;font-weight:400}.portal-body .option-group input:checked+span{border-color:#c7756d;background:#fff4f2;box-shadow:0 8px 24px rgba(199,117,109,.12)}.portal-body .option-group input:checked+span>b{color:#fff;background:linear-gradient(135deg,#c96b78,#ec8a68)}.portal-body .shape-square,.portal-body .shape-portrait,.portal-body .shape-landscape{width:22px!important;height:22px!important;border:3px solid currentColor;border-radius:4px!important;background:transparent!important}.portal-body .shape-portrait{width:16px!important;height:26px!important}.portal-body .shape-landscape{width:30px!important;height:18px!important}
.portal-body .social-preview{width:min(100%,470px);margin:auto;border:1px solid #e1d9d5;border-radius:24px;background:#fff;overflow:hidden;box-shadow:0 14px 45px rgba(67,43,36,.08);color:#171415}.portal-body .social-preview header{display:flex;align-items:center;gap:12px;padding:15px 17px}.portal-body .social-preview header>span{margin-left:auto;letter-spacing:.1em}.portal-body .preview-avatar{display:grid;place-content:center;width:42px;height:42px;border-radius:50%;background:linear-gradient(145deg,#9b4b33,#d58a75);color:#fff;font-size:13px;font-weight:800;border:3px solid #f1c5b8}.portal-body .social-preview header strong{font-size:14px}.portal-body .preview-media{position:relative;display:grid;place-content:center;aspect-ratio:1/1;background:#efe9e6;color:#a4938c;overflow:hidden;transition:aspect-ratio .25s}.portal-body .social-preview.format-portrait .preview-media{aspect-ratio:4/5}.portal-body .social-preview.format-landscape .preview-media{aspect-ratio:1.91/1}.portal-body .preview-media img{display:none;width:100%;height:100%;object-fit:cover}.portal-body .preview-media img.has-image{display:block}.portal-body .preview-carousel-badge{position:absolute;right:12px;top:12px;padding:5px 8px;border-radius:999px;background:rgba(20,18,18,.72);color:#fff;font-size:11px}.portal-body .preview-actions{display:flex;align-items:center;gap:15px;padding:14px 17px 7px;font-size:29px;line-height:1}.portal-body .preview-actions span:last-child{margin-left:auto}.portal-body .preview-likes{display:block;padding:0 17px;font-size:14px}.portal-body .social-preview p{padding:0 17px;margin:8px 0;font-size:14px;line-height:1.45}.portal-body .social-preview>small{display:block;padding:0 17px 17px;color:#9a908b;font-size:10px}.portal-body .platform-facebook .preview-avatar{background:#4167b2;border-color:#d5e0f5}.portal-body .platform-tiktok .preview-avatar{background:#161616;border-color:#ef7e91}.portal-body .platform-linkedin .preview-avatar{background:#1672a5;border-color:#c8e0ef}
@media(max-width:1100px){.portal-body .post-editor-dialog form{overflow-y:auto}.portal-body .post-editor-layout{grid-template-columns:1fr;max-height:none}.portal-body .post-editor-fields,.portal-body .post-preview-pane{overflow:visible}.portal-body .post-preview-pane{border-left:0;border-top:1px solid #eaded9}.portal-body .platform-choice-grid,.portal-body .content-choice-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.portal-body .post-editor-heading{padding:24px 22px 18px}.portal-body .post-editor-fields,.portal-body .post-preview-pane{padding:24px 18px}.portal-body .format-choice-grid{grid-template-columns:1fr}.portal-body .option-group label>span{min-height:82px}.portal-body .content-choice-grid label>span,.portal-body .format-choice-grid label>span{min-height:98px}.portal-body .social-preview{border-radius:18px}}
*{box-sizing:border-box}.is-hidden{display:none!important}.portal-body{margin:0;background:var(--portal-cream);color:var(--portal-ink);min-height:100svh}.portal-top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;padding:12px clamp(18px,4vw,52px);background:rgba(246,241,231,.94);border-bottom:1px solid rgba(6,59,36,.14);backdrop-filter:blur(15px)}.portal-top img{width:64px;height:64px;object-fit:contain}.portal-top div{display:grid;line-height:1.1}.portal-top span{font-size:12px;text-transform:uppercase;letter-spacing:.15em}.portal-top strong{font-family:Winky,sans-serif;font-size:24px;color:var(--portal-green)}.portal-top .portal-link{margin-left:auto}.portal-link{border:0;background:none;color:var(--portal-green);text-decoration:underline;cursor:pointer;font:inherit}.portal-shell{width:min(1240px,calc(100% - 32px));margin:0 auto;padding:clamp(30px,6vw,75px) 0 90px}.portal-center{min-height:60vh;display:grid;place-content:center;text-align:center}.loader{width:44px;height:44px;border:3px solid #ccd3cd;border-top-color:var(--portal-green);border-radius:50%;animation:spin .8s linear infinite;margin:auto}@keyframes spin{to{transform:rotate(360deg)}}.portal-login{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(30px,7vw,100px);align-items:center;min-height:68vh}.login-visual{padding:clamp(20px,5vw,70px)}.login-visual h1,.portal-welcome h1,.workspace-head h1{font:clamp(48px,7vw,86px)/.95 Winky,sans-serif;color:var(--portal-green);margin:12px 0 20px}.login-visual p{font-size:20px;max-width:590px}.portal-card{background:#fff;padding:clamp(24px,4vw,48px);border:1px solid var(--portal-line);box-shadow:0 18px 70px rgba(37,50,42,.08)}.portal-card h2,.portal-dialog h2,.section-intro h2{font:clamp(30px,4vw,48px)/1 Winky,sans-serif;color:var(--portal-green);margin:8px 0 26px}.portal-card form,.portal-card{display:grid;gap:17px}label{display:grid;gap:7px;font-weight:650;font-size:14px}input,select,textarea{width:100%;padding:13px 14px;border:1px solid #aeb8b0;background:#fff;color:var(--portal-ink);font:inherit;border-radius:0}textarea{resize:vertical}.portal-button{border:1px solid var(--portal-green);background:var(--portal-green);color:#fff;padding:12px 18px;font:700 14px DM,Arial,sans-serif;cursor:pointer}.portal-button:hover{background:#0d5132}.portal-button.light{background:transparent;color:var(--portal-green)}.form-message{min-height:20px;margin:0;color:#a7432a}.portal-welcome,.workspace-head,.section-intro{display:flex;justify-content:space-between;align-items:end;gap:30px}.portal-welcome{margin-bottom:30px}.portal-welcome h1,.workspace-head h1{font-size:clamp(44px,6vw,72px);margin-bottom:8px}.client-picker{max-width:640px}.workspace-head{margin-bottom:36px}.workspace-head p{margin:0}.workspace-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.portal-tabs{display:flex;gap:5px;border-bottom:1px solid var(--portal-line);overflow:auto;margin-bottom:38px}.portal-tabs button{border:0;background:transparent;padding:15px 24px;color:#657168;font:700 14px DM,Arial,sans-serif;cursor:pointer;white-space:nowrap;border-bottom:3px solid transparent}.portal-tabs button.active{color:var(--portal-green);border-color:var(--portal-rust)}.posts-list{display:grid;gap:24px}.post-card{display:grid;grid-template-columns:minmax(180px,300px) 1fr;background:#fff;border:1px solid var(--portal-line);overflow:hidden}.post-image{background:#dfe4df;min-height:280px}.post-image img{width:100%;height:100%;object-fit:cover;display:block}.post-placeholder{height:100%;display:grid;place-content:center;color:#6e7b71;text-align:center;padding:30px}.post-content{padding:clamp(22px,4vw,38px)}.post-heading{display:flex;align-items:start;justify-content:space-between;gap:15px}.post-heading h2{font:32px/1 Winky,sans-serif;color:var(--portal-green);margin:5px 0 10px}.post-meta{color:#6a756d;font-size:13px}.status{display:inline-flex;padding:6px 10px;border-radius:99px;background:#eee;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.status-approved,.status-paid,.status-published{background:#ddefe1;color:#175b31}.status-review,.status-due{background:#fff0cc;color:#7c5400}.status-revision{background:#ffe0d8;color:#993d25}.post-caption{white-space:pre-wrap;border-top:1px solid #e6e4dd;border-bottom:1px solid #e6e4dd;padding:18px 0;margin:18px 0;line-height:1.65}.post-actions{display:flex;gap:8px;flex-wrap:wrap}.post-actions button{padding:8px 12px;font:700 12px DM;border:1px solid var(--portal-green);background:#fff;color:var(--portal-green);cursor:pointer}.comments{margin-top:24px}.comments h3{font:24px Winky,sans-serif;color:var(--portal-green);margin:0 0 12px}.comment{padding:12px 14px;background:#f7f5ef;margin:8px 0}.comment strong{font-size:13px}.comment small{color:#7a827c;margin-left:7px}.comment p{margin:5px 0 0;white-space:pre-wrap}.comment-form{display:flex;gap:8px;margin-top:12px}.comment-form input{flex:1}.comment-form button{white-space:nowrap}.empty-state{padding:55px 25px;text-align:center;border:1px dashed #aeb8b0;background:rgba(255,255,255,.45)}.grid-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;max-width:880px;margin:30px auto}.grid-item{aspect-ratio:1;background:#dde2dc;position:relative;overflow:hidden}.grid-item img{width:100%;height:100%;object-fit:cover}.grid-item span{position:absolute;inset:auto 0 0;background:linear-gradient(transparent,rgba(0,0,0,.65));padding:26px 9px 9px;color:#fff;font-size:12px}.stats-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:30px 0}.metric{background:var(--portal-green);color:#fff;padding:24px}.metric span{font-size:12px;text-transform:uppercase;letter-spacing:.08em}.metric strong{display:block;font:42px Winky,sans-serif;margin-top:8px}.stats-history,.invoice-list{display:grid;gap:12px}.stat-row,.invoice-row{display:grid;grid-template-columns:140px repeat(4,1fr);gap:12px;padding:18px;background:#fff;border:1px solid var(--portal-line);align-items:center}.stat-row p{grid-column:1/-1;margin:0;color:#5e685f}.invoice-row{grid-template-columns:1.2fr .8fr .7fr .7fr auto}.invoice-row strong{color:var(--portal-green)}.invoice-row a{color:var(--portal-green);font-weight:700}.icon-delete{border:0;background:none;color:#a7432a;cursor:pointer}.portal-dialog{border:0;padding:0;background:transparent;width:min(680px,calc(100% - 30px));max-height:90vh}.portal-dialog::backdrop{background:rgba(10,34,24,.68);backdrop-filter:blur(4px)}.portal-dialog form{position:relative;background:#fff;padding:clamp(25px,5vw,50px);display:grid;gap:16px;max-height:88vh;overflow:auto}.portal-dialog.wide{width:min(850px,calc(100% - 30px))}.dialog-close{position:absolute;right:18px;top:13px;border:0;background:none;font-size:33px;color:var(--portal-green);cursor:pointer}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.portal-toast{position:fixed;right:24px;bottom:24px;z-index:99;background:var(--portal-green);color:#fff;padding:14px 20px;transform:translateY(120px);transition:.25s}.portal-toast.show{transform:none}.portal-toast.error{background:#9a3e26}@media(max-width:800px){.portal-login{grid-template-columns:1fr}.login-visual{padding:15px 0}.portal-welcome,.workspace-head,.section-intro{align-items:start;flex-direction:column}.workspace-actions{justify-content:start}.post-card{grid-template-columns:1fr}.post-image{height:360px}.stats-cards{grid-template-columns:1fr 1fr}.stat-row{grid-template-columns:1fr 1fr}.invoice-row{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}}@media(max-width:480px){.portal-shell{width:min(100% - 20px,1240px)}.portal-top img{width:50px;height:50px}.portal-top strong{font-size:20px}.portal-tabs button{padding:13px 16px}.post-image{height:300px}.stats-cards{grid-template-columns:1fr 1fr}.metric{padding:17px}.metric strong{font-size:32px}.comment-form{display:grid}.grid-preview{gap:3px}}

/* Éditeur simplifié : une seule zone de défilement, en-tête fixe et aperçu discret */
.portal-body .post-editor-dialog{width:min(1180px,calc(100% - 24px));max-height:calc(100dvh - 20px);overflow:hidden;border-radius:24px}.portal-body .post-editor-dialog form{display:block;max-height:calc(100dvh - 20px);overflow-y:auto;overscroll-behavior:contain;padding:0;border-radius:24px;background:#fff}.portal-body .post-editor-heading{position:sticky;top:0;z-index:4;padding:22px 30px 18px;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);border-bottom:1px solid #eee5e1}.portal-body .post-editor-heading .eyebrow{font-size:10px}.portal-body .post-editor-heading h2{margin:4px 0 5px;font:600 clamp(28px,4vw,42px)/1.1 DM,Arial,sans-serif;font-style:normal;color:#3f3531}.portal-body .post-editor-heading .dialog-intro{font-size:14px}.portal-body .post-editor-dialog .dialog-close{position:fixed;right:max(22px,calc((100vw - min(1180px,calc(100vw - 24px)))/2 + 18px));top:20px;z-index:6;width:38px;height:38px;border-radius:50%;background:#fff}.portal-body .post-editor-layout{grid-template-columns:minmax(0,1fr) minmax(310px,.68fr);max-height:none}.portal-body .post-editor-fields{overflow:visible;padding:26px 30px 38px;gap:20px;background:#fff}.portal-body .post-preview-pane{overflow:visible;padding:26px;background:#fbf7f4;border-left:1px solid #eee5e1}.portal-body .post-preview-pane>*{position:relative}.portal-body .social-preview{position:sticky;top:120px;width:min(100%,390px);border-radius:18px;box-shadow:0 10px 30px rgba(75,51,43,.06)}.portal-body .preview-kind{margin:12px auto 14px}.portal-body .platform-choice-grid,.portal-body .content-choice-grid{grid-template-columns:repeat(2,1fr)}.portal-body .option-group label>span{min-height:68px;padding:10px;border-width:1px;border-radius:14px;justify-content:flex-start}.portal-body .content-choice-grid label>span,.portal-body .format-choice-grid label>span{min-height:82px}.portal-body .option-group label>span>b{width:32px;height:32px;border-radius:10px}.portal-body .option-group input:checked+span{border-color:#c7756d;box-shadow:0 0 0 2px rgba(199,117,109,.12)}.portal-body .option-group legend{font-size:14px}.portal-body .preview-media{max-height:480px}.portal-body .preview-actions{font-size:24px}.portal-body .dialog-submit{position:sticky;bottom:16px;z-index:2;box-shadow:0 10px 30px rgba(155,75,51,.2)}

/* Tableau d'idées */
.portal-body .ideas-intro{margin-bottom:24px}.portal-body .ideas-intro h2{margin-bottom:8px}.portal-body .ideas-intro p{margin:0;color:#7b6d68}.portal-body .idea-board-scroll{overflow-x:auto;padding:2px 2px 18px}.portal-body .idea-board{display:grid;grid-template-columns:repeat(4,minmax(260px,1fr));gap:16px;min-width:1100px;align-items:start}.portal-body .idea-column{min-height:520px;padding:14px;border:1px solid #ecdcd5;border-radius:24px;background:#fff5ef}.portal-body .idea-column-in_progress{background:#f1f8fa;border-color:#cfe8ed}.portal-body .idea-column-approved{background:#effaf4;border-color:#cdebd9}.portal-body .idea-column-rejected{background:#fff3f3;border-color:#f1d2d2}.portal-body .idea-column>header{display:flex;align-items:center;gap:9px;padding:4px 2px 14px}.portal-body .idea-column>header>span{display:grid;place-content:center;width:34px;height:34px;border-radius:11px;background:#efa17c;color:#fff;font-weight:800}.portal-body .idea-column-in_progress>header>span{background:#59aabd}.portal-body .idea-column-approved>header>span{background:#55aa79}.portal-body .idea-column-rejected>header>span{background:#d97777}.portal-body .idea-column>header h3{margin:0;font-size:16px}.portal-body .idea-column>header small{color:#8f817c}.portal-body .idea-column>header button{margin-left:auto;border:0;background:transparent;font-size:25px;color:#7b6d68;cursor:pointer}.portal-body .idea-column-list{display:grid;gap:12px}.portal-body .idea-card{position:relative;padding:18px 16px 16px 27px;border:1px solid rgba(114,84,73,.12);border-radius:18px;background:#fff;box-shadow:0 6px 18px rgba(76,55,48,.06);cursor:grab;transition:.2s}.portal-body .idea-card:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(76,55,48,.1)}.portal-body .idea-card:focus-visible{outline:3px solid rgba(199,117,109,.35)}.portal-body .idea-card.is-dragging{opacity:.45}.portal-body .idea-grip{position:absolute;left:8px;top:17px;color:#c9c1bd}.portal-body .idea-card h3{margin:0 0 8px;font-size:15px;line-height:1.3}.portal-body .idea-card p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 11px;color:#736864;font-size:13px;line-height:1.5}.portal-body .idea-card-tags{display:flex;gap:5px;flex-wrap:wrap}.portal-body .idea-card-tags span{padding:4px 8px;border-radius:999px;background:#fde8ee;color:#c25774;font-size:11px;font-weight:700}.portal-body .idea-card a{display:inline-block;margin-top:10px;color:#9b4b33;font-size:11px}.portal-body .idea-empty{padding:70px 10px;text-align:center;color:#aa9f9a;font-size:13px;font-style:italic}.portal-body .idea-column.is-drag-over{box-shadow:inset 0 0 0 3px rgba(199,117,109,.35)}.portal-body .idea-dialog{width:min(650px,calc(100% - 24px));max-height:calc(100dvh - 20px);border-radius:24px}.portal-body .idea-dialog form{max-height:calc(100dvh - 20px);padding:30px;overflow-y:auto;border-radius:24px}.portal-body .idea-dialog h2{font:600 30px/1.1 DM,Arial,sans-serif;font-style:normal;color:#3f3531}.portal-body .idea-tags-field{border:0;padding:0;margin:0;display:grid;gap:9px}.portal-body .idea-tags-field legend{font-weight:700;font-size:14px;margin-bottom:7px}.portal-body .idea-tag-suggestions{display:flex;gap:7px;flex-wrap:wrap}.portal-body .idea-tag-suggestions button{border:1px solid #e3d9d5;border-radius:999px;background:#fff;padding:6px 10px;color:#7b6d68;cursor:pointer}.portal-body .idea-dialog-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;padding-top:5px}.portal-body .idea-delete{margin-right:auto;border:0;background:transparent;color:#b04343;cursor:pointer}
@media(max-width:850px){.portal-body .post-editor-dialog{width:100%;max-height:100dvh;border-radius:0}.portal-body .post-editor-dialog form{max-height:100dvh;border-radius:0}.portal-body .post-editor-dialog .dialog-close{position:fixed;right:14px;top:10px}.portal-body .post-editor-layout{grid-template-columns:1fr}.portal-body .post-preview-pane{border-left:0;border-top:1px solid #eee5e1}.portal-body .social-preview{position:relative;top:auto}.portal-body .post-editor-fields,.portal-body .post-preview-pane{padding:22px 18px}.portal-body .post-editor-heading{padding:18px 58px 15px 18px}.portal-body .post-editor-heading h2{font-size:28px}.portal-body .dialog-submit{bottom:10px}.portal-body .idea-dialog-actions{flex-wrap:wrap}.portal-body .idea-delete{width:100%;text-align:left}}
@media(min-width:851px){.portal-body .post-editor-dialog .dialog-close{right:max(18px,calc((100vw - 1180px)/2 + 18px))}}

/* Reel video and cover workflow */
.portal-body .reel-upload-group{display:grid;grid-template-columns:1fr 1fr;gap:12px}.portal-body .reel-upload-group.is-hidden{display:none!important}.portal-body .reel-video-upload{border-color:#c7756d;background:#fff7f5}.portal-body .post-image video{display:block;width:100%;height:100%;min-height:280px;object-fit:contain;background:#181514}.portal-body .preview-media video{width:100%;height:100%;object-fit:contain;background:#161313}.portal-body .social-preview.content-reel.format-portrait .preview-media{aspect-ratio:9/16}.portal-body .social-preview.content-reel.format-landscape .preview-media{aspect-ratio:16/9}.portal-body .preview-reel-badge{position:absolute;left:12px;top:12px;padding:6px 9px;border-radius:999px;background:rgba(20,18,18,.76);color:#fff;font-size:11px;font-weight:700}.portal-body .preview-media img.is-hidden{display:none!important}
@media(max-width:620px){.portal-body .reel-upload-group{grid-template-columns:1fr}}

/* Rapports statistiques mensuels */
.portal-body .stats-intro{margin-bottom:24px}.portal-body .stats-intro h2{margin-bottom:8px}.portal-body .stats-intro p{margin:0;color:#766b66}.portal-body .stats-cards{grid-template-columns:repeat(6,1fr);gap:10px;margin:24px 0 30px}.portal-body .stats-cards .metric{min-width:0;padding:20px;border-radius:20px;background:linear-gradient(145deg,#073b24,#155b3b);box-shadow:0 8px 24px rgba(6,59,36,.1)}.portal-body .stats-cards .metric strong{font:34px/1 Winky,sans-serif}.portal-body .stats-history{gap:18px}.portal-body .monthly-report{overflow:hidden;border:1px solid #e5dcd6;border-radius:26px;background:#fff;box-shadow:0 12px 35px rgba(61,43,36,.06)}.portal-body .monthly-report>header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid #eee5e0;background:#fffaf7}.portal-body .monthly-report h3{margin:3px 0 0;font:34px/1 Winky,sans-serif;color:var(--portal-green);text-transform:capitalize}.portal-body .report-actions{display:flex;gap:8px}.portal-body .report-actions button{border:1px solid #d8c9c2;border-radius:999px;background:#fff;padding:8px 13px;color:#704d41;cursor:pointer}.portal-body .report-actions button:last-child{color:#a7432a}.portal-body .report-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;background:#eadfd9;border-bottom:1px solid #eadfd9}.portal-body .report-summary span{display:grid;gap:3px;padding:17px 20px;background:#fff;color:#786d68;font-size:12px}.portal-body .report-summary strong{color:#342b28;font-size:22px}.portal-body .stats-table-wrap{overflow-x:auto;padding:22px 24px 6px}.portal-body .stats-table{width:100%;min-width:820px;border-collapse:collapse;font-size:13px}.portal-body .stats-table th,.portal-body .stats-table td{padding:12px 10px;border-bottom:1px solid #eee7e3;text-align:right}.portal-body .stats-table thead th{color:#81746e;font-size:11px;text-transform:uppercase;letter-spacing:.05em}.portal-body .stats-table th:first-child{text-align:left}.portal-body .stats-table tbody th{display:flex;align-items:center;gap:8px;color:#3e3430}.portal-body .stats-table tbody th span{display:grid;place-content:center;width:28px;height:28px;border-radius:9px;background:#f6e8e3;color:#a14d37}.portal-body .content-breakdown{display:flex;gap:8px;flex-wrap:wrap;padding:18px 24px}.portal-body .content-breakdown span{padding:7px 11px;border-radius:999px;background:#f6f1ee;color:#715f58;font-size:12px;font-weight:700}.portal-body .monthly-report>section{margin:0 24px 18px;padding:17px 18px;border-radius:17px;background:#f9f6f3}.portal-body .monthly-report>section h4{margin:0 0 7px;color:#804b3a}.portal-body .monthly-report>section p{margin:0;white-space:pre-wrap;line-height:1.6}.portal-body .monthly-report>section.recommendations{background:#edf7f0}.portal-body .monthly-report>section.recommendations h4{color:var(--portal-green)}
.portal-body .stats-dialog{width:min(920px,calc(100% - 24px));max-height:calc(100dvh - 20px);border-radius:24px}.portal-body .stats-dialog form{max-height:calc(100dvh - 20px);padding:32px;border-radius:24px;overflow-y:auto}.portal-body .stats-dialog h2{margin-bottom:8px}.portal-body .stats-dialog .dialog-intro{margin:0 0 10px;color:#776b66}.portal-body .stats-period{max-width:300px}.portal-body .network-stats-grid{display:grid;gap:10px}.portal-body .network-stats-grid details{border:1px solid #e4dad5;border-radius:18px;background:#fff;overflow:hidden}.portal-body .network-stats-grid summary{display:flex;align-items:center;gap:10px;padding:15px 17px;background:#fff9f6;font-weight:800;cursor:pointer}.portal-body .network-stats-grid summary span{display:grid;place-content:center;width:32px;height:32px;border-radius:10px;background:#f0d7cc;color:#9b4b33}.portal-body .network-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:16px}.portal-body .network-fields label{font-size:12px}.portal-body .report-section{border:1px solid #e4dad5;border-radius:18px;padding:16px;margin:0}.portal-body .report-section legend{padding:0 7px;font-weight:800}.portal-body .form-grid-three{grid-template-columns:repeat(3,1fr)}.portal-body .stats-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.portal-body .stats-delete{margin-right:auto;border:0;background:transparent;color:#a7432a;cursor:pointer}
@media(max-width:1050px){.portal-body .stats-cards{grid-template-columns:repeat(3,1fr)}.portal-body .report-summary{grid-template-columns:repeat(3,1fr)}.portal-body .network-fields{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.portal-body .stats-cards{grid-template-columns:repeat(2,1fr)}.portal-body .stats-cards .metric strong{font-size:28px}.portal-body .monthly-report>header{align-items:flex-start;flex-direction:column}.portal-body .report-summary{grid-template-columns:1fr 1fr}.portal-body .network-fields,.portal-body .form-grid-three{grid-template-columns:1fr}.portal-body .stats-dialog form{padding:24px 18px}.portal-body .stats-dialog-actions{align-items:stretch;flex-direction:column}.portal-body .stats-delete{margin:0;text-align:left}}
