/* Formation « Méthode P.A.R.T.A.G.E » (programme + pages module).
   S'appuie sur home.css (polices, .wrap, .btn, .article-content, .lead-gate). */

.main-nav a.is-active {
  color: #2c3e50;
  box-shadow: inset 0 -2px 0 rgb(126, 211, 33);
  padding-bottom: 4px;
}

.fm-center {
  text-align: center;
}

.fm-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(84, 145, 15);
  margin: 0 0 14px;
}

.fm-promise {
  font-size: 19px;
  line-height: 1.6;
  color: #444;
  margin: 0 auto;
}

.fm-small {
  font-size: 13px;
  color: #777;
  margin: 18px 0 0;
}

.fm-small a {
  color: inherit;
}

/* Hero */
.fm-hero {
  padding: 64px 0 56px;
  text-align: center;
  background: linear-gradient(180deg, #f5f9ee 0%, #fff 100%);
}

.fm-hero h1 {
  font-family: Ubuntu, sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.2;
  margin: 0 0 22px;
}

.fm-acronym {
  color: rgb(84, 145, 15);
  white-space: nowrap;
}

.fm-hero .fm-promise {
  max-width: 680px;
  margin-bottom: 34px;
}

.fm-hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.fm-alt {
  background: #f7f8fa;
}

.fm-problem p {
  font-size: 17px;
  line-height: 1.75;
  color: #333;
}

/* Lettres de la méthode */
.fm-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #2c3e50;
  color: rgb(126, 211, 33);
  font-family: Ubuntu, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
}

.fm-letter-sm {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 15px;
}

.fm-letters {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}

.fm-letters li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1.35;
  color: #2c3e50;
}

.fm-letters .fm-letter {
  width: 64px;
  height: 64px;
  font-size: 32px;
  border-radius: 14px;
}

/* Programme */
.fm-program {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
}

.fm-module-card {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  padding: 24px 26px;
}

.fm-module-card.is-done {
  border-color: rgb(126, 211, 33);
}

.fm-module-card header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.fm-module-card h3 {
  font-family: Ubuntu, sans-serif;
  font-size: 20px;
  margin: 2px 0 0;
}

.fm-module-card h3 a {
  text-decoration: none;
  color: #1a1a1a;
}

.fm-module-card h3 a:hover {
  color: rgb(84, 145, 15);
}

.fm-module-card > p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: #444;
}

.fm-module-meta {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #888;
}

.fm-done-badge {
  margin-left: 8px;
  color: rgb(84, 145, 15);
}

.fm-lessons {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

.fm-audience {
  margin-top: 30px;
}

.fm-access .btn {
  margin-top: 8px;
}

.lead-gate h2 {
  margin-bottom: 12px;
}

/* Page module : sommaire latéral + contenu */
.fm-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  padding-top: 40px;
  padding-bottom: 60px;
}

.fm-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.fm-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: rgb(84, 145, 15);
  text-decoration: none;
  margin-bottom: 16px;
}

.fm-back:hover {
  text-decoration: underline;
}

.fm-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fm-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #555;
  text-decoration: none;
}

.fm-nav a:hover {
  background: #f5f6fa;
}

.fm-nav li.is-current a {
  background: #f1f7e8;
  color: #1a1a1a;
}

.fm-check {
  margin-left: auto;
  color: rgb(84, 145, 15);
}

.fm-main {
  max-width: 720px;
}

.fm-module-header h1 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: Ubuntu, sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 16px;
}

.fm-module-header .fm-promise {
  font-size: 18px;
  margin: 0 0 28px;
}

.fm-toc {
  background: #f7f8fa;
  border-radius: 10px;
  padding: 18px 22px;
}

.fm-toc p {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
}

.fm-toc ol {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.fm-toc a {
  color: #2c3e50;
  text-decoration: none;
}

.fm-toc a:hover {
  text-decoration: underline;
}

.fm-content h2 {
  scroll-margin-top: 24px;
}

.fm-content blockquote {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-left: 4px solid rgb(126, 211, 33);
  background: #f7f8fa;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #333;
}

.fm-action {
  margin: 40px 0 0;
  padding: 22px 26px;
  border: 2px solid rgb(126, 211, 33);
  border-radius: 10px;
  background: #f5f9ee;
}

.article-content .fm-action-title {
  margin: 0 0 10px;
  font-family: Ubuntu, sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.article-content .fm-action ul {
  margin: 0;
}

.fm-checklist {
  list-style: none;
}

.article-content .fm-checklist {
  padding-left: 0;
}

.fm-checklist li::before {
  content: "☐";
  margin-right: 10px;
  color: rgb(84, 145, 15);
}

.fm-complete {
  margin: 36px 0;
  text-align: center;
}

.fm-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid #eee;
  padding-top: 28px;
}

.fm-pager a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  text-decoration: none;
  color: #1a1a1a;
}

.fm-pager a:hover {
  border-color: #2c3e50;
}

.fm-pager small {
  font-size: 13px;
  color: #888;
}

.fm-pager-next {
  text-align: right;
  grid-column: 2;
}

@media only screen and (max-width: 860px) {
  .fm-letters {
    grid-template-columns: repeat(4, 1fr);
  }

  .fm-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .fm-sidebar {
    position: static;
  }

  .fm-nav {
    display: none;
  }
}

@media only screen and (max-width: 560px) {
  .fm-hero h1 {
    font-size: 32px;
  }

  .fm-acronym {
    white-space: normal;
  }

  .fm-letters {
    grid-template-columns: repeat(2, 1fr);
  }

  .fm-module-header h1 {
    font-size: 26px;
  }

  .fm-pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .fm-pager-next {
    grid-column: 1;
  }
}

