/* =========================================================
   EMA Addons – site styles for the Elementor build.
   Same values as the approved HTML design (html-design/assets/css/ema.css).
   Elementor controls do most of the styling; this file only holds what the
   controls cannot do (hover/active details, extra breakpoints, animations).
   ========================================================= */

:root {
  --ema-navy: #0B1363;
  --ema-navy-hero: #0C2646;
  --ema-navy-btn: #163B8E;
  --ema-blue: #2E6AF2;
  --ema-blue-soft: #E9F0FD;
  --ema-gold: #B68C51;
  --ema-gold-light: #D9B26A;
  --ema-text: #4B5270;
  --ema-muted: #8B92AD;
  --ema-line: #E3E7F0;
  --ema-bg-soft: #F8FAFE;
  --ema-ease: cubic-bezier(.2, .65, .3, 1);
}

/* Icon widgets sized "auto" (round icons, arrows): no extra line space under the icon */
.elementor-widget-icon.elementor-widget__width-auto .elementor-icon-wrapper { display: flex; line-height: 0; }

/* Text Editor: no space after the last paragraph (the HTML has none; gaps come from the containers) */
.elementor-widget-text-editor p:last-child { margin-bottom: 0 !important; }

/* =========================================================
   MOTION – soft scroll reveal (see assets/js/ema-addons.js)
   ========================================================= */
.ema-motion .ema-anim:not(.ema-revealed),
.ema-motion .ema-stagger__item:not(.ema-revealed) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ema-ease), transform .8s var(--ema-ease);
  transition-delay: var(--ema-d, 0s);
}
.ema-motion .ema-anim--fade:not(.ema-revealed) { transform: none; }
.ema-motion .ema-anim--zoom:not(.ema-revealed) { transform: scale(.94); }
.ema-motion .ema-anim--left:not(.ema-revealed) { transform: translateX(-40px); }
.ema-motion .ema-anim--right:not(.ema-revealed) { transform: translateX(40px); }
.ema-motion .ema-anim.is-in:not(.ema-revealed),
.ema-motion .ema-stagger__item.is-in:not(.ema-revealed) { opacity: 1; transform: none; }

/* Never hide anything inside the Elementor editor */
.elementor-editor-active .ema-anim,
.elementor-editor-active .ema-stagger__item { opacity: 1 !important; transform: none !important; }

/* Buttons: 18px arrow that slides on hover (class "ema-btn" on the Button widget) */
.ema-btn .elementor-button-icon { font-size: 18px; transition: transform .25s ease; }
.ema-btn .elementor-button-icon i { font-size: 18px; }
.ema-btn .elementor-button:hover .elementor-button-icon { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .ema-anim, .ema-stagger__item { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =========================================================
   HEADER  (Theme Builder header, container class "ema-header")
   ========================================================= */
.ema-header { transition: box-shadow .3s ease; }
.ema-header.is-scrolled { box-shadow: 0 8px 30px rgba(17, 32, 94, .08) !important; }

/* Logo */
.ema-logo img { height: 66px !important; width: auto !important; max-width: none !important; }

/* ---------- Menu (Nav Menu widget, class "ema-nav") ---------- */
.ema-nav .elementor-nav-menu--main .elementor-item {
  position: relative;
  white-space: nowrap;
}
.ema-nav .elementor-nav-menu--main .elementor-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  width: auto;
  height: 2px;
  background: var(--ema-navy);
  opacity: 1 !important; /* Elementor hides pointers that are not hovered/active */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.ema-nav .elementor-nav-menu--main > .elementor-nav-menu > li:hover > .elementor-item::after,
.ema-nav .elementor-nav-menu--main > .elementor-nav-menu > li.current-menu-item > .elementor-item::after,
.ema-nav .elementor-nav-menu--main > .elementor-nav-menu > li.current-menu-parent > .elementor-item::after,
.ema-nav .elementor-nav-menu--main > .elementor-nav-menu > li.current-menu-ancestor > .elementor-item::after { transform: scaleX(1); }
.ema-nav .elementor-nav-menu--main > .elementor-nav-menu > li:hover > .elementor-item,
.ema-nav .elementor-nav-menu--main > .elementor-nav-menu > li.current-menu-parent > .elementor-item,
.ema-nav .elementor-nav-menu--main > .elementor-nav-menu > li.current-menu-ancestor > .elementor-item { color: var(--ema-blue) !important; }

/* Chevron next to each item */
.ema-nav .elementor-nav-menu--main .elementor-item .sub-arrow { padding: 0; margin-inline-start: 6px; font-size: 12px; transition: transform .2s; }
.ema-nav .elementor-nav-menu--main .elementor-item .sub-arrow i,
.ema-nav .elementor-nav-menu--main .elementor-item .sub-arrow svg { font-size: 12px; width: 12px; height: 12px; }
.ema-nav .elementor-nav-menu--main > .elementor-nav-menu > li:hover > .elementor-item .sub-arrow { transform: rotate(180deg); }

/* White rounded dropdown */
.ema-nav .elementor-nav-menu--main .sub-menu {
  min-width: 250px !important;
  width: auto !important;
  padding: 12px !important;
  margin-left: -18px !important;
  background: #fff !important;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(17, 32, 94, .14);
  animation: ema-drop .2s ease;
}
@keyframes ema-drop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ema-nav .elementor-nav-menu--main .sub-menu .elementor-sub-item {
  padding: 10px 14px !important;
  line-height: 1.6 !important;
  border-radius: 8px;
  border: 0 !important;
  white-space: nowrap;
}
.ema-nav .elementor-nav-menu--main .sub-menu .elementor-sub-item:hover { background: var(--ema-bg-soft) !important; color: var(--ema-blue) !important; }
.ema-nav .elementor-nav-menu--main .sub-menu .elementor-sub-item.elementor-item-active { background: var(--ema-bg-soft) !important; color: var(--ema-blue) !important; font-weight: 600; }

/* ---------- Burger + mobile menu (≤1024px) ---------- */
.ema-nav .elementor-menu-toggle {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 10px;
  justify-content: center;
}
.ema-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container {
  padding: 10px 24px 24px;
  background: #fff;
  box-shadow: 0 20px 30px rgba(17, 32, 94, .1);
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}
.ema-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-item {
  justify-content: space-between;
  padding: 14px 0 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  color: var(--ema-navy) !important;
  border-bottom: 1px solid var(--ema-line) !important;
  background: none !important;
}
.ema-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container .sub-arrow { display: none; }
.ema-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container .sub-menu {
  display: block !important;
  position: static !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 6px 0 12px 14px !important;
  background: none !important;
  box-shadow: none !important;
}
.ema-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container li.current-menu-item > .elementor-item,
.ema-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container li.current-menu-parent > .elementor-item,
.ema-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container li.current-menu-ancestor > .elementor-item { color: var(--ema-blue) !important; }
.ema-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-sub-item {
  padding: 7px 0 !important;
  border: 0 !important;
  background: none !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--ema-text) !important;
}
.ema-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-sub-item:hover { color: var(--ema-blue) !important; }
.ema-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-sub-item.elementor-item-active { font-weight: 600 !important; }

/* ---------- Right side: separator, search, "Nous contacter" ---------- */
.ema-search-toggle .elementor-icon-wrapper { display: flex; line-height: 0; }
.ema-cta-btn .elementor-button-icon { font-size: 18px; }
.ema-cta-btn .elementor-button-icon i { font-size: 18px; }

/* Smaller laptops: tighter menu, round contact button (same steps as the HTML) */
@media (max-width: 1320px) {
  .ema-nav { --e-nav-menu-horizontal-menu-item-margin: 8px !important; } /* 16px gap: Elementor uses half on each side */
  .ema-nav .elementor-nav-menu--main .elementor-item { font-size: 14px !important; }
}
@media (max-width: 1240px) {
  .ema-header-sep { display: none !important; }
  .ema-cta-btn .elementor-button-text { display: none; }
  .ema-cta-btn .elementor-button { padding: 13px !important; }
}
@media (max-width: 1100px) {
  .ema-nav { --e-nav-menu-horizontal-menu-item-margin: 6px !important; } /* 12px gap */
  .ema-nav .elementor-nav-menu--main .elementor-item { font-size: 13.5px !important; }
  .ema-logo img { height: 56px !important; }
}
@media (max-width: 767px) {
  .ema-logo img { height: 52px !important; }
  .ema-search-toggle .elementor-icon { padding: 11px !important; }
  .ema-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container { max-height: calc(100vh - 76px); }
}

/* =========================================================
   SEARCH FIELD (Search widget, class "ema-search-field") – the pill of the HTML hero search:
   icon, input and a gold "Rechercher" button. Used in the header popup and the homepage hero.
   ========================================================= */
.ema-search-field .e-search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 60px;
  padding: 0 6px 0 22px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.ema-search-field .e-search-label {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px !important;
  height: 22px;
  font-size: 22px;
  color: var(--ema-navy);
}
.ema-search-field .e-search-input-wrapper { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; }
.ema-search-field .e-search-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 !important;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 15px;
  color: var(--ema-navy);
}
.ema-search-field .e-search-input::placeholder { color: var(--ema-muted); opacity: 1; }
.ema-search-field .e-search-submit {
  flex-shrink: 0;
  margin: 0 !important;
  padding: 14px 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ema-gold) !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 22px !important;
  transition: background .2s;
}
.ema-search-field .e-search-submit:hover,
.ema-search-field .e-search-submit:focus { background: #A07842 !important; }
@media (max-width: 767px) {
  .ema-search-field .e-search-form { height: 56px; }
  .ema-search-field .e-search-submit { padding: 12px 14px !important; font-size: 13px !important; line-height: 13px !important; }
}
/* In the white popup: soft field instead of a shadow */
.ema-search-popup .ema-search-field .e-search-form { box-shadow: none; border: 1px solid var(--ema-line); background: var(--ema-bg-soft); }

/* =========================================================
   FOOTER  (Theme Builder footer, container class "ema-footer")
   ========================================================= */
.ema-cert img {
  width: 100% !important;
  max-width: 420px !important;
  padding: 6px;
  border-radius: 2px;
  background: #fff;
}
.ema-footer .elementor-icon-list-item a { transition: color .2s; }

/* =========================================================
   SHARED BLOCKS (homepage and inner pages)
   ========================================================= */
/* Cards that lift on hover (class "ema-lift" on a container) */
.ema-lift { transition: transform .35s ease, box-shadow .35s ease; }
.ema-lift:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(17, 32, 94, .13) !important; }

