#banner.mc1-hb{display:grid;grid-template-columns:minmax(0,2.45fr) minmax(0,1fr);gap:20px;width:100%;max-width:1700px;margin:30px auto 56px;padding:0 20px;box-sizing:border-box}#banner.mc1-hb *{box-sizing:border-box}#banner.mc1-hb .smalls-banners{display:grid;grid-template-rows:1fr 1fr;gap:20px;min-width:0}#banner.mc1-hb .mc1-hb-card{position:relative;overflow:hidden;border-radius:14px;min-width:0;min-height:165px;background:#4c3b31}#banner.mc1-hb .big-banner{min-height:350px}#banner.mc1-hb .mc1-hb-card>a{position:absolute;inset:0;display:block;color:#fff;text-decoration:none}#banner.mc1-hb .banner-image,#banner.mc1-hb .banner-image img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover}#banner.mc1-hb .banner-image:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.62),rgba(0,0,0,.08) 78%)}#banner.mc1-hb .banner-content{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;height:100%;padding:32px;color:#fff;pointer-events:none}#banner.mc1-hb .banner-content .h2{display:block;margin:0 0 18px;color:#fff;font-size:clamp(24px,2.5vw,42px);font-weight:700;line-height:1.2;text-shadow:0 2px 5px rgba(0,0,0,.4)}#banner.mc1-hb .banner-content p{margin:0 0 26px;color:#fff;font-size:clamp(14px,1.2vw,19px);line-height:1.4;text-shadow:0 1px 4px rgba(0,0,0,.6)}#banner.mc1-hb .decouverte{display:inline-block;padding:10px 19px;border-radius:24px;background:#bc1024;color:#fff;font-weight:700;font-size:13px}#banner.mc1-hb .small-banner .banner-content{flex-direction:row;align-items:center;justify-content:space-between;gap:10px;padding:18px 24px}#banner.mc1-hb .small-banner .banner-content .h2{font-size:clamp(17px,1.55vw,25px);margin:0}#banner.mc1-hb .small-banner .banner-content p{display:none}#banner.mc1-hb .small-banner .decouverte{flex:none;background:#fff;color:#b30b1d;font-size:12px;padding:9px 14px}#banner.mc1-hb .mc1-hb-card>a:hover .banner-image img{transform:scale(1.025)}#banner.mc1-hb .banner-image img{transition:transform .25s ease}@media(max-width:850px){#banner.mc1-hb{grid-template-columns:1fr;margin:18px auto 36px;gap:14px;padding:0 14px}#banner.mc1-hb .big-banner{min-height:300px}#banner.mc1-hb .smalls-banners{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:14px}#banner.mc1-hb .small-banner{min-height:170px}#banner.mc1-hb .small-banner .banner-content{align-items:flex-start;flex-direction:column;justify-content:flex-end}}@media(max-width:560px){#banner.mc1-hb .big-banner{min-height:270px}#banner.mc1-hb .smalls-banners{grid-template-columns:1fr}#banner.mc1-hb .small-banner{min-height:150px}#banner.mc1-hb .banner-content{padding:22px}#banner.mc1-hb .banner-content .h2{font-size:24px}#banner.mc1-hb .small-banner .banner-content{flex-direction:row;align-items:center;padding:16px}#banner.mc1-hb .small-banner .banner-content .h2{font-size:18px}}

