/* Articles de blog : mise en page éditoriale uniquement */
.ast-single-entry-banner[data-post-type="post"][data-banner-background-type="featured"] {
    background: var(--ast-global-color-1) !important;
}
body.single-post .entry-content {
  margin-inline: auto;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.78;
}

/* Rythme vertical */
body.single-post .entry-content :where(p, ul, ol, blockquote, figure, pre, table) {
  margin-block: 0 1.5rem;
}

/* Hiérarchie des intertitres */
body.single-post .entry-content :where(h2, h3, h4) {
  line-height: 1.16;
  text-transform: none;
}

body.single-post .entry-content h2 {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

body.single-post .entry-content h3 {
  margin-top: 2.25rem;
  margin-bottom: 0.8rem;
}

body.single-post .entry-content h4 {
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
}

/* Liens : plus lisibles, sans imposer de couleur */
body.single-post .entry-content a {
  font-weight: 700;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* Images et légendes Gutenberg */
body.single-post .entry-content .wp-block-image,
body.single-post .entry-content figure {
  margin-block: 2.5rem;
}

body.single-post .entry-content .wp-block-image img,
body.single-post .entry-content figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 20px;
}

body.single-post .entry-content figcaption {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

/* Citations Gutenberg et classiques */
body.single-post .entry-content blockquote,
body.single-post .entry-content .wp-block-quote {
  position: relative;
  margin-block: 2.5rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid currentColor;
  border-radius: 16px;
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.55;
}

body.single-post .entry-content blockquote p:last-child,
body.single-post .entry-content .wp-block-quote p:last-child {
  margin-bottom: 0;
}

body.single-post .entry-content blockquote cite,
body.single-post .entry-content .wp-block-quote cite {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Listes */
body.single-post .entry-content ul,
body.single-post .entry-content ol {
  padding-left: 1.35rem;
}

body.single-post .entry-content li {
  margin-bottom: 0.55rem;
  padding-left: 0.3rem;
  line-height: 1.7;
}

body.single-post .entry-content li > :where(ul, ol) {
  margin-top: 0.55rem;
  margin-bottom: 0;
}

/* Code en ligne et blocs de code */
body.single-post .entry-content code {
  padding: 0.16rem 0.4rem;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
}

body.single-post .entry-content pre {
  overflow-x: auto;
  margin-block: 2rem;
  padding: 1.2rem 1.35rem;
  border-radius: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.65;
}

body.single-post .entry-content pre code {
  padding: 0;
  border: 0;
  font-size: inherit;
}

/* Tableaux Gutenberg */
body.single-post .entry-content .wp-block-table {
  overflow-x: auto;
  margin-block: 2rem;
}

body.single-post .entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

body.single-post .entry-content th,
body.single-post .entry-content td {
  padding: 0.85rem 1rem;
  border: 1px solid currentColor;
  text-align: left;
  vertical-align: top;
}

@media (max-width: 680px) {
  body.single-post .entry-content {
    font-size: 1rem;
  }

  body.single-post .entry-content .wp-block-image img,
  body.single-post .entry-content figure img {
    max-height: 360px;
    border-radius: 14px;
  }

  body.single-post .entry-content blockquote,
  body.single-post .entry-content .wp-block-quote {
    padding: 1.25rem;
    border-radius: 14px;
  }
}

/*=== digiformat */
body.post-type-archive-digiforma .df-page-header {
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--ast-global-color-0) 12%, transparent), transparent 32%),
    radial-gradient(circle at 86% 26%, rgba(17, 17, 17, 0.06), transparent 28%),
    var(--myai-cream) !important;
  padding-top: clamp(56px, 6vw, 80px) !important;
  padding-bottom: clamp(56px, 6vw, 80px) !important;
}

body.post-type-archive-digiforma .df-page-header,
body.post-type-archive-digiforma .df-page-header * {
  color: var(--myai-black) !important;
}

body.post-type-archive-digiforma .df-page-header a {
  color: var(--myai-gray-500) !important;
}

body.post-type-archive-digiforma .df-page-header h1,
body.post-type-archive-digiforma .df-page-header .df-page-title {
  font-family: var(--myai-font-display) !important;
  font-size: clamp(2.35rem, 4.4vw, 4.35rem) !important;
  font-weight: 800 !important;
}
/* === Digiforma catalogue : pleine largeur === */
body.post-type-archive-digiforma .site-content,
body.post-type-archive-digiforma .content-area,
body.post-type-archive-digiforma .ast-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* === Digiforma catalogue : sections additionnelles === */
.myai-df-intro {
  max-width: 720px;
  margin: 1.2rem 0 0;
  color: var(--myai-gray-700);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.72;
}

.myai-df-qualiopi-section {
  padding: clamp(56px, 6vw, 84px) max(24px, calc((100vw - 1280px) / 2 + 24px));
  background: var(--myai-cream);
  text-align: center;
}

.myai-df-qualiopi-inner h2 {
  max-width: 780px;
  margin: 0 auto 1rem;
  color: var(--myai-black);
  font-family: var(--myai-font-display);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
}

