:root{
  --bg:#f5f7f6; --surface:#ffffff; --text:#111111; --muted:#6b7280; --border:#dde2e1;
  --primary:#2e8b57; --primary-h:#1f6f45;
  --accent:#00c2a8; --accent-h:#00a894;
  --success:#16a34a; --warning:#f59e0b; --danger:#ef4444;
  --shadow: 0 14px 40px rgba(0,0,0,0.10);
  --shadow-sm: 0 6px 18px rgba(0,0,0,0.06);
  --r: 18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(1200px 700px at 18% 12%, rgba(0,194,168,.14), transparent 58%),
    radial-gradient(1000px 600px at 88% 18%, rgba(46,139,87,.12), transparent 55%),
    radial-gradient(900px 520px at 40% 92%, rgba(0,194,168,.08), transparent 60%),
    var(--bg);
  color:var(--text);
}
a{color:inherit}
.container{max-width:1120px;margin:0 auto;padding:0 18px}
.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(245,247,246,0.78);
  border-bottom:1px solid rgba(221,226,225,0.7);
}
.nav-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:12px}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.logo{
  width:60px;height:60px;display:grid;place-items:center;
  flex:0 0 auto;
}
.logo svg{width:22px;height:22px;color:#0f766e}
.brand-text{display:flex;flex-direction:column;line-height:1.1;min-width:0}
.brand-text strong{font-size:14px;letter-spacing:.5px}
.brand-text span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.nav-links{display:flex;gap:14px;align-items:center}
.nav-links a{
  text-decoration:none;
  font-weight:600;
  font-size:13px;
  color:var(--muted);
  padding:8px 10px;border-radius:999px;
  border:1px solid transparent;
}
.nav-links a:hover{color:var(--text);background:rgba(0,194,168,.08);border-color:rgba(0,194,168,.18)}
.nav-cta{display:flex;gap:10px;align-items:center}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
  border:1px solid rgba(0,0,0,.06);
  cursor:pointer;
  text-decoration:none;
  transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space:nowrap;
  font-size:13px;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-h)}
.btn-ghost{background:rgba(255,255,255,.65);color:var(--text);border:1px solid var(--border)}
.btn-ghost:hover{box-shadow:var(--shadow-sm)}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:999px;
  background:rgba(0,194,168,.10);
  border:1px solid rgba(0,194,168,.20);
  color:#0f766e;
  font-weight:800;
  font-size:12px;
}
.dot{width:8px;height:8px;border-radius:50%;background:var(--accent);display:inline-block}

/* HERO */
.hero{padding:42px 0 18px}
.hero-grid{
  display:grid;grid-template-columns: 1.15fr .85fr;gap:18px;align-items:stretch;
  margin-top:18px;
}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr}}
h1{margin:12px 0 10px;font-size:44px;letter-spacing:-.8px;line-height:1.05}
@media(max-width:520px){h1{font-size:34px}}
.lead{margin:0;color:var(--muted);font-size:15px;line-height:1.6;max-width:60ch}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.hero-actions .btn{padding:12px 14px;border-radius:14px}
.hero-card{
  border-radius:var(--r);
  background: rgba(255,255,255,.78);
  border:1px solid rgba(221,226,225,.85);
  box-shadow:var(--shadow);
  overflow:hidden;
  backdrop-filter: blur(10px);
}
.hero-card-inner{padding:16px}
.kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.kpi{
  border:1px solid var(--border);border-radius:14px;background:var(--surface);
  padding:12px;box-shadow:var(--shadow-sm);
}
.kpi strong{display:block;font-size:12px;color:var(--muted);font-weight:800}
.kpi span{display:block;font-size:18px;font-weight:900;margin-top:4px}
.kpi small{display:block;color:var(--muted);margin-top:4px;font-size:12px}

