/* ==========================================================
   PMB Software — Accompagnement IA
   Design system basé sur la charte graphique PMB
   ========================================================== */

:root {
  /* Charte PMB */
  --orange: #f6a10e;
  --orange-deep: #f07d17;
  --orange-light: #fbbb21;
  --orange-pale: #fdf3e3;
  --grey: #575756;
  --grey-soft: #878787;

  /* Neutres */
  --ink: #2b2a28;
  --muted: #6f6e6b;
  --bg: #fbfaf8;
  --card: #ffffff;
  --border: #e9e6e0;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(43, 42, 40, 0.05), 0 8px 24px -16px rgba(43, 42, 40, 0.18);
  --font-heading: Calibri, "Roboto", "Segoe UI", Arial, sans-serif;
  --font-body: "Roboto", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}

p { margin: 0 0 16px; }

a { color: var(--orange-deep); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 760px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand svg { display: block; }

.brand-logo { height: 44px; width: auto; display: block; }

.brand-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.brand-name span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--grey);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  text-decoration: none;
  color: var(--grey);
  font-size: 14.5px;
  font-weight: 500;
}

.main-nav a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .main-nav a:not(.btn) { display: none; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--orange);
  color: #fff !important;
}

.btn-primary:hover { background: var(--orange-deep); }

.btn-secondary {
  background: transparent;
  color: var(--grey) !important;
  border: 1.5px solid var(--border);
}

.btn-secondary:hover { border-color: var(--grey-soft); color: var(--ink) !important; }

.btn-lg { padding: 15px 30px; font-size: 16px; }

.btn:active { transform: translateY(1px); }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Sections vitrine ---------- */

.section { padding: 84px 0; }

.section.alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 14px;
}

.section-head { margin-bottom: 48px; }

.section-head h2 { font-size: 32px; }

.section-head p { color: var(--muted); font-size: 17px; margin: 0 0 14px; }

.section-head p:last-child { margin-bottom: 0; }

/* Hero */

.hero { padding: 96px 0 72px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 48px);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange-deep);
}

.hero .lead {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }

.hero-trust {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}

.hero-trust span { display: flex; align-items: center; gap: 7px; }

.hero-trust svg { flex: none; }

/* Panneau illustratif hero */

.hero-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.hero-panel .panel-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-soft);
  margin-bottom: 18px;
}

.panel-step {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}

.panel-step:first-of-type { border-top: none; padding-top: 0; }

.panel-step .num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange-pale);
  color: var(--orange-deep);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-step strong { display: block; font-size: 15px; }

.panel-step small { color: var(--muted); font-size: 13.5px; line-height: 1.45; display: block; }

/* Grille de cartes */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--orange-deep);
}

.card h3 { font-size: 18px; margin-bottom: 8px; }

.card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Parcours (étapes) */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step-item {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 3px solid var(--orange);
}

.step-item .step-num {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-deep);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.step-item h3 { font-size: 17.5px; margin-bottom: 6px; }

.step-item p { color: var(--muted); font-size: 14px; margin: 0; }

.objective-note {
  margin-top: 32px;
  text-align: center;
  color: var(--grey);
  font-size: 16px;
}

.objective-note strong { color: var(--ink); }

/* Valeurs */

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.value {
  padding: 4px 0 0 20px;
  border-left: 3px solid var(--orange);
}

.value h3 { font-size: 17px; margin-bottom: 6px; }

.value p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Qui sommes-nous */

.about-text { margin-bottom: 40px; }

.about-text p { color: var(--grey); font-size: 15.5px; }

.about-text p:last-child { margin-bottom: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

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

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
}

.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 27px;
  color: var(--orange-deep);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat span { font-size: 13.5px; color: var(--muted); line-height: 1.4; display: block; }

/* Financement */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

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

.panel {
  border-radius: var(--radius);
  padding: 30px 28px;
}

.panel-orange {
  background: var(--orange-pale);
  border: 1px solid #f3dcb2;
}

