/* Masquer le titre natif "Accueil" uniquement sur la page d'accueil */
body.home .entry-title,
body.home .page-title,
body.home .wp-block-post-title,
body.home header.entry-header,
body.home .page-header {
  display: none !important;
}

/* Carte cadeau de l’Institut Régine Reibel — mise en page mobile. */
@media (max-width: 767px) {
  body.postid-11402 .elementor-element-1fada3e > .e-con-inner {
    gap: 14px;
  }

  body.postid-11402 .elementor-element-5dc38d2 {
    display: contents;
  }

  body.postid-11402 .elementor-element-5dc38d2 > .elementor-widget {
    box-sizing: border-box;
    width: 100%;
    padding-inline: 10px;
  }

  body.postid-11402 .elementor-element-4016ff1 {
    order: -2;
  }

  body.postid-11402 .elementor-element-4016ff1 h1 {
    font-size: 32px;
    line-height: 1.12;
  }

  body.postid-11402 .elementor-element-6364c36 {
    order: -1;
  }

  body.postid-11402 .elementor-element-6364c36 p {
    margin: 0 0 6px;
  }

  body.postid-11402 .elementor-element-a4c5523 {
    display: none;
  }

  body.postid-11402 .elementor-widget-woocommerce-product-images .woocommerce-product-gallery__image > a > img {
    display: block;
    width: 100%;
    height: clamp(180px, 52vw, 240px);
    object-fit: cover;
    object-position: center 65%;
  }

  body.postid-11402 .ywgc-main-form-preview-container {
    height: auto;
    min-height: 0;
    padding: 14px;
  }

  body.postid-11402 .ywgc-form-preview-title-container {
    margin-top: 0;
  }

  body.postid-11402 .ywgc-main-form-preview-container hr {
    margin-top: 8px !important;
  }

  body.postid-11402 .ywgc-form-preview-from-to-container {
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  body.postid-11402 .gift-cards_form .ywgc-design-list > ul {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body.postid-11402 .gift-cards_form .ywgc-design-list > ul > li {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
  }

  body.postid-11402 .gift-cards_form .ywgc-design-list > ul > li:last-child:has(.ywgc-preset-image-view-all) {
    grid-column: 1 / -1;
  }

  body.postid-11402 .gift-cards_form .ywgc-design-list .ywgc-preset-image {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  body.postid-11402 .gift-cards_form .ywgc-design-list .ywgc-preset-image > img:not(.ywgc_upload_plus_icon) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.postid-11402 .gift-cards_form .ywgc-design-list .ywgc-preset-image-view-all {
    height: 44px;
    aspect-ratio: auto;
  }

  body.postid-11402 .gift-cards_form .ywgc-design-list .ywgc-preset-image-view-all .ywgc-choose-template {
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0 8px;
    font-size: 13px;
  }

  body.postid-11402 .gift-cards_form .ywgc-design-list .ywgc_upload_plus_icon {
    position: absolute;
    top: 42%;
    left: 50%;
    width: 24px;
    height: auto;
    margin: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  body.postid-11402 .gift-cards_form .ywgc-design-list .ywgc-custom-upload-label {
    inset: auto 0 10%;
    margin: 0;
    font-size: 10px;
    line-height: 1.2;
    pointer-events: none;
  }

  /* Le calendrier YITH est placé directement sous body. */
  body.postid-11402 #ui-datepicker-div.ywgc-date-picker {
    box-sizing: border-box;
    left: 20px !important;
    width: min(380px, calc(100% - 40px));
    min-width: 0;
    padding: 10px;
    font-size: 14px;
  }

  body.postid-11402 #ui-datepicker-div.ywgc-date-picker .ui-datepicker-calendar {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    font-size: 14px;
  }

  body.postid-11402 #ui-datepicker-div.ywgc-date-picker .ui-datepicker-calendar th,
  body.postid-11402 #ui-datepicker-div.ywgc-date-picker .ui-datepicker-calendar td {
    padding: 1px;
    text-align: center;
  }

  body.postid-11402 #ui-datepicker-div.ywgc-date-picker .ui-datepicker-calendar td .ui-state-default {
    padding: 6px 0;
    text-align: center;
  }

  body.postid-11402 #ui-datepicker-div.ywgc-date-picker .ui-datepicker-buttonpane button {
    max-width: 100%;
    margin-inline: 0;
    padding: 8px;
    font-size: 13px;
  }
}