/* Tinted full-width buttons of the domain cards */
.ema-btn-tint .elementor-button { white-space: normal; transition: transform .2s; }
.ema-btn-tint .elementor-button:hover { transform: translateY(-2px); }

/* Title between two gold lines */
.ema-title-lines .elementor-heading-title { display: flex; align-items: center; justify-content: center; gap: 28px; }
.ema-title-lines .elementor-heading-title::before,
.ema-title-lines .elementor-heading-title::after { content: ""; flex-shrink: 0; width: 56px; height: 2px; background: #CFAD72; }

/* Formation / news card: image with rounded corners that zooms on hover; button at the bottom */
.ema-card-img { overflow: hidden; border-radius: 12px; }
.ema-card-img img { display: block; width: 100% !important; aspect-ratio: 16 / 9.6; object-fit: cover; border-radius: 12px; transition: transform .7s ease; }
.ema-card:hover .ema-card-img img { transform: scale(1.06); }
.ema-card-btn { margin-top: auto; }

/* Decorative soft circles behind a section (class "ema-blobs") */
.ema-blobs { overflow: hidden; }
.ema-blobs::before,
.ema-blobs::after {
  content: "" !important;
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  background: #EDF2FC !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}
.ema-blobs::before { width: 300px !important; height: 300px !important; left: -120px !important; top: -60px !important; }
.ema-blobs::after { width: 380px; height: 380px; right: -140px; top: 40px; }
.ema-blobs > .e-con-inner { position: relative; z-index: 1; }

/* =========================================================
   HOMEPAGE
   ========================================================= */
/* ---------- Hero: navy text area, photo on the right that slowly zooms out ---------- */
.ema-hero { position: relative; overflow: hidden; }
.ema-hero__photo {
  position: absolute !important;
  top: 0;
  bottom: 0;
  right: 0;
  left: 32%;
  z-index: 0;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  animation: ema-kenburns 18s ease-out both;
}
@keyframes ema-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.ema-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, var(--ema-navy-hero) 0%, var(--ema-navy-hero) 32%, rgba(12, 38, 70, .78) 40%, rgba(12, 38, 70, .3) 52%, rgba(12, 38, 70, 0) 64%);
}
.ema-hero__wrap { position: relative; z-index: 2; }
.ema-hero__content { max-width: 620px; }
.ema-hero-eyebrow .elementor-heading-title::after { content: ""; display: block; width: 64px; height: 2px; margin-top: 14px; background: var(--ema-gold-light); }
.ema-search-field--hero { width: 100%; max-width: 600px !important; }
.ema-search-field .e-search-submit i,
.ema-search-field .e-search-submit svg { width: 18px !important; height: 18px !important; font-size: 18px !important; transition: transform .25s ease; }
.ema-search-field .e-search-submit:hover i,
.ema-search-field .e-search-submit:hover svg { transform: translateX(4px); }

/* ---------- Domain cards ---------- */
.ema-domain-title .elementor-heading-title { min-height: 58px; }

/* ---------- Stats bar ---------- */
.ema-stats > .ema-stat + .ema-stat { border-left: 1px solid var(--ema-line); }
.ema-stats > .ema-stat--rating,
.ema-stats > .ema-stat--rating + .ema-stat { border-left: 0; }
.ema-stat--rating { margin: -40px 22px !important; }
.ema-rating-of { font-size: 20px; font-weight: 500; line-height: 1; color: var(--ema-muted); }

/* ---------- News slider ---------- */
/* room for the card shadows (the HTML slider has 10px 6px of padding) */
.ema-news-carousel .e-n-carousel { padding-top: 10px !important; padding-left: 6px !important; padding-right: 6px !important; margin: 0 -6px; }
.ema-news-carousel .swiper-pagination-bullet { opacity: 1; }
.ema-news-carousel .swiper-pagination-bullet-active { background: #103573 !important; }

/* ---------- Client logos ---------- */
/* logos track between the two arrows: 40px arrow + 24px gap on each side, like the HTML */
.ema-clients-carousel .elementor-image-carousel-wrapper { width: calc(100% - 128px) !important; margin: 0 auto !important; }
.ema-clients-carousel .swiper-slide-inner { margin: 0 !important; line-height: 0 !important; }
.ema-clients-carousel .swiper-slide { display: flex; align-items: center; justify-content: center; height: 100px; padding: 0 20px; }
.ema-clients-carousel .swiper-slide img,
.ema-clients-carousel .swiper-slide-image { width: auto !important; max-height: 76px; }
.ema-clients-carousel .elementor-swiper-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F1F1F3;
  color: #777;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ema-clients-carousel .elementor-swiper-button i { font-size: 20px; }

@media (max-width: 1024px) {
  .ema-hero__photo { left: 0; }
  .ema-hero::after { background: linear-gradient(90deg, rgba(12, 38, 70, .95) 0%, rgba(12, 38, 70, .86) 34%, rgba(12, 38, 70, .35) 56%, rgba(12, 38, 70, 0) 72%); }
  .ema-stats > .ema-stat { border-left: 0 !important; }
  .ema-stat--rating { grid-column: 1 / -1; grid-row: 1; margin: 0 auto 10px !important; }
}
@media (max-width: 767px) {
  .ema-hero::after { background: linear-gradient(180deg, rgba(12, 38, 70, .82) 0%, rgba(12, 38, 70, .9) 100%); }
  .ema-search-field .e-search-submit i,
  .ema-search-field .e-search-submit svg { display: none; }
  .ema-domain-title .elementor-heading-title { min-height: 0; }
  .ema-title-lines .elementor-heading-title { gap: 14px; }
  .ema-title-lines .elementor-heading-title::before,
  .ema-title-lines .elementor-heading-title::after { width: 28px; }
  .ema-stats > .ema-stat + .ema-stat { border-top: 1px solid var(--ema-line); }
  .ema-stats > .ema-stat--rating + .ema-stat { border-top: 0; }
  .ema-clients-carousel .elementor-swiper-button { display: none !important; }
  .ema-clients-carousel .elementor-image-carousel-wrapper { width: 100% !important; }
  /* the next news card peeks in from the right (cards are 88% wide, like the HTML) */
  .ema-news-carousel .e-n-carousel { padding-right: calc(12% + 6px) !important; }
}

/* "Voir plus" style links */
.ema-link-underline a:hover { text-decoration: underline; }

/* Lists with a coloured dot (class "ema-dot-list" on an Icon List): 9px dot, text 26px from the left, like the HTML */
.ema-dot-list .elementor-icon-list-icon { width: 9px !important; min-width: 9px; padding: 0 !important; margin-inline-end: 17px; }
.ema-dot-list .elementor-icon-list-text { padding: 0 !important; }

/* =========================================================
   INNER PAGES (Nos solutions template, then the other sections)
   ========================================================= */
.ema-accent { color: var(--ema-blue); }
.ema-nowrap { white-space: nowrap; }
.ema-section { overflow-x: clip; }

/* ---------- Page hero: navy text area, photo on the right (class "ema-page-hero") ---------- */
.ema-page-hero { position: relative; overflow: hidden; }
.ema-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, var(--ema-navy-hero) 0%, var(--ema-navy-hero) 32%, rgba(12, 38, 70, .78) 40%, rgba(12, 38, 70, .3) 52%, rgba(12, 38, 70, 0) 64%);
}
.ema-page-hero__content { max-width: 560px !important; }
.ema-breadcrumb .elementor-heading-title { display: flex; flex-wrap: wrap; gap: 8px; }
.ema-breadcrumb a { color: inherit !important; transition: color .2s; }
.ema-breadcrumb a:hover { color: var(--ema-gold-light) !important; }
.ema-breadcrumb__current { color: #fff; font-weight: 600; }
.ema-page-hero__title .elementor-heading-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 18px;
  border-radius: 4px;
  background: var(--ema-gold);
}
.ema-page-hero__sub { max-width: 480px !important; }