.panel-plain {
  background: var(--card);
  border: 1px solid var(--border);
}

.panel h3 { font-size: 19px; }

.panel ul { margin: 0 0 14px; padding-left: 20px; color: var(--grey); }

.panel ul li { margin-bottom: 6px; font-size: 15px; }

.panel p { font-size: 15px; color: var(--muted); }

/* Logo Qualiopi dans le pavé financement : fond blanc requis par la charte graphique */

.panel-qualiopi-logo {
  display: inline-block;
  background: #fff;
  border: 1px solid #f3dcb2;
  border-radius: 9px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.panel-qualiopi-logo img { display: block; width: 130px; height: auto; }

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fdf8e7;
  border: 1px solid #f0e3ae;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--grey);
}

/* FAQ */

.faq { width: 100%; }

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 20px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 15.5px;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 20px;
  color: var(--orange-deep);
  flex: none;
}

.faq details[open] summary::after { content: "–"; }

.faq details p { color: var(--muted); font-size: 14.5px; padding-bottom: 16px; margin: 0; }

/* Formateurs */

.trainers-block { margin-top: 48px; text-align: center; }

.trainers-block h3 { font-size: 21px; margin-bottom: 6px; }

.trainers-intro { color: var(--muted); font-size: 15px; margin: 0 auto 24px; max-width: 66%; }

.trainers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 560px) {
  .trainers { grid-template-columns: 1fr; max-width: 260px; margin: 0 auto; }
  .trainers-intro { max-width: 100%; }
}

.trainer {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px 20px;
  text-align: center;
}

.trainer img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  background: var(--orange-pale);
}

.trainer strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 17px;
}

.trainer span { font-size: 13.5px; color: var(--muted); }

/* Bandeau final */

.cta-band {
  background: var(--ink);
  border-radius: 16px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
}

.cta-band h2 { color: #fff; font-size: 30px; margin-bottom: 10px; }

.cta-band p { color: #c9c7c3; max-width: 520px; margin: 0 auto 28px; }

.cta-band .cta-phone { margin: 22px auto 0; font-size: 14px; }

.cta-band .cta-phone a { color: #fff; font-weight: 600; text-decoration: none; }

.cta-band .cta-phone a:hover { text-decoration: underline; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 84px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}

.site-footer a { color: var(--grey); text-decoration: none; }

.site-footer a:hover { color: var(--ink); }

/* Bloc certification Qualiopi
   Taille minimale imposée par la charte graphique : 23 mm × 10 mm (~87 px de large). */

.footer-certif {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.footer-certif img {
  width: 150px;
  min-width: 100px;
  height: auto;
  flex: none;
}

.footer-certif p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 520px;
}

@media (max-width: 560px) {
  .footer-certif { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ==========================================================
   Formulaire d'inscription
   ========================================================== */

.form-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 90px;
}

.form-intro { margin-bottom: 28px; }

.form-intro h1 { font-size: 28px; margin-bottom: 8px; }

.form-intro p { color: var(--muted); font-size: 15.5px; margin-bottom: 6px; }

.duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--orange-pale);
  color: var(--orange-deep);
  font-size: 13px;
  font-weight: 500;
  border-radius: 99px;
  padding: 5px 13px;
  margin-bottom: 14px;
}

/* Progression */

.progress-wrap { margin-bottom: 30px; }

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey-soft);
  margin-bottom: 8px;
}

.progress-labels span.active { color: var(--orange-deep); }

.progress-bar {
  height: 6px;
  background: #eee9e0;
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--orange-light), var(--orange-deep));
  border-radius: 99px;
  transition: width 0.35s ease;
}

/* Carte formulaire */

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 32px 30px;
}

@media (max-width: 560px) { .form-card { padding: 24px 18px; } }

.fstep { display: none; animation: fadein 0.25s ease; }

.fstep.active { display: block; }

@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.fstep h2 { font-size: 20px; margin-bottom: 4px; }