.myai-df-qualiopi-inner p {
  color: var(--myai-orange);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.myai-df-qualiopi-badge {
  max-width: 340px;
  width: 100%;
  border-radius: var(--myai-radius-xl);
}

.myai-df-cta-section {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) max(24px, calc((100vw - 1280px) / 2 + 24px));
  background: var(--myai-black);
  color: var(--myai-white);
  text-align: center;
}

.myai-df-cta-inner h2 {
  max-width: 900px;
  margin: 0 auto 1rem;
  font-family: var(--myai-font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 800;
}

.myai-df-cta-inner p {
  max-width: 720px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.6;
}

.myai-df-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.8rem;
  border-radius: var(--myai-radius-full);
  background: var(--myai-white);
  color: var(--myai-black);
  font-weight: 700;
  text-decoration: none;
}

.myai-df-faq-section {
  padding: clamp(56px, 7vw, 96px) max(24px, calc((100vw - 1280px) / 2 + 24px));
  background: var(--myai-white);
}

.myai-df-faq-inner {
  max-width: 900px;
  margin: 0 auto;
}

.myai-df-faq-inner h2 {
  margin: 0 0 2rem;
  color: var(--myai-black);
  font-family: var(--myai-font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
}

.myai-df-faq-item {
  border: 1px solid var(--myai-gray-200);
  border-radius: 14px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.myai-df-faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--myai-font-body);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--myai-black);
  text-align: left;
}

.myai-df-faq-icon {
  font-size: 1.3rem;
  color: var(--myai-orange);
  transition: transform 200ms ease;
}

.myai-df-faq-item.is-open .myai-df-faq-icon {
  transform: rotate(45deg);
}

.myai-df-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms ease;
  padding: 0 1.4rem;
}

.myai-df-faq-item.is-open .myai-df-faq-answer {
  max-height: 300px;
  padding-bottom: 1.2rem;
}

.myai-df-faq-answer p {
  margin: 0;
  color: var(--myai-gray-700);
  line-height: 1.65;
}
/* === Digiforma catalogue : forcer l'empilement vertical === */
body.post-type-archive-digiforma .ast-container,
body.post-type-archive-digiforma .df-main--archive {
  display: block !important;
}

body.post-type-archive-digiforma .myai-df-qualiopi-section,
body.post-type-archive-digiforma .myai-df-cta-section,
body.post-type-archive-digiforma .myai-df-faq-section {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  float: none !important;
}
/* === Digiforma catalogue : correction couleur titre CTA === */
body.post-type-archive-digiforma .myai-df-cta-section h2,
body.post-type-archive-digiforma .myai-df-cta-inner h2 {
  color: var(--myai-white) !important;
}
body.post-type-archive-digiforma .df-archive-tags.df-program-tags {
  top: auto !important;
  right: auto !important;
  bottom: 12px !important;
  left: 12px !important;
}
/* === Digiforma catalogue : badges en bas à gauche de l'image === */
body.post-type-archive-digiforma .df-post-thumbnail {
  position: relative !important;
}

body.post-type-archive-digiforma .df-post-thumbnail .df-archive-tags.df-program-tags {
  position: absolute !important;
  top: auto !important;
  left: 12px !important;
  bottom: 12px !important;
  right: auto !important;
  margin: 0 !important;
}
/* === Digiforma : header identique au hero d'accueil (fond violet foncé, texte blanc) === */
body.post-type-archive-digiforma .df-page-header,
body.single-digiforma .df-page-header {
  position: relative;
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 100px) !important;
  padding-bottom: clamp(64px, 8vw, 100px) !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(120deg, #1a0038, var(--ast-global-color-0) 55%, #4a2ba8) !important;
}

body.post-type-archive-digiforma .df-page-header::after,
body.single-digiforma .df-page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 82%);
}

body.post-type-archive-digiforma .df-page-header .df-container,
body.single-digiforma .df-page-header .df-container {
  position: relative;
  z-index: 1;
}

body.post-type-archive-digiforma .df-page-header,
body.post-type-archive-digiforma .df-page-header *,
body.single-digiforma .df-page-header,
body.single-digiforma .df-page-header * {
  color: #ffffff !important;
}

body.post-type-archive-digiforma .df-page-header a,
body.single-digiforma .df-page-header a {
  color: rgba(255, 255, 255, 0.72) !important;
}

body.post-type-archive-digiforma .df-page-header h1,
body.post-type-archive-digiforma .df-page-header .df-page-title,
body.single-digiforma .df-page-header h1,
body.single-digiforma .df-page-header .df-page-title {
  max-width: 760px !important;
  font-family: var(--myai-font-display) !important;
  font-size: 4.2rem !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  color: #ffffff !important;
}