/* ---------- Tabs: pill menu of the section, sticky under the header ---------- */
.ema-tabs { position: sticky !important; top: 96px; z-index: 40; }
.ema-tabs__list { overflow-x: auto; scrollbar-width: none; }
.ema-tabs__list::-webkit-scrollbar { display: none; }
.ema-tab .elementor-button { white-space: nowrap; transition: background .25s, color .25s; }

/* ---------- Text + image ---------- */
@media (min-width: 1025px) {
  .ema-split--reverse > .ema-split__media { order: -1; }
}
.ema-split__media { position: relative; }
.ema-split__media::before {
  content: "" !important;
  position: absolute;
  inset: 28px -22px -22px 28px !important;
  width: auto !important;
  height: auto !important;
  z-index: 0;
  border: 0 !important;
  border-radius: 24px !important;
  background: linear-gradient(135deg, #E3ECFD, #F4EBDD) !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}
.ema-split--reverse .ema-split__media::before { inset: 28px 28px -22px -22px !important; }
.ema-split__img { position: relative; z-index: 1; width: 100% !important; aspect-ratio: 4 / 3; flex-shrink: 0; }
.ema-split__img img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(17, 32, 94, .07);
}
.ema-float-badge { position: absolute !important; z-index: 2; left: -26px; bottom: 34px; }
.ema-split--reverse .ema-float-badge { left: auto; right: -26px; }
.ema-float-badge .elementor-icon-box-title { margin: 0 !important; }
.ema-float-badge .elementor-icon-box-description { margin: 0; }
.ema-float { animation: ema-float 5s ease-in-out infinite; }
@keyframes ema-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Chips (Icon List without icons, class "ema-chips") */
.ema-chips .elementor-icon-list-items { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.ema-chips .elementor-icon-list-item {
  margin: 0 !important;
  padding: 9px 16px !important;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ema-line);
  box-shadow: 0 4px 12px rgba(17, 32, 94, .05);
  transition: background .25s, color .25s, border-color .25s;
}
.ema-chips .elementor-icon-list-item::after { display: none !important; }
.ema-chips .elementor-icon-list-text { padding: 0 !important; transition: color .25s; }
.ema-chips .elementor-icon-list-item:hover { background: var(--ema-navy); border-color: var(--ema-navy); }
.ema-chips .elementor-icon-list-item:hover .elementor-icon-list-text { color: #fff !important; }

/* ---------- Section head ---------- */
.ema-section-head { max-width: 760px !important; margin-left: auto !important; margin-right: auto !important; }

/* ---------- Feature cards ---------- */
.ema-feature__icon .elementor-icon { transition: background .3s, color .3s, transform .3s; }
.ema-feature:hover .ema-feature__icon .elementor-icon { background-color: var(--ema-navy) !important; color: #fff !important; transform: rotate(-6deg); }
/* balanced rows on desktop: 4 = 4, 5 = 5, 6 = 3 + 3, 7 = 4 + 3 centred, 8 = 4 + 4 */
@media (min-width: 1025px) {
  .ema-features:has(> :nth-child(4):last-child) { --e-con-grid-template-columns: repeat(4, 1fr) !important; }
  .ema-features:has(> :nth-child(5):last-child) { --e-con-grid-template-columns: repeat(5, 1fr) !important; }
  .ema-features:has(> :nth-child(6):last-child) { --e-con-grid-template-columns: repeat(3, 1fr) !important; }
  .ema-features:has(> :nth-child(8):last-child) { --e-con-grid-template-columns: repeat(4, 1fr) !important; }
  .ema-features:has(> :nth-child(7):last-child),
  .ema-tiles:has(> :nth-child(7):last-child) { --e-con-grid-template-columns: repeat(8, 1fr) !important; }
  .ema-features:has(> :nth-child(7):last-child) > *,
  .ema-tiles:has(> :nth-child(7):last-child) > * { grid-column: span 2; }
  .ema-features:has(> :nth-child(7):last-child) > :nth-child(5),
  .ema-tiles:has(> :nth-child(7):last-child) > :nth-child(5) { grid-column: 2 / span 2; }
}
/* tablet: 2 per row, a last odd card is centred */
@media (min-width: 768px) and (max-width: 1024px) {
  .ema-features > *,
  .ema-tiles > * { grid-column: span 2; }
  .ema-features > :last-child:nth-child(odd),
  .ema-tiles > :last-child:nth-child(odd) { grid-column: 2 / span 2; }
}

/* ---------- Solution tiles ---------- */
.ema-tile__img { position: relative; overflow: hidden; width: 100% !important; aspect-ratio: 16 / 10; flex-shrink: 0; }
.ema-tile__img img { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .7s ease; }
.ema-tile:hover .ema-tile__img img { transform: scale(1.07); }
.ema-tile__link .elementor-heading-title { display: flex; align-items: center; gap: 8px; }
.ema-tile__link .ema-icon { width: 16px; height: 16px; transition: transform .25s; }
.ema-tile:hover .ema-tile__link .ema-icon { transform: translateX(4px); }

/* ---------- Download block ---------- */
@media (max-width: 1024px) {
  .ema-download > .ema-download__btn { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Steps (Notre démarche) ---------- */
.ema-step { position: relative; }
.ema-step:not(:last-child)::after {
  content: "\2192" !important;
  position: absolute;
  inset: auto !important;
  right: -27px !important;
  top: 34% !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  background: none !important;
  opacity: 1 !important;
  font-size: 22px;
  line-height: 1.6;
  color: var(--ema-navy-btn);
}
.ema-step__num { position: absolute !important; top: -14px; left: -10px; z-index: 2; width: auto !important; }
.ema-step__num .elementor-heading-title {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #E3ECFD;
  border: 4px solid #fff;
}
.ema-step__img { position: relative; width: 100% !important; aspect-ratio: 16 / 11; flex-shrink: 0; }
.ema-step__img img { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 12px; }
.ema-step__icon { margin-top: -32px !important; position: relative; z-index: 1; }
.ema-step__icon .elementor-icon { box-shadow: 0 8px 20px rgba(17, 32, 94, .12); }
.ema-step__text p { padding: 0 8px; }
@media (min-width: 768px) and (max-width: 1024px) {
  .ema-step:nth-child(2)::after { display: none !important; }
}

/* ---------- CTA band ---------- */
.ema-cta::before,
.ema-cta::after {
  content: "" !important;
  position: absolute;
  z-index: 0;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .06) !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  pointer-events: none;
}
.ema-cta::before { inset: auto !important; width: 320px !important; height: 320px !important; right: -80px !important; top: -140px !important; }
.ema-cta::after { inset: auto !important; width: 200px !important; height: 200px !important; right: 220px !important; bottom: -120px !important; background: rgba(217, 178, 106, .14) !important; }
.ema-cta > * { position: relative; z-index: 1; }
.ema-cta__text { max-width: 640px !important; }

@media (max-width: 1024px) {
  .ema-page-hero::after { background: linear-gradient(90deg, rgba(12, 38, 70, .96) 0%, rgba(12, 38, 70, .88) 40%, rgba(12, 38, 70, .45) 70%, rgba(12, 38, 70, .15) 100%); }
  .ema-split__media { max-width: 640px; }
}
@media (max-width: 767px) {
  .ema-tabs { top: 76px; }
  .ema-page-hero::after { background: rgba(12, 38, 70, .86); }
  .ema-split__media::before { inset: 16px -10px -14px 16px !important; }
  .ema-split--reverse .ema-split__media::before { inset: 16px 16px -14px -10px !important; }
  .ema-float-badge { left: 10px; bottom: -22px; }
  .ema-split--reverse .ema-float-badge { right: 10px; }
  .ema-step::after { display: none !important; }
}
@media (max-width: 400px) {
  .ema-page-hero__title .elementor-heading-title { font-size: 29px !important; }
}
@media (max-width: 330px) {
  .ema-page-hero .ema-nowrap { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .ema-float, .ema-hero__photo { animation: none !important; }
}
@media (max-width: 1024px) {
  /* CTA band in one column: the button takes the full width, like the HTML */
  .ema-cta > .elementor-widget-button .elementor-button { width: 100%; }
}

/* =========================================================
   FORMATION ENTREPRISE (univers cards, thématique links, course tables)
   ========================================================= */
/* ---------- "Nos univers de formation" cards ---------- */
.ema-univers__img { position: relative; width: 100% !important; aspect-ratio: 16 / 11; flex-shrink: 0; overflow: hidden; border-radius: 12px; }
.ema-univers__img img { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .7s ease; }
.ema-univers__card:hover .ema-univers__img img { transform: scale(1.06); }
.ema-univers__icon { position: relative; z-index: 1; }
.ema-univers__icon .elementor-icon { box-shadow: 0 8px 20px rgba(17, 32, 94, .12); }
.ema-univers__lead .elementor-heading-title::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 14px; border-radius: 3px; background: var(--ema-blue); }
.ema-univers__list .elementor-icon-list-item { position: relative; padding-left: 20px !important; }
.ema-univers__list .elementor-icon-list-item::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--ema-blue); }
.ema-univers__list .elementor-icon-list-text { padding: 0 !important; }
.ema-univers__link .elementor-icon-list-icon {
  width: 40px !important;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ema-blue-soft);
  justify-content: center;
  transition: background .25s, transform .25s;
}
.ema-univers__link .elementor-icon-list-icon i { transition: color .25s; }
.ema-univers__link .elementor-icon-list-item:hover .elementor-icon-list-icon { background: var(--ema-navy); transform: translateX(3px); }
.ema-univers__link .elementor-icon-list-item:hover .elementor-icon-list-icon i { color: #fff !important; }

/* ---------- Thématique quick links (row of pills, the label and the pills wrap together) ---------- */
.ema-theme-nav { max-width: 1000px !important; margin-left: auto !important; margin-right: auto !important; }
.ema-theme-nav .elementor-widget-icon-list,
.ema-theme-nav .elementor-widget-icon-list > .elementor-widget-container,
.ema-theme-nav .elementor-icon-list-items { display: contents !important; }
.ema-theme-nav .elementor-icon-list-item {
  margin: 0 !important;
  padding: 0 !important;
}
.ema-theme-nav .elementor-icon-list-item::after { display: none !important; }
.ema-theme-nav .elementor-icon-list-item > a {
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ema-line);
  transition: background .25s, border-color .25s;
}
.ema-theme-nav .elementor-icon-list-text { padding: 0 !important; transition: color .25s; }
.ema-theme-nav .elementor-icon-list-item > a:hover { background: var(--ema-navy); border-color: var(--ema-navy); }
.ema-theme-nav .elementor-icon-list-item > a:hover .elementor-icon-list-text { color: #fff !important; }

/* ---------- Course table (EMA Tableau de formations widget) ---------- */
.ema-theme {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 32, 94, .07);
  border: 1px solid rgba(17, 32, 94, .06);
  scroll-margin-top: 170px;
}
.ema-theme__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 26px;
  background: linear-gradient(120deg, var(--ema-theme-from, #0B1363) 0%, var(--ema-theme-to, #1A3A8F) 100%);
}
.ema-theme__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
  line-height: 0;
}
.ema-theme__icon i, .ema-theme__icon svg { width: 24px; height: 24px; font-size: 24px; vertical-align: 0; fill: currentColor; }
.ema-theme__title { flex: 1; margin: 0; color: #fff; font-size: 20px; font-weight: 700; line-height: 1.2; }
.ema-theme__count {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ema-gold);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
/* reset the theme's table styles */
.ema-theme__table { width: 100%; margin: 0; border: 0; border-collapse: collapse; border-spacing: 0; font-size: 16px; }
.ema-theme__table th,
.ema-theme__table td { border: 0; line-height: 1.6; vertical-align: middle; }
.ema-theme__table th {
  padding: 14px 26px;
  background: #EEF3FC;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ema-navy);
}
.ema-theme__table th:last-child,
.ema-theme__table td:last-child { width: 150px; }
.ema-theme__table td { padding: 0 26px; border-top: 1px solid var(--ema-line); font-size: 15.5px; background: #fff; }
.ema-theme__table tbody tr:nth-child(odd) > td { background: #fff; }
.ema-theme__table tbody tr:nth-child(even) > td { background: #FAFBFE; }
.ema-theme__table td a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  color: var(--ema-navy);
  font-weight: 500;
  transition: color .2s;
}
.ema-theme__table td a .ema-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; color: var(--ema-blue); }
.ema-theme__table tbody tr:hover > td { background: #F1F5FD; }
.ema-theme__table tbody tr:hover td a { color: var(--ema-blue); }
.ema-theme__table tbody tr:hover td a .ema-icon { opacity: 1; transform: none; }
.ema-theme__duration { display: inline-flex; align-items: center; gap: 8px; color: var(--ema-text); white-space: nowrap; }
.ema-theme__duration .ema-icon { width: 16px; height: 16px; color: var(--ema-gold); }

@media (max-width: 767px) {
  .ema-theme__head { padding: 16px 18px; flex-wrap: wrap; }
  .ema-theme__title { font-size: 17px; flex-basis: calc(100% - 60px); }
  .ema-theme__count { margin-left: 60px; }
  .ema-theme__table th { padding: 12px 16px; }
  .ema-theme__table td { padding: 0 16px; font-size: 14.5px; }
  .ema-theme__table th:last-child,
  .ema-theme__table td:last-child { width: 96px; }
  .ema-theme__table td a .ema-icon { display: none; }
  .ema-theme { scroll-margin-top: 150px; }
}
.ema-theme .ema-theme__table thead tr th { border: 0 !important; }
.ema-theme-nav .elementor-heading-title { display: block; }

/* =========================================================
   SECTEUR PUBLIC, SPORT
   ========================================================= */
/* Compact feature cards (audience lists): icon + title in a row */
@media (min-width: 1025px) {
  .ema-features:has(> :nth-child(9):last-child) { --e-con-grid-template-columns: repeat(3, 1fr) !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .ema-features--compact > *,
  .ema-features--compact > :last-child:nth-child(odd) { grid-column: auto; }
}

/* =========================================================
   À PROPOS (Qui sommes-nous, Pédagogie et expertise, Nos partenaires)
   ========================================================= */
/* Two text + image blocks in one section (zig-zag) */
.ema-split + .ema-split { margin-top: 110px !important; }

/* ---------- Two pôles ---------- */
.ema-poles { max-width: 1080px !important; margin-left: auto !important; margin-right: auto !important; }
.ema-pole__img { position: relative; width: 100% !important; aspect-ratio: 16 / 9; flex-shrink: 0; overflow: hidden; }
.ema-pole__img img { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .7s ease; }
.ema-pole:hover .ema-pole__img img { transform: scale(1.06); }
.ema-pole__icon { position: relative; z-index: 1; }
.ema-pole__icon .elementor-icon { box-shadow: 0 8px 20px rgba(17, 32, 94, .12); }
.ema-pole:hover .ema-univers__link .elementor-icon-list-icon { background: var(--ema-navy); transform: translateX(3px); }
.ema-pole:hover .ema-univers__link .elementor-icon-list-icon i { color: #fff !important; }

/* ---------- Pedagogical cycle ---------- */
.ema-cycle__step.ema-lift:hover { box-shadow: 0 22px 44px rgba(17, 32, 94, .12) !important; }
.ema-cycle__step:not(:last-child)::after {
  content: "" !important;
  position: absolute;
  inset: auto !important;
  right: -24px !important;
  top: 50% !important;
  width: 12px !important;
  height: 12px !important;
  background: none !important;
  opacity: 1 !important;
  border-style: solid !important;
  border-color: inherit !important;
  border-width: 2.5px 2.5px 0 0 !important;
  border-radius: 0 !important;
  transform: translateY(-50%) rotate(45deg);
}
.ema-cycle__icon .elementor-icon { transition: transform .35s ease; }
.ema-cycle__step:hover .ema-cycle__icon .elementor-icon { transform: scale(1.08) rotate(-5deg); }

/* ---------- Coloured icon cards ---------- */
.ema-icard.ema-lift:hover { box-shadow: 0 22px 44px rgba(17, 32, 94, .1) !important; }
.ema-icards--solid .ema-icard.ema-lift:hover { box-shadow: 0 22px 44px rgba(17, 32, 94, .13) !important; }
.ema-icard__icon .elementor-icon { transition: transform .35s ease; }
.ema-icard:hover .ema-icard__icon .elementor-icon { transform: scale(1.08) rotate(-5deg); }
.ema-note { max-width: 780px !important; margin-left: auto !important; margin-right: auto !important; }

/* ---------- Text cards: list with blue dots ---------- */
.ema-list .elementor-icon-list-item { position: relative; padding-left: 22px !important; }
.ema-list .elementor-icon-list-item::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--ema-blue); }
.ema-list .elementor-icon-list-text { padding: 0 !important; }

/* ---------- Experts ---------- */
.ema-text-cols { max-width: 1080px !important; margin-left: auto !important; margin-right: auto !important; }
.ema-expert { position: relative; aspect-ratio: 3 / 4; }
.ema-expert__img { position: absolute !important; inset: 0; width: 100% !important; height: 100%; }
.ema-expert__img img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .7s ease; }
.ema-expert:hover .ema-expert__img img { transform: scale(1.06); }
.ema-expert__cap { position: absolute !important; left: 12px; right: 12px; bottom: 12px; width: auto !important; }
.ema-ribbon { max-width: 920px !important; margin-left: auto !important; margin-right: auto !important; }
.ema-ribbon strong { color: #C28D42; }
.ema-ribbon__icon .elementor-icon { display: block; line-height: 0; }

/* ---------- Partner cards ---------- */
.ema-partner__img { width: 100% !important; text-align: center; line-height: 0; }
.ema-partner__img img { max-width: 72% !important; max-height: 82px; width: auto; object-fit: contain; }
.ema-partner__text strong { color: var(--ema-navy); }
.ema-btn--sm-icon .elementor-button-icon,
.ema-btn--sm-icon .elementor-button-icon i { font-size: 16px; }

@media (max-width: 1100px) {
  .ema-cycle { --e-con-grid-template-columns: repeat(6, 1fr) !important; }
  .ema-cycle > * { grid-column: span 2; }
  .ema-cycle > :nth-child(4) { grid-column: 2 / span 2; }
  .ema-cycle__step::after { display: none !important; }
}
@media (max-width: 1024px) {
  .ema-partners { max-width: 680px !important; margin-left: auto !important; margin-right: auto !important; }
}
@media (max-width: 767px) {
  .ema-split + .ema-split { margin-top: 80px !important; }
  .ema-cycle { --e-con-grid-template-columns: 1fr !important; }
  .ema-cycle > *,
  .ema-cycle > :nth-child(4) { grid-column: auto; }
}
@media (max-width: 560px) {
  .ema-icards { --e-con-grid-template-columns: 1fr !important; }
  .ema-expert__cap { left: 8px; right: 8px; bottom: 8px; padding: 10px !important; }
  .ema-expert__icon { display: none !important; }
}
.ema-univers__link .elementor-icon-list-text { padding-inline-start: 12px !important; }

/* =========================================================
   FOOTER PAGES: Préparer sa formation, FAQ, Mentions légales, CGV
   ========================================================= */
/* Step card link */
.ema-step__link .elementor-heading-title a { display: inline-flex; align-items: center; gap: 8px; color: var(--ema-blue); }
.ema-step__link .ema-icon { width: 16px; height: 16px; transition: transform .25s; }
.ema-step__link a:hover .ema-icon { transform: translateX(4px); }

/* Block title with an icon (FAQ groups, course page) */
.ema-block-title .elementor-heading-title { display: flex; align-items: center; gap: 12px; }
.ema-block-title .ema-icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--ema-blue); }

/* ---------- FAQ (Nested Accordion, class "ema-faq__acc") ---------- */
.ema-faq { max-width: 900px !important; margin-left: auto !important; margin-right: auto !important; }
.ema-faq__acc .e-n-accordion { display: flex; flex-direction: column; gap: 12px; }
.ema-faq__acc .e-n-accordion-item {
  margin: 0 !important;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--ema-line);
  box-shadow: 0 4px 14px rgba(17, 32, 94, .04);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.ema-faq__acc .e-n-accordion-item[open] { border-color: #C9D8FB; box-shadow: 0 10px 30px rgba(17, 32, 94, .07); }
.ema-faq__acc .e-n-accordion-item-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 18px 22px !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
  list-style: none;
  cursor: pointer;
}
.ema-faq__acc .e-n-accordion-item-title::-webkit-details-marker { display: none; }
.ema-faq__acc .e-n-accordion-item-title-header { flex: 1; }
.ema-faq__acc .e-n-accordion-item-title-text {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  color: var(--ema-navy) !important;
  transition: color .2s;
}
.ema-faq__acc .e-n-accordion-item-title:hover .e-n-accordion-item-title-text { color: var(--ema-blue) !important; }
.ema-faq__acc .e-n-accordion-item-title-icon { display: inline-flex; color: var(--ema-navy); font-size: 20px; line-height: 0; }
.ema-faq__acc .e-n-accordion-item-title-icon i { font-size: 20px; color: var(--ema-navy) !important; }
.ema-faq__acc .e-n-accordion-item[open] .e-n-accordion-item-title-icon .e-opened i { transform: rotate(180deg); }
.ema-faq__acc .e-n-accordion-item > .e-con { border: 0 !important; margin: 0 !important; }
.ema-faq__answer a.ema-faq__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14.5px; font-weight: 700; color: var(--ema-blue); }
.ema-faq__link .ema-icon { width: 16px; height: 16px; transition: transform .25s; }
.ema-faq__link:hover .ema-icon { transform: translateX(4px); }

/* ---------- Legal text pages ---------- */
.ema-legal { max-width: 860px !important; margin-left: auto !important; margin-right: auto !important; }
.ema-legal strong { color: var(--ema-navy); }

/* Placeholder text the client must provide */
.ema-tbd { padding: 1px 6px; border-radius: 4px; background: #FFF3CD; color: #8A5A00; font-weight: 600; }

@media (max-width: 767px) {
  .ema-faq__acc .e-n-accordion-item-title { padding: 16px !important; }
  .ema-faq__acc .e-n-accordion-item-title-text { font-size: 16px !important; }
}
.ema-faq__acc { --n-accordion-icon-size: 20px; }
.ema-faq__acc .e-n-accordion-item-title-header { order: 1; }
.ema-faq__acc .e-n-accordion-item-title-icon { order: 2; width: 20px; height: 20px; align-items: center; justify-content: center; }
.ema-faq__acc .e-n-accordion-item-title-icon span,
.ema-faq__acc .e-n-accordion-item-title-icon i { font-size: 20px !important; width: 20px; height: 20px; }
.ema-faq__answer a.ema-faq__link { line-height: 1.6; }
@media (max-width: 767px) { .ema-faq__acc .e-n-accordion-item-title { gap: 12px !important; } }

/* =========================================================
   CONTACT (info cards, map, Elementor Form widget with class "ema-form")
   ========================================================= */
.ema-contact-card__big a { color: inherit; transition: color .2s; }
.ema-contact-card__big a:hover { color: var(--ema-blue); }
.ema-map { overflow: hidden; background: var(--ema-bg-soft); }
.ema-map iframe { display: block; width: 100%; height: auto !important; aspect-ratio: 4 / 3.3; border: 0; }

/* Form: titles, fields and the bottom row like the HTML design */
.ema-form .ema-form__title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--ema-navy); }
.ema-form .elementor-field-group-titre_coordonnees { margin-bottom: 20px !important; }
.ema-form .elementor-field-group-titre_message { margin-top: 14px; margin-bottom: 20px !important; }
.ema-form .elementor-field-label { line-height: 1.6; }
.ema-form .elementor-mark-required .elementor-field-label::after { padding-inline-start: .26em; }
.ema-form .elementor-field-textual {
  min-height: 0 !important;
  padding: 13px 16px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  border-radius: 12px !important;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.ema-form .elementor-field-textual::placeholder { color: var(--ema-muted); opacity: 1; }
.ema-form .elementor-field-textual:focus { outline: none; border-color: var(--ema-blue) !important; background-color: #fff !important; box-shadow: 0 0 0 4px rgba(46, 106, 242, .12); }
.ema-form textarea.elementor-field-textual { min-height: 140px !important; resize: vertical; }
/* select: the HTML's own chevron instead of Elementor's caret */
.ema-form .elementor-select-wrapper { border: 0 !important; background: none !important; padding: 0 !important; }
.ema-form .elementor-select-wrapper .select-caret-down-wrapper { display: none; }
.ema-form .elementor-select-wrapper select {
  appearance: none;
  padding-right: 44px !important;
  background-color: #F8FAFE;
  border: 1px solid var(--ema-line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1363' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  color: var(--ema-navy);
  cursor: pointer;
}
/* consent checkbox */
.ema-form .elementor-field-group-consentement { margin-top: 4px; }
.ema-form .elementor-field-group-consentement .elementor-field-option { display: flex; align-items: flex-start; gap: 12px; }
.ema-form .elementor-field-group-consentement input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--ema-navy-btn); }
.ema-form .elementor-field-group-consentement label { padding: 0 !important; font-size: 13.5px; line-height: 1.6; color: var(--ema-text); cursor: pointer; }
.ema-form .elementor-field-group-consentement a { color: var(--ema-blue); text-decoration: underline; }
/* bottom row: "* Champs obligatoires" + Envoyer */
.ema-form .elementor-field-group-champs,
.ema-form .e-form__buttons { margin-top: 8px; }
.ema-form .elementor-field-group-champs { align-self: center; }
.ema-form .ema-form__req { font-size: 13px; color: var(--ema-muted); }
.ema-form .ema-form__req b { color: #E5484D; }
.ema-form .elementor-button { gap: 12px; }
.ema-form .elementor-button-icon,
.ema-form .elementor-button-icon i { font-size: 18px; transition: transform .25s ease; }
.ema-form .elementor-button:hover .elementor-button-icon { transform: translateX(4px); }

@media (max-width: 1100px) {
  .ema-contact { --e-con-grid-template-columns: 340px minmax(0, 1fr) !important; --gap: 28px !important; --column-gap: 28px !important; --row-gap: 28px !important; }
}
@media (max-width: 1024px) {
  .ema-contact { --e-con-grid-template-columns: 1fr !important; }
  .ema-contact__info > .ema-map { grid-column: 1 / -1; }
  .ema-map iframe { aspect-ratio: 16 / 8; }
}
@media (max-width: 767px) {
  .ema-map iframe { aspect-ratio: 4 / 3.3; }
}
.ema-form .elementor-field-group-consentement label { font-size: 13.5px !important; line-height: 1.6 !important; font-weight: 400 !important; }
.ema-form .ema-form__req { display: block; line-height: 1.6; }
.ema-contact-card > .e-con { flex: 1 1 0 !important; min-width: 0; }
@media (max-width: 767px) { .ema-form .e-form__buttons { margin-top: -2px; } }

/* =========================================================
   CONFÉRENCES ET SÉMINAIRES (archive: Taxonomy Filter + Loop Grid, article: single post template)
   ========================================================= */
/* ---------- Category filter (Taxonomy Filter widget, class "ema-filters") ---------- */
.ema-filters .e-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ema-filters .e-filter-item {
  margin: 0 !important;
  padding: 10px 20px !important;
  border-radius: 999px !important;
  border: 1px solid var(--ema-line) !important;
  background: #fff !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  color: var(--ema-navy) !important;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.ema-filters .e-filter-item:hover { border-color: var(--ema-navy) !important; }
.ema-filters .e-filter-item[aria-pressed="true"] { background: var(--ema-navy) !important; border-color: var(--ema-navy) !important; color: #fff !important; }
.ema-filters .e-filter-item[data-filter="uncategorized"] { display: none; } /* WordPress default category */

/* ---------- Cards (Loop Grid, class "ema-posts") ---------- */
.ema-posts .elementor-loop-container { column-gap: 22px !important; row-gap: 22px !important; }
.ema-posts .e-loop-item:has(.ema-card--featured) { grid-column: 1 / -1 !important; }
.ema-posts .e-loop-item > .ema-card { height: 100%; }
.ema-card__metas { display: flex; flex-wrap: wrap; gap: 0 20px; }
.ema-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 15px; line-height: 1.6; color: var(--ema-text); }
.ema-card__meta-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--ema-blue-soft); color: var(--ema-navy-btn); display: inline-flex; align-items: center; justify-content: center; }
.ema-card__meta-icon .ema-icon { width: 17px; height: 17px; }
.ema-card__tag { display: inline-block; padding: 4px 10px; border-radius: 4px; background: #FDE2AC; font-size: 12px; font-weight: 700; line-height: 1.6; text-transform: uppercase; color: var(--ema-navy); }
.ema-card-img--featured { height: 100%; }
.ema-card-img--featured img { height: 100% !important; min-height: 360px; aspect-ratio: auto !important; }
.ema-card-btn--auto .elementor-button { width: auto; }

/* ---------- Article hero (title, tag, meta row) ---------- */
.ema-page-hero__content--meta { max-width: 620px !important; }
.ema-hero-tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); font-size: 13px; font-weight: 700; line-height: 1.6; color: #fff; }
.ema-hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14.5px; line-height: 1.6; color: #DCE4F7; }
.ema-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.ema-hero-meta .ema-icon { width: 18px; height: 18px; color: var(--ema-gold-light); }
.elementor-widget-ema-breadcrumb .elementor-heading-title { margin: 0; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .65); }
@media (min-width: 1025px) {
  .ema-page-hero--meta::after {
    background: linear-gradient(90deg, var(--ema-navy-hero) 0%, var(--ema-navy-hero) 40%, rgba(12, 38, 70, .86) 50%, rgba(12, 38, 70, .4) 64%, rgba(12, 38, 70, 0) 78%);
  }
}

