:root {
  --ivm-navy: #1f4b86;
  --ivm-blue: #4ea3cf;
  --ivm-light-blue: #eaf7fd;
  --ivm-border: #d8e6ef;
  --ivm-text: #17365f;
  --ivm-muted: #62758b;
  --ivm-soft-bg: #f7fbfd;
  --ivm-shadow: 0 14px 38px rgba(31, 75, 134, 0.08);
}

.ivm-no-session {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #e6b95c;
  border-radius: 10px;
  background: #fff8e8;
  color: #654b12;
  font-size: 14px;
  line-height: 1.45;
}

/* Formulaire généré depuis la source unique du back-office. L’ancien bloc WAPF
 * reste soumis en arrière-plan uniquement pour préserver sa compatibilité. */
body.ivm-unified-training-product form.cart .wapf {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ivm-training-config-form {
  display: grid;
  gap: 17px;
  margin: 0 0 18px;
  color: var(--ivm-text);
}

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

.ivm-training-field > legend,
.ivm-training-field > label {
  display: block;
  margin: 0 0 8px;
  color: var(--ivm-blue);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.ivm-training-field small {
  display: block;
  margin-top: 7px;
  color: var(--ivm-muted);
  font-size: 11px;
  line-height: 1.45;
}

.ivm-training-field small a {
  color: var(--ivm-navy);
  font-weight: 700;
}

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

.ivm-training-choice-grid label,
.ivm-training-session-grid label {
  position: relative;
  display: block;
  cursor: pointer;
}

.ivm-training-choice-grid input,
.ivm-training-session-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ivm-training-choice-grid span,
.ivm-training-session-grid span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #b9cad8;
  border-radius: 9px;
  background: #fff;
  color: #24384e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.ivm-training-choice-grid input:checked + span,
.ivm-training-session-grid input:checked + span {
  border-color: #78caed;
  background: #dff4fd;
  color: var(--ivm-navy);
  box-shadow: 0 0 0 2px rgba(78, 163, 207, 0.12);
}

.ivm-training-choice-grid input:focus-visible + span,
.ivm-training-session-grid input:focus-visible + span {
  outline: 3px solid rgba(78, 163, 207, 0.36);
  outline-offset: 2px;
}

.ivm-training-dpc-fields {
  display: grid;
  gap: 14px;
}

.ivm-training-dpc-fields[hidden] {
  display: none !important;
}

.ivm-training-field select,
.ivm-training-field input[type="text"] {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid #b9cad8;
  border-radius: 9px;
  background: #fff;
  color: #24384e;
  font-size: 13px;
}

.ivm-training-field select:focus,
.ivm-training-field input[type="text"]:focus {
  border-color: var(--ivm-blue);
  outline: 3px solid rgba(78, 163, 207, 0.18);
}

.ivm-training-price-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #e1ebf1;
  color: #24384e;
  font-size: 13px;
  font-weight: 750;
}

.ivm-training-price-summary strong {
  color: var(--ivm-blue);
  font-size: 17px;
}

.ivm-training-closed {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e6b95c;
  border-radius: 10px;
  background: #fff8e8;
  color: #654b12;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .ivm-training-choice-grid,
  .ivm-training-session-grid {
    grid-template-columns: 1fr;
  }
}

/* Le modele Elementor conserve une largeur de 35 % sur la colonne
 * d'inscription, y compris sous son point de rupture mobile. On neutralise
 * cette largeur sur les fiches gerees par IVM afin que les deux colonnes se
 * placent proprement l'une sous l'autre sans debordement horizontal. */
@media (max-width: 767px) {
  body.single-product.ivm-unified-training-product {
    overflow-x: hidden;
  }

  body.single-product.ivm-unified-training-product .elementor-location-single,
  body.single-product.ivm-unified-training-product .elementor-location-single .e-con,
  body.single-product.ivm-unified-training-product .elementor-location-single .e-con-inner,
  body.single-product.ivm-unified-training-product .elementor-location-single .elementor-widget,
  body.single-product.ivm-unified-training-product .elementor-location-single .elementor-widget-container,
  body.single-product.ivm-unified-training-product form.cart,
  body.single-product.ivm-unified-training-product .ivm-training-config-form {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }

  body.single-product.ivm-unified-training-product .elementor-element-b02f1db {
    --flex-direction: column;
    --flex-wrap: nowrap;
    --padding-top: 38px;
    --padding-bottom: 68px;
    --padding-left: 20px;
    --padding-right: 20px;
  }

  body.single-product.ivm-unified-training-product .elementor-element-b02f1db > .e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  body.single-product.ivm-unified-training-product .elementor-element-6cdb016,
  body.single-product.ivm-unified-training-product .elementor-element-2198f16 {
    --width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
  }

  body.single-product.ivm-unified-training-product .signin_sticky_form {
    position: relative;
    top: auto !important;
  }

  body.single-product.ivm-unified-training-product .elementor-element-feff0fd {
    --padding-top: 22px;
    --padding-bottom: 22px;
    --padding-left: 20px;
    --padding-right: 20px;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.single-product.ivm-unified-training-product .product_title,
  body.single-product.ivm-unified-training-product .elementor-widget-woocommerce-product-title .elementor-heading-title {
    max-width: 100%;
    font-size: clamp(25px, 7.4vw, 32px) !important;
    line-height: 1.14 !important;
    overflow-wrap: break-word;
    word-break: normal;
  }

  body.single-product.ivm-unified-training-product .ivm-training-price-summary,
  body.single-product.ivm-unified-training-product .product_meta {
    flex-wrap: wrap;
  }
}

.ivm-dpc-explanation {
  margin: 12px 0 4px;
  padding: 12px 14px;
  border-left: 4px solid var(--ivm-blue);
  border-radius: 8px;
  background: var(--ivm-light-blue);
  color: var(--ivm-text);
  font-size: 13px;
  line-height: 1.5;
}

.ivm-checkout-steps {
  width: min(1100px, calc(100% - 30px));
  margin: 0 auto 28px;
}

.ivm-checkout-steps ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ivm-checkout-steps li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border: 1px solid var(--ivm-border);
  border-radius: 12px;
  background: #fff;
  color: #61758c;
  font-size: 14px;
  font-weight: 700;
}

.ivm-checkout-steps li span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #edf2f6;
  color: #61758c;
}

.ivm-checkout-steps li.is-done,
.ivm-checkout-steps li.is-active {
  border-color: #9ddcf4;
  color: var(--ivm-navy);
}