/* Le thème possède aussi des règles pour #banner : neutraliser ses largeurs fixes. */
#banner.mc1-hb > .big-banner,
#banner.mc1-hb > .smalls-banners,
#banner.mc1-hb .smalls-banners > .small-banner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  flex: none !important;
}
#banner.mc1-hb .smalls-banners { grid-template-columns: minmax(0, 1fr); align-content: stretch; }
#banner.mc1-hb .banner-content { width: 100% !important; max-width: none !important; }
#banner.mc1-hb .banner-image { width: 100% !important; max-width: none !important; }
@media (min-width: 561px) and (max-width: 850px) {
  #banner.mc1-hb .smalls-banners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Sur téléphone : trois cartes défilantes, une à la fois, au doigt. */
@media (max-width: 767px) {
  #banner.mc1-hb {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 14px;
    -webkit-overflow-scrolling: touch;
    padding: 0 14px 8px;
    scrollbar-width: thin;
  }
  #banner.mc1-hb > .smalls-banners { display: contents !important; }
  #banner.mc1-hb > .big-banner,
  #banner.mc1-hb .smalls-banners > .small-banner {
    flex: 0 0 88% !important;
    width: 88% !important;
    height: 260px !important;
    min-height: 260px !important;
    scroll-snap-align: start;
  }
  #banner.mc1-hb .small-banner .banner-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }
}