.fstep > .hint { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.field { margin-bottom: 22px; }

.field > label, .field > .flabel {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.flabel .opt { font-weight: 400; color: var(--grey-soft); font-size: 13px; }

.field .sub-hint { font-size: 13px; color: var(--muted); margin: -4px 0 10px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
}

textarea { resize: vertical; min-height: 90px; }

.char-count { font-size: 12.5px; color: var(--grey-soft); text-align: right; margin-top: 4px; }

/* Choix (radio / checkbox stylisés) */

.choice-list { display: grid; gap: 10px; }

.choice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14.5px;
  transition: border-color 0.12s ease, background 0.12s ease;
  background: #fff;
}

.choice:hover { border-color: var(--orange-light); }

.choice input { margin-top: 3px; accent-color: var(--orange-deep); flex: none; }

.choice.checked {
  border-color: var(--orange);
  background: var(--orange-pale);
}

.choice small { display: block; color: var(--muted); font-size: 13px; }

/* Classement priorités */

.rank-list { display: grid; gap: 8px; }

.rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 11px 14px;
  cursor: pointer;
  font-size: 14.5px;
  background: #fff;
  transition: border-color 0.12s ease, background 0.12s ease;
  user-select: none;
}

.rank-item:hover { border-color: var(--orange-light); }

.rank-item .rank-badge {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px dashed var(--border);
  color: transparent;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-item.ranked { border-color: var(--orange); background: var(--orange-pale); }

.rank-item.ranked .rank-badge {
  border: none;
  background: var(--orange);
  color: #fff;
}

/* Autocomplétion entreprise */

.autocomplete { position: relative; }

.ac-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 20;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}

.ac-results.open { display: block; }

.ac-item {
  padding: 11px 14px;
  cursor: pointer;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.ac-item:first-child { border-top: none; }

.ac-item:hover, .ac-item.focused { background: var(--orange-pale); }

.ac-item strong { display: block; font-size: 14.5px; }

.ac-item small { color: var(--muted); }

.ac-empty { padding: 12px 14px; color: var(--muted); font-size: 13.5px; }

.company-summary {
  margin-top: 12px;
  background: var(--orange-pale);
  border: 1px solid #f3dcb2;
  border-radius: 9px;
  padding: 13px 15px;
  font-size: 14px;
  display: none;
}

.company-summary.visible { display: block; }

.company-summary strong { display: block; font-size: 15px; }

.company-summary .cs-line { color: var(--grey); font-size: 13.5px; }

.company-summary button {
  background: none;
  border: none;
  color: var(--orange-deep);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-top: 6px;
  text-decoration: underline;
  font-family: inherit;
}

.link-manual {
  background: none;
  border: none;
  padding: 0;
  color: var(--grey);
  font-size: 13.5px;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  margin-top: 8px;
}

.manual-fields { display: none; margin-top: 14px; }

.manual-fields.visible { display: block; }

/* Erreurs */

.error-msg {
  display: none;
  color: #c0392b;
  font-size: 13.5px;
  font-weight: 500;
  margin-top: 8px;
}

.error-msg.visible { display: block; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #c0392b;
  border-width: 2px;
  background: #fdf3f1;
}

.field.has-error > label,
.field.has-error > .flabel { color: #c0392b; }

.field.has-error .choice,
.field.has-error .rank-item { border-color: #e2a89f; }

/* Navigation formulaire */

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

/* Récapitulatif */

.recap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 22px;
  font-size: 14px;
}

.recap dt { font-weight: 600; color: var(--grey); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.03em; margin-top: 12px; }

.recap dt:first-child { margin-top: 0; }

.recap dd { margin: 2px 0 0; color: var(--ink); }

/* Confirmation */

.confirmation { text-align: center; padding: 30px 10px; display: none; }

.confirmation.visible { display: block; }

.confirmation .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange-pale);
  color: var(--orange-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

.confirmation h2 { font-size: 24px; }

.confirmation p { color: var(--muted); max-width: 460px; margin: 0 auto 14px; }