.ivm-checkout-steps li.is-done span,
.ivm-checkout-steps li.is-active span {
  background: var(--ivm-blue);
  color: #fff;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
  box-sizing: border-box;
  border: 1px solid var(--ivm-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 75, 134, 0.08);
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-cart .wc-block-cart__main {
  padding: 30px;
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-cart .wc-block-cart__sidebar {
  padding: 22px;
}

body.woocommerce-checkout .wc-block-components-checkout-step {
  padding-left: 0;
}

body.woocommerce-checkout .wc-block-components-checkout-step__container {
  padding-left: 0;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-cart .wc-block-cart__submit-button {
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  background: var(--ivm-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
  box-shadow: 0 8px 18px rgba(78, 163, 207, 0.24);
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-cart .wc-block-cart__submit-button:hover {
  background: var(--ivm-navy);
  color: #fff;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus-visible,
body.woocommerce-cart .wc-block-cart__submit-button:focus-visible,
.option_formation input:focus-visible + label {
  outline: 3px solid rgba(31, 75, 134, 0.35);
  outline-offset: 3px;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:disabled,
body.woocommerce-cart .wc-block-cart__submit-button:disabled,
.single_add_to_cart_button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

/* Le style Elementor historique utilisait l'accent secondaire violet pour les
 * états du bouton produit. Les quatre états restent désormais dans la charte
 * IVM et conservent un contraste lisible. */
body.single-product .option_formation .elementor-add-to-cart button.single_add_to_cart_button {
  min-height: 52px;
  border: 1px solid var(--ivm-navy) !important;
  border-radius: 12px;
  background: var(--ivm-navy) !important;
  color: #fff !important;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(31, 75, 134, 0.2);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.single-product .option_formation .elementor-add-to-cart button.single_add_to_cart_button:not(:disabled):not(.disabled):hover {
  transform: translateY(-1px);
  border-color: #15375f !important;
  background: #15375f !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(31, 75, 134, 0.28);
}

body.single-product .option_formation .elementor-add-to-cart button.single_add_to_cart_button:focus-visible {
  outline: 3px solid rgba(78, 163, 207, 0.45);
  outline-offset: 3px;
}

body.single-product .option_formation .elementor-add-to-cart button.single_add_to_cart_button:disabled,
body.single-product .option_formation .elementor-add-to-cart button.single_add_to_cart_button.disabled,
body.single-product .option_formation .elementor-add-to-cart button.single_add_to_cart_button[aria-disabled="true"] {
  transform: none;
  cursor: not-allowed;
  border-color: #c8dbe6 !important;
  background: #dce9f0 !important;
  color: #52687e !important;
  opacity: 1;
  box-shadow: none;
}

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-cart .wc-block-components-title {
  color: var(--ivm-text);
}

/* Le thème imposait overflow-wrap:anywhere dans le récapitulatif Blocks et
 * coupait des mots français au milieu sur ordinateur. */
body.woocommerce-checkout .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-components-order-summary-item__description,
body.woocommerce-cart .wc-block-components-product-name {
  min-width: 0;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
}

.tutor-add-to-cart-button[data-ivm-course-cta="2"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ivm-course-purchase-cta__icon {
  font-size: 19px;
  line-height: 1;
  transition: transform 180ms ease;
}

.tutor-add-to-cart-button[data-ivm-course-cta="2"]:hover .ivm-course-purchase-cta__icon {
  transform: translateX(3px);
}

/* Catalogue public : page de conversion et cartes de formation. */
.ivm-catalog-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
  padding: clamp(56px, 7vw, 92px) 24px 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(126, 215, 246, 0.2), transparent 28%),
    radial-gradient(circle at 8% 92%, rgba(78, 163, 207, 0.18), transparent 32%),
    var(--ivm-navy);
  color: #fff;
}

.ivm-catalog-hero *,
.ivm-catalog-heading *,
.ivm-catalog-support * {
  box-sizing: border-box;
  min-width: 0;
}

.ivm-catalog-hero::before {
  position: absolute;
  z-index: -1;
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.ivm-catalog-hero__main,
.ivm-catalog-benefits {
  width: min(1160px, 100%);
  margin-inline: auto;
}

.ivm-catalog-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: clamp(42px, 6vw, 78px);
  align-items: center;
}

.ivm-catalog-hero__content {
  max-width: 720px;
}

.ivm-catalog-eyebrow {
  margin: 0 0 14px;
  color: var(--ivm-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ivm-catalog-hero .ivm-catalog-eyebrow {
  color: #aee5fa;
}

.ivm-catalog-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.ivm-catalog-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
}

.ivm-catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.ivm-catalog-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.ivm-catalog-button:hover {
  transform: translateY(-2px);
}

.ivm-catalog-button--primary {
  background: var(--ivm-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(78, 163, 207, 0.24);
}

.ivm-catalog-button--primary:hover,
.ivm-catalog-button--primary:focus-visible {
  background: #67b8dc;
  color: #fff;
}

.ivm-catalog-button--secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.ivm-catalog-button--secondary:hover,
.ivm-catalog-button--secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.ivm-catalog-button:focus-visible {
  outline: 3px solid rgba(174, 229, 250, 0.5);
  outline-offset: 3px;
}

.ivm-catalog-financing {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ivm-text);
  box-shadow: 0 22px 60px rgba(10, 37, 74, 0.26);
}

.ivm-catalog-financing__title {
  margin: 0 0 6px;
  color: var(--ivm-navy);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.ivm-catalog-financing__option {
  position: relative;
  padding: 20px 0 20px 22px;
  border-bottom: 1px solid var(--ivm-border);
}

.ivm-catalog-financing__option:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ivm-catalog-financing__option::before {
  position: absolute;
  top: 27px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ivm-blue);
  box-shadow: 0 0 0 5px var(--ivm-light-blue);
  content: "";
}

.ivm-catalog-financing__option span,
.ivm-catalog-financing__option strong {
  display: block;
}

.ivm-catalog-financing__option span {
  color: var(--ivm-blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.ivm-catalog-financing__option strong {
  margin-top: 4px;
  color: var(--ivm-text);
  font-size: 16px;
  line-height: 1.4;
}

.ivm-catalog-financing__option p {
  margin: 6px 0 0;
  color: var(--ivm-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ivm-catalog-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(48px, 6vw, 72px);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
}

.ivm-catalog-benefits li {
  position: relative;
  margin: 0;
  padding: 4px 24px 4px 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.ivm-catalog-benefits li:last-child {
  border-right: 0;
}

.ivm-catalog-benefits li::before {
  position: absolute;
  top: 4px;
  left: 8px;
  color: #aee5fa;
  content: "✓";
  font-weight: 900;
}

body.post-type-archive-courses .course-archive-page {
  max-width: 1200px;
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(70px, 8vw, 108px);
}

.ivm-catalog-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 30px;
}

.ivm-catalog-heading h2 {
  max-width: 650px;
  margin: 0;
  color: var(--ivm-navy);
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.ivm-catalog-heading > p {
  max-width: 510px;
  margin: 0;
  color: var(--ivm-muted);
  font-size: 16px;
  line-height: 1.65;
}

body.post-type-archive-courses .course-archive-page .tutor-course-filter[style] {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 24px;
  text-align: right !important;
}

body.post-type-archive-courses .course-archive-page .tutor-course-filter[style]::before {
  color: var(--ivm-muted);
  content: "Trier par";
  font-size: 14px;
  font-weight: 700;
}

body.post-type-archive-courses .course-archive-page .tutor-course-filter + br {
  display: none;
}

body.post-type-archive-courses .course-archive-page .tutor-form-select {
  min-width: 270px;
  border-color: var(--ivm-border);
  border-radius: 11px;
  background-color: #fff;
  color: var(--ivm-text);
}

body.post-type-archive-courses .tutor-course-list {
  gap: 28px;
}

body.post-type-archive-courses .tutor-course-card {
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--ivm-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 75, 134, 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

body.post-type-archive-courses .tutor-course-card:hover {
  transform: translateY(-5px);
  border-color: #b8dce9;
  box-shadow: 0 20px 44px rgba(31, 75, 134, 0.14);
}

body.post-type-archive-courses .tutor-course-thumbnail {
  overflow: hidden;
}

body.post-type-archive-courses .tutor-course-card .tutor-card-image-top {
  width: 100%;
  transition: transform 360ms ease;
}

body.post-type-archive-courses .tutor-course-card:hover .tutor-card-image-top {
  transform: scale(1.035);
}

body.post-type-archive-courses .tutor-course-card .tutor-card-body {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 22px;
}

.ivm-course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.ivm-course-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--ivm-light-blue);
  color: var(--ivm-navy);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.ivm-course-tags span:last-child {
  border: 1px solid var(--ivm-border);
  background: #fff;
  color: var(--ivm-muted);
}

.ivm-home-course-availability {
  display: inline-flex;
  align-self: flex-start;
  margin: -5px 0 13px !important;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff4d6;
  color: #775300;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

body.post-type-archive-courses .tutor-course-card .tutor-course-ratings {
  margin-bottom: 12px;
}

body.post-type-archive-courses .tutor-course-card .tutor-course-ratings[hidden],
body.post-type-archive-courses .tutor-course-card .tutor-course-ratings:not(:has(.tutor-ratings-average)),
body.post-type-archive-courses .tutor-course-card .tutor-card-body > .tutor-meta.tutor-mt-auto,
body.post-type-archive-courses .tutor-course-card .tutor-card-body > .tutor-meta > div:has(.tutor-icon-user-line) {
  display: none !important;
}

body.post-type-archive-courses .tutor-course-card .tutor-course-name {
  margin: 0;
  color: var(--ivm-text);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.012em;
  line-height: 1.4;
}

body.post-type-archive-courses .tutor-course-card .tutor-course-name a {
  color: inherit;
}

.ivm-course-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 12px 0 0;
  color: var(--ivm-muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.post-type-archive-courses .tutor-course-card .tutor-card-body > .tutor-meta.tutor-mt-12 {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 18px;
  color: var(--ivm-muted);
}

body.post-type-archive-courses .tutor-course-card .tutor-card-footer {
  min-height: 76px;
  padding: 15px 20px;
  border-top: 1px solid var(--ivm-border);
  background: var(--ivm-soft-bg);
}

body.post-type-archive-courses .tutor-course-card .price,
body.post-type-archive-courses .tutor-course-card .tutor-course-price {
  color: var(--ivm-navy);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

body.post-type-archive-courses .ivm-course-card-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: var(--ivm-blue);
  border-radius: 10px;
  background: var(--ivm-blue);
  color: #fff;
  font-weight: 750;
  box-shadow: 0 7px 16px rgba(78, 163, 207, 0.2);
}

body.post-type-archive-courses .ivm-course-card-cta:hover,
body.post-type-archive-courses .ivm-course-card-cta:focus-visible {
  border-color: var(--ivm-navy);
  background: var(--ivm-navy);
  color: #fff;
}

.ivm-course-card-cta__icon {
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}

.ivm-course-card-cta:hover .ivm-course-card-cta__icon {
  transform: translateX(3px);
}

/* Homepage : les produits WooCommerce reprennent le langage visuel du catalogue Tutor. */
body.home .elementor-element-14a787e .elementor-loop-container {
  gap: 28px;
  align-items: stretch;
}

body.home .elementor-element-14a787e .ivm-home-course-item,
body.home .elementor-element-14a787e .ivm-home-course-card,
body.home .elementor-element-14a787e .ivm-home-course-card * {
  box-sizing: border-box;
  min-width: 0;
}

body.home .elementor-element-14a787e .ivm-home-course-item,
body.home .elementor-element-14a787e .ivm-home-course-item > .e-con,
body.home .elementor-element-14a787e .ivm-home-course-item > .e-con > .e-con-inner,
body.home .elementor-element-14a787e .ivm-home-course-item .elementor-widget-elementskit-icon-box,
body.home .elementor-element-14a787e .ivm-home-course-item .ekit-wid-con {
  height: 100%;
}

body.home .elementor-element-14a787e .elementskit-infobox.ivm-home-course-card {
  display: flex;
  overflow: hidden;
  height: 100%;
  flex-direction: column;
  padding: 0 !important;
  border: 1px solid var(--ivm-border) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 12px 34px rgba(31, 75, 134, 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

body.home .elementor-element-14a787e .elementskit-infobox.ivm-home-course-card::before {
  display: none !important;
  content: none !important;
}

body.home .elementor-element-14a787e .elementskit-infobox.ivm-home-course-card:hover {
  transform: translateY(-5px);
  border-color: #b8dce9 !important;
  background: #fff !important;
  box-shadow: 0 20px 44px rgba(31, 75, 134, 0.14);
}

body.home .elementor-element-14a787e .ivm-home-course-card .elementskit-box-header,
body.home .elementor-element-14a787e .ivm-home-course-card .elementskit-info-box-icon,
body.home .elementor-element-14a787e .ivm-home-course-card__image-link {
  display: block;
  overflow: hidden;
  width: 100%;
}

body.home .elementor-element-14a787e .ivm-home-course-card .elementskit-info-box-icon img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 360ms ease;
}

body.home .elementor-element-14a787e .ivm-home-course-card:hover .elementskit-info-box-icon img {
  transform: scale(1.035);
}

body.home .elementor-element-14a787e .ivm-home-course-card .box-body {
  display: flex;
  min-height: 340px;
  flex: 1;
  flex-direction: column;
  padding: 22px !important;
}

body.home .elementor-element-14a787e .ivm-home-course-card .elementskit-info-box-title {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ivm-text) !important;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.012em;
  line-height: 1.4;
}

body.home .elementor-element-14a787e .ivm-home-course-card .elementskit-info-box-title a,
body.home .elementor-element-14a787e .ivm-home-course-card:hover .elementskit-info-box-title,
body.home .elementor-element-14a787e .ivm-home-course-card:hover .elementskit-info-box-title a {
  color: var(--ivm-text) !important;
  text-decoration: none;
}

body.home .elementor-element-14a787e .ivm-home-course-card .ivm-home-course-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 12px 0 0 !important;
  color: var(--ivm-muted) !important;
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.home .elementor-element-14a787e .ivm-home-course-duration {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 !important;
  padding-top: 18px;
  color: var(--ivm-muted) !important;
  font-size: 14px;
  font-weight: 650;
}

body.home .elementor-element-14a787e .ivm-home-course-card__footer {
  display: flex !important;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: auto -22px -22px !important;
  padding: 15px 20px !important;
  border-top: 1px solid var(--ivm-border);
  background: var(--ivm-soft-bg);
}

body.home .elementor-element-14a787e .ivm-home-course-price {
  color: var(--ivm-navy);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

body.home .elementor-element-14a787e .ivm-home-course-card__footer .btn-wraper {
  margin-left: auto;
}

body.home .elementor-element-14a787e .ivm-home-course-card .elementskit-btn.ivm-home-course-card__cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid var(--ivm-blue);
  border-radius: 10px;
  background: var(--ivm-blue) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 7px 16px rgba(78, 163, 207, 0.2);
}

body.home .elementor-element-14a787e .ivm-home-course-card .elementskit-btn.ivm-home-course-card__cta:hover,
body.home .elementor-element-14a787e .ivm-home-course-card .elementskit-btn.ivm-home-course-card__cta:focus-visible {
  border-color: var(--ivm-navy);
  background: var(--ivm-navy) !important;
  color: #fff !important;
}

body.home .elementor-element-14a787e .ivm-home-course-card .elementskit-btn.ivm-home-course-card__cta:focus-visible,
body.home .elementor-element-14a787e .ivm-home-course-card .elementskit-info-box-title a:focus-visible,
body.home .elementor-element-14a787e .ivm-home-course-card__image-link:focus-visible {
  outline: 3px solid rgba(31, 75, 134, 0.35);
  outline-offset: 3px;
}

.ivm-catalog-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  margin-top: 52px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid #bfe4f1;
  border-radius: 20px;
  background: linear-gradient(120deg, #eef9fd, #fff);
  box-shadow: var(--ivm-shadow);
}

.ivm-catalog-support h2 {
  max-width: 760px;
  margin: 0;
  color: var(--ivm-navy);
  font-size: clamp(25px, 2.5vw, 35px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ivm-catalog-support p:last-child {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--ivm-muted);
  font-size: 15px;
  line-height: 1.6;
}

.ivm-catalog-support .ivm-catalog-button--primary:hover,
.ivm-catalog-support .ivm-catalog-button--primary:focus-visible {
  background: var(--ivm-navy);
}

body.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  grid-template-areas: "navigation content";
  gap: 28px;
  align-items: start;
}

/* WooCommerce ajoute deux pseudo-elements de clearfix. En grille, ils devenaient
   des colonnes fantomes et repoussaient le tableau des commandes sous le menu. */
body.woocommerce-account .woocommerce::before,
body.woocommerce-account .woocommerce::after {
  display: none !important;
  content: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content {
  box-sizing: border-box;
  float: none;
  width: 100%;
  border: 1px solid var(--ivm-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 75, 134, 0.07);
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
  grid-area: navigation;
  padding: 12px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--ivm-text);
  font-weight: 700;
}

body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
  background: var(--ivm-light-blue);
  color: var(--ivm-navy);
}

body.woocommerce-account .woocommerce-MyAccount-content {
  grid-area: content;
  min-width: 0;
  min-height: 280px;
  padding: 28px;
}

body.woocommerce-account .woocommerce-MyAccount-content .button {
  border-radius: 10px;
  background: var(--ivm-blue);
  color: #fff;
}

body.woocommerce-account .woocommerce-MyAccount-content .button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .button:focus-visible {
  background: var(--ivm-navy);
  color: #fff;
}

body.woocommerce-account .woocommerce-MyAccount-content .button:focus-visible,
body.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
  outline: 3px solid rgba(78, 163, 207, 0.32);
  outline-offset: 2px;
}

body.woocommerce-account .woocommerce-orders-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  overflow: hidden;
  border: 1px solid var(--ivm-border);
  border-radius: 12px;
}

body.woocommerce-account .woocommerce-orders-table th,
body.woocommerce-account .woocommerce-orders-table td {
  padding: 14px 16px;
  border-width: 0 0 1px;
  border-color: var(--ivm-border);
  line-height: 1.45;
  text-align: left;
  vertical-align: middle;
}

body.woocommerce-account .woocommerce-orders-table th {
  background: var(--ivm-soft-bg);
  color: var(--ivm-text);
  font-weight: 750;
}

body.woocommerce-account .woocommerce-orders-table tr:last-child td {
  border-bottom: 0;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-actions {
  text-align: right;
  white-space: nowrap;
}

/* Woo Blocks herite des H2 du theme : conserver un libelle compact sur la bordure. */
body.woocommerce-checkout .wc-block-components-express-payment__title-container {
  top: -10px !important;
  right: auto !important;
  left: 16px !important;
  width: auto !important;
  height: 20px !important;
  padding: 0 8px !important;
  background: #fff !important;
}

body.woocommerce-checkout .wc-block-components-express-payment__title {
  position: static !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  color: var(--ivm-text) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 20px !important;
  white-space: nowrap;
}

/* Ne jamais afficher de liens ou temoignages de demonstration au client. */
.footer-links li:has(a[href="#"]),
.elementor-widget-elementskit-social-media li:has(a[href="#"][aria-label="LinkedIn"]),
.elementor-element-d12b33a,
.elementor-element-ae64e87,
body.home .elementor-element-c0ecb2b,
body.single-product .elementor-element-d84eeaa {
  display: none !important;
}

body.error404 a.btn-default {
  text-transform: none !important;
}

/* Lecteur Tutor : titres lisibles, contraste AA et fin de contenu non masquee. */
body.single-lesson .tutor-learning-nav-header-title,
body.single-tutor_quiz .tutor-learning-nav-header-title,
.tutor-learning-area-body .tutor-learning-nav-header-title {
  height: auto !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  line-height: 1.35 !important;
}

body.single-lesson .tutor-learning-header-title,
body.single-tutor_quiz .tutor-learning-header-title {
  height: auto !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  line-height: 1.3 !important;
}

body.single-lesson .tutor-tabs-tab,
body.single-tutor_quiz .tutor-tabs-tab,
.tutor-learning-area-body .tutor-tabs-tab {
  border-color: var(--ivm-border) !important;
  background: #fff !important;
  color: var(--ivm-navy) !important;
}

body.single-lesson .tutor-tabs-tab.tutor-tabs-tab-active,
body.single-tutor_quiz .tutor-tabs-tab.tutor-tabs-tab-active,
body.single-lesson .tutor-btn-ghost-brand,
body.single-tutor_quiz .tutor-btn-ghost-brand,
.tutor-learning-area-body .tutor-tabs-tab.tutor-tabs-tab-active,
.tutor-learning-area-body .tutor-btn-ghost-brand {
  border-color: var(--ivm-navy) !important;
  background: var(--ivm-navy) !important;
  color: #fff !important;
}

body.single-lesson .tutor-lesson-content-tab,
body.single-tutor_quiz .tutor-lesson-content-tab,
.tutor-learning-area-body .tutor-lesson-content-tab {
  padding-bottom: 96px !important;
}

/* Le kit Elementor applique son style de bouton bleu tres clair a tous les
 * boutons HTML, y compris ceux du lecteur Tutor. On restaure ici la hierarchie
 * IVM et des cibles tactiles d'au moins 44 px sans modifier le reste du site. */
body.single-lesson .tutor-learning-area .tutor-btn,
body.single-tutor_quiz .tutor-learning-area .tutor-btn {
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.35;
}

body.single-lesson .tutor-learning-area .tutor-btn-icon,
body.single-tutor_quiz .tutor-learning-area .tutor-btn-icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 10px;
}

body.single-lesson .tutor-learning-area .tutor-btn-primary,
body.single-tutor_quiz .tutor-learning-area .tutor-btn-primary {
  border-color: var(--ivm-navy) !important;
  background: var(--ivm-navy) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(31, 75, 134, 0.2) !important;
}

body.single-lesson .tutor-learning-area .tutor-btn-primary:hover:not(:disabled),
body.single-tutor_quiz .tutor-learning-area .tutor-btn-primary:hover:not(:disabled),
body.single-lesson .tutor-learning-area .tutor-btn-primary:active:not(:disabled),
body.single-tutor_quiz .tutor-learning-area .tutor-btn-primary:active:not(:disabled) {
  border-color: #143761 !important;
  background: #143761 !important;
  color: #fff !important;
}

/* Les actions de résultat Tutor utilisent une variante "soft" trop pâle
 * avec le kit Elementor. Le bleu IVM garantit ici un contraste lisible. */
body.single-tutor_quiz .tutor-btn-primary-soft {
  border-color: var(--ivm-navy) !important;
  background: var(--ivm-navy) !important;
  color: #fff !important;
  opacity: 1 !important;
  box-shadow: 0 8px 18px rgba(31, 75, 134, 0.2) !important;
}

body.single-tutor_quiz .tutor-btn-primary-soft:hover:not(:disabled),
body.single-tutor_quiz .tutor-btn-primary-soft:active:not(:disabled) {
  border-color: #143761 !important;
  background: #143761 !important;
  color: #fff !important;
}

body.ivm-certificate-page .tutor-btn-primary {
  border-color: var(--ivm-navy) !important;
  background: var(--ivm-navy) !important;
  color: #fff !important;
  opacity: 1 !important;
}

body.ivm-certificate-page .tutor-btn-primary:hover:not(:disabled),
body.ivm-certificate-page .tutor-btn-primary:active:not(:disabled) {
  border-color: #143761 !important;
  background: #143761 !important;
  color: #fff !important;
}

body.single-lesson .tutor-learning-area .tutor-btn-primary:disabled,
body.single-tutor_quiz .tutor-learning-area .tutor-btn-primary:disabled,
body.single-lesson .tutor-learning-area .tutor-btn-primary.disabled,
body.single-tutor_quiz .tutor-learning-area .tutor-btn-primary.disabled {
  border-color: #c7d6e2 !important;
  background: #dbe6ee !important;
  color: #465a6d !important;
  opacity: 1;
  box-shadow: none !important;
}

body.single-lesson .tutor-learning-area .tutor-btn-ghost,
body.single-tutor_quiz .tutor-learning-area .tutor-btn-ghost {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--ivm-text) !important;
}

body.single-lesson .tutor-learning-area .tutor-btn-ghost:hover:not(:disabled),
body.single-tutor_quiz .tutor-learning-area .tutor-btn-ghost:hover:not(:disabled) {
  background: var(--ivm-light-blue) !important;
  color: var(--ivm-navy) !important;
}

body.single-lesson .tutor-learning-area .tutor-btn-outline,
body.single-tutor_quiz .tutor-learning-area .tutor-btn-outline {
  border-color: var(--ivm-border) !important;
  background: #fff !important;
  color: var(--ivm-text) !important;
  box-shadow: 0 0 0 1px var(--ivm-border) !important;
}

body.single-lesson .tutor-learning-area .tutor-btn-outline:hover:not(:disabled),
body.single-tutor_quiz .tutor-learning-area .tutor-btn-outline:hover:not(:disabled) {
  border-color: var(--ivm-blue) !important;
  background: var(--ivm-light-blue) !important;
  color: var(--ivm-navy) !important;
}

body.single-lesson .tutor-learning-area .tutor-btn:focus-visible,
body.single-tutor_quiz .tutor-learning-area .tutor-btn:focus-visible,
body.single-lesson .tutor-learning-area .tutor-tabs-tab:focus-visible,
body.single-tutor_quiz .tutor-learning-area .tutor-tabs-tab:focus-visible,
body.single-lesson .tutor-learning-area .tutor-mark-as-complete-button:focus-visible,
body.single-tutor_quiz .tutor-learning-area .tutor-mark-as-complete-button:focus-visible,
body.single-tutor_quiz .tutor-quiz-attempts-item a:focus-visible,
body.single-tutor_quiz .tutor-preview-trigger-text[role="button"]:focus-visible {
  outline: 3px solid var(--ivm-navy) !important;
  outline-offset: 3px;
}

body.single-lesson .tutor-learning-area .tutor-tabs-tab,
body.single-tutor_quiz .tutor-learning-area .tutor-tabs-tab,
body.single-lesson .tutor-learning-area .tutor-mark-as-complete-button,
body.single-tutor_quiz .tutor-learning-area .tutor-mark-as-complete-button,
body.single-lesson .tutor-learning-area-footer a,
body.single-tutor_quiz .tutor-learning-area-footer a {
  min-height: 44px;
}

body.single-lesson .tutor-learning-area .tutor-mark-as-complete-button,
body.single-tutor_quiz .tutor-learning-area .tutor-mark-as-complete-button {
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--ivm-navy) !important;
  color: #fff !important;
  font-weight: 750;
}

body.single-lesson .tutor-learning-area .tutor-mark-as-complete-button.completed,
body.single-tutor_quiz .tutor-learning-area .tutor-mark-as-complete-button.completed {
  background: #187a32 !important;
  color: #fff !important;
}

body.single-tutor_quiz .tutor-preview-trigger-text[role="button"] {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

body.single-tutor_quiz .tutor-badge-error {
  color: #b42318 !important;
}

body.single-tutor_quiz .tutor-quiz-details-btn {
  min-height: 44px !important;
  padding: 10px 14px !important;
  border-color: var(--ivm-navy) !important;
  background: var(--ivm-navy) !important;
  color: #fff !important;
}

body.single-tutor_quiz .tutor-quiz-attempts-item a {
  color: var(--ivm-navy) !important;
}

body.single-tutor_quiz .tutor-tiny-2.tutor-text-subdued {
  color: #56697b !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

body.single-lesson .tutor-preview-card-instructor,
body.single-tutor_quiz .tutor-preview-card-instructor {
  display: none !important;
}

body.single-tutor_quiz .tutor-modal .tutor-btn {
  min-height: 44px !important;
  padding: 10px 16px !important;
}

body.single-tutor_quiz .tutor-modal .tutor-btn-secondary {
  border-color: var(--ivm-border) !important;
  background: #fff !important;
  color: var(--ivm-navy) !important;
  box-shadow: 0 0 0 1px var(--ivm-border) !important;
}

body.single-tutor_quiz .tutor-modal .tutor-btn-destructive {
  border-color: #b42318 !important;
  background: #b42318 !important;
  color: #fff !important;
}

body.single-tutor_quiz .tutor-modal .tutor-btn-destructive:hover:not(:disabled) {
  border-color: #8f1d14 !important;
  background: #8f1d14 !important;
  color: #fff !important;
}

body.single-tutor_quiz .tutor-modal .tutor-modal-close {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  place-items: center;
  padding: 10px !important;
  border-color: var(--ivm-border) !important;
  border-radius: 10px;
  background: #fff !important;
  color: var(--ivm-navy) !important;
}

/* Espace apprenant Tutor LMS : largeur utile, cartes sobres et marque IVM. */
.tutor-dashboard-layout .tutor-dashboard-main {
  min-width: 0;
}

.tutor-dashboard-layout .tutor-dashboard-body {
  background: var(--ivm-soft-bg);
}

.tutor-dashboard-layout .tutor-dashboard-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 1160px !important;
  margin-inline: auto;
}

.tutor-dashboard-layout .tutor-dashboard-page-card,
.tutor-dashboard-layout .tutor-dashboard-welcome-card,
.tutor-dashboard-layout .tutor-dashboard-quick-tips-card {
  border-color: var(--ivm-border);
  border-radius: 18px;
  box-shadow: var(--ivm-shadow);
}

.tutor-dashboard-layout .tutor-dashboard-welcome-card {
  overflow: hidden;
  background: linear-gradient(125deg, #fff 0%, #fff 58%, #eef9fe 100%);
}

.tutor-dashboard-layout .tutor-dashboard-welcome-content {
  max-width: 650px;
}

.tutor-dashboard-layout .tutor-dashboard-welcome-content h3 {
  color: var(--ivm-navy);
}

.tutor-dashboard-layout .tutor-dashboard-welcome-content p,
.tutor-dashboard-layout .tutor-dashboard-quick-tips-card .tutor-text-secondary {
  color: var(--ivm-muted);
}

.tutor-dashboard-layout .tutor-dashboard-welcome-badge {
  background: var(--ivm-light-blue);
  color: var(--ivm-navy);
}

.tutor-dashboard-layout .tutor-dashboard-quick-tips-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.2fr);
  gap: 36px;
  align-items: start;
  background: #fff;
}

.tutor-dashboard-layout .tutor-btn-primary,
.tutor-dashboard-layout a.tutor-btn-primary,
.tutor-dashboard-layout button.tutor-btn-primary {
  border-color: var(--ivm-blue);
  background: var(--ivm-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(78, 163, 207, 0.22);
}

.tutor-dashboard-layout .tutor-btn-primary:hover,
.tutor-dashboard-layout a.tutor-btn-primary:hover,
.tutor-dashboard-layout button.tutor-btn-primary:hover {
  border-color: var(--ivm-navy);
  background: var(--ivm-navy);
  color: #fff;
}

.tutor-dashboard-layout a:focus-visible,
.tutor-dashboard-layout button:focus-visible,
.tutor-dashboard-layout input:focus-visible,
.tutor-dashboard-layout select:focus-visible,
.tutor-dashboard-layout textarea:focus-visible {
  outline: 3px solid rgba(78, 163, 207, 0.35);
  outline-offset: 2px;
}

.tutor-dashboard-layout .tutor-dashboard-lesson-notes .tutor-dashboard-page-card-body,
.tutor-dashboard-layout .tutor-dashboard-page-card-body {
  min-width: 0;
}

/* Réglages du compte Tutor 4 : contraste lisible et cohérent avec la charte IVM. */
.tutor-account-page-wrapper .tutor-profile-settings-section {
  background: var(--ivm-soft-bg) !important;
}

.tutor-account-page-wrapper .tutor-tabs-tab {
  border: 1px solid var(--ivm-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--ivm-navy) !important;
}

.tutor-account-page-wrapper .tutor-tabs-tab:hover,
.tutor-account-page-wrapper .tutor-tabs-tab:focus-visible {
  border-color: var(--ivm-blue) !important;
  background: var(--ivm-light-blue) !important;
  color: var(--ivm-navy) !important;
}

.tutor-account-page-wrapper .tutor-tabs-tab.tutor-tabs-tab-active,
.tutor-account-page-wrapper .tutor-tabs-tab[aria-selected="true"] {
  border-color: var(--ivm-navy) !important;
  background: var(--ivm-navy) !important;
  color: #fff !important;
}

.tutor-account-page-wrapper input,
.tutor-account-page-wrapper textarea,
.tutor-account-page-wrapper [contenteditable="true"] {
  color: #0c111d !important;
}

/* L'onglet Favoris est code en dur dans Tutor 4, alors qu'il n'est pas utilise par IVM. */
.tutor-dashboard-layout a[href*="/courses/wishlist"],
.tutor-dashboard a[href*="/courses/wishlist"] {
  display: none !important;
}

@media (max-width: 900px) {
  .ivm-catalog-hero__main {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .ivm-catalog-hero__content {
    max-width: 760px;
  }

  .ivm-catalog-financing {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }

  .ivm-catalog-financing__title {
    grid-column: 1 / -1;
  }

  .ivm-catalog-financing__option {
    border-bottom: 0;
  }

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

  .ivm-catalog-benefits li:nth-child(2) {
    border-right: 0;
  }

  .ivm-catalog-benefits li:nth-child(n + 3) {
    margin-top: 12px;
  }

  .ivm-catalog-heading,
  .ivm-catalog-support {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .ivm-catalog-support .ivm-catalog-button {
    justify-self: start;
  }

  body.woocommerce-account .woocommerce {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "navigation"
      "content";
    gap: 16px;
  }

  .tutor-dashboard-layout .tutor-dashboard-quick-tips-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 767px) {
  body.post-type-archive-courses {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .ivm-catalog-hero {
    padding: 46px 18px 0;
  }

  .ivm-catalog-hero h1 {
    font-size: clamp(36px, 10vw, 48px);
    overflow-wrap: anywhere;
  }

  .ivm-catalog-lead {
    margin-top: 18px;
    font-size: 17px;
  }

  .ivm-catalog-actions,
  .ivm-catalog-actions .ivm-catalog-button {
    width: 100%;
  }

  .ivm-catalog-financing {
    display: block;
    padding: 23px;
  }

  .ivm-catalog-financing__option {
    border-bottom: 1px solid var(--ivm-border);
  }

  .ivm-catalog-benefits {
    margin-top: 44px;
    padding: 18px 0;
  }

  body.post-type-archive-courses .course-archive-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-top: 44px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .ivm-catalog-heading {
    margin-bottom: 22px;
  }

  .ivm-catalog-heading h2 {
    font-size: 32px;
  }

  body.post-type-archive-courses .course-archive-page .tutor-course-filter[style] {
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    text-align: left !important;
  }

  body.post-type-archive-courses .course-archive-page .tutor-course-filter form,
  body.post-type-archive-courses .course-archive-page .tutor-form-select {
    width: 100%;
    min-width: 0;
  }

  body.post-type-archive-courses .tutor-course-card .tutor-card-body {
    min-height: 0;
  }

  body.post-type-archive-courses .tutor-course-card .tutor-card-footer > div {
    flex-wrap: wrap;
    gap: 12px;
  }

  body.home .elementor-element-14a787e .ivm-home-course-card .box-body {
    min-height: 0;
    padding: 20px !important;
  }

  body.home .elementor-element-14a787e .elementor-loop-container {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.home .elementor-element-14a787e .ivm-home-course-card .elementskit-info-box-title,
  body.home .elementor-element-14a787e .ivm-home-course-card .ivm-home-course-excerpt {
    overflow-wrap: anywhere;
  }

  body.home .elementor-element-14a787e .ivm-home-course-card .ivm-home-course-excerpt {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  body.home .elementor-element-14a787e .ivm-home-course-card__footer {
    flex-wrap: wrap;
    margin: auto -20px -20px !important;
  }

  body.home .elementor-element-14a787e .ivm-home-course-card__footer .btn-wraper,
  body.home .elementor-element-14a787e .ivm-home-course-card .elementskit-btn.ivm-home-course-card__cta {
    width: 100%;
    margin-left: 0;
    white-space: normal;
  }

  body.single-product .signin_sticky_form.ivm-enrollment-mobile {
    position: static !important;
    inset: auto !important;
    width: 100%;
    margin: 28px 0 34px;
    align-self: stretch;
  }

  body.single-product .signin_sticky_form.ivm-enrollment-mobile .elementor-widget-woocommerce-product-title {
    display: none !important;
  }

  .ivm-catalog-support {
    margin-top: 36px;
    padding: 25px;
  }

  .ivm-catalog-support .ivm-catalog-button {
    width: 100%;
  }

  body.woocommerce-checkout .page-header,
  body.woocommerce-cart .page-header {
    padding: 30px 0;
  }

  body.woocommerce-checkout .page-header-box h1,
  body.woocommerce-cart .page-header-box h1 {
    font-size: 34px !important;
    line-height: 1.12;
  }

  body.woocommerce-checkout .page-single-post,
  body.woocommerce-cart .page-single-post {
    padding: 38px 0;
  }

  .ivm-checkout-steps {
    margin-bottom: 18px;
  }

  .ivm-checkout-steps ol {
    gap: 6px;
  }

  .ivm-checkout-steps li {
    flex-direction: column;
    gap: 4px;
    min-height: 64px;
    padding: 6px 3px;
    font-size: 12px;
    text-align: center;
  }

  .ivm-checkout-steps li span {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  body.woocommerce-checkout .wc-block-checkout__main,
  body.woocommerce-checkout .wc-block-checkout__sidebar,
  body.woocommerce-cart .wc-block-cart__main,
  body.woocommerce-cart .wc-block-cart__sidebar {
    padding: 18px;
    border-radius: 14px;
  }

  body.woocommerce-checkout .wc-block-components-express-payment__title-container {
    position: static;
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
  }

  body.woocommerce-checkout .wc-block-components-express-payment__title {
    position: static;
    width: 100%;
    margin: 0;
    padding: 0;
    transform: none;
    color: var(--ivm-text);
    font-size: 18px;
    line-height: 1.3;
    text-align: left;
  }

  body.woocommerce-checkout .wc-block-components-express-payment__content {
    padding-top: 0;
  }

  body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
    min-height: 58px;
    padding-right: 14px;
    padding-left: 14px;
    white-space: normal;
  }

  body.woocommerce-account .woocommerce {
    gap: 16px;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    padding: 18px;
  }

  body.woocommerce-account .woocommerce-orders-table,
  body.woocommerce-account .woocommerce-orders-table tbody,
  body.woocommerce-account .woocommerce-orders-table tr,
  body.woocommerce-account .woocommerce-orders-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  body.woocommerce-account .woocommerce-orders-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body.woocommerce-account .woocommerce-orders-table tr {
    padding: 8px 14px;
    border-bottom: 1px solid var(--ivm-border);
  }

  body.woocommerce-account .woocommerce-orders-table tr:last-child {
    border-bottom: 0;
  }

  body.woocommerce-account .woocommerce-orders-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
    border: 0;
    text-align: right;
  }

  body.woocommerce-account .woocommerce-orders-table td::before {
    color: var(--ivm-text);
    font-weight: 750;
    text-align: left;
  }

  body.woocommerce-account .woocommerce-orders-table__cell-order-actions {
    justify-content: flex-end;
  }

  .tutor-dashboard-layout .tutor-dashboard-page {
    padding-inline: 16px;
  }

  .tutor-dashboard-layout .tutor-dashboard-welcome-card,
  .tutor-dashboard-layout .tutor-dashboard-quick-tips-card,
  .tutor-dashboard-layout .tutor-dashboard-page-card {
    border-radius: 14px;
  }

  .tutor-dashboard-layout .tutor-dashboard-welcome-content,
  .tutor-dashboard-layout .tutor-dashboard-quick-tips-card {
    padding: 22px;
  }

  .tutor-dashboard-layout .tutor-dashboard-welcome-banner {
    width: 100%;
    height: auto;
    min-height: 180px;
    padding: 0 22px 22px;
  }
}

@media (max-width: 520px) {
  .ivm-catalog-benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  .ivm-catalog-benefits li,
  .ivm-catalog-benefits li:nth-child(2) {
    margin-top: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    border-right: 0;
  }

  .ivm-catalog-benefits li::before {
    top: 8px;
  }
}

/* L'identité des intervenants est présentée dans le contenu éditorial lorsque
 * cela apporte une preuve utile. Le bloc Tutor générique ne doit pas exposer
 * les comptes techniques utilisés pour administrer les cours. */
.single-courses .tutor-course-details-instructors,
.single-course .tutor-course-details-instructors {
  display: none !important;
}

/* ElementsKit ajoute ses propres coches aux listes de la homepage. La puce
 * native restait visible en plus de l'icone et creait un doublon gris. Les
 * menus du footer n'ont pas non plus besoin d'un marqueur de liste. */
.ekit-stylish-list,
.ekit-template-content-footer .ekit-vertical-navbar-nav {
  margin-left: 0;
  padding-left: 0;
  list-style: none !important;
}

.ekit-stylish-list > li::marker,
.ekit-template-content-footer .ekit-vertical-navbar-nav li::marker {
  content: "";
}

/* ElementsKit ne declare plus toujours le conteneur de contenu en flex apres
 * certaines mises a jour. Sans cette regle, la coche prend toute la largeur
 * et passe au-dessus du texte. */
body.home .ekit-stylish-list .ekit-stylish-list-content,
body.single-product .ekit-stylish-list .ekit-stylish-list-content {
  display: flex;
  min-width: 0;
  align-items: flex-start;
}

body.home .ekit-stylish-list .ekit-stylish-list-content-icon,
body.single-product .ekit-stylish-list .ekit-stylish-list-content-icon {
  flex: 0 0 auto;
}

body.home .ekit-stylish-list .ekit-stylish-list-content-text,
body.single-product .ekit-stylish-list .ekit-stylish-list-content-text {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

/* Les articles sont de vrais supports de formation et non de simples billets.
 * Cette largeur et cette typographie gardent les contenus longs lisibles. */
body.single-post .post-entry.hirable-block-style {
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
  color: var(--ivm-text);
  font-size: 18px;
  line-height: 1.75;
}

body.single-post .post-entry.hirable-block-style > p:first-child {
  color: var(--ivm-navy);
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.55;
}

body.single-post .post-entry.hirable-block-style h2 {
  margin-top: 2.35em;
  margin-bottom: 0.7em;
  color: var(--ivm-navy);
  font-size: clamp(27px, 3vw, 36px) !important;
  line-height: 1.18 !important;
}

body.single-post .post-entry.hirable-block-style h3 {
  margin-top: 1.7em;
  margin-bottom: 0.55em;
  color: var(--ivm-navy);
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.3;
}

body.single-post .post-entry.hirable-block-style p,
body.single-post .post-entry.hirable-block-style li {
  color: var(--ivm-text);
}

body.single-post .post-entry.hirable-block-style ul,
body.single-post .post-entry.hirable-block-style ol {
  margin: 1.15em 0 1.5em;
  padding-left: 1.4em;
}

body.single-post .post-entry.hirable-block-style li {
  margin-bottom: 0.55em;
  padding-left: 0.3em;
  font-size: inherit;
  line-height: inherit;
}

body.single-post .post-entry.hirable-block-style .wp-block-quote {
  margin: 2.25em 0 !important;
  padding: 25px 28px !important;
  border: 1px solid var(--ivm-border);
  border-left: 5px solid var(--ivm-blue);
  border-radius: 18px;
  background: var(--ivm-soft-bg);
  box-shadow: 0 16px 38px rgba(17, 63, 116, 0.08);
}

body.single-post .post-entry.hirable-block-style .wp-block-quote p {
  margin: 0;
}

body.single-post .post-entry.hirable-block-style .wp-block-quote p + p {
  margin-top: 10px;
}

body.single-post .post-entry.hirable-block-style .wp-block-quote a {
  color: var(--ivm-navy);
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

body.single-post .post-entry.hirable-block-style a {
  overflow-wrap: anywhere;
}

/* Gabarit editorial IVM : le titre reste lisible sans dominer l'image et le
 * debut d'article se parcourt comme un guide professionnel. */
body.single-post .page-header {
  position: relative;
  overflow: hidden;
  padding: 44px 0 42px;
  background: linear-gradient(135deg, #173f7a 0%, #214f8d 62%, #173f7a 100%);
}

body.single-post .page-header::after {
  position: absolute;
  top: -150px;
  right: -90px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(185, 232, 251, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(185, 232, 251, 0.035), 0 0 0 84px rgba(185, 232, 251, 0.025);
  content: '';
  pointer-events: none;
}

body.single-post .page-header .page-header-box {
  position: relative;
  z-index: 1;
}

body.single-post .page-header h1.text-anime {
  width: min(100%, 1040px);
  margin: 0 auto 18px !important;
  color: #fff;
  font-size: clamp(38px, 3.4vw, 52px) !important;
  font-weight: 300 !important;
  letter-spacing: -0.028em;
  line-height: 1.08 !important;
  text-wrap: balance;
}

body.single-post .post-single-meta ul {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.single-post .post-single-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  line-height: 1.2;
}

body.single-post .post-single-meta a {
  color: #fff;
}

body.single-post .page-single-post {
  padding: 60px 0 92px;
}

body.single-post .post-single-image {
  max-width: 1120px;
  margin: 0 auto 44px;
}

body.single-post .post-single-image figure {
  overflow: hidden;
  margin: 0;
  border-radius: 24px;
  box-shadow: 0 22px 55px rgba(17, 63, 116, 0.14);
}

body.single-post .post-single-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7.6;
  object-fit: cover;
}

body.single-post .post-content {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body.single-post .post-entry.hirable-block-style {
  max-width: 820px;
}

body.single-post .post-entry.hirable-block-style > p:first-child {
  margin: 0 0 1.35em;
  padding: 21px 24px;
  border-left: 4px solid var(--ivm-blue);
  border-radius: 0 18px 18px 0;
  background: linear-gradient(90deg, var(--ivm-soft-bg) 0%, rgba(234, 246, 252, 0.34) 100%);
}

body.single-post .post-entry.hirable-block-style li::marker {
  color: #318fc1;
  font-weight: 800;
}

@media (max-width: 767px) {
  /* Le SVG du logo debordait dans la colonne Navigation a 390 px. */
  .ekit-template-content-footer .elementor-element-010fb3f svg {
    width: 160px;
    max-width: 100%;
    height: auto;
  }

  /* Tutor annule les marges de sa grille sur mobile. Une respiration laterale
   * evite les titres et listes colles aux bords de l'ecran. */
  body.single-courses .tutor-course-details-page.tutor-container,
  body.single-course .tutor-course-details-page.tutor-container {
    box-sizing: border-box;
    padding-right: 18px;
    padding-left: 18px;
  }

  body.single-post .post-entry.hirable-block-style {
    font-size: 16px;
    line-height: 1.68;
  }

  body.single-post .page-header {
    padding: 30px 0 28px;
  }

  body.single-post .page-header::after {
    top: -190px;
    right: -220px;
  }

  body.single-post .page-header .container,
  body.single-post .page-header .row,
  body.single-post .page-header .col-md-12,
  body.single-post .page-header .page-header-box {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  body.single-post .page-header h1.text-anime {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-bottom: 15px !important;
    padding-right: 20px;
    padding-left: 20px;
    font-size: clamp(28px, 7.8vw, 32px) !important;
    line-height: 1.12 !important;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
  }

  body.single-post .post-single-meta {
    padding-right: 14px;
    padding-left: 14px;
  }

  body.single-post .post-single-meta li {
    padding: 6px 10px;
    font-size: 12px;
  }

  body.single-post .page-single-post {
    padding: 34px 0 64px;
  }

  body.single-post .post-single-image {
    margin-bottom: 30px;
  }

  body.single-post .post-single-image figure {
    border-radius: 16px;
  }

  body.single-post .post-single-image img {
    aspect-ratio: 16 / 9;
  }

  body.single-post .post-entry.hirable-block-style > p:first-child {
    padding: 17px 18px;
    border-radius: 0 14px 14px 0;
  }

  body.single-post .post-entry.hirable-block-style .wp-block-quote {
    margin: 1.75em 0 !important;
    padding: 21px 20px !important;
    border-radius: 14px;
  }
}

@media (max-width: 390px) {
  /* Evite que le mot « pour » reste seul sur une ligne dans le hero. */
  body.home .elementor-element-5804c03 .elementor-heading-title {
    font-size: 24px !important;
    line-height: 1.16 !important;
  }
}

/* Tunnel d'inscription 2026 : une experience de formation, pas un panier generique. */
body.woocommerce-cart .page-header,
body.woocommerce-checkout .page-header {
  display: none !important;
}

body.woocommerce-cart .page-single-post,
body.woocommerce-checkout .page-single-post {
  padding: 46px 0 84px !important;
  background:
    radial-gradient(circle at 8% 4%, rgba(186, 234, 255, 0.34), transparent 28%),
    radial-gradient(circle at 94% 36%, rgba(78, 163, 207, 0.1), transparent 23%),
    #f7fbfd;
}

body.woocommerce-cart .page-single-post > .container,
body.woocommerce-checkout .page-single-post > .container {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
}

.ivm-flow-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0 0 30px;
  padding: 34px 38px 26px;
  border: 1px solid rgba(186, 234, 255, 0.22);
  border-radius: 26px;
  background:
    linear-gradient(124deg, rgba(255, 255, 255, 0.04), transparent 48%),
    linear-gradient(135deg, #143b70 0%, #1f4b86 62%, #286d9c 100%);
  color: #fff;
  box-shadow: 0 24px 58px rgba(18, 55, 103, 0.18);
}

.ivm-flow-hero::before,
.ivm-flow-hero::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(186, 234, 255, 0.2);
  border-radius: 50%;
  content: '';
}

.ivm-flow-hero::before {
  top: -112px;
  right: -62px;
  width: 250px;
  height: 250px;
}

.ivm-flow-hero::after {
  top: -58px;
  right: 8px;
  width: 142px;
  height: 142px;
  background: rgba(186, 234, 255, 0.07);
}

.ivm-flow-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.ivm-flow-hero__copy {
  max-width: 720px;
}

.ivm-flow-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 11px;
  padding: 5px 11px;
  border: 1px solid rgba(186, 234, 255, 0.38);
  border-radius: 999px;
  background: rgba(186, 234, 255, 0.12);
  color: #bfeeff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.ivm-flow-hero h1 {
  margin: 0;
  color: #fff !important;
  font-size: clamp(31px, 3.3vw, 46px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.ivm-flow-hero__copy p {
  max-width: 660px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.6;
}

.ivm-flow-hero__signal {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-width: 232px;
  padding: 14px 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.ivm-flow-hero__signal > span {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #bfeeff;
  color: var(--ivm-navy);
  font-size: 19px;
  font-weight: 900;
}

.ivm-flow-hero__signal strong,
.ivm-flow-hero__signal small {
  display: block;
}

.ivm-flow-hero__signal strong {
  color: #fff;
  font-size: 14px;
}

.ivm-flow-hero__signal small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.ivm-flow-hero .ivm-checkout-steps {
  width: 100%;
  margin: 27px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ivm-flow-hero .ivm-checkout-steps ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ivm-flow-hero .ivm-checkout-steps ol::before {
  position: absolute;
  top: 17px;
  right: 16.66%;
  left: 16.66%;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  content: '';
}

.ivm-flow-hero .ivm-checkout-steps li {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
  justify-content: stretch;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 650;
}

.ivm-flow-hero .ivm-checkout-steps li > span {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #173f73;
  color: rgba(255, 255, 255, 0.7);
}

.ivm-flow-hero .ivm-checkout-steps li strong,
.ivm-flow-hero .ivm-checkout-steps li small {
  display: block;
  min-width: 0;
}

.ivm-flow-hero .ivm-checkout-steps li strong {
  align-self: end;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.25;
}

.ivm-flow-hero .ivm-checkout-steps li small {
  align-self: start;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
}

.ivm-flow-hero .ivm-checkout-steps li.is-done > span,
.ivm-flow-hero .ivm-checkout-steps li.is-active > span {
  border-color: #bfeeff;
  background: #bfeeff;
  color: #173f73;
  box-shadow: 0 0 0 5px rgba(191, 238, 255, 0.1);
}

.ivm-flow-hero .ivm-checkout-steps li.is-active strong,
.ivm-flow-hero .ivm-checkout-steps li.is-done strong {
  color: #fff;
}

body.woocommerce-cart .wc-block-cart,
body.woocommerce-checkout .wc-block-checkout {
  align-items: start;
  gap: 26px;
  margin-bottom: 0;
}

body.woocommerce-cart .wc-block-cart.is-large {
  display: grid !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.72fr);
}

body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  border: 1px solid #d8e6ef;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(31, 75, 134, 0.09);
}

body.woocommerce-cart .wc-block-cart__main {
  overflow: hidden;
  padding: 0 !important;
}

body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  position: sticky;
  top: 26px;
  padding: 28px !important;
}

body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-cart-items tbody {
  display: block;
  width: 100%;
  margin: 0;
}

body.woocommerce-cart .wc-block-cart-items__header {
  display: none;
}

body.woocommerce-cart .wc-block-cart-items__row {
  display: grid;
  box-sizing: border-box;
  width: 100% !important;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  padding: 27px;
  border: 0 !important;
}

body.woocommerce-cart .wc-block-cart-item__image,
body.woocommerce-cart .wc-block-cart-item__product,
body.woocommerce-cart .wc-block-cart-item__total {
  display: block;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
}

body.woocommerce-cart .wc-block-cart-item__image img {
  width: 104px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 9px 20px rgba(31, 75, 134, 0.14);
}

body.woocommerce-cart .wc-block-components-product-name {
  display: block;
  margin: 3px 0 0;
  color: var(--ivm-navy) !important;
  font-size: 16px !important;
  font-weight: 780 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

.ivm-cart-funding-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-bottom: 7px;
  padding: 4px 9px;
  border: 1px solid #b9e3f5;
  border-radius: 999px;
  background: var(--ivm-light-blue);
  color: var(--ivm-navy);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

body.woocommerce-cart .wc-block-cart-item__prices {
  margin-top: 8px;
  color: var(--ivm-muted);
}

body.woocommerce-cart .wc-block-components-product-metadata__description {
  display: none;
}

body.woocommerce-cart .wc-block-components-product-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

body.woocommerce-cart .wc-block-components-product-details > span:not([class]) {
  display: none;
}

body.woocommerce-cart .wc-block-components-product-details span[aria-hidden="true"],
body.woocommerce-checkout .wc-block-components-product-details span[aria-hidden="true"] {
  display: none !important;
}

body.woocommerce-cart .wc-block-components-product-details > span[class*="wc-block-components-product-details__"] {
  display: grid;
  gap: 2px;
  padding: 8px 11px;
  border: 1px solid #dceaf2;
  border-radius: 10px;
  background: #f7fbfd;
}

body.woocommerce-cart .wc-block-components-product-details__name,
body.woocommerce-cart .wc-block-components-product-details__value {
  display: block;
}

body.woocommerce-cart .wc-block-components-product-details__name {
  color: var(--ivm-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

body.woocommerce-cart .wc-block-components-product-details__value {
  color: var(--ivm-text);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

body.woocommerce-cart .wc-block-cart-item__total {
  min-width: 92px;
  text-align: right;
}

body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price__value {
  color: var(--ivm-navy);
  font-size: 19px;
  font-weight: 850;
}

body.woocommerce-cart .wc-block-cart-item__remove-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px !important;
  padding: 5px 0 !important;
  color: #6c7d90 !important;
  font-size: 11px !important;
  text-decoration: none !important;
}

body.woocommerce-cart .wc-block-cart-item__remove-link::after {
  content: 'Retirer';
}

body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
  color: #a63d4a !important;
}

body.woocommerce-cart .wc-block-cart__totals-title,
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title {
  margin: 0 0 13px !important;
  color: var(--ivm-navy) !important;
  font-size: 23px !important;
  font-weight: 790 !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.woocommerce-cart .wc-block-components-totals-wrapper,
body.woocommerce-checkout .wc-block-components-totals-wrapper {
  border-color: #e2edf4 !important;
}

body.woocommerce-cart .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-item__value {
  color: var(--ivm-text);
}

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 18px;
  font-weight: 820;
}

body.woocommerce-cart .wc-block-cart__submit-container {
  margin-top: 17px;
}

body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  min-height: 58px;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #4ea3cf 0%, #2f82b1 100%) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 820 !important;
  box-shadow: 0 12px 25px rgba(47, 130, 177, 0.26) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  background: linear-gradient(135deg, #285f99 0%, #173f73 100%) !important;
  box-shadow: 0 15px 28px rgba(31, 75, 134, 0.3) !important;
  transform: translateY(-1px);
}

.ivm-cart-trust {
  margin-top: 22px;
  padding: 19px;
  border: 1px solid #d8eaf3;
  border-radius: 16px;
  background: linear-gradient(145deg, #f5fbfe 0%, #eef8fc 100%);
}

.ivm-cart-trust > strong {
  display: block;
  color: var(--ivm-navy);
  font-size: 13px;
  font-weight: 820;
}

.ivm-cart-trust ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ivm-cart-trust li {
  position: relative;
  margin: 0 !important;
  padding: 0 0 0 23px !important;
  color: #425d78;
  font-size: 11px;
  line-height: 1.4;
}

.ivm-cart-trust li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #c9efff;
  color: var(--ivm-navy);
  content: '✓';
  font-size: 9px;
  font-weight: 900;
}

.ivm-cart-trust p {
  margin: 15px 0 0;
  padding-top: 13px;
  border-top: 1px solid #d6e9f2;
  color: var(--ivm-muted);
  font-size: 11px;
  line-height: 1.45;
}

.ivm-cart-trust a {
  color: var(--ivm-navy);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.ivm-mode-dpc .wc-block-components-express-payment {
  display: none !important;
}

body.woocommerce-checkout .wc-block-checkout.is-large {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, 0.75fr);
}

body.woocommerce-checkout .wc-block-checkout__main {
  padding: 32px !important;
}

body.woocommerce-checkout .wc-block-components-checkout-step {
  margin: 0;
  padding: 25px 0 !important;
  border-bottom: 1px solid #e2edf4;
}

body.woocommerce-checkout .wc-block-components-checkout-step:first-child {
  padding-top: 0 !important;
}

body.woocommerce-checkout .wc-block-components-checkout-step:last-child {
  border-bottom: 0;
}

body.woocommerce-checkout .wc-block-components-checkout-step__heading {
  margin-bottom: 17px;
}

body.woocommerce-checkout .wc-block-components-checkout-step__title {
  color: var(--ivm-navy) !important;
  font-size: 20px !important;
  font-weight: 790 !important;
  letter-spacing: -0.015em;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
body.woocommerce-checkout .wc-block-components-address-form select {
  min-height: 52px;
  border: 1px solid #cfdfe9 !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #17365f !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input:focus {
  border-color: var(--ivm-blue) !important;
  box-shadow: 0 0 0 3px rgba(78, 163, 207, 0.14) !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item {
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 54px !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description {
  display: block !important;
  grid-column: 2;
  width: auto !important;
  padding: 0 !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name {
  color: var(--ivm-navy) !important;
  font-size: 14px !important;
  font-weight: 780 !important;
  line-height: 1.35 !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-details {
  display: grid;
  gap: 3px;
  margin-top: 7px;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-details > span {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  color: #60758b;
  font-size: 10px;
  line-height: 1.35;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-details__name {
  font-weight: 760;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__total-price {
  grid-column: 2;
  width: auto !important;
  margin-top: 8px;
  text-align: left !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__total-price .wc-block-components-product-price__value {
  color: var(--ivm-navy);
  font-size: 14px;
  font-weight: 820;
}

@media (max-width: 900px) {
  body.woocommerce-cart .wc-block-cart.is-large,
  body.woocommerce-checkout .wc-block-checkout.is-large {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.woocommerce-cart .wc-block-cart,
  body.woocommerce-checkout .wc-block-checkout {
    align-items: stretch;
  }

  body.woocommerce-cart .wc-block-cart__main,
  body.woocommerce-cart .wc-block-cart__sidebar,
  body.woocommerce-checkout .wc-block-checkout__main,
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    width: 100% !important;
    min-width: 0;
  }

  body.woocommerce-cart .wc-block-cart__sidebar,
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    position: static;
  }

  .ivm-flow-hero__top {
    align-items: flex-start;
  }

  .ivm-flow-hero__signal {
    min-width: 210px;
  }
}

@media (max-width: 680px) {
  body.woocommerce-cart .page-single-post,
  body.woocommerce-checkout .page-single-post {
    padding: 24px 0 54px !important;
  }

  body.woocommerce-cart .page-single-post > .container,
  body.woocommerce-checkout .page-single-post > .container {
    width: min(100% - 24px, 1180px);
  }

  .ivm-flow-hero {
    margin-bottom: 18px;
    padding: 25px 20px 20px;
    border-radius: 20px;
  }

  .ivm-flow-hero__top {
    display: block;
  }

  .ivm-flow-hero h1 {
    font-size: 29px;
  }

  .ivm-flow-hero__copy p {
    font-size: 13px;
  }

  .ivm-flow-hero__signal {
    display: none;
  }

  .ivm-flow-hero .ivm-checkout-steps {
    margin-top: 21px;
    padding-top: 17px;
  }

  .ivm-flow-hero .ivm-checkout-steps ol {
    gap: 5px;
  }

  .ivm-flow-hero .ivm-checkout-steps ol::before {
    top: 14px;
  }

  .ivm-flow-hero .ivm-checkout-steps li {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    text-align: center;
  }

  .ivm-flow-hero .ivm-checkout-steps li > span {
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    font-size: 11px;
  }

  .ivm-flow-hero .ivm-checkout-steps li strong {
    max-width: 88px;
    font-size: 10px;
    line-height: 1.2;
  }

  .ivm-flow-hero .ivm-checkout-steps li small {
    display: none;
  }

  body.woocommerce-cart .wc-block-cart__main,
  body.woocommerce-cart .wc-block-cart__sidebar,
  body.woocommerce-checkout .wc-block-checkout__main,
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    border-radius: 18px;
  }

  body.woocommerce-checkout .ivm-cart-trust {
    display: none;
  }

  body.woocommerce-cart .wc-block-cart-items__row {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 15px !important;
    padding: 19px !important;
  }

  body.woocommerce-cart .wc-block-cart-item__image {
    width: 76px !important;
  }

  body.woocommerce-cart .wc-block-cart-item__product {
    grid-column: 2 / -1 !important;
    grid-row: 1 !important;
  }

  body.woocommerce-cart .wc-block-cart-item__image img {
    width: 76px;
    height: 70px;
    border-radius: 11px;
  }

  body.woocommerce-cart .wc-block-cart-item__total {
    grid-column: 2 / -1 !important;
    grid-row: 2 !important;
    min-width: 0;
    margin-top: 3px;
    text-align: left;
  }

  body.woocommerce-cart .wc-block-cart__submit-container {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    margin-top: 17px !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.woocommerce-cart .wc-block-cart__submit-button {
    width: 100%;
  }

  body.woocommerce-cart .wc-block-components-product-name {
    font-size: 14px !important;
  }

  body.woocommerce-cart .wc-block-components-product-details {
    display: grid;
  }

  body.woocommerce-cart .wc-block-cart__sidebar,
  body.woocommerce-checkout .wc-block-checkout__main,
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    padding: 21px !important;
  }

  .ivm-cart-trust {
    padding: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.woocommerce-cart .wc-block-cart__submit-button,
  body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
    transition: none;
  }
}

/* Identification claire de la personne connectée dans le header public. */
a#btn-nav.ivm-connected-user-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 7px 12px 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 13px;
  background: #b9e8fb;
  box-shadow: 0 7px 18px rgba(6, 31, 73, 0.12);
  color: #173f7a;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

a#btn-nav.ivm-connected-user-link:hover,
a#btn-nav.ivm-connected-user-link:focus-visible {
  transform: translateY(-1px);
  background: #d5f2fd;
  box-shadow: 0 10px 24px rgba(6, 31, 73, 0.18);
}

a#btn-nav.ivm-connected-user-link .elementor-button-content-wrapper {
  display: inline-flex;
  align-items: center;
  flex-direction: row !important;
  gap: 9px;
  min-width: 0;
}

a#btn-nav.ivm-connected-user-link .elementor-button-icon {
  display: block;
  flex: 0 0 auto;
  margin: 0 !important;
  order: -1 !important;
}

a#btn-nav.ivm-connected-user-link .ivm-connected-user-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: #1d4b88;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

a#btn-nav.ivm-connected-user-link .elementor-button-text {
  display: inline-flex;
  min-width: 0;
  align-items: baseline;
  column-gap: 0.25em;
  color: #173f7a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

a#btn-nav.ivm-connected-user-link::after {
  content: '\203A';
  flex: 0 0 auto;
  margin-left: 1px;
  color: #318fc1;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.ivm-mobile-account-item,
.ivm-mobile-menu-user-badge {
  display: none !important;
}

@media (max-width: 1024px) {
  button.elementskit-menu-hamburger.ivm-connected-menu-toggle {
    position: relative;
  }

  button.elementskit-menu-hamburger.ivm-connected-menu-toggle .ivm-mobile-menu-user-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid !important;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #1d4b88;
    box-shadow: 0 3px 8px rgba(6, 31, 73, 0.24);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
  }

  nav.ekit-wid-con .ivm-mobile-account-item {
    display: block !important;
    padding: 14px 18px 10px;
  }

  nav.ekit-wid-con .ivm-mobile-account-link {
    display: flex !important;
    align-items: center;
    gap: 11px;
    padding: 11px 13px !important;
    border: 1px solid #c9e9f6;
    border-radius: 13px;
    background: #effaff;
    color: #173f7a !important;
    text-decoration: none;
  }

  nav.ekit-wid-con .ivm-mobile-account-avatar {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #1d4b88;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
  }

  nav.ekit-wid-con .ivm-mobile-account-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    text-align: left;
  }

  nav.ekit-wid-con .ivm-mobile-account-copy strong {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  nav.ekit-wid-con .ivm-mobile-account-copy small {
    color: #53708f;
    font-size: 11px;
    line-height: 1.2;
  }
}

@media (max-width: 767px) {
  a#btn-nav.ivm-connected-user-link {
    max-width: 148px;
    padding: 6px 9px 6px 6px;
  }

  a#btn-nav.ivm-connected-user-link .elementor-button-content-wrapper {
    gap: 7px;
  }

  a#btn-nav.ivm-connected-user-link .ivm-connected-user-avatar {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    font-size: 10px;
  }

  a#btn-nav.ivm-connected-user-link .ivm-connected-user-greeting {
    display: none;
  }

  a#btn-nav.ivm-connected-user-link .elementor-button-text {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
  }

  a#btn-nav.ivm-connected-user-link::after {
    font-size: 21px;
  }
}
.ivm-certificate-hidden-meta {
	display: none !important;
}

/* Mini-panier de formation : "Mon inscription" dans l'en-tete. */
.ivm-registration-header-slot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  order: 8;
}

.ivm-registration-mobile-slot {
  display: none;
}

.ivm-registration-header-layout {
  position: relative;
}

.ivm-registration-header-layout > .ivm-registration-header-slot {
  position: absolute;
  z-index: 20;
  top: 50%;
  right: 180px;
  margin: 0;
  transform: translateY(-50%);
}

.ivm-registration-toggle {
  position: relative;
  display: inline-flex;
  width: 142px;
  min-width: 142px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 22px 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  background: #b8e7fa;
  box-shadow: 0 7px 18px rgba(7, 39, 82, 0.16);
  color: #153f78 !important;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.ivm-registration-toggle:hover {
  background: #d6f3ff;
  box-shadow: 0 9px 22px rgba(7, 39, 82, 0.22);
  transform: translateY(-1px);
}

.ivm-registration-toggle:focus-visible,
.ivm-registration-close:focus-visible,
.ivm-registration-action:focus-visible,
.ivm-registration-card__remove:focus-visible {
  outline: 3px solid #56b7e5;
  outline-offset: 3px;
}

.ivm-registration-toggle__icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
}

.ivm-registration-toggle__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.ivm-registration-toggle__count {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(21, 63, 120, 0.12);
  color: #153f78;
  font-size: 10px;
  font-weight: 900;
}

.ivm-registration-toggle__count.has-training {
  background: #153f78;
  color: #fff;
}

.ivm-registration-overlay {
  position: fixed;
  z-index: 999990;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(8, 29, 58, 0.52);
  cursor: default;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.ivm-registration-drawer {
  position: fixed;
  z-index: 999999;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: min(430px, 100vw);
  flex-direction: column;
  background: #fff;
  box-shadow: -20px 0 50px rgba(7, 39, 82, 0.2);
  color: #18365d;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(102%);
  transition: transform 220ms ease, opacity 160ms ease;
  visibility: hidden;
}

.admin-bar .ivm-registration-drawer {
  top: 32px;
}

.ivm-registration-root.is-open .ivm-registration-overlay {
  opacity: 1;
  pointer-events: auto;
}

.ivm-registration-root.is-open .ivm-registration-drawer {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
}

body.ivm-registration-open {
  overflow: hidden;
}

.ivm-registration-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 25px 21px;
  border-bottom: 1px solid #dbe9f2;
  background: linear-gradient(135deg, #163f79 0%, #225798 100%);
  color: #fff;
}

.ivm-registration-drawer__eyebrow {
  margin: 0 0 5px;
  color: #b8e7fa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ivm-registration-drawer__header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 3vw, 31px);
  font-weight: 750;
  line-height: 1.08;
}

.ivm-registration-close {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.ivm-registration-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ivm-registration-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.ivm-registration-drawer__body {
  flex: 1 1 auto;
  padding: 24px;
  overflow-y: auto;
}

.ivm-registration-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  color: #315c78;
  font-size: 13px;
  font-weight: 750;
}

.ivm-registration-status span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #e5f8ef;
  color: #167247;
  font-size: 13px;
}

.ivm-registration-card {
  overflow: hidden;
  border: 1px solid #cae1ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 13px 30px rgba(20, 64, 112, 0.09);
}

.ivm-registration-card__image {
  display: block;
  height: 170px;
  overflow: hidden;
  background: #eaf5fb;
}

.ivm-registration-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.ivm-registration-card__content {
  padding: 18px 18px 15px;
}

.ivm-registration-card__tag {
  display: inline-flex;
  margin-bottom: 11px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e9f8ff;
  color: #1b6795;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.ivm-registration-card h3 {
  margin: 0;
  color: #163f79;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}

.ivm-registration-card h3 a {
  color: inherit;
  text-decoration: none;
}

.ivm-registration-card h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ivm-registration-card__session {
  margin: 12px 0 0;
  color: #5b6f84;
  font-size: 13px;
  line-height: 1.45;
}

.ivm-registration-card__session strong {
  color: #18365d;
}

.ivm-registration-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px 17px;
  border-top: 1px solid #e1ebf1;
  background: #f8fbfd;
}

.ivm-registration-card__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ivm-registration-card__price strong {
  color: #163f79;
  font-size: 17px;
  line-height: 1.2;
}

.ivm-registration-card__price small {
  color: #6b7f91;
  font-size: 11px;
  line-height: 1.3;
}

.ivm-registration-card__remove {
  color: #6a7886;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ivm-registration-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.ivm-registration-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 17px;
  border: 1px solid #17447f;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ivm-registration-action--primary {
  background: #17447f;
  color: #fff !important;
}

.ivm-registration-action--primary:hover {
  border-color: #0f3568;
  background: #0f3568;
  color: #fff !important;
  transform: translateY(-1px);
}

.ivm-registration-action--secondary {
  border-color: #b9d7e7;
  background: #fff;
  color: #17447f !important;
}

.ivm-registration-action--secondary:hover {
  border-color: #78bddd;
  background: #edf9ff;
  color: #123d76 !important;
}

.ivm-registration-empty {
  display: flex;
  min-height: 370px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 35px 10px;
  text-align: center;
}

.ivm-registration-empty__icon {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 25px;
  background: #eaf8ff;
  color: #2e83b3;
}

.ivm-registration-empty__icon svg {
  width: 49px;
  height: 49px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.ivm-registration-empty h3 {
  margin: 0 0 10px;
  color: #163f79;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.2;
}

.ivm-registration-empty p {
  max-width: 320px;
  margin: 0 0 24px;
  color: #5d7186;
  font-size: 14px;
  line-height: 1.6;
}

.ivm-registration-drawer__footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding: 17px 24px;
  border-top: 1px solid #dbe9f2;
  background: #eef9fe;
}

.ivm-registration-drawer__footer svg {
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: #217aa8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ivm-registration-drawer__footer p {
  margin: 0;
  color: #546d83;
  font-size: 12px;
  line-height: 1.4;
}

.ivm-registration-drawer__footer strong {
  color: #183f70;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .ivm-registration-header-slot {
    display: none;
  }

  .ivm-registration-mobile-slot {
    position: fixed;
    z-index: 10020;
    top: 18px;
    right: 70px;
    display: flex;
  }

  .admin-bar .ivm-registration-mobile-slot {
    top: 64px;
  }

  .ivm-registration-toggle {
    width: 46px;
    min-width: 46px;
    padding: 7px;
  }

  .ivm-registration-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .ivm-registration-toggle__count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 21px;
    height: 21px;
    border: 2px solid #fff;
    font-size: 10px;
  }
}

@media (max-width: 782px) {
  .admin-bar .ivm-registration-drawer {
    top: 46px;
  }
}

@media (max-width: 767px) {
  /* Conserve des titres de pages lisibles sans monopoliser le premier ecran. */
  body.page .page-header-box h1.text-anime {
    max-width: 100%;
    font-size: clamp(34px, 9.5vw, 38px) !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere;
  }

  /* Etend la zone tactile de l'icone d'affichage du mot de passe. */
  .woocommerce .password-input input {
    padding-right: 52px;
  }

  .woocommerce .show-password-input {
    top: 50%;
    right: 0;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translateY(-50%);
  }

  .ivm-registration-toggle {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 12px;
  }

  .ivm-registration-toggle__icon,
  .ivm-registration-toggle__icon svg {
    width: 21px;
    height: 21px;
  }

  .ivm-registration-drawer__header {
    padding: 21px 18px 18px;
  }

  .ivm-registration-drawer__body {
    padding: 18px;
  }

  .ivm-registration-card__image {
    height: 145px;
  }

  .ivm-registration-drawer__footer {
    padding: 14px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ivm-registration-toggle,
  .ivm-registration-overlay,
  .ivm-registration-drawer,
  .ivm-registration-action {
    transition: none;
  }
}