/* ---------- Article: gallery ---------- */
.ema-gallery__main { position: relative; aspect-ratio: 16 / 9.5; border-radius: 18px; overflow: hidden; background: var(--ema-navy-hero); }
.ema-gallery__main img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ema-gallery__nav {
  position: absolute; top: 50%; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ema-navy);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transform: translateY(-50%); box-shadow: 0 6px 16px rgba(0, 0, 0, .15); transition: background .25s, color .25s;
}
.ema-gallery__nav:hover, .ema-gallery__nav:focus { background: var(--ema-navy); color: #fff; }
.ema-gallery__nav .ema-icon { width: 20px; height: 20px; }
.ema-gallery__nav--prev { left: 16px; }
.ema-gallery__nav--next { right: 16px; }
.ema-gallery__play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; border-radius: 50%;
  background: #fff; color: var(--ema-navy-btn); display: inline-flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%); box-shadow: 0 0 0 10px rgba(255, 255, 255, .25); transition: transform .3s ease;
}
.ema-gallery__play:hover { transform: translate(-50%, -50%) scale(1.08); color: var(--ema-navy-btn); }
.ema-gallery__play .ema-icon { width: 28px; height: 28px; margin-left: 4px; }
.ema-gallery__expand { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 10px; background: rgba(11, 19, 99, .55); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ema-gallery__expand .ema-icon { width: 18px; height: 18px; }
.ema-gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 12px; }
.ema-gallery__thumb { position: relative; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: none; cursor: pointer; transition: border-color .25s; }
.ema-gallery__thumb:hover, .ema-gallery__thumb:focus { background: none; }
.ema-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ema-gallery__thumb.is-active { border-color: var(--ema-blue); }
.ema-gallery__more { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(11, 19, 99, .62); color: #fff; font-size: 22px; font-weight: 800; line-height: 1.1; }
.ema-gallery__more small { font-size: 13px; font-weight: 600; }
.ema-media-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.ema-media-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--ema-blue-soft); font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--ema-navy-btn); transition: background .25s, color .25s; }
.ema-media-links a:hover { background: var(--ema-navy); color: #fff; }
.ema-media-links .ema-icon { width: 18px; height: 18px; }

/* ---------- Article: text (post content) ---------- */
.ema-post-content p { margin: 0; }
.ema-post-content p + p { margin-top: 16px; }
.ema-post-content blockquote,
.ema-quote { position: relative; margin: 30px 0 0; padding: 26px 30px 26px 78px; border: 0; border-radius: 16px; background: var(--ema-blue-soft); font-size: 18px; font-style: italic; font-weight: 500; line-height: 1.6; color: var(--ema-navy); }
.ema-post-content blockquote p { margin: 0; }
.ema-post-content blockquote::before { content: "\201C"; position: absolute; left: 24px; top: 12px; font-size: 68px; font-style: normal; font-weight: 800; line-height: 1; color: var(--ema-blue); }

/* ---------- Article: sidebar ---------- */
@media (min-width: 1025px) {
  .ema-aside { position: sticky !important; top: 120px; }
}
.ema-box__title .elementor-heading-title { display: flex; align-items: center; gap: 10px; }
.ema-box__title .ema-icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--ema-blue); }
.ema-keyinfo { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ema-keyinfo li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--ema-bg-soft); }
.ema-keyinfo .ema-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--ema-blue); }
.ema-keyinfo small { display: block; font-size: 12.5px; line-height: 1.6; color: var(--ema-muted); }
.ema-keyinfo strong { font-size: 15.5px; line-height: 1.6; color: var(--ema-navy); }
.ema-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ema-pills a { padding: 8px 16px; border-radius: 999px; background: var(--ema-blue-soft); font-size: 13.5px; font-weight: 600; line-height: 1.6; color: var(--ema-navy-btn); transition: background .25s, color .25s; }
.ema-pills a:hover, .ema-pills a.is-active { background: var(--ema-blue); color: #fff; }
.ema-share .elementor-grid { display: flex !important; gap: 10px; }
.ema-share .elementor-share-btn { width: 42px !important; height: 42px !important; border-radius: 50%; }
.ema-share .elementor-share-btn__icon { width: 42px !important; }
.ema-share .elementor-share-btn__icon svg, .ema-share .elementor-share-btn__icon i { width: 18px; height: 18px; font-size: 18px; }
.ema-related .elementor-loop-container { gap: 14px !important; }
.ema-related .e-loop-item + .e-loop-item { padding-top: 14px; border-top: 1px solid var(--ema-line); }
.ema-related__img img { display: block; width: 84px !important; height: 68px !important; object-fit: cover; border-radius: 10px; }
.ema-related__title .elementor-heading-title { color: var(--ema-navy); transition: color .2s; }
.ema-related__item:hover .ema-related__title .elementor-heading-title { color: var(--ema-blue); }
.ema-related__tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--ema-blue-soft); font-size: 12.5px; font-weight: 600; line-height: 1.6; color: var(--ema-navy-btn); }
.ema-related__date { font-size: 12.5px; line-height: 1.6; color: var(--ema-muted); }