@media (max-width: 680px) {
  body.post-type-archive-digiforma .df-page-header h1,
  body.post-type-archive-digiforma .df-page-header .df-page-title,
  body.single-digiforma .df-page-header h1,
  body.single-digiforma .df-page-header .df-page-title {
    font-size: 2.5rem !important;
  }
}
/* === Digiforma page formation individuelle : pleine largeur === */
body.single-digiforma .site-content,
body.single-digiforma .content-area,
body.single-digiforma .ast-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* === Digiforma catalogue : bande CTA en violet uni, bouton en orange === */
body.post-type-archive-digiforma .myai-df-cta-section {
  background: linear-gradient(120deg, #1a0038, var(--ast-global-color-0) 55%, #4a2ba8) !important;
}

body.post-type-archive-digiforma .myai-df-cta-inner h2,
body.post-type-archive-digiforma .myai-df-cta-inner p {
  color: #ffffff !important;
}

body.post-type-archive-digiforma .myai-df-cta-btn {
  background: #ea580c !important;
  color: #ffffff !important;
}

body.post-type-archive-digiforma .myai-df-cta-btn:hover {
  background: #c2410c !important;
}
#accessibility-button {
  bottom: 4rem !important;
  right: 0.5rem !important;
}
/* === Digiforma : intro et titre plus larges === */
body.post-type-archive-digiforma .myai-df-intro {
  max-width: 950px !important;
}

body.post-type-archive-digiforma .df-page-header h1,
body.post-type-archive-digiforma .df-page-header .df-page-title,
body.single-digiforma .df-page-header h1,
body.single-digiforma .df-page-header .df-page-title {
  max-width: 950px !important;
}
/* === Digiforma : titre des pages formation individuelles - plus large, légèrement plus petit === */
body.single-digiforma .df-page-header h1.df-page-title,
body.single-digiforma .df-page-header .df-page-title {
  max-width: 1100px !important;
  font-size: 3.2rem !important;
  line-height: 1.15 !important;
}

@media (max-width: 680px) {
  body.single-digiforma .df-page-header h1.df-page-title,
  body.single-digiforma .df-page-header .df-page-title {
    font-size: 2.2rem !important;
  }
}

/* Volet « Nos formations IA » sur 2 colonnes (écrans de 1366 px et plus) */
@media (min-width: 1366px) {
  .main-header-menu .menu-item-10729 > .sub-menu {
    width: 640px !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(9, auto);
    grid-auto-flow: column;
  }
}

/* Marges intérieures du menu « Formations et Ateliers IA », comme « Solutions IA » (ordinateur) */
@media (min-width: 922px) {
  .main-header-menu .menu-item-3118 > .sub-menu,
  .main-header-menu .menu-item-10729 > .sub-menu {
    padding: 15px !important;
  }
  .main-header-menu .menu-item-3118 > .sub-menu {
    width: 270px !important;
  }
  .main-header-menu .menu-item-10729 > .sub-menu {
    margin-top: -6px;
  }
}

/* En-tête ordinateur : menu en 17 px, espacements réduits (deux lignes resserrées de 922 à 1340 px) */
@media (min-width: 922px) {
  #ast-desktop-header .ast-primary-header-bar.main-header-bar { padding-left: 15px !important; padding-right: 15px !important; }
  #ast-desktop-header .site-primary-header-wrap.ast-container { padding-left: 5px !important; padding-right: 5px !important; }
  #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link { padding-left: 8px !important; padding-right: 8px !important; font-size: 17px !important; }
}
@media (min-width: 922px) and (max-width: 1340px) {
  #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link { line-height: 46px !important; }
}
/* Numéro de téléphone de l'en-tête sur une seule ligne */
.ast-header-button-1 .ast-custom-button-link, .ast-header-button-1 .ast-custom-button { white-space: nowrap !important; }

/* En-tête ordinateur : catégories du menu centrées entre le logo et le bouton téléphone */
@media (min-width: 922px) {
  #ast-desktop-header .site-header-primary-section-right { justify-content: space-between !important; }
  #ast-desktop-header .ast-builder-menu-1, #ast-desktop-header .ast-builder-menu-1 .ast-main-header-bar-alignment, #ast-desktop-header .ast-builder-menu-1 .main-header-bar-navigation, #ast-desktop-header .ast-builder-menu-1 nav, #ast-desktop-header .ast-builder-menu-1 .main-navigation { flex: 1 1 auto !important; width: 100%; justify-content: center !important; }
  #ast-desktop-header .ast-builder-menu-1 .main-header-menu { justify-content: center !important; flex-wrap: wrap; width: 100%; }
}

