/* ============================================
   elit'com. Academy — Pages intérieures
   (inscription, merci, certifications)
   ============================================ */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 88px;
  background:
    radial-gradient(900px 460px at 100% 0%, rgba(247, 99, 1, 0.09), transparent 60%),
    radial-gradient(800px 520px at 0% 100%, rgba(2, 48, 109, 0.07), transparent 60%),
    var(--bg);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 26px;
}

.breadcrumb a:hover {
  color: var(--navy);
}

.breadcrumb i {
  font-size: 12px;
  line-height: 0;
  opacity: 0.6;
}

.breadcrumb [aria-current] {
  color: var(--ink);
  font-weight: 600;
}

.page-hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
}

.page-hero__title {
  margin-top: 22px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--navy-950);
}

.page-hero__title em {
  font-style: normal;
  color: var(--orange);
}

.page-hero__lead {
  margin-top: 20px;
  max-width: 620px;
  font-size: 18px;
  color: var(--muted);
}

/* Hero side card */
.facts-card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-950) 100%);
  color: #fff;
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.facts-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 99, 1, 0.55), transparent 70%);
}

.facts-card__code {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 72px;
  padding: 0 14px;
  border-radius: 20px;
  background: var(--orange);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.facts-card ul {
  position: relative;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.facts-card li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.facts-card li i {
  color: var(--orange);
  font-size: 18px;
  line-height: 1.4;
}

.facts-card li small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.facts-card li b {
  display: block;
  font-weight: 600;
}

.facts-card .btn {
  position: relative;
  width: 100%;
  margin-top: 18px;
}

/* ---------- Overview ---------- */
.overview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.overview__text p {
  color: var(--muted);
  font-size: 17px;
}

.overview__text p + p {
  margin-top: 16px;
}

.overview__text .section-title {
  margin-bottom: 22px;
}

.highlights {
  display: grid;
  gap: 14px;
}

.highlight {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.highlight__icon {
  flex: 0 0 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-50);
  color: var(--orange);
  font-size: 22px;
}

.highlight h3 {
  font-size: 17px;
}

.highlight p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Modules ---------- */
.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: mod;
}

.module {
  position: relative;
  padding: 30px 26px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.module:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(2, 48, 109, 0.16);
}

.module__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.module__icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-50);
  color: var(--navy);
  font-size: 23px;
}

.module__num {
  counter-increment: mod;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--line);
  letter-spacing: -0.03em;
}

.module__num::before {
  content: "0" counter(mod);
}

.module h3 {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.3;
}

.module p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Jobs ---------- */
.jobs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jobs li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
}

.jobs li::before {
  content: "";
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center no-repeat;
}

.benefits--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------- Other certifications ---------- */
.others {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.other {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.other:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.other__code {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--orange);
  background: var(--orange-50);
  padding: 5px 11px;
  border-radius: 999px;
}

.other h3 {
  font-size: 17px;
  line-height: 1.35;
  color: var(--navy);
}

.other span:last-child {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.other i {
  line-height: 0;
}

/* ---------- Forms ---------- */
.form-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  align-items: start;
}

.form-aside {
  position: sticky;
  top: 104px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-950) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 36px 32px;
  overflow: hidden;
}

.form-aside::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--orange);
}

.form-aside > * {
  position: relative;
  z-index: 1;
}

.form-aside h2 {
  color: #fff;
  font-size: 28px;
  margin-top: 14px;
}

.form-aside > p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.form-aside ol {
  list-style: none;
  counter-reset: fstep;
  margin: 26px 0 0;
  padding: 0;
}

