/* ════════════════════════════════════════════════════════
   Mockup B2B — Pitch Airtel (HTML pur, aucun backend)
   3 profils : Élève (rouge) · École (bleu) · Centre (vert)
   ════════════════════════════════════════════════════════ */
:root {
  --eleve:        #E60012;
  --eleve-dark:   #B3000E;
  --eleve-soft:   #FFF1F2;
  --ecole:        #185FA5;
  --ecole-dark:   #042C53;
  --ecole-soft:   #E6F1FB;
  --centre:       #0F6E56;
  --centre-dark:  #04342C;
  --centre-soft:  #E6F4F0;
  --ink:          #1a1a1a;
  --body:         #475569;
  --line:         rgba(0,0,0,.10);
  --canvas:       #F8FAFB;
  --warn:         #EA580C;
  --warn-soft:    #FFF7ED;
  --gold:         #FCDE5A;
  --green:        #14B86F;
}

*,*::before,*::after { box-sizing: border-box; }
html,body { margin:0; padding:0; }
body {
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Bandeau démo + voyant */
@keyframes pulse-warn {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(234,88,12,.7); }
  50%      { opacity: .85; box-shadow: 0 0 0 8px rgba(234,88,12,0); }
}
.mockup-banner {
  background: #0a0a0a; color: #fff;
  padding: 10px 16px; text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  border-bottom: 2px solid var(--warn);
  text-transform: uppercase;
}
.mockup-banner .dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--warn);
  margin-right: 8px; vertical-align: 1px;
  animation: pulse-warn 1.4s infinite;
}
.mockup-banner a {
  color: var(--gold); text-decoration: none;
  margin-left: 14px; font-weight: 700;
}
.mockup-banner a:hover { text-decoration: underline; }

.container { max-width: 1180px; margin: 0 auto; padding: 28px 18px 80px; }

/* Header / brand */
.mockup-header {
  text-align: center; margin-bottom: 36px;
}
.brand-logo {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--eleve), var(--eleve-dark));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900; box-shadow: 0 8px 24px rgba(230,0,18,.20);
}
.mockup-header h1 {
  margin: 14px 0 6px; font-size: 30px; color: var(--ink); font-weight: 800;
}
.mockup-header p { margin: 0; color: var(--body); font-size: 15px; }

/* ─── Accueil : grille 3 profils ─── */
.profiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 880px) { .profiles { grid-template-columns: 1fr; } }
.profile-card {
  background: #fff; border: 2px solid var(--line); border-radius: 18px;
  padding: 28px 24px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
}
.profile-card::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 6px;
  background: var(--eleve);
}
.profile-card.eleve::before  { background: var(--eleve); }
.profile-card.ecole::before  { background: var(--ecole); }
.profile-card.centre::before { background: var(--centre); }
.profile-card:hover {
  transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,.10);
}
.profile-card.eleve:hover  { border-color: var(--eleve); }
.profile-card.ecole:hover  { border-color: var(--ecole); }
.profile-card.centre:hover { border-color: var(--centre); }
.profile-icon { font-size: 54px; line-height: 1; }
.profile-title { font-size: 22px; font-weight: 800; color: var(--ink); margin: 4px 0 2px; }
.profile-desc  { font-size: 14px; color: var(--body); line-height: 1.55; min-height: 44px; }
.profile-price {
  font-size: 13px; font-weight: 700; padding: 6px 12px;
  border-radius: 999px; align-self: flex-start;
}
.profile-card.eleve  .profile-price { background: var(--eleve-soft);  color: var(--eleve-dark); }
.profile-card.ecole  .profile-price { background: var(--ecole-soft);  color: var(--ecole-dark); }
.profile-card.centre .profile-price { background: var(--centre-soft); color: var(--centre-dark); }
.profile-features { list-style: none; padding: 0; margin: 0; }
.profile-features li {
  font-size: 13px; color: var(--body); padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,.06);
  display: flex; align-items: start; gap: 8px;
}
.profile-features li::before { content: '✓'; font-weight: 800; color: var(--green); flex-shrink: 0; }
.profile-cta {
  margin-top: auto; padding: 13px 18px; border-radius: 12px;
  color: #fff; font-weight: 800; font-size: 14px;
  text-align: center; transition: filter .15s;
  font-family: inherit;
}
.profile-card.eleve  .profile-cta { background: var(--eleve); }
.profile-card.ecole  .profile-cta { background: var(--ecole); }
.profile-card.centre .profile-cta { background: var(--centre); }
.profile-card:hover .profile-cta { filter: brightness(1.1); }

/* ─── Footer accueil ─── */
.mockup-footer {
  margin-top: 40px; padding: 22px 18px; text-align: center;
  border-top: 1px solid var(--line); color: var(--body); font-size: 12px;
}
.mockup-footer a { color: var(--eleve); font-weight: 700; text-decoration: none; }
.mockup-footer a:hover { text-decoration: underline; }
.airtel-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; margin: 10px 0;
  font-size: 12px; font-weight: 700; color: var(--ink);
}
.airtel-badge::before {
  content: 'A'; width: 22px; height: 22px; border-radius: 6px;
  background: var(--eleve); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 900;
}