@media (max-width: 1024px) {
  .ema-card--featured .ema-card-img--featured img { min-height: 0; aspect-ratio: 16 / 9 !important; height: auto !important; }
  .ema-aside { display: grid !important; grid-template-columns: repeat(2, 1fr); align-items: start; }
}
@media (max-width: 767px) {
  .ema-aside { grid-template-columns: 1fr; }
  .ema-gallery__thumbs { gap: 6px; }
  .ema-gallery__thumb { border-radius: 8px; }
  .ema-gallery__more { font-size: 16px; }
  .ema-gallery__more small { display: none; }
  .ema-gallery__nav { width: 38px; height: 38px; }
  .ema-gallery__play { width: 60px; height: 60px; }
  .ema-post-content blockquote { padding: 22px 20px 22px 62px; font-size: 16.5px; }
  .ema-post-content blockquote::before { left: 16px; font-size: 56px; }
}
@media (max-width: 400px) {
  .ema-page-hero__title--meta .elementor-heading-title { font-size: 32px !important; }
}
.elementor-widget-ema-post-tag .ema-card__tag, .elementor-widget-ema-post-tag .ema-hero-tag, .elementor-widget-ema-post-tag .ema-related__tag { display: block; }
/* Card photos keep their 16:9.6 box even before a lazy-loaded image arrives */
.ema-card-img { position: relative; width: 100% !important; aspect-ratio: 16 / 9.6; flex-shrink: 0; }
.ema-card-img img { position: absolute; inset: 0; height: 100% !important; }
.ema-card-img--featured { aspect-ratio: auto; }
.ema-card-img--featured img { position: static; }
@media (max-width: 1024px) {
  .ema-card-img--featured { aspect-ratio: 16 / 9; height: auto; }
  .ema-card-img--featured img { position: absolute; height: 100% !important; }
}
.elementor-widget-ema-post-meta .ema-related__date { display: block; }
/* "à la une" template on a post that is not the featured one (filtered list): a normal card */
.ema-posts .e-loop-item:not(.ema-featured):has(.ema-card--featured) { grid-column: auto !important; }
.ema-posts .e-loop-item:not(.ema-featured) .ema-card--featured { --e-con-grid-template-columns: 1fr !important; grid-template-columns: 1fr !important; gap: 0 !important; padding: 10px 10px 22px !important; align-content: start; }
.ema-posts .e-loop-item:not(.ema-featured) .ema-card-img--featured { aspect-ratio: 16 / 9.6; height: auto; }
.ema-posts .e-loop-item:not(.ema-featured) .ema-card-img--featured img { position: absolute; min-height: 0; height: 100% !important; }
.ema-posts .e-loop-item:not(.ema-featured) .ema-card--featured > .e-con { padding: 18px 14px 0 !important; justify-content: flex-start !important; --gap: 12px; gap: 12px; }
.ema-posts .e-loop-item:not(.ema-featured) .ema-card--featured h3 { font-size: 21px !important; letter-spacing: 0 !important; }
.ema-posts .e-loop-item:not(.ema-featured) .ema-card--featured .ema-card__excerpt { display: none; }
.ema-posts .e-loop-item:not(.ema-featured) .ema-card--featured .ema-card-btn { width: 100% !important; margin-top: auto !important; }
.ema-posts .e-loop-item:not(.ema-featured) .ema-card--featured .ema-card-btn .elementor-button { width: 100%; padding: 16px 20px !important; }