.form-aside ol li {
  counter-increment: fstep;
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.form-aside ol li::before {
  content: counter(fstep);
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-aside ol b {
  display: block;
  color: #fff;
}

.form-aside__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.form-aside__contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.form-aside__contact a:hover {
  background: #fff;
  color: var(--navy);
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 38px 36px;
  box-shadow: var(--shadow-sm);
}

.form-card__title {
  font-size: 24px;
  color: var(--navy);
}

.form-card__intro {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

.form-step {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.form-step:first-of-type {
  margin-top: 24px;
}

.form-step__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}

.form-step__title span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
}

.field .req {
  color: var(--orange);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fbfbfc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2302306d' stroke-width='1.8' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(247, 99, 1, 0.11);
}

.field__error {
  display: none;
  font-size: 13px;
  color: #c62828;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #d93025;
}

.field.has-error .field__error {
  display: block;
}

fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

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

.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice__box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  height: 100%;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.choice__code {
  flex: 0 0 auto;
  min-width: 52px;
  padding: 0 8px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-50);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.choice__box b {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
}

.choice__box small {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}

.choice input:checked + .choice__box {
  border-color: var(--orange);
  background: var(--orange-50);
  box-shadow: 0 0 0 3px rgba(247, 99, 1, 0.12);
}

.choice input:checked + .choice__box .choice__code {
  background: var(--orange);
  color: #fff;
}

.choice input:focus-visible + .choice__box {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.field.has-error .choice__box {
  border-color: rgba(217, 48, 37, 0.5);
}

.form-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.form-submit .btn {
  min-width: 260px;
}

.form-submit small {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--navy-950);
  color: #fff;
  font-size: 15px;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 140%);
  transition: transform 0.35s ease;
}

.toast.show {
  transform: translate(-50%, 0);
}

.toast i {
  color: var(--orange);
  line-height: 0;
}

/* ---------- Merci ---------- */
.thanks {
  padding: 72px 0 110px;
  background:
    radial-gradient(900px 460px at 100% 0%, rgba(247, 99, 1, 0.09), transparent 60%),
    radial-gradient(800px 520px at 0% 100%, rgba(2, 48, 109, 0.07), transparent 60%),
    var(--bg);
}

.thanks__card {
  max-width: 680px;
  margin: 0 auto;
  padding: 52px 48px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.thanks__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  font-size: 38px;
  box-shadow: 0 16px 40px rgba(247, 99, 1, 0.35);
  animation: pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.15s both;
}

@keyframes pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.thanks__card h1 {
  font-size: clamp(30px, 4vw, 40px);
  color: var(--navy-950);
}

.thanks__card h1 span {
  color: var(--orange);
}

.thanks__card > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

.recap {
  margin: 30px 0 0;
  padding: 6px 22px;
  border-radius: 18px;
  background: var(--bg-soft);
  text-align: left;
}

.recap div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.recap div:last-child {
  border-bottom: 0;
}

.recap dt {
  color: var(--muted);
}

.recap dd {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
  word-break: break-word;
}

.next-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: ns;
  text-align: left;
}

.next-steps li {
  counter-increment: ns;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.next-steps li::before {
  content: "0" counter(ns);
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.08em;
}

.next-steps b {
  display: block;
  margin-top: 8px;
}

.next-steps span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 300;
}

