/*!
 * Ideal Web — Modification client V81
 * Interface propre, sans anciennes surcouches.
 */
:root{
  --bg:#020617;
  --bg2:#071123;
  --card:#0a1628;
  --text:#f8fafc;
  --muted:#94a3b8;
  --soft:#cbd5e1;
  --green:#22c55e;
  --green2:#86efac;
  --blue:#60a5fa;
  --line:rgba(255,255,255,.11);
  --shadow:0 34px 110px rgba(0,0,0,.45);
  --radius:28px;
  --max:1180px;
}
*{box-sizing:border-box;min-width:0}
html{background:var(--bg);color-scheme:dark}
body{
  margin:0;
  min-height:100vh;
  padding:22px;
  overflow-x:hidden;
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 10% 0,rgba(34,197,94,.18),transparent 34%),
    radial-gradient(circle at 90% 6%,rgba(96,165,250,.16),transparent 34%),
    linear-gradient(180deg,#020617 0%,#06111f 52%,#020617 100%);
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.22;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:62px 62px;
  mask-image:radial-gradient(circle at top,black,transparent 78%);
}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
button{cursor:pointer}
.iw-modif-shell{position:relative;z-index:1;width:min(var(--max),100%);margin:auto}
.iw-modif-card{
  padding:30px;
  border:1px solid var(--line);
  border-radius:34px;
  background:
    radial-gradient(circle at 0 0,rgba(34,197,94,.13),transparent 36%),
    radial-gradient(circle at 100% 0,rgba(96,165,250,.10),transparent 38%),
    linear-gradient(180deg,rgba(15,27,49,.91),rgba(4,10,24,.98));
  box-shadow:var(--shadow),inset 0 1px 0 rgba(255,255,255,.06);
}
.iw-modif-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:25px}
.iw-brand{display:flex;align-items:center;gap:12px}
.iw-brand-mark{
  width:46px;height:46px;flex:0 0 46px;border-radius:15px;
  background:url("../assets_brand/idealweb-logo-square.webp") center/contain no-repeat,
    linear-gradient(135deg,var(--green),var(--blue));
  filter:drop-shadow(0 0 16px rgba(34,197,94,.24));
}
.iw-brand strong{display:block;font-weight:1000;letter-spacing:-.04em}
.iw-brand small{display:block;margin-top:3px;color:var(--muted);font-size:.76rem;font-weight:760}
.iw-status-pill,.iw-kicker,.iw-counter{
  display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:8px 13px;
  border:1px solid rgba(134,239,172,.22);border-radius:999px;
  background:rgba(34,197,94,.09);color:#dcfce7;font-size:.72rem;font-weight:950;
}
.iw-status-pill.is-saving{border-color:rgba(96,165,250,.3);background:rgba(96,165,250,.12);color:#dbeafe}
.iw-status-pill.is-error{border-color:rgba(251,113,133,.36);background:rgba(251,113,133,.1);color:#ffe4e6}
.iw-modif-intro h1{margin:13px 0 0;font-size:clamp(2.2rem,5vw,3.8rem);line-height:1;letter-spacing:-.07em}
.iw-modif-intro h1 span{color:var(--green2)}
.iw-modif-intro p{max-width:830px;margin:13px 0 0;color:#cbd5e1;font-size:1rem;line-height:1.65;font-weight:650}
.iw-project-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:22px}
.iw-project-summary article{
  min-height:88px;padding:12px;border:1px solid rgba(255,255,255,.1);
  border-radius:20px;background:rgba(2,6,23,.42)
}
.iw-project-summary strong{display:block;font-size:1.03rem;font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.iw-project-summary span{display:block;margin-top:7px;color:var(--muted);font-size:.64rem;text-transform:uppercase;font-weight:950;letter-spacing:.08em}
.iw-notice{
  display:flex;align-items:flex-start;gap:12px;margin-top:14px;padding:14px;
  border:1px solid rgba(34,197,94,.22);border-radius:18px;
  background:rgba(34,197,94,.08);color:#dcfce7
}
.iw-notice>i{font-size:1.15rem;color:var(--green2)}
.iw-notice strong,.iw-notice span{display:block}
.iw-notice span{margin-top:3px;color:#cbd5e1;font-size:.82rem;line-height:1.5;font-weight:700}
.iw-panel{
  margin-top:16px;padding:17px;border:1px solid rgba(255,255,255,.1);
  border-radius:26px;background:rgba(2,6,23,.39)
}
.iw-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.iw-panel h2{margin:0;font-size:1.16rem;letter-spacing:-.04em}
.iw-panel-head p{margin:6px 0 0;color:var(--muted);font-size:.83rem;line-height:1.55;font-weight:700}
.iw-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
label{display:grid;gap:7px;color:#dbeafe;font-size:.78rem;font-weight:900}
label.iw-full{grid-column:1/-1}
input,textarea{
  width:100%;border:1px solid rgba(148,163,184,.20);border-radius:16px;
  outline:none;background:rgba(15,23,42,.74);color:#fff;padding:13px 14px
}
textarea{min-height:110px;resize:vertical;line-height:1.55}
input:focus,textarea:focus{border-color:rgba(134,239,172,.52);box-shadow:0 0 0 4px rgba(34,197,94,.1)}
.iw-logo-editor{display:grid;grid-template-columns:150px 1fr;gap:14px;align-items:center}
.iw-logo-preview{
  height:126px;display:grid;place-items:center;overflow:hidden;border-radius:22px;
  border:1px solid rgba(255,255,255,.11);background:#fff;color:#0f172a;font-weight:950
}
.iw-logo-preview img{width:100%;height:100%;object-fit:contain;padding:9px}
.iw-logo-fields{display:grid;gap:10px}
.iw-file-button,.iw-small-btn{
  min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  width:max-content;padding:0 14px;border:1px solid rgba(134,239,172,.25);
  border-radius:999px;background:rgba(34,197,94,.08);color:#dcfce7;font-size:.78rem;font-weight:950
}
.iw-file-button input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.iw-images-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.iw-image-card,.iw-edit-card{
  padding:12px;border:1px solid rgba(148,163,184,.16);border-radius:20px;background:rgba(15,23,42,.48)
}
.iw-image-preview{
  height:145px;display:grid;place-items:center;overflow:hidden;margin-bottom:10px;
  border:1px solid rgba(255,255,255,.1);border-radius:16px;background:#020617;color:var(--muted)
}
.iw-image-preview img{width:100%;height:100%;object-fit:cover}
.iw-image-role{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;color:#dbeafe;font-size:.75rem;font-weight:950}
.iw-image-card input[type="text"]{padding:10px 11px;font-size:.75rem}
.iw-image-actions{display:flex;gap:8px;margin-top:8px}
.iw-image-actions label,.iw-image-actions button{
  flex:1;min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:0 10px;border:1px solid rgba(255,255,255,.12);border-radius:999px;
  background:rgba(255,255,255,.05);color:#e2e8f0;font-size:.7rem;font-weight:900
}
.iw-image-actions input{position:absolute;width:1px;height:1px;opacity:0}
.iw-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.iw-edit-card{display:grid;gap:9px}
.iw-edit-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.iw-edit-card-head strong{color:#dbeafe;font-size:.78rem}
.iw-remove{
  width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(251,113,133,.25);
  border-radius:12px;background:rgba(251,113,133,.08);color:#fecdd3
}
.iw-bottom-bar{
  position:sticky;bottom:12px;z-index:20;display:grid;grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;gap:10px;margin-top:18px;padding:10px;border:1px solid rgba(255,255,255,.1);
  border-radius:22px;background:rgba(2,6,23,.88);backdrop-filter:blur(18px);
  box-shadow:0 20px 60px rgba(0,0,0,.35)
}
.iw-bottom-bar strong,.iw-bottom-bar span{display:block}
.iw-bottom-bar>div>span{margin-top:3px;color:var(--muted);font-size:.74rem;font-weight:730}
.iw-btn{
  min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:0 17px;border-radius:999px;border:1px solid rgba(255,255,255,.12);
  color:#fff;background:rgba(255,255,255,.06);font-weight:950
}
.iw-btn-primary{border:0;color:#031108;background:linear-gradient(135deg,var(--green),var(--green2));box-shadow:0 20px 50px rgba(34,197,94,.22)}
.iw-btn-secondary{border:0;color:#04121f;background:linear-gradient(135deg,#60a5fa,#bae6fd)}
.iw-btn:disabled{cursor:wait;opacity:.62}
.iw-toast{
  position:fixed;right:18px;bottom:18px;z-index:100;padding:13px 16px;
  border:1px solid rgba(134,239,172,.28);border-radius:16px;
  background:rgba(4,10,24,.97);color:#dcfce7;font-weight:850;
  transform:translateY(130%);opacity:0;transition:.24s
}
.iw-toast.is-visible{transform:translateY(0);opacity:1}
@media(max-width:1040px){
  .iw-project-summary{grid-template-columns:repeat(3,1fr)}
  .iw-images-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  body{padding:12px}
  .iw-modif-card{padding:18px;border-radius:24px}
  .iw-modif-header{align-items:flex-start;flex-direction:column}
  .iw-project-summary,.iw-form-grid,.iw-images-grid,.iw-editor-grid,.iw-logo-editor{grid-template-columns:1fr}
  .iw-bottom-bar{grid-template-columns:1fr}
  .iw-btn,.iw-small-btn,.iw-file-button{width:100%}
}