/* =========================================================
   SINGLE FORMATION (Tutor LMS course, EMA course widgets)
   ========================================================= */
/* ---------- Hero badges ---------- */
.ema-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
a.ema-hero-tag { transition: background .25s; }
a.ema-hero-tag:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.ema-hero-tag--gold { background: rgba(217, 178, 106, .16); border-color: rgba(217, 178, 106, .5); color: var(--ema-gold-light); }
a.ema-hero-tag--gold:hover { color: var(--ema-gold-light); }

/* ---------- Main column blocks ---------- */
.ema-course-text { margin: 0; font-size: 17px; line-height: 1.6; }
.ema-checks { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ema-checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; line-height: 1.6; }
.ema-checks li > span { width: 24px; height: 24px; margin-top: 1px; flex-shrink: 0; border-radius: 50%; background: var(--ema-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ema-checks li > span .ema-icon { width: 13px; height: 13px; }
.ema-program-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.ema-program-head .ema-block-title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 27px; font-weight: 700; line-height: 1.2; color: var(--ema-navy); }
.ema-program-head .ema-block-title .ema-icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--ema-blue); }
.ema-program-head p { max-width: 360px; margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ema-muted); }

/* Modules accordion (<details>) */
.ema-modules { display: flex; flex-direction: column; gap: 12px; }
.ema-module { background: #fff; border-radius: 14px; border: 1px solid var(--ema-line); box-shadow: 0 4px 14px rgba(17, 32, 94, .04); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.ema-module[open] { border-color: #C9D8FB; box-shadow: 0 10px 30px rgba(17, 32, 94, .07); }
.ema-module summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; list-style: none; cursor: pointer; }
.ema-module summary::-webkit-details-marker { display: none; }
.ema-module summary:hover .ema-module__title { color: var(--ema-blue); }
.ema-module__num { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--ema-blue-soft); color: var(--ema-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; line-height: 1.6; transition: background .25s, color .25s; }
.ema-module[open] .ema-module__num { background: var(--ema-blue); color: #fff; }
.ema-module__title { flex: 1; font-size: 16px; font-weight: 700; line-height: 1.6; color: var(--ema-navy); transition: color .2s; }
.ema-module__time { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.ema-module__time .ema-icon { width: 16px; height: 16px; color: var(--ema-gold); }
.ema-module__chev { display: inline-flex; color: var(--ema-navy); transition: transform .3s ease; }
.ema-module__chev .ema-icon { width: 20px; height: 20px; }
.ema-module[open] .ema-module__chev { transform: rotate(180deg); }
.ema-module__body { padding: 0 20px 20px 64px; font-size: 15.5px; line-height: 1.6; }
.ema-module__empty { margin: 0; font-size: 15px; font-style: italic; color: var(--ema-muted); }
ul.ema-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
ul.ema-list li { position: relative; padding-left: 22px; }
ul.ema-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--ema-blue); }