@media print {
  .topbar,
  .header,
  .footer,
  .thanks__actions,
  .confetti {
    display: none !important;
  }

  .thanks {
    padding: 0;
    background: none;
  }

  .thanks__card {
    box-shadow: none;
    border: 0;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .page-hero__grid,
  .overview,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .page-hero__grid {
    gap: 40px;
  }

  .overview {
    gap: 36px;
  }

  .form-aside {
    position: relative;
    top: 0;
  }

  .modules,
  .jobs,
  .others {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 40px 0 64px;
  }

  .page-hero__lead {
    font-size: 16.5px;
  }

  .page-hero .hero__actions .btn {
    flex: 1 1 100%;
  }

  .modules,
  .jobs,
  .others,
  .benefits--4,
  .form-grid,
  .choice-grid,
  .next-steps {
    grid-template-columns: 1fr;
  }

  .form-card,
  .form-aside {
    padding: 28px 20px;
  }

  .form-submit .btn {
    width: 100%;
    min-width: 0;
  }

  .thanks {
    padding: 40px 0 72px;
  }

  .thanks__card {
    padding: 36px 22px;
  }

  .thanks__actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Ajustements mobile ---------- */
@media (max-width: 640px) {
  .breadcrumb {
    margin-bottom: 18px;
    font-size: 13px;
  }

  .page-hero__title {
    font-size: 32px;
    margin-top: 18px;
  }

  .page-hero__grid {
    gap: 28px;
  }

  /* Infos clés : grille 2×2 compacte */
  .facts-card {
    padding: 18px;
    border-radius: 20px;
  }

  .facts-card__code,
  .facts-card .btn {
    display: none;
  }

  .facts-card ul {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 14px;
  }

  .facts-card li {
    padding: 0;
    border: 0;
    gap: 10px;
    font-size: 14px;
  }

  .facts-card li i {
    font-size: 16px;
  }

  .facts-card li small {
    font-size: 11px;
  }

  /* Aperçu */
  .overview__text p {
    font-size: 16px;
  }

  .highlight {
    padding: 16px;
    gap: 14px;
  }

  .highlight__icon {
    flex-basis: 42px;
    height: 42px;
    font-size: 19px;
    border-radius: 12px;
  }

  .highlight p {
    font-size: 14.5px;
  }

  /* Modules : icône + numéro sur la même ligne, carte compacte */
  .modules {
    gap: 12px;
  }

  .module {
    padding: 20px;
  }

  .module__icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 12px;
  }

  .module__num {
    font-size: 26px;
  }

  .module h3 {
    margin-top: 14px;
    font-size: 17px;
  }

  .module p {
    margin-top: 6px;
    font-size: 14.5px;
  }

  .jobs {
    gap: 10px;
  }

  .jobs li {
    padding: 14px 16px;
    font-size: 15px;
  }

  .jobs li::before {
    flex-basis: 26px;
    height: 26px;
  }

  .others {
    gap: 12px;
  }

  .other {
    padding: 18px;
  }

  /* Formulaires : le formulaire avant le panneau d'infos */
  .form-layout > .form-aside {
    order: 2;
  }

  .form-layout {
    gap: 20px;
  }

  .form-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .form-step {
    margin-top: 24px;
    padding-top: 22px;
  }

  .form-grid {
    gap: 16px;
  }

  /* 16 px minimum : évite le zoom automatique sur iPhone */
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .choice-grid {
    gap: 10px;
  }

  .choice__box {
    padding: 12px 14px;
    align-items: center;
  }

  /* Merci */
  .thanks__card h1 {
    font-size: 28px;
  }

  .thanks__icon {
    width: 72px;
    height: 72px;
    font-size: 30px;
    margin-bottom: 20px;
  }

  .recap {
    padding: 4px 16px;
  }

  .recap div {
    flex-direction: column;
    gap: 2px;
    padding: 12px 0;
  }

  .recap dd {
    text-align: left;
  }

  .next-steps li {
    display: grid;
    grid-template-columns: 30px 1fr;
    column-gap: 10px;
    padding: 14px 16px;
  }

  .next-steps li::before {
    grid-row: span 2;
    align-self: center;
  }

  .next-steps b {
    margin-top: 0;
  }
}

/* ---------- Contact ---------- */
.page-hero--compact {
  padding: 56px 0 72px;
}

.page-hero--compact .page-hero__title {
  margin-top: 0;
}

.section--flush-top {
  padding-top: 0;
}

.page-hero--compact + .section--flush-top {
  margin-top: -24px;
}

.contact-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

.contact-list__icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  font-size: 18px;
}

.contact-list small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2px;
}

.contact-list a {
  color: #fff;
  font-weight: 600;
  word-break: break-word;
}

.contact-list a:hover {
  color: var(--orange);
}

.contact-list__map {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 14px;
}

.contact-list__map i {
  line-height: 0;
}

.contact-success {
  text-align: center;
  padding: 16px 4px;
}

.contact-success h3 {
  font-size: 24px;
  color: var(--navy);
}

.contact-success p {
  margin: 10px 0 24px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .page-hero--compact {
    padding: 36px 0 52px;
  }

  .contact-list li {
    padding: 14px;
  }

  /* Le formulaire passe avant les coordonnées */
  .booking .contact-list {
    order: 5;
    margin-top: 24px;
  }
}