/* Les trois cartes sont désormais des enfants directs : grille desktop, piste mobile. */
.mc1-hb-wrap { width: 100%; max-width: 1700px; margin: 30px auto 56px; overflow: hidden; }
#banner.mc1-hb { display: grid !important; grid-template-columns: minmax(0, 2.45fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 20px; width: 100% !important; max-width: 100% !important; margin: 0 !important; overflow: visible; }
#banner.mc1-hb > .big-banner { grid-column: 1; grid-row: 1 / span 2; }
#banner.mc1-hb > .small-banner { grid-column: 2; }
#banner.mc1-hb > .small-banner:nth-child(2) { grid-row: 1; }
#banner.mc1-hb > .small-banner:nth-child(3) { grid-row: 2; }
#banner.mc1-hb > .big-banner,
#banner.mc1-hb > .small-banner { width: 100% !important; max-width: none !important; margin: 0 !important; float: none !important; min-height: 165px; }
#banner.mc1-hb > .big-banner { min-height: 350px; }
.mc1-hb-controls { display: none; }
@media (max-width: 767px) {
  .mc1-hb-wrap { width: 100%; max-width: 100%; margin: 18px 0 30px; overflow: hidden; }
  #banner.mc1-hb { display: flex !important; flex-wrap: nowrap !important; gap: 12px; overflow-x: auto !important; overflow-y: hidden !important; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 0 14px 6px !important; }
  #banner.mc1-hb > .big-banner,
  #banner.mc1-hb > .small-banner { display: block !important; flex: 0 0 88% !important; width: 88% !important; height: 260px !important; min-height: 260px !important; scroll-snap-align: start; }
  #banner.mc1-hb > .small-banner .banner-content { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .mc1-hb-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 8px 0 0; }
  .mc1-hb-controls button { border: 1px solid #ddd; border-radius: 50%; width: 34px; height: 34px; background: #fff; color: #891d2e; font-size: 24px; line-height: 1; cursor: pointer; }
  .mc1-hb-position { font-size: 13px; color: #555; }
}

/* Repli fiable face aux règles du thème : une seule carte mobile à la fois. */
@media (max-width: 767px) {
  #banner.mc1-hb { display: block !important; overflow: hidden !important; padding: 0 14px !important; }
  #banner.mc1-hb > .mc1-hb-card { display: block; width: 100% !important; height: 260px !important; margin: 0 !important; }
  #banner.mc1-hb > .mc1-hb-card:not(:first-child) { display: none; }
  .mc1-hb-controls button:disabled { opacity: .35; cursor: default; }
}

/* Mobile : texte lisible sur le bas de l’image, cadrage et commandes tactiles. */
@media (max-width: 767px) {
  .mc1-hb-wrap { position: relative; padding-bottom: 48px; }
  #banner.mc1-hb > .mc1-hb-card { min-height: 300px !important; max-height: 390px; border-radius: 14px; }
  #banner.mc1-hb .banner-image img { object-fit: cover !important; object-position: var(--mc1-focus, 50%) center !important; }
  #banner.mc1-hb .banner-image:after { background: linear-gradient(0deg, rgba(12,16,12,.84) 0%, rgba(12,16,12,.46) 48%, rgba(12,16,12,.05) 100%) !important; }
  #banner.mc1-hb .mc1-hb-card .banner-content,
  #banner.mc1-hb .mc1-hb-card.small-banner .banner-content {
    display: flex !important; flex-direction: column !important; align-items: flex-start !important;
    justify-content: flex-end !important; gap: 0; width: 100% !important;
    padding: 24px 22px 25px !important;
  }
  #banner.mc1-hb .banner-content .h2,
  #banner.mc1-hb .small-banner .banner-content .h2 { font-size: clamp(22px, 5vw, 30px) !important; line-height: 1.16; margin: 0 0 9px !important; max-width: 90%; }
  #banner.mc1-hb .banner-content p { display: block; font-size: clamp(13px, 3vw, 16px); line-height: 1.35; margin: 0 0 16px; max-width: 90%; }
  #banner.mc1-hb .small-banner .banner-content p { display: none; }
  #banner.mc1-hb .decouverte,
  #banner.mc1-hb .small-banner .decouverte { padding: 10px 17px; min-height: 42px; border-radius: 24px; background: #b90d25; color: #fff; font-size: 13px; display: inline-flex; align-items: center; }
  .mc1-hb-controls { display: block; position: static; margin: 0; }
  .mc1-hb-arrows { position: absolute; top: 42%; left: 21px; right: 21px; z-index: 3; display: flex; justify-content: space-between; pointer-events: none; }
  .mc1-hb-controls .mc1-hb-arrows button { width: 46px; height: 46px; border: 0; background: rgba(255,255,255,.95); color: #781629; box-shadow: 0 2px 12px rgba(0,0,0,.25); font-size: 30px; font-weight: bold; pointer-events: auto; }
  .mc1-hb-controls .mc1-hb-arrows button:disabled { opacity: .25; }
  .mc1-hb-indicator { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 38px; }
  .mc1-hb-position { font-weight: 700; color: #543d3c; }
  .mc1-hb-progress { display: flex; align-items: center; gap: 5px; }
  .mc1-hb-progress i { width: 8px; height: 8px; border-radius: 10px; background: #d8d2d0; transition: width .18s ease, background-color .18s ease; }
  .mc1-hb-progress i.active { width: 22px; background: #a5172e; }
}

/* Commandes centrées sur le visuel et finitions plus discrètes. */
.mc1-hb-arrows { display: none; }
@media (max-width: 767px) {
  .mc1-hb-wrap { padding-bottom: 0; margin-bottom: 32px; }
  #banner.mc1-hb { position: relative; }
  #banner.mc1-hb > .mc1-hb-card { border-radius: 17px; box-shadow: 0 8px 24px rgba(42,28,24,.12); }
  #banner.mc1-hb .mc1-hb-arrows {
    display: flex; position: absolute; top: 50%; left: 25px; right: 25px;
    transform: translateY(-50%); justify-content: space-between;
    z-index: 4; pointer-events: none;
  }
  #banner.mc1-hb .mc1-hb-arrows button {
    width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.65);
    border-radius: 50%; background: rgba(28,25,24,.62); color: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,.18); font-size: 29px; line-height: 1;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    pointer-events: auto; cursor: pointer;
  }
  #banner.mc1-hb .mc1-hb-arrows button:hover,
  #banner.mc1-hb .mc1-hb-arrows button:focus { background: #94192d; color: #fff; }
  #banner.mc1-hb .mc1-hb-arrows button:disabled { opacity: .35; cursor: default; }
  .mc1-hb-indicator { width: max-content; min-height: 34px; margin: 9px auto 0; padding: 5px 13px; border: 1px solid #eee8e6; border-radius: 30px; background: #fff; box-shadow: 0 2px 9px rgba(42,28,24,.06); }
  .mc1-hb-progress i.active { background: #94192d; }
}
