/* ============================================================
   ECOLAB Technical School — public.css v2
   Charte graphique officielle
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=DM+Sans:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1F2B3A;
  --navy2:  #2C3E50;
  --orange: #FF5A00;
  --orange2:#E64E00;
  --orangel:#FFF0E8;
  --orangem:#FFD5C0;
  --text:   #121A24;
  --gray:   #6B7280;
  --border: #E5E7EB;
  --off:    #F3F4F6;
  --white:  #FFFFFF;
  --green:  #1A7A4A;
  --gl:     #D4F0E3;
  --red:    #DC2626;
  --rl:     #FEE2E2;
  --amber:  #D97706;
  --al:     #FEF3C7;
  --blue:   #2563EB;
  --bl:     #DBEAFE;
  --font-h: 'Outfit', sans-serif;
  --font-b: 'DM Sans', sans-serif;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(31,43,58,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 0 32px; height: 66px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
}
.nav-logo-name {
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}
.nav-logo-name span { color: var(--orange); }
.nav-logo-sub {
  font-size: 9px;
  color: rgba(255,255,255,.35);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: rgba(255,255,255,.65); text-decoration: none;
  font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: var(--radius);
  transition: .15s;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,.07); }
.nav-link-login {
  color: var(--white); text-decoration: none;
  font-size: 13px; font-weight: 600;
  padding: 8px 20px; border-radius: var(--radius);
  background: var(--orange); transition: .15s; margin-left: 8px;
}
.nav-link-login:hover { background: var(--orange2); }
.nav-burger { display: none; background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer; }
.nav-mobile { display: none; flex-direction: column; padding: 12px 16px 16px; border-top: 1px solid rgba(255,255,255,.07); }
.nav-mobile a { color: rgba(255,255,255,.75); text-decoration: none; padding: 10px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.05); }

/* ── FLASH ────────────────────────────────────────────────── */
.flash-pub { padding: 12px 24px; font-size: 13px; font-weight: 600; text-align: center; margin-top: 66px; }
.flash-success { background: var(--gl); color: var(--green); }
.flash-error   { background: var(--rl); color: var(--red); }
.flash-warn    { background: var(--al); color: var(--amber); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0E1820 0%, var(--navy) 50%, #1A2E40 100%);
  display: flex; align-items: center;
  padding: 90px 32px 60px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 75% 25%, rgba(255,90,0,.12) 0%, transparent 45%),
    radial-gradient(circle at 25% 75%, rgba(255,90,0,.06) 0%, transparent 45%);
}
/* Motif géométrique subtil */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-inner {
  max-width: 1160px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,90,0,.15); border: 1px solid rgba(255,90,0,.3);
  color: var(--orange); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 20px;
}
.hero-dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }
.hero-title {
  font-family: var(--font-h);
  font-size: 52px; font-weight: 900;
  color: var(--white); line-height: 1.08;
  margin-bottom: 18px; letter-spacing: -.02em;
}
.hero-accent { color: var(--orange); }
.hero-sub {
  color: rgba(255,255,255,.6); font-size: 17px;
  line-height: 1.7; font-weight: 300; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Action cards */
.hero-cards { display: flex; flex-direction: column; gap: 14px; }
.action-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px; padding: 18px 20px;
  cursor: pointer; transition: .25s; text-decoration: none;
  display: block; position: relative; overflow: hidden;
}
.action-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
}
.action-orange::before { background: var(--orange); }
.action-green::before  { background: var(--green); }
.action-amber::before  { background: var(--amber); }
.action-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,90,0,.35);
  transform: translateX(4px);
}
.ac-icon  { font-size: 26px; margin-bottom: 10px; }
.ac-title { font-family: var(--font-h); font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.ac-desc  { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.5; }
.ac-cta   { font-size: 12px; font-weight: 700; margin-top: 8px; color: var(--orange); }

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar { background: var(--navy2); padding: 22px 32px; border-bottom: 1px solid rgba(255,255,255,.06); }
.stats-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 48px;
}
.stat-item { text-align: center; }
.stat-num  { font-family: var(--font-h); font-size: 28px; font-weight: 900; color: var(--white); }
.stat-num span { color: var(--orange); }
.stat-label{ font-size: 11px; color: rgba(255,255,255,.45); margin-top: 2px; letter-spacing: .04em; }
.stat-sep  { width: 1px; height: 36px; background: rgba(255,255,255,.1); }