/* ─── Configurateur (école / centre) ─── */
.configurator { max-width: 880px; margin: 0 auto; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--body); text-decoration: none; font-size: 13px; font-weight: 600;
  margin-bottom: 14px;
}
.back-link:hover { color: var(--ink); }

.conf-section {
  background: #fff; border-radius: 14px; border: 1px solid var(--line);
  padding: 22px 24px; margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.conf-section h3 {
  margin: 0 0 14px; font-size: 14px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--ink); font-weight: 800;
}
.conf-section h3 .step {
  display: inline-flex; width: 26px; height: 26px;
  background: var(--ecole); color: #fff;
  align-items: center; justify-content: center;
  border-radius: 50%; font-size: 12px; margin-right: 8px;
  font-weight: 900;
}
.conf-section.centre-mode h3 .step { background: var(--centre); }

/* Pastilles (radio + multi-select) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 2px solid var(--line);
  cursor: pointer; user-select: none;
  font-size: 13px; font-weight: 700; color: var(--body);
  transition: all .15s ease;
  font-family: inherit;
}
.pill:hover { border-color: var(--body); }
.pill.active {
  background: var(--ecole); color: #fff; border-color: var(--ecole);
  box-shadow: 0 4px 12px rgba(24,95,165,.30);
}
.centre-mode .pill.active {
  background: var(--centre); color: #fff; border-color: var(--centre);
  box-shadow: 0 4px 12px rgba(15,110,86,.30);
}

/* Inputs texte */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label {
  font-size: 12px; font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: .5px;
  display: block; margin-bottom: 5px;
}
.field input, .field select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line);
  border-radius: 8px; font-size: 14px; font-family: inherit;
  background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--ecole);
  box-shadow: 0 0 0 3px rgba(24,95,165,.15);
}
.centre-mode .field input:focus, .centre-mode .field select:focus {
  border-color: var(--centre); box-shadow: 0 0 0 3px rgba(15,110,86,.15);
}

/* Slider */
.slider-wrap { display: flex; flex-direction: column; gap: 10px; }
.slider-wrap input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; background: #e5e7eb;
  border-radius: 999px; outline: none;
}
.slider-wrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; background: var(--ecole);
  border-radius: 50%; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.20);
}
.slider-wrap input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; background: var(--ecole);
  border-radius: 50%; cursor: pointer; border: none;
}
.centre-mode .slider-wrap input[type=range]::-webkit-slider-thumb,
.centre-mode .slider-wrap input[type=range]::-moz-range-thumb {
  background: var(--centre);
}
.slider-info {
  display: flex; justify-content: space-between; align-items: center;
}
.slider-info .big {
  font-size: 28px; font-weight: 900; color: var(--ecole-dark);
}
.centre-mode .slider-info .big { color: var(--centre-dark); }
.slider-info .discount {
  background: var(--green); color: #fff; padding: 4px 10px;
  border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .5px;
}

/* Carte prix sticky bas */
.price-card {
  position: sticky; bottom: 0;
  background: linear-gradient(135deg, var(--ecole-dark) 0%, var(--ecole) 100%);
  color: #fff; border-radius: 16px 16px 0 0; padding: 22px 24px;
  box-shadow: 0 -8px 30px rgba(0,0,0,.20);
  margin-top: 24px;
}
.centre-mode .price-card {
  background: linear-gradient(135deg, var(--centre-dark) 0%, var(--centre) 100%);
}
.price-card .pc-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  opacity: .8; font-weight: 700;
}
.price-card .pc-total {
  font-size: 38px; font-weight: 900; letter-spacing: -1px;
  margin: 4px 0 6px;
}
.price-card .pc-sub {
  font-size: 13px; opacity: .85;
}
.price-card .pc-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  opacity: .8;
}
.price-card .pc-meta span {
  background: rgba(255,255,255,.10); padding: 3px 8px; border-radius: 6px;
}
.price-card .pc-actions {
  display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap;
}
.btn-gold {
  background: var(--gold); color: var(--ink);
  border: none; padding: 12px 22px; border-radius: 10px;
  font-weight: 900; font-size: 14px; cursor: pointer;
  font-family: inherit;
}
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost-light {
  background: rgba(255,255,255,.10); color: #fff;
  border: 1.5px solid rgba(255,255,255,.30);
  padding: 12px 18px; border-radius: 10px;
  font-weight: 700; font-size: 13px; cursor: pointer;
  font-family: inherit;
}
.btn-ghost-light:hover { background: rgba(255,255,255,.20); }
.badge-saving {
  background: var(--green); color: #fff;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .5px;
  display: inline-block; margin-left: 8px;
}

/* Modal codes */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: none; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-card {
  background: #fff; border-radius: 14px; padding: 24px;
  max-width: 720px; width: 100%; max-height: 86vh; overflow-y: auto;
}
.modal-card h2 { margin: 0 0 8px; font-size: 18px; }
.modal-card .modal-sub { font-size: 13px; color: var(--body); margin-bottom: 16px; }
.modal-card table { width: 100%; border-collapse: collapse; font-size: 13px; }
.modal-card th {
  background: var(--ecole-dark); color: #fff; padding: 10px 8px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  text-align: left;
}
.modal-card td {
  padding: 9px 8px; border-bottom: 1px solid var(--line);
}
.modal-card .modal-actions {
  display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end;
}