.ema-notice { display: flex; align-items: flex-start; gap: 14px; margin: 18px 0 0; padding: 18px 20px; border-radius: 14px; background: var(--ema-blue-soft); font-size: 16px; line-height: 1.6; color: var(--ema-navy); }
.ema-notice .ema-icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--ema-blue); }

/* ---------- Sidebar card ---------- */
.ema-course-media { position: relative; width: 100% !important; margin-bottom: 22px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.ema-course-media img { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
.ema-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.ema-fact { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 12px; background: var(--ema-bg-soft); line-height: 1.6; }
.ema-fact .ema-icon { width: 26px; height: 26px; margin-bottom: 8px; color: var(--ema-blue); }
.ema-fact small { font-size: 12.5px; color: var(--ema-muted); }
.ema-fact strong { font-size: 17px; line-height: 1.25; color: var(--ema-navy); }
.ema-fact span { font-size: 14px; }
.ema-course-actions { display: flex; flex-direction: column; gap: 10px; }
.ema-course-actions a.ema-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; border: 0; transition: background .2s, color .2s; }
.ema-course-actions a.ema-btn .ema-icon { width: 18px; height: 18px; flex-shrink: 0; transition: transform .25s ease; }
.ema-course-actions a.ema-btn:hover .ema-icon { transform: translateX(4px); }
.ema-course-actions a.ema-btn--navy { padding: 16px 20px; border-radius: 8px; background: var(--ema-navy-btn); color: #fff; }
.ema-course-actions a.ema-btn--navy:hover { background: var(--ema-navy); color: #fff; }
.ema-course-actions a.ema-btn--outline { padding: 14px 24px; border-radius: 999px; background: transparent; color: var(--ema-navy); box-shadow: inset 0 0 0 1.5px var(--ema-navy); }
.ema-course-actions a.ema-btn--outline:hover { background: var(--ema-navy); color: #fff; }
.ema-includes h4 { margin: 24px 0 6px; font-size: 15px; font-weight: 700; line-height: 1.2; color: var(--ema-navy); }
.ema-includes ul { margin: 0; padding: 0; list-style: none; }
.ema-includes li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--ema-line); font-size: 15px; line-height: 1.6; }
.ema-includes li:first-child { border-top: 0; }
.ema-includes .ema-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--ema-blue); }

