.agency-home{max-width:1180px;margin:48px auto 80px;padding:0 24px}.cms-heading{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:36px}.cms-heading h1,.cms-activation h1{font-size:clamp(32px,4vw,52px);line-height:1.12;margin:10px 0 16px}.cms-heading p{max-width:650px}.agency-clients{border-top:1px solid #d5cedc}.agency-client{display:flex;align-items:center;gap:22px;padding:26px 8px;border-bottom:1px solid #d5cedc;text-decoration:none;color:#302638}.agency-client:hover{background:#eeeaf5}.agency-client h2{font-size:22px;margin:0 0 7px}.agency-client p{margin:0;overflow-wrap:anywhere}.agency-monogram{display:grid;place-items:center;width:56px;height:62px;background:#e4dff1;font:32px Georgia;flex:none;border-radius:4px 18px 4px 4px}.agency-state{margin-left:auto;white-space:nowrap;font-size:14px}.cms-help{color:#5d5366;font-size:14px;line-height:1.6}.cms-form,.cms-import{max-width:700px;padding:28px;border:1px solid #d5cedc;border-radius:16px;background:white;margin-bottom:32px}.cms-form label,.cms-settings label,.cms-import label,.cms-upload-label{display:grid;gap:8px;font-weight:600;margin:16px 0}.cms-form input,.cms-settings input,.cms-settings textarea,.cms-import input,.cms-field input,.cms-field textarea,.cms-controls select,.cms-panel select{width:100%;padding:12px;border:1px solid #b8afc3;border-radius:8px;background:#fff;color:#302638;font:inherit;min-height:46px;box-sizing:border-box}.cms-empty{padding:50px 28px;background:#efedf3}.cms-back{display:inline-block;margin:0 0 24px;color:#58469d}.cms-editor{padding:28px clamp(16px,3vw,48px) 70px;max-width:1900px;margin:auto}.cms-toolbar{display:flex;justify-content:space-between;align-items:center;gap:24px}.cms-toolbar h1{font-size:clamp(28px,3vw,42px);line-height:1.1;margin:6px 0 12px}.cms-toolbar p{margin:0}.cms-publish{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:14px;max-width:600px}.cms-publish>a{color:#58469d}.cms-publish>span{font-size:14px}.cms-reassurance{margin:24px 0 12px;max-width:980px;color:#5d5366;line-height:1.6}.cms-setup-note{border-left:3px solid #bc8832;background:#fbf4e6;padding:12px 18px;font-size:14px}.cms-notice:not(:empty){padding:14px 18px;background:#e0eee5;margin:16px 0;border-radius:8px;overflow-wrap:anywhere}.cms-notice.error-box{background:#fff0ee}.cms-controls{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:22px 0 16px}.cms-controls>label{display:grid;gap:7px;min-width:220px;font-size:14px;font-weight:600}.cms-inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.cms-inline .button{font-size:14px;min-height:42px;padding:10px 14px}.cms-workspace{display:grid;grid-template-columns:340px minmax(0,1fr);border:1px solid #d1cbd9;border-radius:14px;overflow:hidden;background:#fff;min-height:720px;height:calc(100vh - 265px);max-height:1100px}.cms-panel{padding:22px;overflow-y:auto;border-right:1px solid #d1cbd9;min-height:0}.cms-panel>label{display:grid;gap:8px;font-weight:600}.cms-field{padding:17px 0;border-bottom:1px solid #e2dde7}.cms-field>label{display:block;font-size:14px;font-weight:600;margin:0 0 9px;overflow-wrap:anywhere}.cms-field textarea{resize:vertical;line-height:1.55}.cms-field .cms-help{margin:8px 0}.cms-advanced{border-left:2px solid #cbc2dc;padding-left:12px}.cms-text-button{border:0;background:transparent;text-decoration:underline;color:#5a4977;padding:10px 3px;font:inherit;font-size:13px;cursor:pointer;min-height:44px}.cms-preview{min-width:0;background:#e8e5ec;display:flex;flex-direction:column;align-items:center;overflow:hidden}.cms-preview-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 16px;background:#f7f5f9;box-sizing:border-box;font-size:13px;border-bottom:1px solid #d1cbd9}.cms-preview-bar>div{display:flex;gap:6px}.cms-preview-bar .button{font-size:12px;padding:8px 10px;min-height:40px}.cms-preview iframe{width:100%;height:100%;min-height:0;flex:1;border:0;background:#fff}.cms-preview.phone iframe{max-width:390px}.cms-settings{margin-top:30px;border:1px solid #d1cbd9;border-radius:12px;padding:20px;background:#fff}.cms-settings>summary{cursor:pointer;font-weight:600;min-height:30px}.cms-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding:12px 0}.cms-settings h3{font-size:22px}.cms-settings form{margin:20px 0}.cms-dns{display:block;padding:12px;background:#eeeaf4;overflow-wrap:anywhere}.cms-dialog{border:1px solid #b8afc3;border-radius:16px;padding:28px;max-width:800px;width:calc(100% - 40px);max-height:85vh;color:#302638;background:#fff}.cms-dialog::backdrop{background:#231b37a0}.cms-dialog h2{font-size:28px}.cms-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0;max-height:45vh;overflow:auto}.cms-library button{border:1px solid #d1cbd9;border-radius:8px;padding:8px;background:#fff;cursor:pointer;overflow:hidden;color:#302638}.cms-library img{display:block;width:100%;height:120px;object-fit:cover}.cms-library span{display:block;overflow-wrap:anywhere;margin-top:8px}.cms-history{max-height:50vh;overflow:auto;margin:24px 0}.cms-history>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #e2dde7}.cms-activation{max-width:720px;margin:70px auto;padding:0 24px}.cms-check{display:flex;align-items:center;gap:9px;font-size:14px;margin:20px 0}.cms-check input{width:20px;height:20px}.cms-editor :focus-visible,.agency-home :focus-visible,.cms-activation :focus-visible{outline:3px solid #6652b7;outline-offset:3px}
@media(max-width:1100px){.cms-workspace{grid-template-columns:290px minmax(0,1fr)}.cms-preview-bar{align-items:flex-start;flex-direction:column}.cms-toolbar{align-items:flex-start}.cms-publish{max-width:340px}.cms-publish>span{width:100%;text-align:right}}
@media(max-width:760px){.agency-home{margin-top:28px;padding:0 18px}.cms-heading,.cms-toolbar{flex-direction:column;align-items:flex-start}.agency-client{flex-wrap:wrap;gap:14px}.agency-client>div{width:calc(100% - 76px)}.agency-state{margin-left:70px}.cms-publish{max-width:none;justify-content:flex-start}.cms-publish>span{width:auto;text-align:left}.cms-controls{flex-direction:column;align-items:stretch}.cms-controls .cms-inline{display:grid;grid-template-columns:1fr 1fr}.cms-controls .cms-inline button:nth-child(2){grid-column:1 / -1;grid-row:2}.cms-workspace{display:flex;flex-direction:column;height:auto;max-height:none;min-height:0}.cms-panel{max-height:520px;border:0;border-bottom:1px solid #d1cbd9}.cms-preview{height:620px;flex:none}.cms-settings-grid{grid-template-columns:1fr;gap:15px}.cms-library{grid-template-columns:1fr 1fr}.cms-history>div{align-items:flex-start;flex-direction:column}.cms-form,.cms-import{padding:20px}.cms-reassurance{font-size:14px}.cms-preview-bar{padding:10px}.cms-preview-bar>div{flex-wrap:wrap}.cms-dialog{padding:20px}}
@media(prefers-reduced-motion:reduce){.cms-editor *{scroll-behavior:auto!important}}
.cms-demo-banner{padding:12px 16px;background:#e4e0f1;border-left:3px solid #6652b7;font-size:14px;line-height:1.5;margin:0 0 22px;}
.cms-controls [hidden]{display:none!important}

.cms-field{position:relative}
.cms-panel .cms-field-selected{background:#f9edf4;outline:2px solid #972462;outline-offset:5px;border-radius:5px}
.cms-field-selected::before{content:'Sélectionné';position:absolute;right:0;top:0;color:#7b1c51;font-size:11px;font-weight:700;pointer-events:none}
.cms-field-selected textarea,.cms-field-selected input{background:#fff}
.workflow-purpose{padding:12px 16px;border-left:3px solid #972462;background:#f9edf4;font-size:14px}

/* Agency project management — existing Nesisen visual contract. */
.agency-project-tools{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:24px;margin:32px 0 16px}
#projectFilters{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid #ded6dd}
#projectFilters button{font:inherit;font-size:14px;padding:12px 14px;min-height:44px;border:0;border-bottom:3px solid transparent;color:#524653;background:transparent;cursor:pointer}
#projectFilters button[aria-pressed=true]{border-bottom-color:#972462;color:#7b1c51;background:#f3e7ef;font-weight:700}
#projectFilters span{margin-left:9px;font-size:12px;opacity:.8}
.agency-search{display:grid;gap:6px;font-size:13px;min-width:260px}.agency-search input{min-height:44px}
.agency-project{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 8px;border-bottom:1px solid #e1dbe3}
.agency-project-main{display:flex;align-items:center;gap:22px;min-width:0;color:inherit;text-decoration:none;flex:1}
.agency-project-main>div{min-width:0}.agency-project-main h2{font-size:24px;margin:0 0 6px;line-height:1.25;overflow-wrap:anywhere}.agency-project-main p{margin:0;font-size:14px;overflow-wrap:anywhere}
.agency-project-detail{display:inline-block;font-size:12px;color:#6e596a;margin-top:9px}
.agency-project-main:hover h2{color:#972462}.agency-project-actions{display:flex;gap:22px;align-items:end;flex-shrink:0}.agency-project-actions label{display:grid;gap:5px;font-size:12px}.agency-project-actions select{width:160px;min-height:44px;font-size:14px;background:#fff}.project-delete{color:#8d2940;min-height:44px}
.agency-project-actions :disabled{opacity:.55;cursor:wait}
@media(max-width:900px){.agency-project{align-items:start;flex-wrap:wrap}.agency-project-actions{margin-left:92px}.agency-project-main{flex-basis:100%}.agency-search{width:100%}}
@media(max-width:480px){.agency-project{padding:20px 0;gap:16px}.agency-project-main{gap:14px}.agency-project-main h2{font-size:20px}.agency-project-actions{margin-left:0;width:100%;justify-content:space-between}.agency-project-main .agency-monogram{flex-shrink:0}#projectFilters button{padding:10px 9px}.agency-search{min-width:0}}
.agency-search input,.agency-project-actions select{border:1px solid #d1cbd9;border-radius:8px;padding:10px 12px;color:#302638;font:inherit;background:#fff}

.cms-dialog-designed [hidden]{display:none!important}.section-refine{margin-top:28px;padding-top:24px;border-top:1px solid #ded3db;display:grid;gap:12px}.section-refine>label{font-weight:700}.section-refine>p{margin:0}.section-refine textarea{width:100%;min-height:105px;resize:vertical}.section-refine button{justify-self:start}.section-refine [role=alert]:not(:empty){color:#9d2148}.section-refine:focus-within{border-top-color:#972462}.section-proposal-note details>summary{cursor:pointer;min-height:44px;padding-top:12px}

.cms-photo-size{margin-top:20px;padding-top:18px;border-top:1px solid #e7dce5}.cms-photo-size label{display:flex;justify-content:space-between;gap:12px}.cms-photo-size output{font-variant-numeric:tabular-nums;color:#972462;font-size:13px}.cms-photo-size input[type=range]{width:100%;padding:0;min-height:36px;accent-color:#972462;cursor:ew-resize}.cms-photo-size input:focus-visible{outline:2px solid #972462;outline-offset:3px}
