/* ==============================================================
   APNBois - correctif responsive du carrousel de Noel 2026
   Charge APRES index-2025G.css; n'agit que sous 768px et dans
   .noel-slider. Ne modifie ni les cartes categories ni le panier.
   ============================================================== */
@media (max-width: 767.98px) {
  .container-section-slider.noel-slider {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .container-section-slider.noel-slider > .wrap {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 8px;
    border-radius: 16px;
    overflow: hidden;
  }

  .noel-slider .wrap > h2 {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 2px auto 10px;
    padding: 7px 9px;
    border-width: 2px;
    font-size: clamp(17px, 4.5vw, 22px);
    line-height: 1.25;
    overflow-wrap: break-word;
  }

  .noel-slider .carousel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
  }

  .noel-slider #track {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
  }

  .noel-slider #track > .noel-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #2b1b12;
  }

  .noel-slider .noel-card picture {
    display: block;
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #3b291d;
  }

  .noel-slider .noel-card picture img,
  .noel-slider .noel-card picture img.img-fluid {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    object-position: center center;
  }

  .noel-slider .noel-card::after {
    content: none;
    display: none;
  }

  .noel-slider .noel-copy {
    position: static;
    top: auto;
    left: auto;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    transform: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 14px 15px 18px;
    background: #2b1b12;
    color: #fff;
    text-align: left;
    overflow-wrap: break-word;
  }

  .noel-slider .noel-kicker {
    margin: 0 0 4px;
    font-size: clamp(18px, 4.5vw, 22px);
    line-height: 1.12;
  }

  .noel-slider .carousel .noel-copy h3 {
    margin: 0 0 8px;
    font-size: clamp(20px, 5.1vw, 25px);
    line-height: 1.17;
    overflow-wrap: break-word;
  }

  .noel-slider .noel-copy p,
  .noel-slider .carousel .noel-card .noel-copy p {
    margin: 0 0 13px;
    font-size: clamp(13px, 3.55vw, 15px);
    line-height: 1.46;
    color: #fff;
  }

  .noel-slider .noel-cta,
  .noel-slider .carousel .noel-card a.noel-cta {
    box-sizing: border-box;
    align-self: flex-start;
    min-height: 44px;
    max-width: 100%;
    margin-top: auto;
    padding: 10px 14px;
    font-size: 14px;
    white-space: normal;
    text-align: center;
  }

  .noel-slider .carousel-controls {
    gap: 14px;
    padding: 12px 0 4px;
  }

  .noel-slider .carousel-controls .ctrl-btn,
  .noel-slider .carousel-controls .ctrl-btn--pause {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    touch-action: manipulation;
  }

  .noel-slider > .azerty-right {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}