/* Catalogue Digiforma (/formations/) : 1 colonne jusqu'à 600 px, 2 colonnes jusqu'à 1 024 px (évite le défilement horizontal en tablette) */
@media (min-width: 601px) and (max-width: 1024px) {
  .df-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
  .df-archive-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
.df-archive-grid > .df-archive-item { min-width: 0; }

/* Boutons Elementor : marges internes 16/24 px et libellés équilibrés sur deux lignes */
body .elementor-widget-button .elementor-button { padding: 16px 24px; }
@media (max-width: 1024px) { body .elementor-widget-button .elementor-button { padding: 14px 18px; } }
.elementor-widget-button .elementor-button-text { text-wrap: balance; }
/* Accueil, Solutions, À propos, fiche de référence : libellés sur une ligne sur ordinateur */
@media (min-width: 1025px) {
  body.page-id-8 .elementor-widget-button .elementor-button, body.page-id-989 .elementor-widget-button .elementor-button, body.page-id-8983 .elementor-widget-button .elementor-button, body.page-id-9007 .elementor-widget-button .elementor-button { white-space: nowrap; }
}
/* /solutions/ : cartes sur 2 colonnes en tablette */
@media (min-width: 768px) and (max-width: 1024px) {
  body.page-id-989 .solutions-hub-card-row > .e-con-inner { justify-content: flex-start !important; column-gap: 20px !important; }
  body.page-id-989 .solutions-hub-card-row .solutions-hub-card { width: calc((100% - 20px) / 2) !important; max-width: calc((100% - 20px) / 2) !important; }
}
/* Boutons côte à côte : passage à la ligne plutôt que rétrécissement */
.e-con:has(> .elementor-widget-button ~ .elementor-widget-button), .e-con-inner:has(> .elementor-widget-button ~ .elementor-widget-button) { flex-wrap: wrap; }
.e-con > .elementor-widget-button, .e-con-inner > .elementor-widget-button { flex-shrink: 0; max-width: 100%; }

/* Titres H1 : une seule taille (56 / 40 / 32 px), Outfit, casse normale, sur tout le site */
h1.elementor-heading-title, .elementor h1.e-heading-base, h1.entry-title, .entry-content h1, body.post-type-archive-digiforma .df-page-header h1, body.post-type-archive-digiforma .df-page-header .df-page-title, body.single-digiforma .df-page-header h1, body.single-digiforma .df-page-header .df-page-title, body.single-digiforma .df-page-header h1.df-page-title { font-family: 'Outfit', sans-serif !important; font-size: 56px !important; font-weight: 700 !important; line-height: 1.15 !important; text-transform: none !important; letter-spacing: 0 !important; }
@media (max-width: 1024px) { h1.elementor-heading-title, .elementor h1.e-heading-base, h1.entry-title, .entry-content h1, body.post-type-archive-digiforma .df-page-header h1, body.post-type-archive-digiforma .df-page-header .df-page-title, body.single-digiforma .df-page-header h1, body.single-digiforma .df-page-header .df-page-title, body.single-digiforma .df-page-header h1.df-page-title { font-size: 40px !important; } }
@media (max-width: 767px) { h1.elementor-heading-title, .elementor h1.e-heading-base, h1.entry-title, .entry-content h1, body.post-type-archive-digiforma .df-page-header h1, body.post-type-archive-digiforma .df-page-header .df-page-title, body.single-digiforma .df-page-header h1, body.single-digiforma .df-page-header .df-page-title, body.single-digiforma .df-page-header h1.df-page-title { font-size: 32px !important; } }

/* Typographie : H2 42/28 px, H3 24/20 px, texte courant 17/27 px */
.elementor .elementor-widget-heading:not(.stat-number) h2.elementor-heading-title, .elementor h2.e-heading-base, .elementor .elementor-widget-heading.text-h1 h3.elementor-heading-title, .elementor .elementor-widget-heading.text-h2 h3.elementor-heading-title { font-size: 42px !important; line-height: 1.2 !important; }
.elementor .elementor-widget-heading:not(.stat-number):not(.text-h1):not(.text-h2) h3.elementor-heading-title, .elementor h3.e-heading-base:not(.e-1abe75eb-9c84) { font-size: 24px !important; line-height: 1.3 !important; }
.elementor .elementor-widget-text-editor:not(.mf-kicker):not(.text-eyebrow), .elementor .elementor-widget-text-editor:not(.mf-kicker):not(.text-eyebrow) :is(p, li), .elementor .e-div-block > p.e-paragraph-base:not(.mf-surtitre):not(.mf-chiffre):not(.mf-numero) { font-size: 17px !important; line-height: 27px !important; }
body.page-id-587 .elementor h3.elementor-heading-title { font-size: 15.3px !important; }
@media (max-width: 767px) {
  .elementor .elementor-widget-heading:not(.stat-number) h2.elementor-heading-title, .elementor h2.e-heading-base, .elementor .elementor-widget-heading.text-h1 h3.elementor-heading-title, .elementor .elementor-widget-heading.text-h2 h3.elementor-heading-title { font-size: 28px !important; }
  .elementor .elementor-widget-heading:not(.stat-number):not(.text-h1):not(.text-h2) h3.elementor-heading-title, .elementor h3.e-heading-base:not(.e-1abe75eb-9c84) { font-size: 20px !important; }
}
.elementor p.mf-texte, .elementor p.mf-lien { font-size: 17px !important; line-height: 27px !important; }

/* Sites internet sur mesure : texte courant en #1A0038 */
body.page-id-10040 p.e-1382025-5460, body.page-id-10040 p.e-1aef9537-100a, body.page-id-10040 p.e-2050b625-d80d, body.page-id-10040 p.e-28db61e5-ae67, body.page-id-10040 p.e-33fee002-a108, body.page-id-10040 p.e-34b061af-57e3, body.page-id-10040 p.e-350ba2ad-6c29, body.page-id-10040 p.e-38884bfe-1ca6, body.page-id-10040 p.e-460d43db-3d39, body.page-id-10040 p.e-475c3a4b-fdf4, body.page-id-10040 p.e-4a42e45d-273c, body.page-id-10040 p.e-519e035c-d580, body.page-id-10040 p.e-549dbeb4-c3b2, body.page-id-10040 p.e-58ba73fc-ca25, body.page-id-10040 p.e-640d28a4-e05f, body.page-id-10040 p.e-6e602041-30f9, body.page-id-10040 p.e-77587d99-a05f, body.page-id-10040 p.e-7be7d6d0-c75d, body.page-id-10040 p.e-91624-2c29, body.page-id-10040 p.e-cbbf0ce-ecb6, body.page-id-10040 p.e-ffdea99-38da { color: #1A0038 !important; }

/* Sections du nouveau modèle Elementor : même largeur que l'accueil (40 / 30 / 20 px) */
.elementor .mf-section { padding-left: 0 !important; padding-right: 0 !important; max-width: none !important; }
.elementor .mf-section > .mf-contenu { padding-left: 40px !important; padding-right: 40px !important; max-width: 1600px !important; margin-left: auto !important; margin-right: auto !important; }
.elementor .mf-section > .mf-encart-formation { margin-left: 40px !important; margin-right: 40px !important; width: auto !important; align-self: stretch !important; max-width: none !important; }
@media (min-width: 1680px) { .elementor .mf-section > .mf-encart-formation { margin-left: calc((100% - 1600px) / 2 + 40px) !important; margin-right: calc((100% - 1600px) / 2 + 40px) !important; } }
@media (max-width: 1024px) {
  .elementor .mf-section > .mf-contenu { padding-left: 30px !important; padding-right: 30px !important; }
  .elementor .mf-section > .mf-encart-formation { margin-left: 30px !important; margin-right: 30px !important; }
}
@media (max-width: 767px) {
  .elementor .mf-section > .mf-contenu { padding-left: 20px !important; padding-right: 20px !important; }
  .elementor .mf-section > .mf-encart-formation { margin-left: 20px !important; margin-right: 20px !important; }
}

/* Digiforma (catalogue /formations/ et fiches formation) : mêmes styles que le reste du site */
:is(body.post-type-archive-digiforma, body.single-digiforma) #masthead { font-size: 17px; }
@media (max-width: 767px) { :is(body.post-type-archive-digiforma, body.single-digiforma) #masthead { font-size: 15.3px; } }
:is(body.post-type-archive-digiforma, body.single-digiforma) .df-main h2:not(.df-archive-title):not(.df-card-title):not(.screen-reader-text) { font-family: 'Outfit', sans-serif !important; font-weight: 700 !important; font-size: 42px !important; line-height: 1.2 !important; letter-spacing: 0 !important; }
:is(body.post-type-archive-digiforma, body.single-digiforma) .df-main h2:not(.df-archive-title):not(.df-card-title):not(.screen-reader-text):not(.myai-df-cta-section *) { color: #000 !important; }
:is(body.post-type-archive-digiforma, body.single-digiforma) :is(.df-archive-title, .df-card-title) { font-family: 'Outfit', sans-serif !important; font-weight: 700 !important; font-size: 24px !important; line-height: 1.3 !important; color: #000 !important; }
:is(body.post-type-archive-digiforma, body.single-digiforma) .df-main :is(p, li, .df-program-tags):not(.screen-reader-text):not(.df-tag) { font-size: 17px !important; line-height: 27px !important; }
:is(body.post-type-archive-digiforma, body.single-digiforma) .df-main :is(p, li):not(.myai-df-cta-section *):not(.df-page-header *):not(.screen-reader-text) { color: #1A0038 !important; }
:is(body.post-type-archive-digiforma, body.single-digiforma) :is(.df-button, .myai-df-cta-btn, .df-formation-filter-btn) { border-radius: 30px !important; font-family: 'DM Sans', sans-serif !important; font-size: 16px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0 !important; line-height: 1.2 !important; padding: 16px 24px !important; }
:is(body.post-type-archive-digiforma, body.single-digiforma) .df-button.df-button--border { background: transparent !important; border: 2px solid #3A1B83 !important; color: #3A1B83 !important; }
:is(body.post-type-archive-digiforma, body.single-digiforma) .df-button:not(.df-button--border) { background: #3A1B83 !important; border: 2px solid #3A1B83 !important; color: #fff !important; }
@media (max-width: 1024px) { :is(body.post-type-archive-digiforma, body.single-digiforma) :is(.df-button, .myai-df-cta-btn, .df-formation-filter-btn) { padding: 14px 18px !important; } }
@media (max-width: 767px) {
  :is(body.post-type-archive-digiforma, body.single-digiforma) .df-main h2:not(.df-archive-title):not(.df-card-title):not(.screen-reader-text) { font-size: 28px !important; }
  :is(body.post-type-archive-digiforma, body.single-digiforma) :is(.df-archive-title, .df-card-title) { font-size: 20px !important; }
}

/* Bannière cookies CookieYes : couleurs MyAiFactory, encart compact sur mobile */
.cky-consent-container, .cky-modal, .cky-overlay { z-index: 2147483646 !important; }
.cky-consent-container .cky-consent-bar, .cky-preference-center { font-family: 'DM Sans', sans-serif !important; color: #1A0038 !important; border-radius: 16px !important; }
.cky-consent-container .cky-title, .cky-preference-title { font-family: 'Outfit', sans-serif !important; font-weight: 700 !important; color: #1A0038 !important; }
.cky-consent-container .cky-notice-des, .cky-consent-container .cky-notice-des *, .cky-preference-content-wrapper, .cky-preference-content-wrapper * { color: #1A0038 !important; }
:is(.cky-consent-container, .cky-preference-center) .cky-btn { font-family: 'DM Sans', sans-serif !important; font-weight: 700 !important; border-radius: 30px !important; border: 2px solid #310A77 !important; }
:is(.cky-consent-container, .cky-preference-center) :is(.cky-btn-accept, .cky-btn-reject, .cky-btn-preferences) { background: #310A77 !important; color: #fff !important; }
:is(.cky-consent-container, .cky-preference-center) :is(.cky-btn-accept, .cky-btn-reject, .cky-btn-preferences):hover { background: #3A1B83 !important; border-color: #3A1B83 !important; opacity: 1 !important; }
.cky-consent-container .cky-btn-customize { background: transparent !important; color: #310A77 !important; }
.cky-consent-container .cky-btn-customize:hover { background: #F4F4FF !important; opacity: 1 !important; }
.cky-preference-center :is(.cky-show-desc-btn, .cky-always-active, .cky-accordion-btn) { color: #310A77 !important; }
.cky-preference-center .cky-switch input[type="checkbox"]:checked { background: #310A77 !important; }
.cky-btn-revisit-wrapper { background-color: #310A77 !important; }
@media (max-width: 767px) {
  .cky-consent-container.cky-box-bottom-left, .cky-consent-container.cky-box-bottom-right { left: 12px !important; right: 12px !important; bottom: 12px !important; width: auto !important; max-width: none !important; }
  .cky-consent-container .cky-consent-bar { box-shadow: 0 8px 32px rgba(26, 0, 56, 0.25) !important; }
  .cky-consent-container .cky-notice-content-wrapper { padding: 16px 0 10px !important; }
  .cky-consent-container .cky-title { font-size: 17px !important; line-height: 22px !important; margin-bottom: 6px !important; padding: 0 16px !important; }
  .cky-consent-container .cky-notice-des { padding: 0 16px !important; }
  .cky-consent-container .cky-notice-des, .cky-consent-container .cky-notice-des p { font-size: 13.5px !important; line-height: 20px !important; }
  .cky-consent-container .cky-notice-btn-wrapper { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; padding: 0 16px !important; margin-top: 12px !important; }
  .cky-consent-container .cky-notice-btn-wrapper .cky-btn { width: 100% !important; margin: 0 !important; padding: 9px 10px !important; font-size: 14px !important; line-height: 20px !important; }
  .cky-consent-container .cky-btn-reject { grid-column: 1; grid-row: 1; }
  .cky-consent-container .cky-btn-accept { grid-column: 2; grid-row: 1; }
  .cky-consent-container .cky-btn-customize { grid-column: 1 / -1; grid-row: 2; }
}

/* Articles : boutons d'action aux couleurs MyAiFactory (remplace les couleurs saisies à la main) */
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
body .entry-content .wp-block-button__link { background: #3A1B83 !important; color: #fff !important; border: 2px solid #3A1B83 !important; border-radius: 30px !important; font-family: 'DM Sans', sans-serif !important; font-size: 16px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0 !important; line-height: 1.2 !important; padding: 16px 24px !important; text-decoration: none !important; text-wrap: balance; }
body .entry-content :is(.is-style-outline .wp-block-button__link, .wp-block-button__link.is-style-outline) { background: transparent !important; color: #3A1B83 !important; }
body .entry-content .wp-block-button__link:hover, body .entry-content .wp-block-button__link:focus-visible { background: #EA580C !important; border-color: #EA580C !important; color: #fff !important; }
/* Guides et Actus : bouton « Voir plus d'articles » */
.ast-pagination-infinite .ast-load-more.active:not(.no-more), .ast-load-more.active:not(.no-more) { display: inline-block; background: #3A1B83 !important; color: #fff !important; border: 2px solid #3A1B83; border-radius: 30px; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700; text-transform: uppercase; line-height: 1.2; padding: 16px 24px !important; text-decoration: none; }
.ast-load-more.active:not(.no-more):hover { background: #EA580C !important; border-color: #EA580C; color: #fff !important; }
.ast-load-more.no-more { color: #1A0038 !important; font-size: 17px; }
@media (max-width: 1024px) { body .entry-content .wp-block-button__link, .ast-load-more.active:not(.no-more) { padding: 14px 18px !important; } }

/* En-tête ordinateur : menu centré sur la page (même largeur réservée au logo et au bouton téléphone) */
@media (min-width: 922px) {
  #ast-desktop-header .ast-primary-header-bar .ast-builder-grid-row { grid-template-columns: 160px minmax(0, 1fr) !important; column-gap: 0 !important; }
  #ast-desktop-header .site-header-primary-section-left { width: 160px; min-width: 0; }
  #ast-desktop-header .site-header-primary-section-right > .site-header-focus-item:has(.ast-builder-button-wrap) { flex: 0 0 160px !important; justify-content: flex-end !important; padding-left: 0 !important; }
  #ast-desktop-header .ast-builder-menu-1 { padding-left: 0 !important; padding-right: 0 !important; }
}
@media (min-width: 1190px) and (max-width: 1279px) {
  #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link { padding-left: 6px !important; padding-right: 6px !important; }
}

/* === MyAiFactory : liens lisibles sur fond sombre (ajout 2026-10-13) === */
.mf-fond-degrade a:not(.e-button-base):not(.elementor-button),
.mf-carte-sombre a:not(.e-button-base):not(.elementor-button),
.mf-texte-blanc a,
.mf-fond-degrade .mf-lien, .mf-carte-sombre .mf-lien,
[data-settings*='"background_background":"gradient"'] .elementor-widget-text-editor a,
[data-settings*='"background_background":"gradient"'] .elementor-widget-heading a {
  color: #FFFFFF !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mf-fond-degrade a:not(.e-button-base):not(.elementor-button):hover,
.mf-carte-sombre a:not(.e-button-base):not(.elementor-button):hover,
.mf-texte-blanc a:hover,
.mf-fond-degrade .mf-lien:hover, .mf-carte-sombre .mf-lien:hover,
[data-settings*='"background_background":"gradient"'] .elementor-widget-text-editor a:hover,
[data-settings*='"background_background":"gradient"'] .elementor-widget-heading a:hover {
  color: #EA580C !important;
}
/* === fin liens fond sombre === */


/* === MyAiFactory : encadrement uniforme des sections (ajout 2026-10-13) === */
.mf-section { padding-left: 0 !important; padding-right: 0 !important; }
.mf-section > .mf-contenu { max-width: 1600px; margin-left: auto; margin-right: auto; padding-left: 40px !important; padding-right: 40px !important; }
@media (max-width: 767px) {
  .mf-section > .mf-contenu { padding-left: 20px !important; padding-right: 20px !important; }
}
/* === fin encadrement uniforme === */


/* === MyAiFactory : premi\u00e8re section (H1) align\u00e9e sur le contenu + typographie all\u00e9g\u00e9e (ajout 2026-10-13) === */
.elementor[data-elementor-type="wp-page"] > .e-con:first-child > .e-con-inner,
.elementor[data-elementor-type="wp-page"] > .e-con:first-child.e-con-full > .e-con {
  max-width: 1600px !important; margin-left: auto !important; margin-right: auto !important; width: 100%;
}

body .elementor[data-elementor-type="wp-page"] .elementor-widget-heading:not(.stat-number) h1.elementor-heading-title, body .elementor[data-elementor-type="wp-page"] h1.elementor-heading-title, .mf-h1 { font-size: clamp(30px, 3vw, 44px) !important; line-height: 1.15 !important; }
body .elementor[data-elementor-type="wp-page"] .elementor-widget-heading:not(.stat-number) h2.elementor-heading-title, body .elementor[data-elementor-type="wp-page"] h2.elementor-heading-title, .mf-h2 { font-size: clamp(26px, 2.4vw, 34px) !important; line-height: 1.15 !important; }
.mf-h3 { font-size: 21px !important; }
.mf-texte, .mf-texte-blanc, .mf-faq-reponse { font-size: 16px !important; }
@media (max-width: 767px) {
  .mf-h3 { font-size: 19px !important; }
  .mf-texte, .mf-texte-blanc, .mf-faq-reponse { font-size: 15px !important; }
}
/* === fin menu + typographie === */

/* MyAiFactory : premiere section (H1) plafonnee a 1600px comme le reste du contenu (2026-10-13) */
.elementor[data-elementor-type="wp-page"] > .e-con:first-child > .e-con-inner,
.elementor[data-elementor-type="wp-page"] > .e-con:first-child.e-con-full > .e-con {
  max-width: 1600px !important; margin-left: auto !important; margin-right: auto !important; width: 100%;
}

@media (min-width: 768px) {
  .elementor[data-elementor-type="wp-page"] > .e-con:first-child > .e-con-inner,
  .elementor[data-elementor-type="wp-page"] > .e-con:first-child.e-con-full > .e-con { padding-left: 40px !important; padding-right: 40px !important; }
}

/* MyAiFactory : tailles V4 (titres et textes des pages refaites) - priorite sur les regles existantes (2026-10-13) */
body .elementor h1.e-heading-base.mf-h1 { font-size: clamp(30px, 3vw, 44px) !important; line-height: 1.15 !important; }
body .elementor h2.e-heading-base.mf-h2 { font-size: clamp(26px, 2.4vw, 34px) !important; line-height: 1.15 !important; }
body .elementor .e-heading-base.mf-h3 { font-size: 21px !important; }
body .elementor p.mf-texte, body .elementor p.mf-texte-blanc, body .elementor p.mf-faq-reponse { font-size: 16px !important; }
@media (max-width: 767px) {
  body .elementor .e-heading-base.mf-h3 { font-size: 19px !important; }
  body .elementor p.mf-texte, body .elementor p.mf-texte-blanc, body .elementor p.mf-faq-reponse { font-size: 15px !important; }
}

/* MF cartes avec image : meme format et cadrage */
.mf-carte img:not([src$=".svg"]), .mf-carte-sombre img:not([src$=".svg"]) { width: 100% !important; max-width: 100% !important; height: auto !important; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; display: block; }

/* MF pas de defilement horizontal parasite (sections 100vw) */
html, body { overflow-x: clip; }

/* MF en-tete page blog */
.mf-blog-hero { margin-bottom: 50px; }
@media (max-width: 767px) { .mf-blog-hero { margin-bottom: 30px; } }

.mf-blog-hero { background: linear-gradient(135deg, #310A77 60%, #3A1B83 80%); padding: 80px 0; }
.mf-blog-hero-in { max-width: 1600px; margin: 0 auto; padding: 0 40px; display: flex; flex-direction: column; gap: 1.5rem; }
.mf-blog-sur { color: #EA580C; font-size: 14px; font-weight: 700; text-transform: uppercase; margin: 0; }
.mf-blog-hero .mf-blog-h1 { color: #FFFFFF; font-family: Outfit, sans-serif; font-weight: 700; font-size: clamp(30px, 3vw, 44px); line-height: 1.15; margin: 0; }
.mf-blog-intro { color: #F4F4FF; font-size: 16px; line-height: 1.6; max-width: 62rem; margin: 0; }
@media (max-width: 767px) { .mf-blog-hero { padding: 50px 0; } .mf-blog-hero-in { padding: 0 20px; } }


/* En-tête ordinateur : bouton « Diagnostic IA gratuit » (entrée de menu de classe menu-diagnostic) */
@media (min-width: 922px) {
  #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.menu-diagnostic { margin-left: 4px; }
  #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.menu-diagnostic > .menu-link { border: 2px solid #EA580C; border-radius: 30px; color: #EA580C !important; font-weight: 700; padding: 6px 14px !important; line-height: 1.2 !important; transition: background-color .2s, color .2s; }
  #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.menu-diagnostic > .menu-link:hover { background: #EA580C; color: #FFFFFF !important; }
  #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.menu-diagnostic > .menu-link::before, #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.menu-diagnostic > .menu-link::after { display: none !important; }
}
/* De 922 à 1439 px : menu légèrement resserré pour que le bouton tienne sur la même ligne */
@media (min-width: 922px) and (max-width: 1439px) {
  #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link { font-size: 15px !important; padding-left: 5px !important; padding-right: 5px !important; }
  #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.menu-diagnostic > .menu-link { font-size: 14px !important; padding: 6px 11px !important; }
}

/* Bouton « Diagnostic IA gratuit » du menu : padding haut et bas légèrement réduit (hauteur 80px -> 56px, réglable ici) */
@media (min-width: 922px) {
  #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.menu-diagnostic { display: flex; align-items: center; margin-left: 16px; }
  #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.menu-diagnostic > .menu-link { height: auto !important; padding-top: 16px !important; padding-bottom: 16px !important; }
}

/* Bouton d’accessibilité (AllAccessible) : placé à gauche de la bulle du chat Chatbase, qui occupe le coin en bas à droite (les deux widgets s'y superposaient) */
#aacx-button.aacx-trigger-button { right: 82px !important; bottom: 10px !important; left: auto !important; top: auto !important; }
/* … et passé sous la bannière cookies tant qu'elle est affichée (sur mobile, elle occupe tout le bas de l'écran) */
nav:has(> #aacx-button) { z-index: 2147483645 !important; }

/* maf-rdv */
/* En-tête ordinateur : bouton « Prendre rendez-vous » (Microsoft Bookings), plein orange, placé avant « Diagnostic IA gratuit » */
@media (min-width: 922px) {
  #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.menu-rdv { display: flex; align-items: center; margin-left: 16px; }
  #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.menu-rdv > .menu-link { background: #EA580C; border: 2px solid #EA580C; border-radius: 30px; color: #FFFFFF !important; font-weight: 700; height: auto !important; line-height: 1.2 !important; padding: 16px 14px !important; transition: background-color .2s, border-color .2s; }
  #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.menu-rdv > .menu-link:hover, #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.menu-rdv > .menu-link:focus { background: #C2410C; border-color: #C2410C; color: #FFFFFF !important; }
  #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.menu-rdv > .menu-link::before, #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.menu-rdv > .menu-link::after { display: none !important; }
}
@media (min-width: 922px) and (max-width: 1439px) {
  #ast-desktop-header .ast-builder-menu-1 .main-header-menu > .menu-item.menu-rdv > .menu-link { font-size: 14px !important; padding: 16px 11px !important; }
}
/* /maf-rdv */

/* T31/T73 plan SEO (27/11/2026) : sur mobile, les boutons de l accueil (t\u00e9l\u00e9phone, solutions, diagnostic IA) passent juste sous le titre, avant le texte d introduction */
@media (max-width: 767px) {
  .elementor-8 .elementor-element-f4363b6 > .elementor-element-dbffc2d { order: 1; }
  .elementor-8 .elementor-element-f4363b6 > .elementor-element-cdc994c { order: 2; }
  .elementor-8 .elementor-element-f4363b6 > .elementor-element-c1a77d1 { order: 3; }
}