/* ── SECTIONS ─────────────────────────────────────────────── */
.section       { padding: 84px 32px; }
.section-white { background: var(--white); }
.section-off   { background: var(--off); }
.section-dark  { background: var(--navy); }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  background: var(--orangel); color: var(--orange);
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 14px;
  border-radius: 20px; margin-bottom: 14px;
  border: 1px solid var(--orangem);
}
.section-title {
  font-family: var(--font-h); font-size: 38px;
  font-weight: 900; color: var(--text);
  margin-bottom: 10px; letter-spacing: -.02em;
}
.section-sub { color: var(--gray); font-size: 16px; margin-bottom: 44px; line-height: 1.6; }

/* ── EVENTS ───────────────────────────────────────────────── */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.event-card  { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: .25s; box-shadow: var(--shadow); }
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.event-img   { height: 160px; background: linear-gradient(135deg, var(--navy), var(--navy2)); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.event-body  { padding: 20px; }
.event-header{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.event-date  { font-size: 11px; color: var(--gray); }
.event-title { font-family: var(--font-h); font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.event-desc  { font-size: 13px; color: var(--gray); margin-bottom: 10px; line-height: 1.5; }
.event-meta  { font-size: 12px; color: var(--gray); margin-bottom: 10px; }

.tag-pill   { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.tag-active { background: var(--gl); color: var(--green); }

/* ── MODULES ──────────────────────────────────────────────── */
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.module-pub-card {
  border: 1.5px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: .25s; background: var(--white);
  box-shadow: var(--shadow);
}
.module-pub-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.module-pub-header {
  padding: 18px 18px 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy2));
}
.module-pub-title  { font-family: var(--font-h); font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.module-pub-centre { font-size: 11px; color: rgba(255,255,255,.65); }
.module-pub-body   { padding: 14px 18px 18px; }
.module-pub-desc   { font-size: 12px; color: var(--gray); margin-bottom: 10px; line-height: 1.5; }
.module-pub-meta   { margin-bottom: 10px; }
.text-ok   { color: var(--green); font-size: 12px; font-weight: 600; }
.text-warn { color: var(--amber); font-size: 12px; font-weight: 600; }
.module-pub-price  { font-family: var(--font-h); font-size: 22px; font-weight: 900; color: var(--orange); }
.module-pub-hint   { font-size: 11px; color: var(--gray); margin-top: 4px; }
.modules-cta { text-align: center; padding: 32px 0 0; border-top: 1px solid var(--border); }
.modules-cta p { font-size: 14px; color: var(--gray); margin-bottom: 14px; }

/* ── PROCESSUS ────────────────────────────────────────────── */
.steps-pub { display: flex; align-items: flex-start; gap: 0; }
.step-pub  { flex: 1; text-align: center; }
.step-pub-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  font-family: var(--font-h); font-size: 22px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 20px rgba(255,90,0,.4);
}
.step-pub-content h3 { font-family: var(--font-h); font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.step-pub-content p  { font-size: 13px; color: var(--gray); line-height: 1.6; }
.step-pub-arrow { font-size: 24px; color: var(--border); margin-top: 16px; flex-shrink: 0; padding: 0 8px; }

/* ── PROGRAMMES ───────────────────────────────────────────── */
.progs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.prog-card  { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.prog-card-header { padding: 28px; color: var(--white); }
.prog-orange .prog-card-header { background: linear-gradient(135deg, var(--navy), var(--navy2)); }
.prog-navy  .prog-card-header { background: linear-gradient(135deg, var(--orange2), var(--orange)); }
.prog-green  .prog-card-header { background: linear-gradient(135deg, #0D3B26, var(--green)); }
.prog-icon   { font-size: 36px; margin-bottom: 12px; }
.prog-card-header h3 { font-family: var(--font-h); font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.prog-card-header p  { font-size: 13px; opacity: .75; }
.prog-card-body  { padding: 20px 24px; background: var(--white); }
.prog-features   { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.prog-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text);
}
.prog-features li::before {
  content: '✓'; width: 20px; height: 20px;
  background: var(--orangel); color: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.prog-card-footer { padding: 0 24px 24px; background: var(--white); }

/* ── CTA ──────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 80px 32px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,90,0,.1) 0%, transparent 60%);
}
.cta-inner   { max-width: 620px; margin: 0 auto; position: relative; z-index: 1; }
.cta-title   { font-family: var(--font-h); font-size: 36px; font-weight: 900; color: var(--white); margin-bottom: 12px; letter-spacing: -.02em; }
.cta-sub     { color: rgba(255,255,255,.6); font-size: 16px; margin-bottom: 32px; line-height: 1.6; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer { background: #0E1820; padding: 56px 32px 24px; }
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 40px; padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-logo     { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-img { height: 36px; width: auto; object-fit: contain; }
.footer-logo-text {
  font-family: var(--font-h); font-size: 15px; font-weight: 800;
  color: var(--white);
}
.footer-logo-text span { color: var(--orange); }
.footer-desc   { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.7; margin-bottom: 12px; }
.footer-tagline { font-size: 11px; color: rgba(255,255,255,.25); letter-spacing: .06em; text-transform: uppercase; }
.footer-col h4 { font-family: var(--font-h); color: var(--white); font-size: 13px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col a  { display: block; color: rgba(255,255,255,.4); text-decoration: none; font-size: 13px; margin-bottom: 9px; transition: .15s; }
.footer-col a:hover { color: var(--orange); }
.footer-col span { display: block; color: rgba(255,255,255,.25); font-size: 12px; margin-bottom: 6px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.25);
}
.footer-bottom span:last-child { color: var(--orange); }

/* ── BOUTONS PUBLICS ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: .2s; text-decoration: none; font-family: var(--font-b);
  border: 1.5px solid transparent;
}
.btn-primary        { background: var(--orange);  color: var(--white); }
.btn-primary:hover  { background: var(--orange2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,90,0,.35); }
.btn-outline        { background: transparent; color: var(--white); border-color: rgba(255,255,255,.3); }
.btn-outline:hover  { border-color: var(--orange); color: var(--orange); }
.btn-outline-dark   { background: var(--white); color: var(--text); border-color: var(--border); }
.btn-outline-dark:hover { background: var(--off); }
.btn-outline-white  { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.08); }
.btn-green-pub      { background: var(--green); color: var(--white); }
.btn-green-pub:hover{ background: #145e38; transform: translateY(-1px); }
.btn-white          { background: var(--white); color: var(--navy); }
.btn-white:hover    { background: var(--off); }
.btn-orange-outline { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-orange-outline:hover { background: var(--orangel); }

/* ── PAGE HERO ────────────────────────────────────────────── */
.page-hero { padding: 120px 32px 60px; text-align: center; }
.page-hero-orange { background: linear-gradient(135deg, #0E1820 0%, var(--navy) 100%); }
.page-hero-green  { background: linear-gradient(135deg, #062B22 0%, var(--green) 100%); }
.ph-badge {
  display: inline-block;
  background: rgba(255,90,0,.15); border: 1px solid rgba(255,90,0,.3);
  color: var(--orange); font-size: 11px; font-weight: 700;
  padding: 5px 16px; border-radius: 20px; margin-bottom: 16px;
  letter-spacing: .06em; text-transform: uppercase;
}
.ph-title { font-family: var(--font-h); font-size: 40px; font-weight: 900; color: var(--white); margin-bottom: 12px; letter-spacing: -.02em; }
.ph-sub   { font-size: 16px; color: rgba(255,255,255,.65); max-width: 560px; margin: 0 auto 20px; line-height: 1.6; }
.ph-price {
  display: inline-flex; flex-direction: column; align-items: center;
  background: rgba(255,90,0,.15); border: 1px solid rgba(255,90,0,.3);
  border-radius: 12px; padding: 12px 32px;
}
.php-label { font-size: 12px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; }
.php-val   { font-family: var(--font-h); font-size: 28px; font-weight: 900; color: var(--orange); }

/* ── FEATURES BAND ────────────────────────────────────────── */

  background: rgba(255,90,0,.06);
  border-top: 1px solid rgba(255,90,0,.15);
  border-bottom: 1px solid rgba(255,90,0,.15);
  padding: 14px 32px;
  display: flex; justify-content: center; gap: 36px; flex-wrap: wrap;
}
.ts-feat { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--orange); font-weight: 600; }

/* ── PUB WRAP / STATES ────────────────────────────────────── */
.pub-wrap { max-width: 600px; margin: 0 auto; padding: 36px 20px; }

.steps-mini {
  display: flex; align-items: center; margin-bottom: 28px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 20px; box-shadow: var(--shadow);
}
.sm-item { display: flex; align-items: center; gap: 8px; flex: 1; }
.sm-num  { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; transition: .3s; }
.sm-num.done  { background: var(--green);  color: var(--white); }
.sm-num.act   { background: var(--orange); color: var(--white); box-shadow: 0 0 0 3px rgba(255,90,0,.2); }
.sm-num.pend  { background: var(--off);    color: var(--gray);  border: 1.5px solid var(--border); }
.sm-lbl       { font-size: 12px; font-weight: 600; }
.sm-lbl.done, .sm-lbl.act { color: var(--orange); }
.sm-lbl.pend  { color: var(--gray); }
.sm-sep       { flex: 1; height: 1.5px; margin: 0 4px; }
.sm-sep.done  { background: var(--orange); }
.sm-sep.pend  { background: var(--border); }


.pub-state        { display: none; }
.pub-state.active { display: block; }

.pub-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow); }
.pub-card-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.pub-card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: var(--orangel); flex-shrink: 0; }
.pub-card-icon-green { background: var(--gl); }
.pub-card-title { font-family: var(--font-h); font-size: 15px; font-weight: 700; color: var(--text); }
.pub-card-sub   { font-size: 12px; color: var(--gray); margin-top: 2px; }
.pub-card-body  { padding: 22px; }

.pub-fg { margin-bottom: 16px; }
label   { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.pub-input-wrap { display: flex; gap: 8px; }
.pub-btn-sm { padding: 10px 18px; font-size: 13px; white-space: nowrap; background: var(--orange); color: var(--white); border: none; border-radius: var(--radius); cursor: pointer; font-family: var(--font-b); font-weight: 600; transition: .15s; }
.pub-btn-sm:hover { background: var(--orange2); }
.pub-hint { font-size: 11px; color: var(--gray); margin-top: 4px; }
.pub-err  { font-size: 11px; color: var(--red); margin-top: 4px; min-height: 16px; }

input[type="text"],input[type="number"],input[type="email"],input[type="tel"] {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: var(--font-b); color: var(--text);
  background: var(--white); transition: .2s;
}
input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,90,0,.1); }

.pub-alert {
  padding: 12px 14px; border-radius: var(--radius); font-size: 13px;
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.6; margin-top: 14px;
}
.pub-alert-info    { background: var(--bl);      color: var(--blue); }
.pub-alert-warn    { background: var(--al);      color: var(--amber); }
.pub-alert-success { background: var(--gl);      color: var(--green); }
.pub-alert-error   { background: var(--rl);      color: var(--red); }
.pub-alert-orange  { background: var(--orangel); color: var(--orange); }

/* ── SOLDE BOX ────────────────────────────────────────────── */
.solde-box { background: var(--off); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.solde-participant { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.part-av { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-h); font-weight: 800; font-size: 16px; flex-shrink: 0; }
.part-name   { font-weight: 700; color: var(--text); font-size: 15px; }
.part-module { font-size: 12px; color: var(--gray); margin-top: 2px; }
.part-id     { font-size: 11px; font-family: monospace; background: var(--orangel); color: var(--orange); padding: 2px 8px; border-radius: 4px; margin-top: 4px; display: inline-block; font-weight: 700; }

.solde-row  { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.solde-row:last-child { border-bottom: none; }
.solde-label { color: var(--gray); }
.solde-val   { font-weight: 700; }
.sp-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--gray); margin-bottom: 6px; }
.pbar  { height: 7px; background: var(--border); border-radius: 4px; overflow: hidden; }
.pfill { height: 100%; border-radius: 4px; transition: width .4s; }

/* ── MONTANT ZONE ─────────────────────────────────────────── */
.montant-zone { background: var(--off); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.preset {
  padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text);
  background: var(--white); transition: .15s; font-family: var(--font-b);
}
.preset:hover, .preset.active { background: var(--orange); color: var(--white); border-color: var(--orange); }
.montant-input-wrap { position: relative; }
.montant-input-wrap input { padding-right: 60px; font-size: 18px; font-weight: 700; text-align: right; }
.montant-currency { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; color: var(--gray); }

/* ── PROVIDER ─────────────────────────────────────────────── */
.pub-provider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pub-prov { border: 2px solid var(--border); border-radius: 12px; padding: 16px; cursor: pointer; text-align: center; transition: .2s; position: relative; background: var(--white); }
.pub-prov:hover, .pub-prov.sel { border-color: var(--orange); background: var(--orangel); }
.pp-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; background: var(--orange); border-radius: 50%; display: none; align-items: center; justify-content: center; color: var(--white); font-size: 12px; font-weight: 700; }
.pub-prov.sel .pp-check { display: flex; }
.pp-ic   { font-size: 30px; margin-bottom: 8px; }
.pp-name { font-weight: 700; font-size: 14px; color: var(--text); }
.pp-ops  { font-size: 11px; color: var(--gray); margin-top: 3px; }

/* ── RECEIPT ──────────────────────────────────────────────── */
.pub-receipt { background: var(--white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.pr-header { padding: 30px; text-align: center; color: var(--white); background: linear-gradient(135deg, var(--navy), var(--navy2)); }
.pr-header-green { background: linear-gradient(135deg, #062B22, var(--green)); }
.pr-icon   { font-size: 52px; margin-bottom: 12px; }
.pr-title  { font-family: var(--font-h); font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.pr-sub    { font-size: 13px; opacity: .8; }
.pr-body   { padding: 20px; }
.pr-row    { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.pr-row:last-child { border-bottom: none; }
.pr-label  { color: var(--gray); }
.pr-val    { font-weight: 600; color: var(--text); }
.pr-solde  { margin: 14px; border-radius: 10px; padding: 14px; text-align: center; }
.pr-solde-ok   { background: var(--gl); }
.pr-solde-warn { background: var(--orangel); }
.prs-label { font-size: 12px; color: var(--gray); margin-bottom: 4px; }
.prs-val   { font-family: var(--font-h); font-size: 26px; font-weight: 900; color: var(--orange); }
.pr-solde-ok .prs-val { color: var(--green); }
.pr-actions { padding: 16px 20px; display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--border); }

/* ── LOADING ──────────────────────────────────────────────── */
.loading-box { text-align: center; padding: 48px 20px; }
.spinner { width: 52px; height: 52px; border: 4px solid var(--orangel); border-top-color: var(--orange); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 16px; }
.spinner-green { border-color: var(--gl); border-top-color: var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 14px; color: var(--gray); }
.loading-sub  { font-size: 12px; color: var(--gray); margin-top: 6px; }

/* ── INELIGIBLE ───────────────────────────────────────────── */
.inelig-box  { background: var(--rl); border: 1.5px solid rgba(220,38,38,.25); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.inelig-title{ font-weight: 700; color: var(--red); font-size: 14px; margin-bottom: 6px; }
.inelig-desc { font-size: 13px; color: var(--red); opacity: .85; line-height: 1.5; }

/* ── TS PROFIL ────────────────────────────────────────────── */
.ts-profil-box { background: var(--gl); border: 1.5px solid rgba(26,122,74,.2); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.ts-profil-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ts-av { width: 50px; height: 50px; border-radius: 50%; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-h); font-weight: 900; font-size: 18px; flex-shrink: 0; }
.ts-profil-name { font-family: var(--font-h); font-size: 16px; font-weight: 800; color: var(--text); }
.ts-elig-badge  { display: inline-flex; align-items: center; gap: 5px; background: var(--green); color: var(--white); font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 20px; }
.ts-montant-banner { background: linear-gradient(135deg, var(--navy), var(--navy2)); border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; color: var(--white); }
.ts-mb-label { font-size: 12px; opacity: .75; margin-bottom: 4px; }
.ts-mb-val   { font-family: var(--font-h); font-size: 28px; font-weight: 900; color: var(--orange); }
.ts-next-steps { background: var(--gl); border-radius: 12px; padding: 18px; margin: 14px 20px; text-align: center; }

/* ── UTILITIES ────────────────────────────────────────────── */
.fw7 { font-weight: 700; }
.fw6 { font-weight: 600; }
.green  { color: var(--green); }
.amber  { color: var(--amber); }
.red    { color: var(--red); }
.orange { color: var(--orange); }
.mt4    { margin-top: 4px; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner    { grid-template-columns: 1fr; gap: 40px; }
  .hero-title    { font-size: 38px; }
  .modules-grid  { grid-template-columns: 1fr 1fr; }
  .progs-grid    { grid-template-columns: 1fr; }
  .footer-top    { grid-template-columns: 1fr 1fr; }
  .steps-pub     { flex-direction: column; gap: 16px; }
  .step-pub-arrow{ display: none; }
}
@media (max-width: 600px) {
  .nav-links  { display: none; }
  .nav-burger { display: block; }
  .nav-mobile.open { display: flex; }
  .hero-title { font-size: 30px; }
  .section    { padding: 52px 20px; }
  .modules-grid { grid-template-columns: 1fr; }
  .footer-top   { grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; gap: 8px; text-align: center; }
}