/* Messages */
.flash {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
}

.flash-success {
  background: #eef7e4;
  color: #2f5d0b;
}

.flash-error {
  background: #fdecea;
  color: #a30000;
}

/* Formulaires (inscription, achat, audit) */
.lead-form .help-text,
.lead-form-row > p,
.lead-form-row .form-help {
  font-size: 13px;
  color: #777;
  margin: 6px 0 0;
  line-height: 1.45;
}

.lead-form-check {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.lead-form-check input {
  margin-top: 4px;
  flex-shrink: 0;
}

.lead-form-check label {
  flex: 1;
  font-weight: 400;
  color: #333;
  line-height: 1.45;
}

.lead-form-check ul {
  flex-basis: 100%;
}

textarea.lead-input {
  resize: vertical;
}

/* Inscription */
.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.signup-form {
  max-width: none;
  margin: 0;
  text-align: left;
}

.signup-summary {
  background: #f7f8fa;
  border-radius: 12px;
  padding: 28px;
}

.signup-summary h2 {
  font-size: 22px;
  text-align: left;
}

.signup-price {
  font-family: Ubuntu, sans-serif;
  font-size: 24px;
  margin: 16px 0 0;
}

/* Offres premium */
.fm-offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.fm-offer {
  position: relative;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.fm-offer-featured {
  border: 2px solid rgb(126, 211, 33);
}

.fm-offer h2 {
  font-size: 24px;
  text-align: left;
  margin: 0 0 8px;
}

.fm-offer-price {
  font-family: Ubuntu, sans-serif;
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 16px;
}

.fm-offer-price small {
  display: block;
  font-family: Mulish, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #888;
}

.fm-offer .pricing-features {
  flex: 1;
}

.fm-offer .btn {
  text-align: center;
}

.fm-included {
  max-width: 680px;
  margin: 32px auto 0;
  line-height: 1.6;
  color: #444;
}

.fm-included a {
  color: rgb(84, 145, 15);
}

/* Contenu premium */
.fm-nav-plain a {
  font-weight: 600;
}

.fm-templates {
  padding-left: 28px;
}

.fm-templates li {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: #f7f8fa;
  border-radius: 8px;
}

.fm-templates li p {
  margin: 0 0 8px;
}

.fm-copy {
  font-family: Mulish, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #2c3e50;
  background: #fff;
  border: 1px solid #dcdfe3;
  border-radius: 4px;
  padding: 4px 12px;
  cursor: pointer;
}

.fm-copy:hover {
  border-color: #2c3e50;
}

.fm-sheet {
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  padding: 28px 32px;
  margin: 24px 0 12px;
  background: #fff;
}

.article-content .fm-sheet h3 {
  margin-top: 0;
}

.fm-sheet-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(84, 145, 15);
}

.article-content .fm-sheet-kicker {
  margin: 0 0 6px;
}

.fm-print {
  font-size: 14px;
  padding: 10px 20px;
  margin-bottom: 16px;
}

.fm-kit {
  text-align: center;
}

.article-content .fm-kit-title {
  font-family: Ubuntu, sans-serif;
  font-weight: 700;
  font-size: 30px;
  margin: 0 0 16px;
}

.fm-kit-qr {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
}

.fm-kit-qr-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #b9bec6;
  border-radius: 8px;
  color: #888;
  font-size: 14px;
}

.article-content .fm-kit-text {
  font-size: 18px;
  margin: 0;
}

.article-content .fm-kit-brand {
  margin: 14px 0 0;
  font-weight: 700;
  color: #2c3e50;
}

.fm-kit-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.fm-kit-card {
  border: 1px dashed #b9bec6;
  border-radius: 8px;
  padding: 16px;
}

.fm-kit-card .fm-kit-title {
  font-size: 22px;
}

.fm-kit-card .fm-kit-qr {
  width: 130px;
  height: 130px;
}

.fm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.fm-table th,
.fm-table td {
  border: 1px solid #dcdfe3;
  padding: 8px;
  text-align: left;
}

.fm-table td {
  height: 30px;
}

.fm-audit-form {
  max-width: 520px;
}

/* Impression d'une seule fiche */
@media print {
  body.fm-print-mode * {
    visibility: hidden;
  }

  body.fm-print-mode .fm-print-target,
  body.fm-print-mode .fm-print-target * {
    visibility: visible;
  }

  body.fm-print-mode .fm-print-target {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    border: none;
  }
}

@media only screen and (max-width: 860px) {
  .signup-layout,
  .fm-offers {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media only screen and (max-width: 560px) {
  .fm-sheet {
    padding: 20px;
  }

  .fm-kit-table {
    grid-template-columns: minmax(0, 1fr);
  }

  .fm-table {
    font-size: 12px;
  }
}

/* Choix de formule à l'inscription */
.signup-choice {
  border: none;
  padding: 0;
  margin: 0 0 22px;
}

.signup-choice legend {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.signup-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.signup-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 14px 16px;
  border: 1px solid #dcdfe3;
  border-radius: 8px;
  cursor: pointer;
}

.signup-option:has(input:checked) {
  border-color: rgb(84, 145, 15);
  background: #f5f9ee;
}

.signup-option-name {
  font-weight: 700;
  color: #1a1a1a;
}

.signup-option-price {
  flex-basis: 100%;
  padding-left: 24px;
  font-size: 14px;
  color: #555;
}

@media only screen and (max-width: 560px) {
  .signup-options {
    grid-template-columns: minmax(0, 1fr);
  }
}
