/* MAconnect – Responsive 1.2.3 — correctifs d'affichage 320 → 1440 px. Désactiver l'extension annule tout. */

/* 1. Catalogue : éléments e-learning inutiles (toutes largeurs) */
.lpr_course .course-instructor,
.lpr_course .course-lesson,
.lpr_course .course-students{display:none!important}

/* 2. Fiche : ancre de défilement sous l'en-tête collant */
aside.mc-card{scroll-margin-top:96px}
@media (max-width:1024px){aside.mc-card{scroll-margin-top:16px}}

@media (max-width:1024px){
  /* Médias jamais plus larges que l'écran */
  img{max-width:100%;height:auto}
  iframe,video{max-width:100%}

  /* Fiche : la carte d'inscription ne doit jamais dépasser l'écran */
  .mc-course__body>*,
  aside.mc-card,
  aside.mc-card .mcw-cg__card,
  aside.mc-card .mcw-cg__info{min-width:0!important;max-width:100%!important;box-sizing:border-box}
  aside.mc-card .mcw-cg__tab{min-width:0;white-space:normal}

  /* Barre de navigation du bas : 4 cases égales, jamais hors écran */
  .navbar-mobile-button{display:flex!important;align-items:stretch;justify-content:space-between;box-sizing:border-box;padding-bottom:env(safe-area-inset-bottom,0)}
  html body .navbar-mobile-button>.item-menubar{flex:1 1 0!important;min-width:0!important;width:auto!important;max-width:none!important;margin:0!important;padding-left:4px!important;padding-right:4px!important;transition-property:color,background-color,opacity!important}
  .navbar-mobile-button>.item-menubar>a,
  .navbar-mobile-button>.item-menubar>.search-toggle{width:100%;min-width:0}
  .navbar-mobile-button .item-menubar span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html body .navbar-mobile-button .item-menubar,
  html body .navbar-mobile-button .item-menubar>a,
  html body .navbar-mobile-button .item-menubar .search-toggle,
  html body .navbar-mobile-button .item-menubar a.login{color:#474A6E!important}
  html body .navbar-mobile-button .item-menubar.active,
  html body .navbar-mobile-button .item-menubar.active *{color:#B50E26!important}
  .navbar-mobile-button .thim-login-popup a.login::before,
  .navbar-mobile-button .thim-login-popup::before,
  .navbar-mobile-button .thim-login-popup::after{content:none!important;display:none!important}

  /* Texte lisible : 12 px minimum */
  html body .mcw-tag,html body .mcw-tag *,html body .lpr_course small,html body .mc-cardprice,
  html body .navbar-mobile-button .item-menubar span,
  html body .mcw-new__thumb i,html body .mcw-new__txt small,
  html body .mth .bars,html body .card .date small{font-size:12px!important}
  html body small{font-size:max(12px,.8em)}

  /* Liens courts : cibles tactiles ≥ 24 px */
  .thim-link-login a{display:inline-block;padding-top:8px;padding-bottom:8px}
  .lpr_course .course-title a,.thim-ekits-course__title a{display:inline-block;padding-top:2px;padding-bottom:2px}

  /* Liste des domaines (catalogue) : cibles tactiles */
  .thim-widget-course-categories li a{display:inline-block;padding-top:7px;padding-bottom:7px}

  /* Pied de page : cibles tactiles ≥ 32 px */
  .site-footer .thim-header-info li a,
  footer .thim-header-info li a{display:inline-block;padding-top:6px;padding-bottom:6px;min-height:32px;box-sizing:border-box}
  .site-footer .thim-social-media a,
  footer .thim-social-media a{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px}
  .breadcrumbs a,.mc-crumbs a,[class*=breadcrumb] a{display:inline-block;padding-top:6px;padding-bottom:6px}
}

/* Champs : 16 px pour éviter le zoom automatique de l'iPhone */
@media (max-width:767px){
  html body .mcw-cg .mcw-buy select,
  html body .mhx__search input[type=search],html body .mhx__search input[type=text],
  html body input[type=text],html body input[type=email],html body input[type=tel],html body input[type=search],html body input[type=number],
  html body input[type=url],html body input[type=password],html body input[type=date],html body input:not([type]),html body select,html body textarea{font-size:16px!important}
}

/* Tablette : carte d'inscription centrée, pas étirée sur 700 px */
@media (min-width:600px) and (max-width:1024px){
  aside.mc-card{width:100%;max-width:560px!important;margin-left:auto!important;margin-right:auto!important}
}

/* Catalogue sur téléphone : cartes compactes (vignette + texte) */
@media (max-width:600px){
  .post-type-archive-lp_course .lpr_course,
  .tax-course_category .lpr_course{width:100%!important;flex:0 0 100%!important;max-width:100%!important}
  .post-type-archive-lp_course .lpr_course .course-item,
  .tax-course_category .lpr_course .course-item{display:grid;grid-template-columns:96px minmax(0,1fr);column-gap:14px;align-items:start;padding:12px!important;margin-bottom:12px!important}
  .post-type-archive-lp_course .lpr_course .course-thumbnail,
  .tax-course_category .lpr_course .course-thumbnail{margin:0!important;border-radius:10px;overflow:hidden}
  .post-type-archive-lp_course .lpr_course .course-thumbnail img,
  .tax-course_category .lpr_course .course-thumbnail img{width:96px!important;height:96px!important;object-fit:cover}
  .post-type-archive-lp_course .lpr_course .course-readmore,
  .tax-course_category .lpr_course .course-readmore{display:none!important}
  .post-type-archive-lp_course .lpr_course .thim-course-content,
  .tax-course_category .lpr_course .thim-course-content{padding:0!important;border:0!important;min-width:0;text-align:left!important}
  .post-type-archive-lp_course .lpr_course .course-price,
  .tax-course_category .lpr_course .course-price{float:none!important;text-align:left!important;margin:0!important}
  .post-type-archive-lp_course .lpr_course .course-title,
  .tax-course_category .lpr_course .course-title{font-size:16px!important;line-height:1.3!important;margin:0 0 6px!important;padding:0!important}
  .post-type-archive-lp_course .lpr_course .course-description,
  .tax-course_category .lpr_course .course-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.4;margin:0 0 6px}
  .post-type-archive-lp_course .lpr_course .course-meta,
  .tax-course_category .lpr_course .course-meta{padding:0!important;margin:0!important;border:0!important;min-height:0!important}
}

/* Très petits écrans (≤ 359 px) */
@media (max-width:359px){
  aside.mc-card .mcw-cg__card{padding-left:16px!important;padding-right:16px!important}
}

/* Téléphone à l'horizontale : barre du bas compacte */
@media (max-width:1024px) and (max-height:500px) and (orientation:landscape){
  .navbar-mobile-button{height:auto!important;min-height:0!important;padding-top:4px!important;padding-bottom:max(4px,env(safe-area-inset-bottom,0))!important}
  .navbar-mobile-button .item-menubar span{display:none!important}
}

/* Barre « Choisir ma session » des fiches formation (≤ 1024 px) */
.mcr-bar{position:fixed;left:0;right:0;bottom:var(--mcr-nav,0px);z-index:998;display:flex;align-items:center;gap:12px;
  padding:10px 16px;background:#12143A;color:#fff;box-shadow:0 -10px 28px -6px rgba(11,12,40,.35);
  transform:translateY(130%);transition:transform .3s cubic-bezier(.16,1,.3,1);box-sizing:border-box}
.mcr-bar.is-on{transform:none}
.mcr-bar__p{flex:1 1 auto;min-width:0;font:500 12px/1.25 "Instrument Sans",sans-serif;color:#C9C7EC}
.mcr-bar__p strong{display:block;font:800 19px/1.15 "Bricolage Grotesque",sans-serif;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mcr-bar__p strong small{font:600 12px/1 "Instrument Sans",sans-serif;color:#C9C7EC;margin-left:4px}
.mcr-bar__btn{flex:0 0 auto;min-height:44px;padding:0 18px;border:0;border-radius:8px;background:#E3122F;color:#fff;
  font:600 15px/1 "Instrument Sans",sans-serif;text-transform:none!important;letter-spacing:0!important;cursor:pointer}
.mcr-bar__btn:hover{background:#C70F29}
.mcr-bar__btn:focus-visible{outline:3px solid #E9C46A;outline-offset:2px}
@media (min-width:1025px){.mcr-bar{display:none!important}}
@media (prefers-reduced-motion:reduce){.mcr-bar{transition:none}}

/* Accueil sur téléphone : carrousels à balayer et domaines sur 2 colonnes (1.1.0) */
@media (max-width:767px){
  .home .thim-ekits-course__inner,
  .home .mcw-sol__grid{display:flex!important;flex-wrap:nowrap!important;grid-template-columns:none!important;gap:14px!important;
    overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-left:2px;overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;padding:4px 2px 14px!important;margin-bottom:0!important}
  .home .thim-ekits-course__inner::-webkit-scrollbar,
  .home .mcw-sol__grid::-webkit-scrollbar{display:none}
  .home .thim-ekits-course__inner>.thim-ekits-course__item{flex:0 0 80%!important;max-width:300px!important;width:auto!important;margin:0!important;scroll-snap-align:start}
  .home .mcw-sol__grid>.mcw-sol__card{flex:0 0 82%!important;max-width:310px!important;width:auto!important;margin:0!important;scroll-snap-align:start}
  .mcr-swipe{display:flex;align-items:center;gap:6px;margin:2px 2px 0;font:500 13px/1.3 "Instrument Sans",sans-serif;color:#5B5E7E}
  .mcr-swipe svg{flex:0 0 auto}

  .home .mcw-dom__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .home .mcw-dom__grid>.mcw-dom__card{flex-direction:column!important;align-items:flex-start!important;gap:8px!important;padding:12px!important;min-height:0!important;height:auto!important}
  .home .mcw-dom__grid>.mcw-dom__card .mcw-dom__ico{width:36px!important;height:36px!important}
  .home .mcw-dom__grid>.mcw-dom__card .mcw-dom__ico svg{width:20px;height:20px}
  .home .mcw-dom__grid>.mcw-dom__card .mcw-dom__txt{min-width:0;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
  .home .mcw-dom__grid>.mcw-dom__card .mcw-dom__go{display:none!important}
  .home .mcw-dom__grid.mcr-collapsed>.mcw-dom__card:nth-child(n+7){display:none!important}
  .mcr-more{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin:12px 0 0;padding:0 16px;
    border:1.5px solid #12143A;border-radius:8px;background:#fff;color:#12143A;font:600 15px/1 "Instrument Sans",sans-serif;cursor:pointer}
  html body button.mcr-more{background:#fff!important;color:#12143A!important;border:1.5px solid #12143A!important;text-transform:none!important;letter-spacing:0!important;box-shadow:none!important}
  html body button.mcr-more:hover{background:#F3F2FC!important}
  .mcr-more:focus-visible{outline:3px solid #E9C46A;outline-offset:2px}
}
@media (min-width:768px){.mcr-more{display:none!important}}

/* 1.2.0 — Bandeau « Transmettez votre expertise » et pied de page sur téléphone */
@media (max-width:767px){
  html body .mcw-tr .mcw-tr__in{grid-template-columns:minmax(0,1fr)!important}
  html body .mcw-tr .mcw-tr__l,html body .mcw-tr .mcw-tr__r,html body .mcw-tr .mcw-tr__card,html body .mcw-tr .mcw-tr__step{min-width:0!important;max-width:100%!important}
  .mcw-tr .mcw-tr__r>svg{display:none!important}
  .mcw-tr .mcw-tr__ben{display:flex!important;grid-template-columns:none!important;flex-wrap:nowrap!important;gap:12px!important;
    overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;padding:2px 2px 10px!important}
  .mcw-tr .mcw-tr__ben::-webkit-scrollbar{display:none}
  .mcw-tr .mcw-tr__ben>li{flex:0 0 82%!important;max-width:300px;scroll-snap-align:start;margin:0!important}
  .mcw-tr .mcw-tr__chips{flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;padding-bottom:6px;
    -webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent)}
  .mcw-tr .mcw-tr__chips::-webkit-scrollbar{display:none}
  .mcw-tr .mcw-tr__chips>*{flex:0 0 auto!important;white-space:nowrap}

  footer .elementor-element-c9c2e9a>.elementor-container{display:flex!important;flex-wrap:wrap!important}
  footer .elementor-element-c9c2e9a>.elementor-container>.elementor-column{width:50%!important;max-width:50%!important;flex:0 0 50%!important}
  footer .elementor-element-c9c2e9a>.elementor-container>.elementor-column.elementor-element-3f8b543{width:100%!important;max-width:100%!important;flex:0 0 100%!important}
}
@media (max-width:359px){
  footer .elementor-element-c9c2e9a>.elementor-container>.elementor-column{width:100%!important;max-width:100%!important;flex:0 0 100%!important}
}

/* 1.2.1 — Texte ≥ 12 px aussi sur ordinateur ; lien Déconnexion de la barre haute masqué ≤ 1024 px (débordait de 5 px à 1024) */
html body .mcw-tag,html body .mcw-tag *,html body .mcw-new__thumb i,html body .mcw-new__txt small,
html body .mth .bars,html body .card .date small{font-size:12px!important}
@media (max-width:1024px){.thim-link-login a.logout{display:none!important}}

/* 1.2.2 — Révision : titre du héros coupé sous 400 px ; bouton panier coupé à 320 px */
@media (max-width:400px){
  html body .mhx .mhx__title.mhx__title{font-size:min(40px,calc((100vw - 56px) * .11))!important}
}
@media (max-width:359px){
  html body aside.mc-card .variations_button{flex-wrap:wrap!important;gap:10px!important}
  html body aside.mc-card .variations_button .single_add_to_cart_button{flex:1 1 100%!important;width:100%!important;margin-left:0!important}
}

/* 1.2.3 — Révision : marge négative (−20 px) du lien Espace client dans la barre haute à 1024 px ; prix « MAD HT » des nouvelles formations à 12 px */
@media (max-width:1100px){.elementor-widget-container:has(>.thim-link-login){margin-right:0!important}}
html body .mcw-new__end i{font-size:12px!important}
