/* AS2P – Configurateur, intégré dans une page WordPress.
   Tout est limité à #as2p-cfg pour ne pas toucher au reste du site.
   Couleurs reprises du site : rouge AS2P, bleu nuit, gris clair. */
#as2p-cfg{
  --red:#e3161f; --red-dark:#b30f17; --night:#0a0d13; --panel:#131822;
  --ink:#1a1d24; --muted:#5b6270; --soft:#f5f6f8; --line:#e3e5ea; --card:#fff;
  --det:#F5A524; --siren:#FF7A6B; --cam:#62BDFF; --ok:#1f9d5c; --ko:#c3121b;
  --accent:var(--red);
  --f-body:inherit; --f-mono:ui-monospace,Menlo,Consolas,monospace;
  --r:12px;
  /* pleine largeur, même si la page WordPress est en colonne étroite */
  width:100vw; max-width:100vw!important; margin-left:calc(50% - 50vw)!important; margin-right:calc(50% - 50vw)!important;
  margin-block:0!important;
  color:var(--ink); font-size:16px; line-height:1.55; background:#fff;
}
.wp-site-blocks:has(#as2p-cfg), body:has(#as2p-cfg){overflow-x:clip}
#as2p-cfg *{box-sizing:border-box}
#as2p-cfg [hidden]{display:none!important}
#as2p-cfg p{margin:0}
#as2p-cfg h2,#as2p-cfg h3{margin:0;font-weight:800;line-height:1.1;text-wrap:balance}
#as2p-cfg .wrap{max-width:1200px;margin:0 auto;padding-inline:clamp(16px,4vw,40px)}
#as2p-cfg .kicker{display:inline-block;color:var(--red);font-weight:800;text-transform:uppercase;letter-spacing:.14em;font-size:.8rem}
#as2p-cfg .lead{color:var(--muted);max-width:62ch;font-size:1.05rem}
#as2p-cfg :focus-visible{outline:3px solid var(--red);outline-offset:2px}
#as2p-cfg .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:6px;padding:.85em 1.5em;font:inherit;font-weight:700;cursor:pointer;text-decoration:none;background:var(--red);color:#fff;transition:background .15s}
#as2p-cfg .btn:hover{background:var(--red-dark);color:#fff}
#as2p-cfg .btn.ghost{background:transparent;color:var(--red);box-shadow:inset 0 0 0 2px var(--red)}
#as2p-cfg .btn:disabled{opacity:.6;cursor:wait}

/* Bandeau du haut : mêmes classes que les autres pages (as2p-hero) */
#as2p-cfg .as2p-hero{padding:clamp(56px,9vw,110px) clamp(20px,5vw,60px)!important}
#as2p-cfg .as2p-hero .hero-in{max-width:1200px;margin:0 auto}
#as2p-cfg .as2p-hero .as2p-lead{margin-bottom:0}
#as2p-cfg .hero-btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
#as2p-cfg .hero-btns .btn.ghost{color:#fff;box-shadow:inset 0 0 0 2px #fff}

/* Configurateur */
#as2p-cfg .cfg-sec{padding-block:clamp(40px,6vw,72px);background:var(--soft)}
#as2p-cfg .cfg{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:28px;align-items:start}
@media (max-width:980px){#as2p-cfg .cfg{grid-template-columns:1fr}}

/* Le plan (reste foncé, comme un écran de contrôle) */
#as2p-cfg .plan{background:var(--panel);color:#eceef2;border-radius:var(--r);overflow:hidden;position:sticky;top:24px;box-shadow:0 12px 32px rgba(10,13,19,.18)}
@media (max-width:980px){#as2p-cfg .plan{position:static}}
#as2p-cfg .plan-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid #2a3140;font-family:var(--f-mono);font-size:.74rem;color:#a3abb9}
#as2p-cfg .plan-head b{color:#fff;font-weight:600}
#as2p-cfg .plan svg{display:block;width:100%;height:auto;background:var(--night)}
#as2p-cfg .plan-credit{padding:6px 14px;border-top:1px solid #2a3140;font-size:.7rem;color:#a3abb9;font-family:var(--f-mono)}
#as2p-cfg .plan-credit a{color:#a3abb9}
#as2p-cfg .legend{display:flex;flex-wrap:wrap;gap:6px 14px;padding:10px 14px;border-top:1px solid #2a3140;font-size:.8rem;color:#c3cbe0}
#as2p-cfg .legend span{display:inline-flex;align-items:center;gap:6px}
#as2p-cfg .legend i{display:inline-block;width:12px;height:12px;border-radius:50%}
#as2p-cfg .lg-note{margin-left:auto;font-size:.76rem;opacity:.85}
#as2p-cfg .i-det{background:var(--det)}#as2p-cfg .i-sir{background:var(--siren)}#as2p-cfg .i-cam{background:var(--cam)}
#as2p-cfg .totals{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #2a3140}
#as2p-cfg .totals div{padding:12px 14px;border-right:1px solid #2a3140;min-width:0}
#as2p-cfg .totals div:last-child{border-right:0}
#as2p-cfg .totals small{display:block;font-family:var(--f-mono);font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;color:#a3abb9}
#as2p-cfg .totals strong{font-size:1.6rem;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.15;color:#fff}
#as2p-cfg .totals .hi{background:var(--red)}
#as2p-cfg .totals .hi small{color:#ffe3e4}
@media (max-width:520px){#as2p-cfg .totals{grid-template-columns:1fr 1fr}#as2p-cfg .totals div:first-child{grid-column:1/-1;border-right:0;border-bottom:1px solid #2a3140}}
#as2p-cfg .detail{margin:0;padding:12px 14px;border-top:1px solid #2a3140;display:grid;grid-template-columns:1fr auto;gap:4px 16px;font-size:.88rem;background:#0f131b}
#as2p-cfg .detail dt{color:#c3cbe0}
#as2p-cfg .detail dd{margin:0;font-family:var(--f-mono);font-size:.82rem;text-align:right;font-variant-numeric:tabular-nums;color:#fff}
#as2p-cfg .detail .sub{grid-column:1/-1;font-family:var(--f-mono);font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:#ffd23a;margin-top:6px}
#as2p-cfg .detail .sub:first-child{margin-top:0}

/* Réglages */
#as2p-cfg .steps{display:flex;flex-direction:column;gap:26px}
#as2p-cfg .step{display:flex;flex-direction:column;gap:10px}
#as2p-cfg .step-t{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.25rem;text-transform:uppercase;letter-spacing:.02em}
#as2p-cfg .step-t i{font-style:normal;display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--red);color:#fff;font-size:.85rem;font-weight:800}
#as2p-cfg .step-t small{text-transform:none;font-size:.82rem;font-weight:500;color:var(--muted);letter-spacing:0}
#as2p-cfg .seg{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
#as2p-cfg .seg input{position:absolute;opacity:0;pointer-events:none}
#as2p-cfg .seg label{display:flex;flex-direction:column;gap:2px;padding:12px;border:2px solid var(--line);border-radius:var(--r);cursor:pointer;font-weight:700;font-size:.95rem;background:var(--card)}
#as2p-cfg .seg label small{font-weight:400;color:var(--muted);font-size:.78rem}
#as2p-cfg .seg input:checked+label{border-color:var(--red);box-shadow:0 0 0 1px var(--red);background:#fff5f5}
#as2p-cfg .seg input:focus-visible+label{outline:3px solid var(--red);outline-offset:2px}
#as2p-cfg .items{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r);background:var(--card);box-shadow:0 6px 18px rgba(10,13,19,.04)}
#as2p-cfg .item{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--line)}
#as2p-cfg .item:last-child{border-bottom:0}
#as2p-cfg .item .badge{font:600 .62rem var(--f-mono);display:grid;place-items:center;width:30px;height:30px;border-radius:50%;color:var(--night)}
#as2p-cfg .item label{font-weight:700;font-size:.95rem;min-width:0;margin:0}
#as2p-cfg .item label small{display:block;font-weight:400;color:var(--muted);font-size:.78rem}
#as2p-cfg .stepper{display:flex;align-items:center;border:2px solid var(--line);border-radius:8px;overflow:hidden}
#as2p-cfg .stepper button{width:40px;height:40px;border:0;background:var(--soft);color:var(--ink);font:700 1.2rem/1 sans-serif;cursor:pointer;padding:0}
#as2p-cfg .stepper button:hover{background:#ffe3e4;color:var(--red)}
#as2p-cfg .stepper button:disabled{opacity:.35;cursor:default;background:var(--soft);color:var(--ink)}
#as2p-cfg .stepper input{width:44px;height:40px;border:0;background:#fff;color:var(--ink);text-align:center;font:700 1rem var(--f-mono);-moz-appearance:textfield;padding:0}
#as2p-cfg .stepper input::-webkit-outer-spin-button,#as2p-cfg .stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
#as2p-cfg .rooms-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
#as2p-cfg .rooms-list li{display:inline-flex;align-items:center;gap:6px;font-size:.84rem;font-weight:600;padding:5px 10px 5px 6px;border:1px solid var(--line);border-radius:999px;background:var(--card);margin:0}
#as2p-cfg .rooms-list b{font:700 .66rem var(--f-mono);display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:999px;background:var(--red);color:#fff}
#as2p-cfg .suggest{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:.86rem;color:var(--muted)}
#as2p-cfg .suggest button{background:none;border:0;padding:0;color:var(--red);font:inherit;font-weight:700;font-size:.9rem;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
#as2p-cfg .opts{display:flex;flex-direction:column;gap:8px}
#as2p-cfg .check{display:flex;gap:12px;align-items:flex-start;padding:12px;border:2px solid var(--line);border-radius:var(--r);background:var(--card);cursor:pointer;margin:0}
#as2p-cfg .check:has(input:checked){border-color:var(--red);background:#fff5f5}
#as2p-cfg .check input{margin-top:3px;accent-color:var(--red);width:18px;height:18px;flex:none}
#as2p-cfg .check span{font-weight:700;min-width:0}
#as2p-cfg .check small{display:block;font-weight:400;color:var(--muted);font-size:.82rem}
#as2p-cfg .check em{font-style:normal;font-family:var(--f-mono);font-size:.82rem;color:var(--red);font-weight:700;white-space:nowrap}
#as2p-cfg .price-note{font-size:.82rem;color:var(--muted)}
#as2p-cfg .forfait{background:#fff;border-left:5px solid var(--red);border-radius:6px;padding:12px 16px;font-size:.92rem}
#as2p-cfg .forfait a{color:var(--red);font-weight:700}

/* Devis */
#as2p-cfg #devis{background:#fff;border-top:1px solid var(--line);padding-block:clamp(48px,7vw,80px);scroll-margin-top:24px}
#as2p-cfg .devis{display:grid;grid-template-columns:1fr 1.2fr;gap:40px}
@media (max-width:860px){#as2p-cfg .devis{grid-template-columns:1fr}}
#as2p-cfg .devis h2{font-size:clamp(1.8rem,3.6vw,2.6rem);margin-top:8px;text-transform:uppercase}
#as2p-cfg .recap{background:var(--soft);border:1px dashed #c9cdd6;border-radius:var(--r);padding:16px;font-family:var(--f-mono);font-size:.8rem;display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:20px 0 0}
#as2p-cfg .recap dt{color:var(--muted)}
#as2p-cfg .recap dd{margin:0;font-weight:600;min-width:0;overflow-wrap:anywhere}
#as2p-cfg .contact{display:flex;flex-direction:column;gap:2px;margin-top:22px;font-size:1rem}
#as2p-cfg .contact b{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700;margin-top:8px}
#as2p-cfg .contact a{color:var(--ink);font-weight:700}
#as2p-cfg form{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-content:start;margin:0}
#as2p-cfg .f{display:flex;flex-direction:column;gap:6px;min-width:0}
#as2p-cfg .f.full{grid-column:1/-1}
#as2p-cfg .f label{font-size:.88rem;font-weight:700}
#as2p-cfg .f input,#as2p-cfg .f textarea{font:inherit;color:var(--ink);background:#fff;border:2px solid var(--line);border-radius:8px;padding:11px 12px;width:100%}
#as2p-cfg .f input:focus,#as2p-cfg .f textarea:focus{border-color:var(--red);outline:none}
#as2p-cfg .f textarea{min-height:110px;resize:vertical}
@media (max-width:520px){#as2p-cfg form{grid-template-columns:1fr}}
#as2p-cfg .consent{grid-column:1/-1;font-size:.8rem;color:var(--muted)}
#as2p-cfg .consent a{color:var(--muted)}
#as2p-cfg .sent{grid-column:1/-1;border:2px solid var(--ok);border-radius:var(--r);padding:14px 16px;background:#effaf3}
#as2p-cfg .sent b{color:var(--ok)}
#as2p-cfg .err{grid-column:1/-1;color:var(--ko);font-size:.92rem;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
#as2p-cfg .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