/* FORM */
form{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:12px}
@media(max-width:520px){form{grid-template-columns:1fr}}
input[type="email"]{
  width:100%;
  padding:12px 12px;border-radius:14px;
  border:1px solid var(--border);
  outline:none;background:#fff;font-size:14px;
}
input[type="email"]:focus{
  border-color:rgba(0,194,168,.60);
  box-shadow:0 0 0 4px rgba(0,194,168,.12);
}

/* SECTIONS */
section{padding:34px 0}
.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}
.section-title h2{margin:0;font-size:22px;letter-spacing:-.2px}
.section-title p{margin:0;color:var(--muted);font-size:13px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media(max-width:900px){.grid-3{grid-template-columns:1fr}}
.tile{
  border:1px solid var(--border);
  background:rgba(255,255,255,.85);
  border-radius:16px;
  padding:14px;
  box-shadow:var(--shadow-sm);
  transition:transform .2s ease, box-shadow .2s ease;
  width: 100%;
}
.tile:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.tile-top{display:flex;gap:10px;align-items:flex-start}
.ic{
  width:40px;height:40px;border-radius:14px;display:grid;place-items:center;
  background:rgba(0,194,168,.10);border:1px solid rgba(0,194,168,.18);
  flex:0 0 auto;
}
.ic svg{width:18px;height:18px;color:#0f766e}
.tile h3{margin:0;font-size:14px}
.tile p{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.55}

/* HOW IT WORKS */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
@media(max-width:1000px){.steps{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.steps{grid-template-columns:1fr}}
.step{
  border:1px solid var(--border);
  background:rgba(255,255,255,.85);
  border-radius:16px;
  padding:14px;
}
.step .n{
  width:32px;height:32px;border-radius:12px;display:grid;place-items:center;
  background:rgba(46,139,87,.10);border:1px solid rgba(46,139,87,.18);
  color:#14532d;font-weight:900;
  margin-bottom:10px;
}
.step strong{display:block;font-size:14px}
.step span{display:block;margin-top:6px;color:var(--muted);font-size:13px;line-height:1.55}

/* FAQ */
.faq{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:900px){.faq{grid-template-columns:1fr}}
details{
  border:1px solid var(--border);
  background:rgba(255,255,255,.85);
  border-radius:16px;
  padding:12px 14px;
  box-shadow:var(--shadow-sm);
}
summary{
  cursor:pointer;
  font-weight:900;
  font-size:13px;
  list-style:none;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
summary::-webkit-details-marker{display:none}
details p{margin:10px 0 0;color:var(--muted);font-size:13px;line-height:1.6}
.chev{color:var(--accent);font-weight:900}

/* FOOTER */
.footer{
  padding:20px 0 34px;
  border-top:1px solid rgba(221,226,225,.9);
  color:var(--muted);
  font-size:12px;
}
.footer-grid{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.mini-links{display:flex;gap:12px;flex-wrap:wrap}
.mini-links a{text-decoration:none;color:var(--muted);font-weight:700}
.mini-links a:hover{color:var(--text)}

/* MOBILE NAV (simple) */
.hamb{display:none}
@media(max-width:860px){
  .nav-links{display:none}
  .hamb{display:inline-flex}
}


@media(max-width:600px){
.countdown-box{
grid-template-columns:repeat(2,1fr);
}
}

/* Countdown (déjà présent si tu l’as ajouté) */
.countdown-wrapper{margin-top:18px;display:flex;justify-content:left}
.countdown-box{
display:grid;grid-template-columns:repeat(4, 1fr);gap:12px;
background:rgba(255,255,255,0.75);
border:1px solid var(--border);
border-radius:16px;
padding:14px 18px;
box-shadow:var(--shadow-sm);
backdrop-filter:blur(6px);
}
.cd-item{text-align:center}
.cd-item span{display:block;font-size:22px;font-weight:900;color:var(--primary)}
.cd-item small{display:block;font-size:11px;font-weight:700;color:var(--muted);margin-top:4px}
@media(max-width:600px){.countdown-box{grid-template-columns:repeat(2,1fr)}}

/* HOW - plus illustratif */
.how-grid{
display:grid;
grid-template-columns:repeat(2, 1fr);
gap:14px;
}
@media(max-width:900px){.how-grid{grid-template-columns:1fr}}

.how-step{
display:flex;
gap:12px;
padding:14px;
border:1px solid var(--border);
background:rgba(255,255,255,.85);
border-radius:16px;
box-shadow:var(--shadow-sm);
transition:transform .2s ease, box-shadow .2s ease;
}
.how-step:hover{transform:translateY(-3px);box-shadow:var(--shadow)}

.how-icon{
width:48px;height:48px;
border-radius:16px;
display:grid;place-items:center;
background:rgba(0,194,168,.10);
border:1px solid rgba(0,194,168,.18);
flex:0 0 auto;
}
.how-icon svg{width:22px;height:22px;color:#0f766e}

.how-content h3{margin:0;font-size:15px}
.how-content p{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.55}

.how-number{
display:inline-flex;
align-items:center;
justify-content:center;
width:28px;height:28px;
border-radius:12px;
background:rgba(46,139,87,.10);
border:1px solid rgba(46,139,87,.18);
color:#14532d;
font-weight:900;
margin-bottom:8px;
}

.how-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.how-tags span{
font-size:11px;
font-weight:700;
color:var(--muted);
padding:6px 10px;
border:1px solid var(--border);
background:rgba(255,255,255,.75);
border-radius:999px;
}

/* BETA */
.beta-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:14px}
@media(max-width:900px){.beta-grid{grid-template-columns:1fr}}

.beta-card{
border:1px solid var(--border);
background:rgba(255,255,255,.85);
border-radius:16px;
padding:16px;
box-shadow:var(--shadow-sm);
}
.beta-card h3{margin:0;font-size:15px}
.beta-card p{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.6}

.beta-form{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:12px}
@media(max-width:520px){.beta-form{grid-template-columns:1fr}}

.beta-form input{
width:100%;
padding:12px 12px;
border-radius:14px;
border:1px solid var(--border);
outline:none;
background:#fff;
font-size:14px;
}
.beta-form input:focus{
border-color:rgba(0,194,168,.60);
box-shadow:0 0 0 4px rgba(0,194,168,.12);
}

.beta-perks{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.perk{
font-size:12px;
font-weight:800;
padding:8px 10px;
border-radius:999px;
background:rgba(0,194,168,.10);
border:1px solid rgba(0,194,168,.18);
color:#0f766e;
}

.perk-1{
  font-size:12px;
  font-weight:800;
  padding:8px 10px;
  border-radius:999px;
  color:#0f766e;
  margin-bottom: 5px;
  }

.beta-card-accent{
background:linear-gradient(135deg, rgba(0,194,168,.10), rgba(46,139,87,.08));
}
.beta-list{margin:10px 0 0;padding-left:18px;color:var(--muted);font-size:13px;line-height:1.7}
.beta-list li{margin:6px 0}

/* WHY SECTION COMPACT */

.why-grid{
  grid-template-columns:1fr 0.9fr;
  gap:18px;
  align-items:center;
}
@media(max-width:900px){
  .why-grid{grid-template-columns:1fr;}
}

.why-card{
  padding:20px;
}

.why-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.why-list li{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.why-icon{
  width:36px;
  height:36px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,194,168,.12);
  font-size:16px;
  flex-shrink:0;
}

.why-image{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}

.why-image img{
  max-width:50%;
  height:auto;
  border-radius:16px;
  box-shadow:var(--shadow-sm);
  transition:transform .3s ease;
}

.why-image:hover img{
  transform:scale(1.04);
}

/* LOGIN SIGNUP */

.auth-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 18px;
  background:
    linear-gradient(180deg, rgba(17,17,17,.35), rgba(17,17,17,.62)),
    url("../img/IMG2-Slovu-z.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* Card glass */
.auth-card{
  width:min(520px, 100%);
  border-radius:var(--r);
  background: rgba(255,255,255,.78);
  border:1px solid rgba(221,226,225,.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow:hidden;
}
.auth-inner{padding:18px;}

.auth-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.auth-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.auth-brand img{
  width:54px;height:54px;
  object-fit:contain;
  border-radius:16px;
  background:#fff;
  border:1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.auth-brand .t{
  display:flex;flex-direction:column;line-height:1.1;min-width:0;
}
.auth-brand strong{font-size:14px;letter-spacing:.5px}
.auth-brand span{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:320px;
}

.auth-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(0,194,168,.10);
  border:1px solid rgba(0,194,168,.20);
  color:#0f766e;
  font-weight:900;
  font-size:12px;
  flex:0 0 auto;
}
.auth-badge .dot{width:8px;height:8px;border-radius:50%;background:var(--accent);display:inline-block}

.auth-title{
  margin:30px 0 26px;
  font-size:22px;
  letter-spacing:-.3px;
  color:#0f766e;
}
.auth-sub{
  margin:0 0 14px;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;}
.label{font-size:12px;font-weight:900;color:var(--text);}
.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  outline:none;
  background:#fff;
  font-size:14px;
}
.input:focus{
  border-color:rgba(0,194,168,.60);
  box-shadow:0 0 0 4px rgba(0,194,168,.12);
}

.remember{
  display:flex;
  align-items:center;
  gap:10px;
  margin:10px 0 14px;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}

.btn-full{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
}

.auth-links{
  margin-top:12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  font-size:13px;
  color:var(--muted);
  font-weight:800;
}
.auth-links a{
  color:var(--text);
  text-decoration:none;
  border-bottom:1px dashed rgba(0,0,0,.25);
}
.auth-links a:hover{
  border-bottom-color: rgba(0,194,168,.65);
}

/* Footer mini */
.auth-foot{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(221,226,225,.9);
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

/* Bootstrap alert adouci */
.alert{border-radius:14px;margin-bottom:12px;}

/* Sentinelle - form system */
.s-form { margin-top: 0; }

.s-grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media(max-width:900px){
  .s-grid-2{ grid-template-columns:1fr; }
}

.s-field{ display:flex; flex-direction:column; gap:6px; }
.s-field label{
  font-size:12px;
  font-weight:900;
  color:var(--text);
}

.s-input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  outline:none;
  background:#fff;
  font-size:14px;
}
.s-input:focus{
  border-color:rgba(0,194,168,.60);
  box-shadow:0 0 0 4px rgba(0,194,168,.12);
}

/* Alerts */
.s-alert{
  border-radius:16px;
  padding:12px 14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.85);
  box-shadow:var(--shadow-sm);
  margin-bottom:10px;
  color:var(--text);
}
.s-alert-success{ border-color: rgba(22,163,74,.28); background: rgba(22,163,74,.08); }
.s-alert-error{ border-color: rgba(239,68,68,.28); background: rgba(239,68,68,.08); }
.s-alert-warning{ border-color: rgba(245,158,11,.28); background: rgba(245,158,11,.10); }
.s-alert-info, .s-alert-primary{ border-color: rgba(0,194,168,.25); background: rgba(0,194,168,.08); }

/* Make beta-grid responsive here too */
@media(max-width:900px){
  .beta-grid{ grid-template-columns:1fr !important; }
}

/* */
/* Table Sentinelle */
.s-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:13px;
}
.s-table thead th{
  text-align:left;
  padding:12px 12px;
  color:var(--muted);
  font-weight:900;
  border-bottom:1px solid rgba(221,226,225,.9);
  background: rgba(255,255,255,.6);
  position:sticky;
  top:0;
  z-index:1;
}
.s-table tbody td{
  padding:12px 12px;
  border-bottom:1px solid rgba(221,226,225,.7);
  vertical-align:middle;
}
.s-table tbody tr:hover{
  background: rgba(0,194,168,.06);
}

/* Pills */
.s-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  color:var(--muted);
  border:1px solid var(--border);
  background: rgba(255,255,255,.75);
  white-space:nowrap;
}
.s-pill-success{
  color:#14532d;
  border-color: rgba(22,163,74,.25);
  background: rgba(22,163,74,.10);
}
.s-pill-danger{
  color:#7f1d1d;
  border-color: rgba(239,68,68,.25);
  background: rgba(239,68,68,.10);
}

/* Icon buttons */
.s-icbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.75);
  box-shadow: var(--shadow-sm);
  cursor:pointer;
  color: var(--text);
  text-decoration:none;
  margin-left:6px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.s-icbtn:hover{transform: translateY(-1px); box-shadow: var(--shadow);}
.s-icbtn-danger{
  border-color: rgba(239,68,68,.25);
  background: rgba(239,68,68,.10);
}

/* Pills variants (si pas déjà) */
.s-pill{
  display:inline-flex;align-items:center;gap:8px;
  font-size:12px;font-weight:900;
  padding:7px 10px;border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.75);
  color:var(--muted);
}
.s-pill-success{background:rgba(22,163,74,.10); border-color:rgba(22,163,74,.20); color:#166534;}
.s-pill-warning{background:rgba(245,158,11,.12); border-color:rgba(245,158,11,.22); color:#92400e;}
.s-pill-danger{background:rgba(239,68,68,.10); border-color:rgba(239,68,68,.20); color:#991b1b;}

/* Color pill */
.s-color-pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 10px;border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.75);
}
.s-color-dot{
  width:10px;height:10px;border-radius:50%;
  box-shadow:0 0 0 3px rgba(0,0,0,.04);
}

/* Description tronquée */
.s-desc{
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
  display:inline-block;
  cursor:pointer;
  transition:color .2s ease;
}

.s-desc:hover{
  color:var(--text);
}

/* Layout global : 2 colonnes égales (form / examples) */
.builder-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width: 992px){
  .builder-grid{ grid-template-columns:1fr; }
}

/* Card = même hauteur */
.builder-grid > .card{
  height:100%;
}
.builder-grid > .card .card-body{
  height:100%;
  display:flex;
  flex-direction:column;
}

/* Zone JSON : textarea + actions */
.builder-json{
  display:grid;
  grid-template-columns: 1fr 240px;  /* textarea large + colonne boutons */
  gap:14px;
  align-items:stretch;
  margin-top:12px;
}
@media (max-width: 768px){
  .builder-json{ grid-template-columns:1fr; }
}

.builder-json-editor textarea{
  width:100%;
  min-height:420px;          /* important : évite textarea mini */
  resize:vertical;
}

.builder-json-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  justify-content:flex-start;
}

.builder-json-actions .btn{
  padding:12px 14px;
  border-radius:14px;
}

/* MODAL*/
/* ===== MODALS (Sentinelle style) ===== */
.modal-backdrop.show{
  opacity:.55;
  backdrop-filter: blur(4px);
}

.modal-content{
  border:1px solid rgba(221,226,225,.85);
  border-radius:18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  overflow:hidden;
  background: rgba(255,255,255,.92);
}

.modal-header{
  border-bottom:1px solid rgba(221,226,225,.85);
  background: linear-gradient(135deg, rgba(0,194,168,.10), rgba(46,139,87,.08));
  padding:14px 16px;
}

.modal-title{
  font-weight:900;
  font-size:15px;
  letter-spacing:-.2px;
}

.modal-body{
  padding:16px;
  background: rgba(255,255,255,.90);
}

.modal-footer{
  border-top:1px solid rgba(221,226,225,.85);
  padding:12px 16px;
  background: rgba(255,255,255,.85);
}

/* Bouton close plus joli */
.modal-header .btn-close{
  border-radius:12px;
  opacity:.7;
}
.modal-header .btn-close:hover{ opacity:1; }

/* Loader */
.modal-loading{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:26px 16px;
  gap:10px;
  color: var(--muted);
}

.modal-spinner{
  width:34px;height:34px;border-radius:50%;
  border:3px solid rgba(0,0,0,.08);
  border-top-color: rgba(46,139,87,.85);
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Form inside modal */
.modal-body .form-control,
.modal-body .form-select{
  border-radius:14px;
}
.modal-body .btn{
  border-radius:14px;
}

/* campagnes */
.badge-live{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:999px;
  background:rgba(22,163,74,.10);
  border:1px solid rgba(22,163,74,.20);
  color:#166534;font-weight:900;font-size:12px;
  white-space:nowrap;
}
.badge-warn{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:999px;
  background:rgba(245,158,11,.12);
  border:1px solid rgba(245,158,11,.22);
  color:#92400e;font-weight:900;font-size:12px;
  white-space:nowrap;
}
.badge-muted{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:999px;
  background:rgba(107,114,128,.12);
  border:1px solid rgba(107,114,128,.22);
  color:#374151;font-weight:900;font-size:12px;
  white-space:nowrap;
}
.badge-soft{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:999px;
  background:rgba(0,194,168,.10);
  border:1px solid rgba(0,194,168,.20);
  color:#0f766e;font-weight:900;font-size:12px;
  white-space:nowrap;
}

.bar-live{ background:linear-gradient(90deg, rgba(22,163,74,.95), rgba(0,194,168,.85)); }
.bar-warn{ background:linear-gradient(90deg, rgba(245,158,11,.95), rgba(245,158,11,.55)); }
.bar-muted{ background:linear-gradient(90deg, rgba(107,114,128,.75), rgba(107,114,128,.45)); }
.bar-soft{ background:linear-gradient(90deg, rgba(46,139,87,.95), rgba(0,194,168,.75)); }

@media(max-width:900px){
  .grid-3{grid-template-columns:1fr;}
}

.stepper{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
      .stepper-item{
        display:inline-flex;align-items:center;gap:8px;
        padding:8px 10px;border-radius:999px;
        border:1px solid rgba(221,226,225,.9);
        background:rgba(255,255,255,.65);
        color:var(--muted);
        font-weight:900;font-size:12px;
      }
      .stepper-item .n{
        width:24px;height:24px;border-radius:10px;display:grid;place-items:center;
        background:rgba(107,114,128,.12);
        border:1px solid rgba(107,114,128,.18);
        color:#374151;
      }
      .stepper-item.is-active{color:var(--text);border-color:rgba(0,194,168,.22);background:rgba(0,194,168,.08)}
      .stepper-item.is-active .n{background:rgba(0,194,168,.14);border-color:rgba(0,194,168,.22);color:#0f766e}

      .pill{
        display:inline-flex;align-items:center;gap:8px;
        padding:8px 10px;border-radius:999px;
        background:rgba(0,194,168,.10);
        border:1px solid rgba(0,194,168,.20);
        color:#0f766e;
        font-weight:900;font-size:12px;
        white-space:nowrap;
      }

      /* pick cards */
      .pick-card{
        position:relative;
        border:1px solid var(--border);
        background:rgba(255,255,255,.85);
        border-radius:16px;
        padding:14px;
        box-shadow:var(--shadow-sm);
        cursor:pointer;
        transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
        display:block;
        min-height:140px;
      }
      .pick-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
      .pick-input{position:absolute;inset:14px 14px auto auto; width:18px;height:18px}
      .pick-top{display:flex;gap:10px;align-items:flex-start}
      .pick-meta{min-width:0}
      .pick-title{font-weight:900;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
      .pick-sub{font-size:12px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:52ch}

      /* selected effect (pure CSS) */
      .pick-card:has(.pick-input:checked){
        border-color:rgba(0,194,168,.35);
        box-shadow:0 14px 40px rgba(0,0,0,0.12);
        background:rgba(255,255,255,.92);
      }

      .badge-soft{
        display:inline-flex;align-items:center;gap:8px;
        padding:6px 10px;border-radius:999px;
        background:rgba(0,194,168,.10);
        border:1px solid rgba(0,194,168,.20);
        color:#0f766e;font-weight:900;font-size:12px;
      }

      /* avatar */
      .avatar{
        width:40px;height:40px;border-radius:999px;
        background:rgba(0,194,168,.12);
        border:1px solid rgba(0,194,168,.18);
        color:#0f766e;
        display:grid;place-items:center;
        margin-right:12px;
        flex:0 0 auto;
      }

      /* course cards */
      .pick-course{
        color:#fff;border-color:rgba(255,255,255,.18);
        overflow:hidden;
      }
      .pick-course .pick-course-bg{
        position:absolute;inset:0;
        background:linear-gradient(135deg, rgba(0,0,0,.18), rgba(0,0,0,.05)), var(--course-bg);
        filter:saturate(1.1);
        z-index:0;
      }
      .pick-course > *{position:relative;z-index:1}
      .pick-course:has(.pick-input:checked){
        border-color:rgba(255,255,255,.45);
        box-shadow:0 18px 48px rgba(0,0,0,.18);
      }
      .chip{
        display:inline-flex;align-items:center;
        padding:6px 10px;border-radius:999px;
        background:rgba(255,255,255,.18);
        border:1px solid rgba(255,255,255,.22);
        font-weight:900;font-size:12px;
      }

      @media(max-width:900px){
        .stepper{justify-content:flex-start}
      }

/* ===== STEP CARD (design uniforme pour toutes les étapes) ===== */
.step-card{
  border:1px solid rgba(221,226,225,.90);
  background:rgba(255,255,255,.86);
  border-radius:18px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.step-card-head{
  padding:16px 16px 10px;
  border-bottom:1px solid rgba(221,226,225,.80);
  background:rgba(255,255,255,.65);
}

.step-card-body{ padding:14px 16px 16px; }

.step-card-foot{
  padding:12px 16px;
  border-top:1px solid rgba(221,226,225,.85);
  background:rgba(255,255,255,.65);
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* "badge étape" */
.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:999px;
  background:rgba(0,194,168,.10);
  border:1px solid rgba(0,194,168,.20);
  color:#0f766e;
  font-weight:800;
  font-size:12px;
}

/* Cartes de sélection (scénarios / formations) */
.pick-card{
  display:block;
  cursor:pointer;
  border:1px solid rgba(221,226,225,.90);
  background:rgba(255,255,255,.90);
  border-radius:16px;
  padding:14px;
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pick-card:hover{ transform:translateY(-2px); box-shadow:var(--shadow); }
.pick-input{ position:absolute; opacity:0; pointer-events:none; }
.pick-top{ display:flex; gap:12px; align-items:flex-start; }
.pick-title{ font-weight:900; font-size:14px; margin:0; }
.pick-sub{ font-size:12px; line-height:1.35; }
.pick-meta{ min-width:0; }
.pick-meta .pick-sub{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }

.pick-card:has(.pick-input:checked){
  border-color:rgba(0,194,168,.55);
  box-shadow:0 0 0 4px rgba(0,194,168,.12), var(--shadow);
}

/* icône bloc */
.ic{
  width:44px;height:44px;border-radius:16px;
  display:grid;place-items:center;
  background:rgba(0,194,168,.10);
  border:1px solid rgba(0,194,168,.18);
  flex:0 0 auto;
}
.ic svg{ width:20px;height:20px;color:#0f766e }

/* Badge difficulté (alt faible/moyen/eleve) */
.badge-soft{
  display:inline-flex;align-items:center;
  padding:8px 10px;border-radius:999px;
  font-weight:900;font-size:11px;
  border:1px solid rgba(221,226,225,.9);
  background:rgba(255,255,255,.75);
}

/* Grid */
.grid-3{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; }
@media(max-width: 992px){ .grid-3{ grid-template-columns:1fr; } }

/* Form layout (propre sur mobile) */
.form-row-2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media(max-width: 900px){ .form-row-2{ grid-template-columns:1fr; } }