/* ---------- Related courses ---------- */
.ema-course-eyebrow { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.6; letter-spacing: .16em; text-transform: uppercase; color: #C28D42; }
.ema-mini-courses .elementor-loop-container { column-gap: 22px !important; row-gap: 22px !important; }
.ema-mini-course .ema-card__tag { display: block; }
.ema-mini-course.ema-lift:hover { box-shadow: 0 22px 44px rgba(17, 32, 94, .12) !important; }
.ema-mini-course__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--ema-line); font-size: 14.5px; line-height: 1.6; color: var(--ema-text); }
.ema-mini-course__foot > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.ema-mini-course__foot > span:first-child .ema-icon { width: 17px; height: 17px; color: var(--ema-gold); }
.ema-mini-course__foot .ema-univers__arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--ema-blue-soft); color: var(--ema-blue); display: inline-flex; align-items: center; justify-content: center; transition: background .25s, color .25s, transform .25s; }
.ema-mini-course__foot .ema-univers__arrow .ema-icon { width: 18px; height: 18px; }
.ema-mini-course:hover .ema-univers__arrow { background: var(--ema-navy); color: #fff; transform: translateX(3px); }

@media (max-width: 1024px) {
  .ema-article--course .ema-aside { order: -1; grid-template-columns: 1fr !important; }
  .ema-course-box { display: grid !important; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
  .ema-course-media { margin-bottom: 0; }
}
@media (max-width: 767px) {
  .ema-course-box { display: flex !important; gap: 0; }
  .ema-course-media { margin-bottom: 20px; }
  .ema-program-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ema-program-head .ema-block-title { font-size: 23px; }
  .ema-module summary { flex-wrap: wrap; gap: 10px 12px; padding: 14px 16px; }
  .ema-module__title { flex-basis: calc(100% - 80px); }
  .ema-module__time { margin-left: 42px; }
  .ema-module__chev { margin-left: auto; }
  .ema-module__body { padding: 0 16px 18px 20px; }
}
.ema-course-media { margin-bottom: 22px !important; }
.ema-course-block .ema-notice { font-size: 17px; }
@media (max-width: 1024px) { .ema-course-media { margin-bottom: 0 !important; } }
@media (max-width: 767px) { .ema-course-media { margin-bottom: 20px !important; } }

/* Links styled as pills/buttons: never take the Site Settings link colour (blue) */
.ema-hero-tags a.ema-hero-tag,
.ema-hero-tags a.ema-hero-tag:hover,
.ema-hero-tags a.ema-hero-tag:focus { color: #fff; }
.ema-hero-tags a.ema-hero-tag--gold,
.ema-hero-tags a.ema-hero-tag--gold:hover,
.ema-hero-tags a.ema-hero-tag--gold:focus { color: var(--ema-gold-light); }
.ema-gallery a.ema-gallery__play,
.ema-gallery a.ema-gallery__play:hover { color: var(--ema-navy-btn); }

/* Course table header title: white on navy (the Site Settings h2 colour must not win) */
.ema-theme .ema-theme__head .ema-theme__title { color: #fff; }

/* "Découvrir cet univers / ce pôle": arrow centred in its 40px circle */
.ema-univers__link .elementor-icon-list-icon { align-items: center; justify-content: center; padding: 0 !important; margin: 0 !important; }
.ema-univers__link .elementor-icon-list-icon i { width: 18px !important; height: 18px; margin: 0 !important; vertical-align: 0; }

/* CTA band: bold words in white (Formation Executive) */
.ema-cta strong { color: #fff; }
/* Contact form: consent text in the body colour, required "*" as bold as the HTML */
.ema-form .elementor-field-group-consentement label { color: var(--ema-text) !important; }
.ema-form .elementor-mark-required .elementor-field-label::after { font-weight: 900; }

/* =========================================================
   HOMEPAGE dynamic cards (Loop Grid of Tutor courses, Loop Carousel of posts)
   ========================================================= */
.ema-card__cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ema-card__cat { font-size: 12px; font-weight: 700; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; color: var(--ema-blue); }
.ema-card__sector { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.6; letter-spacing: .06em; text-transform: uppercase; }
.ema-card__sector--entreprise { background: var(--ema-blue-soft); color: var(--ema-blue); }
.ema-card__sector--public { background: #E5F3F0; color: #3B8273; }
.ema-card__sector--sport { background: #FBEEE4; color: #E5702F; }
.ema-home-courses .elementor-loop-container { column-gap: 22px !important; row-gap: 22px !important; }
.ema-home-courses .e-loop-item > .ema-card,
.ema-news-carousel .e-loop-item > .ema-card { height: 100%; }
/* news carousel: room for the card shadows, same as the nested carousel before */
.ema-news-carousel .swiper.elementor-loop-container { padding-top: 10px !important; padding-left: 6px !important; padding-right: 6px !important; margin: 0 -6px; }
.ema-news-carousel .swiper-slide { height: auto; }
@media (max-width: 767px) {
  .ema-news-carousel .swiper.elementor-loop-container { padding-right: calc(12% + 6px) !important; }
}
