:root{
  --mc-bg:#f5f1e8;
  --mc-card:#fffdf9;
  --mc-line:#d8d0c3;
  --mc-ink:#172235;
  --mc-muted:#66758b;
  --mc-gold:#9a691a;
  --mc-gold-soft:#f3e8d0;
  --mc-green:#198457;
  --mc-green-soft:#eff9f4;
  --mc-blue:#17243a;
  --mc-warning:#fff1d8;
}
*{box-sizing:border-box}
body{margin:0;background:var(--mc-bg);color:var(--mc-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:inherit}
.mc398d2-page{max-width:1500px;margin:0 auto;padding:24px 18px 42px}
.mc398d2-hero{margin-bottom:18px;padding:8px 2px 4px}
.mc398d2-hero span{display:block;font-size:.74rem;font-weight:900;letter-spacing:.14em;color:var(--mc-gold);margin-bottom:5px}
.mc398d2-hero h1{font-size:clamp(2rem,4vw,3.8rem);line-height:1.02;margin:0 0 10px;max-width:1000px}
.mc398d2-hero p{max-width:850px;color:#5c6d86;font-size:1rem;line-height:1.55;margin:0}
.mc398d2-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,310px);gap:20px;align-items:start}
.mc398d2-main{min-width:0;display:flex;flex-direction:column;gap:16px}
.mc398d2-aside{min-width:0;position:sticky;top:16px;align-self:start}
.mc398d2-step{background:var(--mc-card);border:1px solid var(--mc-line);border-radius:18px;padding:18px;box-shadow:0 6px 18px rgba(24,34,52,.035)}
.mc398d2-step-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:15px}
.mc398d2-step-head>div>span{font-size:.72rem;font-weight:900;letter-spacing:.13em;color:var(--mc-gold)}
.mc398d2-step-head h2{margin:3px 0 4px;font-size:1.22rem}
.mc398d2-step-head p{margin:0;color:var(--mc-muted);line-height:1.45}
.mc398d2-step-head>b{width:31px;height:31px;display:grid;place-items:center;border:1px solid #dfb971;border-radius:50%;color:#8a5e17;background:#fffaf0;flex:0 0 auto}
.mc398d2-step label{font-weight:850}
.mc398d2-example{font-size:.9rem;color:var(--mc-muted);line-height:1.45;margin:5px 0 10px}
#mc398d2-text{width:100%;min-height:138px;padding:13px;border:1px solid #cfc7bb;border-radius:13px;background:#fff;font:inherit;color:var(--mc-ink);resize:vertical}
.mc398d2-primary,#mc398d2-custom-save{border:0;border-radius:10px;background:#cb9734;color:#111827;padding:10px 14px;font-weight:900;cursor:pointer;margin-top:9px}
.mc398d2-note,.mc398d2-status{margin:11px 0 0;padding:10px 12px;border-radius:10px;background:#f3ecde;color:#41516a;line-height:1.45}
.hidden{display:none!important}
.mc398d2-trade-state{display:inline-flex;gap:8px;align-items:center;padding:8px 11px;border-radius:10px;background:#eef8f3;color:#176344;margin-bottom:11px}
.mc398d2-trade-state span{font-size:.78rem;font-weight:800}
.mc398d2-trade-state strong{font-size:.9rem}
.mc398d2-trade-state.custom{background:#f1ecfb;color:#6946a0}
.mc398d2-trade-state.neutral{background:#f3f0e9;color:#68758a}
.mc398d2-trades{display:flex;flex-wrap:wrap;gap:7px}
.mc398d2-trade{border:1px solid #dcbd84;background:#fffaf3;color:#3e4b5e;border-radius:999px;padding:7px 11px;font-weight:750;cursor:pointer}
.mc398d2-trade.active{background:var(--mc-blue);color:#fff;border-color:var(--mc-blue)}
.mc398d2-trade.custom{border-style:dashed}
.mc398d2-custom{margin-top:12px;padding:12px;border:1px dashed #c9b892;border-radius:12px;background:#fffcf6}
.mc398d2-custom>div{display:flex;gap:8px;margin-top:7px}
.mc398d2-custom input{flex:1;min-width:0;padding:10px 11px;border:1px solid #cfc7bb;border-radius:10px;font:inherit}
.mc398d2-subsection{margin-top:17px;padding-top:15px;border-top:1px solid #ebe5db}
.mc398d2-subsection h3{margin:0 0 3px;font-size:1rem}
.mc398d2-subsection>p{margin:0 0 10px;color:var(--mc-muted);font-size:.9rem}
.mc398d2-bundles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.mc398d2-bundle{display:flex;flex-direction:column;gap:4px;padding:11px 12px;border:1px solid #d9d1c5;border-radius:12px;background:#fff;cursor:pointer;min-width:0}
.mc398d2-bundle:hover,.mc398d2-bundle:focus{outline:none;border-color:#ba8730;box-shadow:0 0 0 2px rgba(186,135,48,.11)}
.mc398d2-bundle.active{border-color:#b77d1f;background:#fff9ef}
.mc398d2-bundle small{font-weight:900;color:var(--mc-gold)}
.mc398d2-bundle strong{font-size:.92rem}
.mc398d2-bundle span{font-size:.8rem;color:var(--mc-muted);line-height:1.35}
.mc398d2-empty{padding:10px 12px;border-radius:10px;background:#f5f2ec;color:#68758a}
.mc398d2-formulas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.mc398d2-formula{display:flex;flex-direction:column;padding:15px;border:1px solid #d8d0c4;border-radius:15px;background:#fff;cursor:pointer;min-width:0}
.mc398d2-formula:hover,.mc398d2-formula:focus{outline:none;border-color:#be8c36;box-shadow:0 0 0 2px rgba(190,140,54,.1)}
.mc398d2-formula.active{border-color:#bf8126;background:#fffbf2}
.mc398d2-kicker{font-size:.68rem;font-weight:900;letter-spacing:.11em;color:var(--mc-gold)}
.mc398d2-formula h3{margin:5px 0 2px}
.mc398d2-formula-price{font-size:1.75rem;font-weight:950;color:#93631a;margin:3px 0}
.mc398d2-formula p{font-size:.88rem;color:var(--mc-muted);line-height:1.4;margin:4px 0 8px}
.mc398d2-formula ul{margin:0 0 10px;padding-left:18px;color:#5e6d84;line-height:1.45;font-size:.86rem;flex:1}
.mc398d2-formula-choice{align-self:flex-start;padding:6px 9px;border-radius:999px;background:var(--mc-gold-soft);color:#775319;font-size:.78rem;font-weight:900}
.mc398d2-formula.active .mc398d2-formula-choice{background:var(--mc-green);color:#fff}
.mc398d2-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.mc398d2-toolbar input{flex:1;min-width:0;padding:10px 11px;border:1px solid #cfc7bb;border-radius:10px;background:#fff;font:inherit}
.mc398d2-toolbar button{border:0;background:none;color:#885d18;font-weight:850;cursor:pointer;white-space:nowrap}
.mc398d2-group{border-top:1px solid #e8e1d6;padding:0}
.mc398d2-group:first-child{border-top:0}
.mc398d2-group summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 1px;cursor:pointer;list-style:none;font-weight:900}
.mc398d2-group summary::-webkit-details-marker{display:none}
.mc398d2-group summary:after{content:"＋";color:#8f631b;font-size:.9rem;margin-left:auto}
.mc398d2-group[open] summary:after{content:"−"}
.mc398d2-group summary small{font-size:.72rem;color:#778399;font-weight:750;margin-left:auto}
.mc398d2-group-body{padding:0 0 13px}
.mc398d2-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mc398d2-feature,.mc398d2-form-variant{border:1px solid #d8d0c5;border-radius:11px;background:#fff;padding:10px 11px;cursor:pointer;min-width:0;transition:.12s ease}
.mc398d2-feature:hover,.mc398d2-feature:focus,.mc398d2-form-variant:hover,.mc398d2-form-variant:focus{outline:none;border-color:#bd8b38;background:#fffaf2}
.mc398d2-feature.active,.mc398d2-form-variant.active{border-color:#208357;background:var(--mc-green-soft)}
.mc398d2-feature.included{border-color:#aed4c3;background:#f3faf7;cursor:default}
.mc398d2-feature.suggested:not(.active){box-shadow:inset 3px 0 0 #5b86bd}
.mc398d2-feature-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.mc398d2-feature-top strong{font-size:.88rem;line-height:1.25}
.mc398d2-feature-top>span{font-size:.76rem;white-space:nowrap;font-weight:900;color:#8f6019}
.mc398d2-feature p,.mc398d2-form-variant p{margin:5px 0 0;color:#637289;font-size:.79rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mc398d2-suggested{display:inline-block;margin-left:5px;padding:2px 5px;border-radius:999px;background:#dce8f8;color:#3e6797;font-size:.62rem;font-weight:900;vertical-align:1px}
.mc398d2-quantity-card{cursor:default}
.mc398d2-inline-qty{display:flex;align-items:center;gap:8px;margin-top:8px}
.mc398d2-inline-qty button{width:29px;height:29px;border:1px solid #cfc7bb;border-radius:8px;background:#fff;color:#172235;font-size:1rem;font-weight:900;cursor:pointer}
.mc398d2-inline-qty strong{min-width:23px;text-align:center}
.mc398d2-inline-qty em{font-size:.72rem;color:#758197;font-style:normal;margin-left:3px}
.mc398d2-inline-qty.compact{margin-top:7px}
.mc398d2-form-box{display:flex;flex-direction:column;gap:9px}
.mc398d2-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mc398d2-form-variant.covered{opacity:.62;cursor:not-allowed;background:#f5f3ef}
.mc398d2-form-qty{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 10px;border-radius:10px;background:#f7f4ee}
.mc398d2-form-qty>span{font-size:.82rem;font-weight:800;color:#4d5c73}
.mc398d2-provided{margin-top:15px;border:1px dashed #c8b892;border-radius:12px;padding:11px;background:#fffcf7}
.mc398d2-provided summary{cursor:pointer;font-weight:900}
.mc398d2-provided>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}
.mc398d2-provided label{padding:8px;background:#fff;border:1px solid #e2dbcf;border-radius:8px;font-weight:650;font-size:.82rem}
.mc398d2-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mc398d2-plan{display:grid;grid-template-columns:1fr auto;gap:3px 9px;padding:10px 11px;border:1px solid #d8d0c5;border-radius:11px;background:#fff;cursor:pointer}
.mc398d2-plan:hover,.mc398d2-plan:focus{outline:none;border-color:#bd8a35}
.mc398d2-plan.active{border-color:#bc8128;background:#fff9ef}
.mc398d2-plan strong{font-size:.86rem}
.mc398d2-plan span{font-weight:900;color:#8f6019;white-space:nowrap}
.mc398d2-plan small{grid-column:1/-1;color:#6c798e;font-size:.72rem;line-height:1.35}
.mc398d2-summary-card{background:var(--mc-blue);color:#fff;border:1px solid #bd8b39;border-radius:16px;padding:14px;max-height:calc(100vh - 32px);overflow:auto;box-shadow:0 8px 28px rgba(20,31,48,.13)}
.mc398d2-side-kicker{font-size:.69rem;font-weight:900;letter-spacing:.13em;color:#d5a74e}
.mc398d2-summary-card h3{margin:7px 0 10px;font-size:1.12rem}
.mc398d2-side-row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid rgba(255,255,255,.15);font-size:.82rem}
.mc398d2-side-row span{color:#c4ccda}
.mc398d2-side-total{margin-top:8px;padding:11px;border-radius:11px;background:#253653}
.mc398d2-side-total span{display:block;color:#bdc7d7;font-size:.72rem}
.mc398d2-side-total strong{display:block;color:#f2bb48;font-size:1.45rem;margin-top:2px}
.mc398d2-summary-section{margin-top:11px;padding-top:9px;border-top:1px solid rgba(255,255,255,.15)}
.mc398d2-summary-section h4{margin:0 0 5px;color:#d2a34b;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}
.mc398d2-summary-section.confirm h4{color:#ffd08a}
.mc398d2-summary-line{display:flex;justify-content:space-between;gap:10px;padding:5px 0;font-size:.75rem}
.mc398d2-summary-line span{color:#eef2f8;line-height:1.25}
.mc398d2-summary-line strong{color:#f6c45d;text-align:right;font-size:.72rem}
.mc398d2-summary-empty{color:#aeb9c9;font-size:.75rem;padding:4px 0}
.mc398d2-review-head{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.mc398d2-review-head>div{padding:10px;border:1px solid #ded6ca;border-radius:10px;background:#fff}
.mc398d2-review-head span{display:block;color:#758197;font-size:.74rem}
.mc398d2-review-head strong{display:block;margin-top:3px}
#mc398d2-review .mc398d2-summary-section{border:1px solid #e0d8cd;border-radius:10px;padding:10px;background:#fff;color:#172235;margin-top:9px}
#mc398d2-review .mc398d2-summary-section h4{color:#8b611c}
#mc398d2-review .mc398d2-summary-line{border-bottom:1px solid #eee7dd;padding:7px 0}
#mc398d2-review .mc398d2-summary-line:last-child{border-bottom:0}
#mc398d2-review .mc398d2-summary-line span{color:#45546b}
#mc398d2-review .mc398d2-summary-line strong{color:#8c5f18}
.mc398d2-review-total{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:11px}
.mc398d2-review-total>div{padding:12px;border-radius:11px;background:#17243a;color:#fff}
.mc398d2-review-total span{display:block;color:#c3ccda;font-size:.73rem}
.mc398d2-review-total strong{display:block;margin-top:3px;font-size:1.2rem;color:#f1bd55}
.mc398d2-next{margin-top:12px;padding:12px;border:1px dashed #aab8ca;border-radius:11px;background:#f7f9fc}
.mc398d2-next p{color:#68778d;font-size:.84rem;line-height:1.4}
.mc398d2-next button{border:0;border-radius:9px;padding:9px 11px;font-weight:800}
.mc398d2-fatal{padding:15px;border-radius:12px;background:#ffe9e9;color:#9c2222;display:flex;flex-direction:column;gap:5px}
@media(max-width:920px){
  .mc398d2-layout{grid-template-columns:1fr}
  .mc398d2-aside{display:none}
}
@media(max-width:780px){
  .mc398d2-page{padding:14px 10px 28px}
  .mc398d2-feature-grid,.mc398d2-formulas,.mc398d2-bundles,.mc398d2-plans,.mc398d2-review-head,.mc398d2-review-total{grid-template-columns:1fr}
  .mc398d2-form-grid{grid-template-columns:1fr}
  .mc398d2-provided>div{grid-template-columns:1fr 1fr}
  .mc398d2-toolbar,.mc398d2-custom>div,.mc398d2-form-qty{flex-direction:column;align-items:stretch}
  .mc398d2-toolbar button{align-self:flex-start}
}
@media(max-width:480px){
  .mc398d2-provided>div{grid-template-columns:1fr}
  .mc398d2-feature-top{gap:6px}
  .mc398d2-feature-top>span{white-space:normal;text-align:right}
}


/* MCPRO V398D.2R1 — relations, dépendances visibles, info contextuelle */
.mc398d2-feature-tools{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.mc398d2-feature-tools>span{font-size:.76rem;white-space:nowrap;font-weight:900;color:#8f6019}
.mc398d2-info-btn{width:20px;height:20px;border:1px solid #c9b98f;border-radius:50%;background:#fffaf0;color:#7f5b1d;font-size:.72rem;font-weight:950;line-height:1;display:grid;place-items:center;cursor:pointer;padding:0;flex:0 0 20px}
.mc398d2-info-btn:hover,.mc398d2-info-btn:focus{outline:none;background:#17243a;color:#fff;border-color:#17243a}
.mc398d2-feature.child{position:relative;margin-left:10px;border-left-width:3px}
.mc398d2-feature.child:before{content:"";position:absolute;left:-11px;top:18px;width:8px;border-top:1px solid #cbbd9e}
.mc398d2-relation{margin:-2px 0 6px;font-size:.69rem;font-weight:900;letter-spacing:.02em;color:#7b6a4d}
.mc398d2-relation.evolution{color:#8b5e15}
.mc398d2-relation.complement{color:#4f6f91}
.mc398d2-required-note{margin:-2px 0 6px;padding:4px 7px;border-radius:7px;background:#e7f5ee;color:#1d6549;font-size:.69rem;font-weight:850}
.mc398d2-feature.required{border-color:#198457;background:#f1faf6;cursor:default}
.mc398d2-info-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:18px}
.mc398d2-info-modal.hidden{display:none}
.mc398d2-info-backdrop{position:absolute;inset:0;background:rgba(18,28,44,.52);backdrop-filter:blur(2px)}
.mc398d2-info-dialog{position:relative;z-index:1;width:min(560px,100%);max-height:min(680px,88vh);overflow:auto;background:#fffdf9;border:1px solid #d6c8ad;border-radius:16px;box-shadow:0 22px 70px rgba(12,22,39,.28);padding:20px}
.mc398d2-info-close{position:absolute;right:11px;top:10px;width:32px;height:32px;border:0;border-radius:50%;background:#f1ece3;color:#172235;font-size:1.3rem;cursor:pointer}
.mc398d2-info-head span{display:block;font-size:.68rem;font-weight:950;letter-spacing:.13em;color:#926515;margin-bottom:5px}
.mc398d2-info-head h3{margin:0 38px 12px 0;font-size:1.18rem;color:#172235}
.mc398d2-info-dialog p{color:#53647d;line-height:1.55;margin:0 0 14px}
.mc398d2-info-row{display:grid;grid-template-columns:110px 1fr;gap:10px;padding:9px 0;border-top:1px solid #ece4d8;font-size:.83rem}
.mc398d2-info-row strong{color:#172235}
.mc398d2-info-row span{color:#5f6d82;line-height:1.4}
@media(max-width:680px){.mc398d2-feature.child{margin-left:5px}.mc398d2-info-row{grid-template-columns:1fr;gap:3px}.mc398d2-feature-tools>span{white-space:normal;text-align:right}}

/* ============================================================
   MCPRO V398D.2R2 — formulaires multi-niveaux / précisions
   ============================================================ */
.mc398d2-form-multi{display:flex;flex-direction:column;gap:10px}
.mc398d2-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mc398d2-form-tier{border:1px solid #d8d0c5;border-radius:11px;background:#fff;padding:10px 11px;min-width:0}
.mc398d2-form-tier.active{border-color:#208357;background:var(--mc-green-soft)}
.mc398d2-form-tier p{margin:5px 0 0;color:#637289;font-size:.79rem;line-height:1.35}
.mc398d2-form-tier-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;padding-top:8px;border-top:1px solid #e8e2d9}
.mc398d2-form-tier-bottom em{font-size:.72rem;color:#758197;font-style:normal;text-align:right;line-height:1.25}
.mc398d2-form-helper{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border-radius:10px;background:#f5f2ec;border:1px solid #e5ddd0}
.mc398d2-form-helper strong{display:block;font-size:.84rem;color:#233047}
.mc398d2-form-helper p{margin:2px 0 0;font-size:.76rem;color:#647289;line-height:1.35}
.mc398d2-form-helper>button,.mc398d2-form-details-intro>button,.mc398d2-secondary-action{border:1px solid #c9a66b;background:#fff8ea;color:#7f5818;border-radius:9px;padding:8px 10px;font-weight:850;cursor:pointer;white-space:nowrap}
.mc398d2-form-details{border:1px solid #d9d1c5;border-radius:12px;background:#fffdf9;padding:11px}
.mc398d2-form-details-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.mc398d2-form-details-intro strong{color:#233047}
.mc398d2-form-details-intro p{margin:3px 0 0;color:#647289;font-size:.78rem;line-height:1.4}
.mc398d2-form-suggestions{margin-top:10px;padding:9px;border-radius:10px;background:#f7f3eb}
.mc398d2-form-suggestions>strong{display:block;margin-bottom:7px;font-size:.8rem;color:#233047}
.mc398d2-form-suggestions>div{display:flex;flex-wrap:wrap;gap:6px}
.mc398d2-form-suggestions button{display:flex;flex-direction:column;align-items:flex-start;gap:1px;border:1px solid #d6c8ae;background:#fff;border-radius:9px;padding:7px 9px;cursor:pointer;text-align:left}
.mc398d2-form-suggestions button:hover{border-color:#bd8b38;background:#fffaf2}
.mc398d2-form-suggestions button span{font-size:.78rem;font-weight:800;color:#28364b}
.mc398d2-form-suggestions button small{font-size:.68rem;color:#7a8799}
.mc398d2-form-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.mc398d2-form-spec{border:1px solid #e0d8cc;border-radius:10px;background:#fff;padding:9px;display:flex;flex-direction:column;gap:7px}
.mc398d2-form-spec-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.mc398d2-form-spec-head strong{font-size:.8rem;color:#28364b}
.mc398d2-form-spec-head span{font-size:.66rem;color:#8a7657;background:#f6efe3;border-radius:999px;padding:2px 6px}
.mc398d2-form-spec input,.mc398d2-form-spec textarea,.mc398d2-personalize input,.mc398d2-personalize textarea{width:100%;border:1px solid #d5ccc0;border-radius:8px;background:#fff;padding:8px 9px;font:inherit;color:#233047}
.mc398d2-form-spec textarea,.mc398d2-personalize textarea{min-height:72px;resize:vertical}
.mc398d2-form-spec small{font-size:.69rem;color:#7b8798;line-height:1.35}
.mc398d2-form-details>.mc398d2-secondary-action{margin-top:10px}
.mc398d2-personalize{margin-top:14px;padding-top:12px;border-top:1px solid #e6dfd4;display:flex;flex-direction:column;gap:7px}
.mc398d2-personalize>strong{color:#223047}
.mc398d2-personalize>p{margin:0;color:#647289;font-size:.79rem;line-height:1.4}
.mc398d2-personalize label{display:flex;flex-direction:column;gap:4px;font-size:.76rem;font-weight:800;color:#46556b}
.mc398d2-personalize label small{font-weight:600;color:#8290a3}
.mc398d2-personalize.disabled{opacity:.68}
@media(max-width:900px){
  .mc398d2-form-grid{grid-template-columns:1fr}
  .mc398d2-form-specs{grid-template-columns:1fr}
  .mc398d2-form-helper,.mc398d2-form-details-intro{flex-direction:column;align-items:stretch}
  .mc398d2-form-helper>button,.mc398d2-form-details-intro>button{align-self:flex-start;white-space:normal}
}

/* MCPRO V398D.2R4 — constructeur de formulaires compact */
.mc398d2-form-details-intro{align-items:flex-start}
.mc398d2-form-details-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}
.mc398d2-form-details-actions button{border:1px solid #c9a66b;background:#fff8ea;color:#7f5818;border-radius:9px;padding:8px 10px;font-weight:850;cursor:pointer}
.mc398d2-form-details-actions button:first-child{background:#fff;color:#536177;border-color:#d6dce5}
.mc398d2-form-specs{grid-template-columns:1fr;gap:7px}
.mc398d2-form-spec{display:block;padding:0;overflow:hidden}
.mc398d2-form-spec>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 10px;cursor:pointer;background:#fff}
.mc398d2-form-spec>summary::-webkit-details-marker{display:none}
.mc398d2-form-spec>summary>div{min-width:0}
.mc398d2-form-spec>summary strong{display:block;font-size:.81rem;color:#28364b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mc398d2-form-spec>summary small{display:block;margin-top:2px;font-size:.69rem;color:#7b8798}
.mc398d2-form-spec>summary>span{flex:0 0 auto;font-size:.66rem;color:#8a7657;background:#f6efe3;border-radius:999px;padding:2px 6px}
.mc398d2-form-spec[open]>summary{background:#fbf8f2;border-bottom:1px solid #e9e1d5}
.mc398d2-form-spec-body{display:flex;flex-direction:column;gap:7px;padding:10px}
.mc398d2-form-spec-body>label{font-size:.72rem;font-weight:800;color:#536177}
.mc398d2-field-builder{margin-top:4px;padding-top:9px;border-top:1px solid #eee6db}
.mc398d2-field-builder-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.mc398d2-field-builder-head strong{display:block;font-size:.78rem;color:#28364b}
.mc398d2-field-builder-head p{margin:2px 0 0;font-size:.71rem;color:#748095;line-height:1.35}
.mc398d2-field-builder-head>span{flex:0 0 auto;font-size:.68rem;font-weight:850;color:#166746;background:#eaf7f0;border-radius:999px;padding:3px 7px}
.mc398d2-field-group{margin-top:8px}
.mc398d2-field-group>strong{display:block;margin-bottom:5px;font-size:.7rem;color:#58677e}
.mc398d2-field-chips{display:flex;flex-wrap:wrap;gap:5px}
.mc398d2-field-chip{border:1px solid #d8d0c5;background:#fff;border-radius:999px;padding:5px 8px;font-size:.7rem;font-weight:750;color:#405069;cursor:pointer}
.mc398d2-field-chip:hover{border-color:#bd8b38;background:#fffaf2}
.mc398d2-field-chip.active{border-color:#208357;background:#eaf7f0;color:#176344}
.mc398d2-custom-field-list{margin-top:9px}
.mc398d2-custom-field-list>strong{display:block;margin-bottom:5px;font-size:.7rem;color:#58677e}
.mc398d2-custom-field-list>div{display:flex;flex-wrap:wrap;gap:5px}
.mc398d2-custom-field-list span{display:inline-flex;align-items:center;gap:4px;border-radius:999px;background:#f1ecfb;color:#6946a0;padding:4px 7px;font-size:.69rem;font-weight:750}
.mc398d2-custom-field-list button{border:0;background:transparent;color:inherit;font-weight:900;cursor:pointer;padding:0 1px}
.mc398d2-custom-field-add{display:flex;gap:6px;margin-top:9px}
.mc398d2-custom-field-add input{flex:1;min-width:0}
.mc398d2-custom-field-add button{border:1px solid #c9a66b;background:#fff8ea;color:#7f5818;border-radius:8px;padding:7px 9px;font-weight:800;cursor:pointer;white-space:nowrap}
@media(max-width:760px){
  .mc398d2-form-details-actions,.mc398d2-custom-field-add{flex-direction:column;align-items:stretch}
  .mc398d2-form-details-actions button,.mc398d2-custom-field-add button{width:100%;white-space:normal}
}


/* MCPRO V398D.2R6 — Formulaires : capacité simple et lisible */
.mc398d2-field-builder-head>span.warning{background:#fff2d8;color:#895c12}
.mc398d2-field-builder-head>span.full{background:#fde8e5;color:#9a382e}
.mc398d2-simple-capacity{margin:9px 0 10px;padding:10px 11px;border:1px solid #d9b36e;border-radius:10px;background:#fff8ea;color:#5f471d}
.mc398d2-simple-capacity>strong{display:block;font-size:.8rem}
.mc398d2-simple-capacity>p{margin:3px 0 8px!important;font-size:.72rem!important;line-height:1.35;color:#6b5734!important}
.mc398d2-simple-capacity>div{display:flex;flex-wrap:wrap;gap:6px}
.mc398d2-simple-capacity button{border:1px solid #c99b50;background:#fff;border-radius:8px;padding:6px 9px;font-size:.7rem;font-weight:850;color:#704d17;cursor:pointer}
.mc398d2-simple-capacity button:hover{background:#fffaf1;border-color:#a9772b}
@media(max-width:720px){.mc398d2-simple-capacity>div{flex-direction:column}.mc398d2-simple-capacity button{width:100%}}

/* MCPRO V398D.2R7 — sélection de champs simplifiée */
.mc398d2-field-catalog-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 10px;padding:7px 9px;border:1px solid #e4dacb;border-radius:9px;background:#fbf8f1}
.mc398d2-field-catalog-actions span{font-size:.7rem;color:#68758a;font-weight:750}
.mc398d2-field-catalog-actions button{border:1px solid #d1ab68;background:#fffaf0;color:#795317;border-radius:8px;padding:6px 9px;font-size:.7rem;font-weight:850;cursor:pointer}
.mc398d2-field-catalog-actions button:hover{background:#f7ecd7}
@media(max-width:720px){.mc398d2-field-catalog-actions{align-items:stretch;flex-direction:column}.mc398d2-field-catalog-actions button{width:100%}}

/* MCPRO V398D.2R7 — valeur des formules / accompagnement */
.mc398d2-formula-value{margin:2px 0 8px;padding:7px 9px;border-radius:9px;background:#f7f1e4;color:#76531d;font-size:.74rem;font-weight:900;line-height:1.3}
.mc398d2-formula.active .mc398d2-formula-value{background:#f2e2c3}
.mc398d2-formula-note{margin:auto 0 10px;padding-top:8px;border-top:1px solid #ebe1d2;color:#6f7b8e;font-size:.72rem;line-height:1.35}
.mc398d2-formula ul{flex:0;margin-bottom:9px}
.mc398d2-plan{display:flex;flex-direction:column;gap:5px;padding:12px 13px}
.mc398d2-plan-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.mc398d2-plan-head>div{display:flex;align-items:center;gap:7px;min-width:0}
.mc398d2-plan-head strong{font-size:.9rem}
.mc398d2-plan-head em{font-style:normal;padding:3px 6px;border-radius:999px;background:#f4e6ca;color:#7b561b;font-size:.62rem;font-weight:900;white-space:nowrap}
.mc398d2-plan-head span{font-weight:950;color:#8f6019;white-space:nowrap}
.mc398d2-plan p{margin:0;color:#46546b;font-size:.75rem;line-height:1.35}
.mc398d2-plan small{display:block;color:#6c798e;font-size:.68rem;line-height:1.35}
.mc398d2-plan-choice{align-self:flex-start;margin-top:2px;padding:4px 7px;border-radius:999px;background:#f4ead6;color:#79561d;font-size:.67rem;font-weight:900}
.mc398d2-plan.active .mc398d2-plan-choice{background:#198457;color:#fff}
@media(max-width:720px){.mc398d2-plan-head{flex-direction:column}.mc398d2-plan-head span{font-size:1rem}}


/* MCPRO R7 — attirer doucement l'attention lorsqu'un formulaire est plein */
@keyframes mc398d2-capacity-attention {
  0%,100% {background:#fff8ea;border-color:#d9b36e;box-shadow:0 0 0 rgba(190,67,55,0);}
  24% {background:rgba(222,74,62,.16);border-color:#c65d50;box-shadow:0 0 0 3px rgba(198,93,80,.10);}
  50% {background:#fff8ea;border-color:#d9b36e;box-shadow:0 0 0 rgba(190,67,55,0);}
  76% {background:rgba(222,74,62,.13);border-color:#cb6a5e;box-shadow:0 0 0 2px rgba(198,93,80,.08);}
}
.mc398d2-simple-capacity.attention{animation:mc398d2-capacity-attention 2.8s ease-in-out 1;}
@media (prefers-reduced-motion: reduce){
  .mc398d2-simple-capacity.attention{animation:none;border-color:#c65d50;box-shadow:0 0 0 3px rgba(198,93,80,.10);}
}

/* MCPRO R8 — formulaire plein : ajout personnalisé clairement bloqué */
.mc398d2-custom-field-add.full{padding:7px;border:1px solid rgba(190,67,55,.34);border-radius:10px;background:rgba(222,74,62,.055)}
.mc398d2-custom-field-add.full input{border-color:#d59a92;background:#fffafa}
.mc398d2-custom-field-add button.full{border-color:#bd5548!important;background:rgba(205,71,58,.14)!important;color:#9d3027!important}
.mc398d2-custom-field-add.attention{animation:mc398d2-capacity-attention 2.8s ease-in-out 1}
@media (prefers-reduced-motion: reduce){.mc398d2-custom-field-add.attention{animation:none;border-color:#c65d50;box-shadow:0 0 0 3px rgba(198,93,80,.10)}}


/* MCPRO R9 — formulaire évolué : repérage clair et contrôle déplier/replier */
.mc398d2-form-spec>summary .mc398d2-form-spec-title{min-width:0;flex:1}
.mc398d2-form-spec-titleline{display:flex;align-items:center;gap:8px;min-width:0}
.mc398d2-form-spec-titleline strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mc398d2-form-spec-titleline em{flex:0 0 auto;font-style:normal;font-size:.64rem;color:#8a7657;background:#f6efe3;border-radius:999px;padding:2px 6px;font-weight:800}
.mc398d2-form-spec>summary .mc398d2-form-toggle-label{flex:0 0 auto;font-size:.72rem;font-weight:900;color:#7b5318;background:#fff8ea;border:1px solid #d8b06b;border-radius:8px;padding:6px 9px;white-space:nowrap}
.mc398d2-form-spec>summary:hover .mc398d2-form-toggle-label{background:#f8ecd7;border-color:#bd8b38}
.mc398d2-form-spec[open]>summary .mc398d2-form-toggle-label{background:#f4ead7;color:#68440f}
@media(max-width:720px){
  .mc398d2-form-spec>summary{align-items:flex-start}
  .mc398d2-form-spec>summary .mc398d2-form-toggle-label{font-size:.68rem;padding:5px 7px}
}


/* MCPRO V398D.2R10 — accès permanent à l’espace client */
.mc398d2-topbar{
  position:relative;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:18px;
  min-height:58px;padding:9px clamp(12px,2.2vw,28px);background:#1e2a3c;border-bottom:1px solid rgba(255,255,255,.08);
}
.mc398d2-topbar-brand{display:flex;align-items:baseline;gap:7px;text-decoration:none;color:#fff;letter-spacing:.03em}
.mc398d2-topbar-brand strong{font-size:.86rem;font-weight:950}
.mc398d2-topbar-brand span{font-size:.68rem;font-weight:900;color:#e6aa39;letter-spacing:.14em}
.mc398d2-topbar-actions{display:flex;align-items:center;gap:8px}
.mc398d2-topbar-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 12px;border:1px solid rgba(255,255,255,.20);border-radius:10px;text-decoration:none;color:#f4f7fb;font-size:.78rem;font-weight:850;background:rgba(255,255,255,.045)}
.mc398d2-topbar-actions a:hover{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.34)}
.mc398d2-topbar-actions a.primary{background:#d99a26;border-color:#d99a26;color:#172033;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.mc398d2-topbar-actions a.primary:hover{background:#e4a634;border-color:#e4a634}
@media(max-width:620px){
  .mc398d2-topbar{align-items:stretch;flex-direction:column;padding:9px 12px}
  .mc398d2-topbar-brand{justify-content:center}
  .mc398d2-topbar-actions{display:grid;grid-template-columns:1fr 1fr}
  .mc398d2-topbar-actions a{width:100%}
}


/* MCPRO V398D.2R17 — DEMONSTRATIONS DE FONCTIONNALITES */
.mc398d2-demo-strip{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;padding-top:8px;border-top:1px dashed rgba(176,126,42,.26)}
.mc398d2-demo-strip>span{color:#24704b;font-size:.69rem;font-weight:900;letter-spacing:.015em}
.mc398d2-demo-strip>a{position:relative;z-index:3;display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 9px;border:1px solid #c6933c;border-radius:8px;background:#fff8e9;color:#765015!important;text-decoration:none!important;font-size:.69rem;font-weight:900;white-space:nowrap}
.mc398d2-demo-strip>a:hover{background:#f7e8c9;border-color:#ac7725}
.mc398d2-feature.active .mc398d2-demo-strip{border-top-color:rgba(31,133,86,.2)}
.mc398d2-info-demo{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0;padding:11px 12px;border:1px solid rgba(42,139,88,.28);border-radius:11px;background:#eef8f2}
.mc398d2-info-demo>div{display:grid;gap:3px}.mc398d2-info-demo strong{color:#205e40}.mc398d2-info-demo span{color:#5a6e62;font-size:.76rem;line-height:1.4}
.mc398d2-info-demo>a{flex:0 0 auto;padding:8px 10px;border:1px solid #2d8b5d;border-radius:8px;background:#fff;color:#216745!important;text-decoration:none!important;font-size:.75rem;font-weight:900}
@media(max-width:680px){.mc398d2-demo-strip,.mc398d2-info-demo{align-items:flex-start;flex-direction:column}.mc398d2-demo-strip>a,.mc398d2-info-demo>a{width:100%}}


/* R18 — capacités incluses dans une fonctionnalité principale */
.mc398d2-included-capabilities{
  display:flex;flex-wrap:wrap;gap:6px 10px;margin:9px 0 2px;padding:8px 10px;
  border:1px solid rgba(31,140,91,.22);border-radius:10px;background:rgba(31,140,91,.055);
  color:#226b4c;font-size:.78rem;line-height:1.35;
}
.mc398d2-included-capabilities strong{width:100%;color:#176344;font-size:.75rem;text-transform:uppercase;letter-spacing:.035em;}
.mc398d2-included-capabilities span{font-weight:700;}

/* GQ782 — envoi du dossier : prérequis visibles + formulaire de contact compact */
.mc398d2-submit-card{border-style:solid;border-color:#d8b46a;background:#fffaf1;padding:16px}
.mc398d2-submit-card>strong{display:block;font-size:1rem;color:#172235}
.mc398d2-submit-card>p{margin:5px 0 12px;color:#5e6d82}
.mc398d2-submit-contact{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.mc398d2-submit-contact label{display:block;font-size:.78rem;font-weight:800;color:#43516a}
.mc398d2-submit-contact label span{display:block;margin:0 0 5px}
.mc398d2-submit-contact label b{color:#a46b16}
.mc398d2-submit-contact label small{font-weight:600;color:#7c8798}
.mc398d2-submit-contact input{width:100%;box-sizing:border-box;border:1px solid #cfd6df;border-radius:9px;background:#fff;padding:10px 11px;font:inherit;color:#172235;outline:none}
.mc398d2-submit-contact input:focus{border-color:#c58a27;box-shadow:0 0 0 3px rgba(197,138,39,.12)}
.mc398d2-submit-readiness{margin:11px 0;padding:11px 12px;border-radius:10px;font-size:.8rem;line-height:1.4}
.mc398d2-submit-readiness strong{display:block;margin-bottom:4px}
.mc398d2-submit-readiness.incomplete{border:1px solid #e2b0a9;background:#fff3f1;color:#7f3027}
.mc398d2-submit-readiness.incomplete ul{margin:6px 0 0;padding-left:18px}
.mc398d2-submit-readiness.incomplete li{margin:3px 0}
.mc398d2-submit-readiness.incomplete button{padding:0;border:0;background:transparent;color:#7f3027;text-decoration:underline;text-align:left;font:inherit;font-weight:750;cursor:pointer}
.mc398d2-submit-readiness.complete{display:flex;gap:8px;align-items:center;border:1px solid #a8d8bd;background:#effaf4;color:#176743}
.mc398d2-submit-readiness.complete strong{margin:0;white-space:nowrap}
.mc398d2-submit-error{margin:8px 0;padding:10px 12px;border-radius:9px;background:#fff0ee;border:1px solid #e0a8a0;color:#852f27;font-weight:750;font-size:.8rem}
.mc398d2-submit-error.hidden{display:none}
#mc398d2-submit-project{width:100%;margin-top:4px;background:#d99a25;color:#111827;cursor:pointer;transition:opacity .18s ease,transform .18s ease,background .18s ease}
#mc398d2-submit-project:not(:disabled):hover{background:#e4a72f;transform:translateY(-1px)}
#mc398d2-submit-project:disabled{cursor:not-allowed;background:#e6e8ec;color:#8b94a3;opacity:1}
.mc398d2-submit-privacy{display:block;margin-top:7px;color:#7a8697;font-size:.7rem}
.mc398d2-submit-success{margin-top:12px;padding:16px;border:1px solid #9fd2b4;border-radius:12px;background:#effaf4;color:#173d2b}
.mc398d2-submit-success>strong{display:block;font-size:1.05rem;color:#176743}
.mc398d2-submit-ref{display:inline-block;margin:8px 0;padding:6px 9px;border-radius:7px;background:#fff;border:1px solid #b8dac5;font-weight:850}
.mc398d2-submit-success p{margin:5px 0 12px;color:#496556}
.mc398d2-submit-success>div{display:flex;gap:8px;flex-wrap:wrap}
.mc398d2-submit-success a{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:9px;background:#188657;color:#fff;text-decoration:none;font-weight:850;font-size:.8rem}
.mc398d2-submit-success a.secondary{background:#fff;color:#5d491d;border:1px solid #d7bd83}
@media(max-width:720px){.mc398d2-submit-contact{grid-template-columns:1fr}.mc398d2-submit-readiness.complete{align-items:flex-start;flex-direction:column;gap:2px}}


/* MCPRO V398D.2R22 — historique local de 3 configurations, restauration explicite */
.mc398d2-recovery{border:1px solid #d8c395;border-radius:16px;background:#fffaf0;padding:14px;box-shadow:0 5px 16px rgba(23,34,53,.04)}
.mc398d2-recovery-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
.mc398d2-recovery-head>div>span{display:block;color:#95661d;font-size:.68rem;font-weight:950;letter-spacing:.12em;margin-bottom:4px}
.mc398d2-recovery-head strong{display:block;font-size:1rem;color:#172235}
.mc398d2-recovery-head p{margin:4px 0 0;color:#65748a;font-size:.84rem;line-height:1.4}
.mc398d2-recovery-close{width:30px;height:30px;border:1px solid #d8bd86;border-radius:50%;background:#fff;color:#815919;font-weight:950;cursor:pointer;flex:0 0 auto}
.mc398d2-recovery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.mc398d2-recovery-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:11px;border:1px solid #ded5c7;border-radius:12px;background:#fff}
.mc398d2-recovery-rank{display:inline-flex;padding:3px 7px;border-radius:999px;background:#eef4ff;color:#345d9d;font-size:.66rem;font-weight:900;margin-bottom:7px}
.mc398d2-recovery-card strong{font-size:.9rem;line-height:1.25;color:#172235}
.mc398d2-recovery-card span{margin-top:3px;color:#596a82;font-size:.78rem;line-height:1.35}
.mc398d2-recovery-card small{margin-top:5px;color:#8390a2;font-size:.69rem}
.mc398d2-recovery-card button,.mc398d2-recovery-actions button,.mc398d2-recovery-compact button{border:1px solid #c58b2d;border-radius:9px;background:#fff8e9;color:#795318;padding:8px 10px;font-weight:900;cursor:pointer}
.mc398d2-recovery-card button{margin-top:auto;transform:translateY(7px);margin-bottom:7px}
.mc398d2-recovery-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:11px;border-top:1px solid #eadfc9}
.mc398d2-recovery-actions button.primary{background:#17243a;border-color:#17243a;color:#fff}
.mc398d2-recovery-actions small{color:#728096;text-align:right;line-height:1.35}
.mc398d2-recovery-compact{display:flex;align-items:center;justify-content:space-between;gap:14px}
.mc398d2-recovery-compact>div{min-width:0}
.mc398d2-recovery-compact strong{display:block;font-size:.9rem;color:#172235}
.mc398d2-recovery-compact span{display:block;margin-top:2px;color:#6b798f;font-size:.78rem;line-height:1.35}
@media(max-width:900px){.mc398d2-recovery-grid{grid-template-columns:1fr}.mc398d2-recovery-actions,.mc398d2-recovery-compact{align-items:stretch;flex-direction:column}.mc398d2-recovery-actions small{text-align:left}.mc398d2-recovery-card button{margin-top:8px;transform:none;margin-bottom:0}}

/* MCPRO V398D.2R23 — catégories visuelles pédagogiques */
.mc398d2-category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:12px;margin:4px 0 16px}
.mc398d2-category-card{appearance:none;text-align:left;display:flex;flex-direction:column;min-height:142px;padding:14px 15px;border:1px solid #d9d1c5;border-radius:14px;background:#fff;cursor:pointer;color:var(--mc-ink);box-shadow:0 4px 14px rgba(23,34,53,.035);transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease,background .15s ease}
.mc398d2-category-card:hover,.mc398d2-category-card:focus{outline:none;border-color:#c58e32;box-shadow:0 7px 20px rgba(23,34,53,.08);transform:translateY(-1px)}
.mc398d2-category-card.active{border-color:#a86f17;background:#fff9ef;box-shadow:0 0 0 2px rgba(181,123,31,.09)}
.mc398d2-category-card.has-selection{border-color:#9bc8b3;background:#fbfffd}
.mc398d2-category-card.has-selection.active{border-color:#23835a;background:#f2faf6}
.mc398d2-category-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.mc398d2-category-top strong{font-size:.96rem;line-height:1.25}
.mc398d2-category-top span{flex:0 0 auto;font-size:.67rem;font-weight:850;color:#758197;background:#f4f1ea;border-radius:999px;padding:4px 7px}
.mc398d2-category-card p{margin:9px 0 12px;color:#66758b;font-size:.79rem;line-height:1.43;flex:1}
.mc398d2-category-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #eee7dc;padding-top:9px}
.mc398d2-category-foot em{font-style:normal;color:#18734e;font-size:.72rem;font-weight:900}
.mc398d2-category-foot em.neutral{color:#8792a4;font-weight:750}
.mc398d2-category-foot b{color:#8b5d17;font-size:.74rem;white-space:nowrap}
.mc398d2-category-panel{border:1px solid #d9c7a7;border-radius:15px;background:#fffdf9;padding:14px;margin-top:4px;box-shadow:0 7px 20px rgba(23,34,53,.04)}
.mc398d2-category-panel>header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:13px;padding-bottom:12px;border-bottom:1px solid #ece4d8}
.mc398d2-category-panel>header span{font-size:.66rem;font-weight:950;letter-spacing:.11em;color:#986719}
.mc398d2-category-panel>header h3{margin:3px 0 3px;font-size:1.08rem}
.mc398d2-category-panel>header p{margin:0;color:#66758b;font-size:.82rem;line-height:1.4;max-width:720px}
.mc398d2-category-panel>header button{border:1px solid #d9bd89;background:#fff9ed;color:#7e5618;border-radius:9px;padding:7px 9px;font-weight:850;cursor:pointer;white-space:nowrap}
.mc398d2-category-panel>header button:hover,.mc398d2-category-panel>header button:focus{outline:none;background:#f4e7ce}

/* Recommandation de formule : conseil, jamais sélection automatique */
.mc398d2-formula-recommendation{margin-top:14px;padding:15px;border:1px solid #84bca3;border-radius:14px;background:linear-gradient(135deg,#f1faf5,#fffaf0);display:flex;gap:16px;align-items:center;justify-content:space-between}
.mc398d2-recommendation-copy{min-width:0;flex:1}
.mc398d2-recommendation-copy>span{display:block;color:#18724e;font-size:.68rem;font-weight:950;letter-spacing:.11em;margin-bottom:4px}
.mc398d2-recommendation-copy h3{margin:0 0 5px;font-size:1.05rem}
.mc398d2-recommendation-copy>p{margin:0;color:#5f6e83;font-size:.82rem;line-height:1.45}
.mc398d2-recommendation-prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 7px;max-width:520px}
.mc398d2-recommendation-prices>div{padding:9px 10px;border:1px solid #d8dfd7;border-radius:10px;background:rgba(255,255,255,.82)}
.mc398d2-recommendation-prices small{display:block;color:#728095;font-size:.7rem}
.mc398d2-recommendation-prices b{display:block;margin-top:2px;font-size:1.05rem;color:#17243a}
.mc398d2-recommendation-money strong{color:#176d4a}
.mc398d2-recommendation-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px;align-items:center}
.mc398d2-recommendation-list>strong{font-size:.76rem;margin-right:3px}
.mc398d2-recommendation-list>span{font-size:.72rem;padding:4px 7px;border-radius:999px;background:#e5f4ec;color:#176846;font-weight:800}
.mc398d2-recommendation-more{margin-top:7px;color:#56667d;font-size:.75rem;line-height:1.4}
.mc398d2-formula-recommendation>button{border:0;border-radius:10px;background:#198457;color:#fff;padding:11px 14px;font-weight:950;cursor:pointer;white-space:nowrap;box-shadow:0 5px 14px rgba(25,132,87,.18)}
.mc398d2-formula-recommendation>button:hover,.mc398d2-formula-recommendation>button:focus{outline:none;background:#126e48}

/* Fiche d'information pensée pour une personne non technique */
.mc398d2-info-section{margin:11px 0;padding:11px 12px;border:1px solid #e3ddd3;border-radius:11px;background:#fff}
.mc398d2-info-section h4{margin:0 0 5px;color:#815719;font-size:.78rem;text-transform:uppercase;letter-spacing:.05em}
.mc398d2-info-section p{margin:0!important;color:#4f5f75;line-height:1.5;font-size:.86rem}
.mc398d2-info-section.price{background:#fff9ee;border-color:#dfc392}
.mc398d2-info-section.price>strong{display:block;margin-top:7px;color:#835919;font-size:.79rem;line-height:1.4}
.mc398d2-info-checks{display:flex;flex-wrap:wrap;gap:6px}
.mc398d2-info-checks span{padding:5px 8px;border-radius:999px;background:#edf8f2;color:#176946;font-size:.75rem;font-weight:800}

@media(max-width:780px){
  .mc398d2-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .mc398d2-category-card{min-height:132px;padding:12px}
  .mc398d2-formula-recommendation{align-items:stretch;flex-direction:column}
  .mc398d2-formula-recommendation>button{width:100%}
}
@media(max-width:540px){
  .mc398d2-category-grid{grid-template-columns:1fr}
  .mc398d2-category-card{min-height:0}
  .mc398d2-category-panel{padding:11px}
  .mc398d2-category-panel>header{flex-direction:column}
  .mc398d2-category-panel>header button{width:100%}
  .mc398d2-recommendation-prices{grid-template-columns:1fr}
}

/* R23 — coordonnées regroupées + mutualisation administration */
.mc398d2-contact-card{grid-column:1/-1}
.mc398d2-contact-choice-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:10px 0 7px;padding-top:9px;border-top:1px solid #dcebe3}
.mc398d2-contact-choice-title strong{font-size:.8rem;color:#243247}
.mc398d2-contact-choice-title span{font-size:.7rem;color:#718095}
.mc398d2-contact-choices{display:flex;flex-wrap:wrap;gap:7px}
.mc398d2-contact-choices label{display:inline-flex;align-items:center;gap:5px;border:1px solid #d5cdbf;border-radius:999px;background:#fff;padding:6px 9px;cursor:pointer;font-size:.75rem;font-weight:800;color:#59677c;user-select:none}
.mc398d2-contact-choices label.active{border-color:#2b9468;background:#edf9f3;color:#176846}
.mc398d2-contact-choices input{position:absolute;opacity:0;pointer-events:none}
.mc398d2-shared-admin-note{margin-top:8px;padding:7px 9px;border-radius:8px;background:#f7f1e5;color:#76551f;font-size:.71rem;line-height:1.35;font-weight:750}
@media(max-width:620px){.mc398d2-contact-choice-title{align-items:flex-start;flex-direction:column;gap:2px}.mc398d2-contact-choices label{flex:1 1 calc(50% - 7px);justify-content:center}}

/* V398D.2R23B — CATEGORY RECYCLER HORIZONTAL */
.mc398d2-category-grid{
  display:grid;
  grid-template-rows:repeat(2,minmax(0,1fr));
  grid-auto-flow:column;
  grid-auto-columns:minmax(230px,260px);
  grid-template-columns:none;
  gap:8px 10px;
  margin:4px 0 12px;
  padding:2px 2px 9px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x proximity;
  overscroll-behavior-inline:contain;
  scrollbar-width:thin;
  scrollbar-color:#cfb27d #f3eee5;
  -webkit-overflow-scrolling:touch;
}
.mc398d2-category-grid::-webkit-scrollbar{height:8px}
.mc398d2-category-grid::-webkit-scrollbar-track{background:#f3eee5;border-radius:999px}
.mc398d2-category-grid::-webkit-scrollbar-thumb{background:#cfb27d;border-radius:999px;border:2px solid #f3eee5}
.mc398d2-category-grid::-webkit-scrollbar-thumb:hover{background:#ad7a28}

.mc398d2-category-card{
  scroll-snap-align:start;
  min-height:96px;
  height:96px;
  padding:9px 11px;
  border-radius:12px;
  box-shadow:0 3px 10px rgba(23,34,53,.03);
}
.mc398d2-category-top{gap:7px;align-items:flex-start}
.mc398d2-category-top strong{
  font-size:.88rem;
  line-height:1.16;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.mc398d2-category-top span{font-size:.60rem;padding:3px 6px}
.mc398d2-category-card p{
  margin:5px 0 6px;
  font-size:.70rem;
  line-height:1.28;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:1.8em;
}
.mc398d2-category-foot{padding-top:5px;gap:6px}
.mc398d2-category-foot em{font-size:.64rem}
.mc398d2-category-foot b{font-size:.65rem}

/* L'ouverture reste sous le rail horizontal et ne perturbe jamais les 2 rangées. */
.mc398d2-category-panel{margin-top:2px}

@media (max-width:900px){
  .mc398d2-category-grid{
    grid-template-rows:repeat(2,minmax(0,1fr));
    grid-auto-flow:column;
    grid-auto-columns:minmax(215px,72vw);
    grid-template-columns:none;
    gap:8px;
    overflow-x:auto;
  }
  .mc398d2-category-card{min-height:94px;height:94px;padding:9px 10px}
}

@media (max-width:560px){
  .mc398d2-category-grid{
    grid-template-rows:repeat(2,minmax(0,1fr));
    grid-auto-flow:column;
    grid-auto-columns:minmax(205px,82vw);
    grid-template-columns:none;
    padding-bottom:8px;
  }
  .mc398d2-category-card{min-height:92px;height:92px}
  .mc398d2-category-top strong{font-size:.84rem}
  .mc398d2-category-card p{font-size:.68rem}
}

/* R24 — Sites déjà prêts : lecture exclusive du catalogue commercial central */
.mc398d2-ready-section{margin-top:28px;padding-top:26px;border-top:1px solid rgba(255,255,255,.1)}.mc398d2-ready-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}.mc398d2-ready-heading span,.mc398d2-ready-kicker{font-size:.72rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:#d8ad55}.mc398d2-ready-heading h3{margin:5px 0 6px}.mc398d2-ready-heading p{margin:0;max-width:760px;opacity:.78}.mc398d2-ready-heading>a{white-space:nowrap;text-decoration:none;font-weight:800}.mc398d2-ready-sites{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.mc398d2-ready-card{display:grid;gap:13px;padding:18px;border:1px solid rgba(216,173,85,.22);border-radius:18px;background:linear-gradient(145deg,rgba(216,173,85,.07),rgba(255,255,255,.025))}.mc398d2-ready-card h4{margin:5px 0 7px;font-size:1.1rem}.mc398d2-ready-card p{margin:0;line-height:1.5;opacity:.82}.mc398d2-ready-match{padding:10px 12px;border-radius:12px;background:rgba(82,201,145,.08);border:1px solid rgba(82,201,145,.18);font-size:.86rem;line-height:1.4}.mc398d2-ready-tags{display:flex;flex-wrap:wrap;gap:6px}.mc398d2-ready-tags span{font-size:.72rem;padding:5px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.12);opacity:.82}.mc398d2-ready-foot{display:flex;justify-content:space-between;align-items:center;gap:12px}.mc398d2-ready-foot>div{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.mc398d2-ready-foot a{padding:8px 10px;border-radius:10px;border:1px solid rgba(255,255,255,.16);text-decoration:none;font-size:.8rem;font-weight:800}.mc398d2-ready-foot a.primary{background:#d8ad55;color:#151515;border-color:#d8ad55}.mc398d2-ready-empty{padding:16px;border:1px dashed rgba(255,255,255,.16);border-radius:14px;opacity:.72}@media(max-width:760px){.mc398d2-ready-heading{display:grid}.mc398d2-ready-sites{grid-template-columns:1fr}.mc398d2-ready-foot{align-items:flex-start;flex-direction:column}.mc398d2-ready-foot>div{justify-content:flex-start}}
