.building-panel-diapo{position:relative;overflow:hidden;padding:0;background:#0f2f6b;border:2px solid var(--line)}
.building-panel-diapo .home-diapo-launch{position:relative;display:block;width:100%;padding:0;border:0;background:#16396f;cursor:pointer;text-align:left;color:#fff;font:inherit}
.building-panel-diapo .home-diapo-launch:focus-visible{outline:3px solid #9fc3ff;outline-offset:3px}
.home-diapo-cover{display:block;width:100%;height:340px;object-fit:cover;filter:saturate(1.04) contrast(1.02)}
.home-diapo-overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:24px;background:linear-gradient(180deg, rgba(6,18,38,.18) 0%, rgba(6,18,38,.24) 25%, rgba(6,18,38,.70) 100%)}
.home-diapo-kicker{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;margin-bottom:12px;background:rgba(255,255,255,.14);backdrop-filter:blur(3px);border:1px solid rgba(255,255,255,.28);border-radius:999px;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.home-diapo-kicker::before{content:"";width:10px;height:10px;border-radius:50%;background:#58d26a;box-shadow:0 0 0 6px rgba(88,210,106,.18)}
.home-diapo-title{font-family:'Arial Narrow',Arial,sans-serif;font-size:38px;line-height:1.02;font-weight:900;text-transform:uppercase;text-shadow:0 3px 18px rgba(0,0,0,.32);max-width:760px}
.home-diapo-subtitle{font-size:18px;line-height:1.4;margin-top:10px;max-width:700px;text-shadow:0 2px 12px rgba(0,0,0,.32)}
.home-diapo-cta{display:inline-flex;align-items:center;gap:12px;margin-top:18px;padding:14px 18px;background:#fff;color:#123566;border-radius:999px;font-weight:900;font-size:16px;box-shadow:0 12px 30px rgba(0,0,0,.18)}
.home-diapo-cta .play-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#123566;color:#fff;font-size:14px}
.home-diapo-launch:hover .home-diapo-cover{transform:scale(1.02);transition:transform .45s ease}
.home-diapo-hint{position:absolute;top:16px;right:16px;display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border-radius:999px;background:rgba(255,255,255,.95);color:#123566;font-size:13px;font-weight:800;box-shadow:0 8px 22px rgba(0,0,0,.18)}
.home-diapo-hint::before{content:"👆"}
.home-diapo-modal[hidden]{display:none!important}
.home-diapo-modal{position:fixed;inset:0;z-index:2000}
.home-diapo-backdrop{position:absolute;inset:0;background:rgba(5,10,18,.78);backdrop-filter:blur(4px)}
.home-diapo-dialog{position:relative;z-index:1;width:min(1200px, calc(100vw - 28px));max-height:calc(100vh - 28px);margin:14px auto;background:#0e1c35;color:#fff;border-radius:22px;overflow:hidden;box-shadow:0 22px 80px rgba(0,0,0,.45);display:flex;flex-direction:column}
.home-diapo-toolbar{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:rgba(255,255,255,.05);border-bottom:1px solid rgba(255,255,255,.08)}
.home-diapo-toolbar strong{font-size:20px;letter-spacing:.02em}
.home-diapo-toolbar small{display:block;opacity:.8;font-size:12px;margin-top:2px}
.home-diapo-close{appearance:none;border:0;background:rgba(255,255,255,.1);color:#fff;width:42px;height:42px;border-radius:50%;font-size:28px;line-height:1;cursor:pointer}
.home-diapo-stage{position:relative;background:#081427;display:flex;align-items:center;justify-content:center;min-height:520px}
.home-diapo-stage img{display:block;width:100%;max-height:70vh;object-fit:contain;background:#081427}
.home-diapo-nav{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:52px;border:0;border-radius:50%;background:rgba(10,24,46,.68);color:#fff;font-size:30px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 24px rgba(0,0,0,.28)}
.home-diapo-nav:hover{background:rgba(18,53,102,.88)}
.home-diapo-prev{left:18px}.home-diapo-next{right:18px}
.home-diapo-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;background:rgba(255,255,255,.05);border-top:1px solid rgba(255,255,255,.08);flex-wrap:wrap}
.home-diapo-counter{font-weight:800;font-size:15px}
.home-diapo-caption{font-size:14px;opacity:.88}
.home-diapo-audio{font-size:13px;opacity:.84}
.home-diapo-progress{position:relative;flex:1 1 220px;height:6px;border-radius:999px;background:rgba(255,255,255,.16);overflow:hidden;min-width:220px}
.home-diapo-progress>span{display:block;height:100%;width:0;background:linear-gradient(90deg,#4da3ff,#74d5ff)}
@media (max-width: 900px){
  .home-diapo-cover{height:300px}
  .home-diapo-title{font-size:30px;max-width:100%}
  .home-diapo-subtitle{font-size:16px;max-width:100%}
  .home-diapo-dialog{width:min(100vw - 14px, 1000px);margin:7px auto;max-height:calc(100vh - 14px);border-radius:18px}
  .home-diapo-stage{min-height:320px}
}
@media (max-width: 640px){
  .home-diapo-cover{height:240px}
  .home-diapo-overlay{padding:18px 16px}
  .home-diapo-title{font-size:25px}
  .home-diapo-subtitle{font-size:14px}
  .home-diapo-cta{font-size:14px;padding:12px 16px}
  .home-diapo-hint{top:12px;right:12px;font-size:12px;padding:8px 11px}
  .home-diapo-toolbar strong{font-size:17px}
  .home-diapo-stage img{max-height:58vh}
  .home-diapo-nav{width:42px;height:42px;font-size:24px}
  .home-diapo-prev{left:10px}.home-diapo-next{right:10px}
  .home-diapo-footer{padding:12px 14px}
  .home-diapo-progress{min-width:140px}
}


/* V165: masque complètement le sous-texte du bloc diaporama */
.home-diapo-subtitle{display:none!important}


/* V168 - cache sous-phrase modal diaporama */
.home-diapo-toolbar small {
  display: none !important;
}


/* V169 - diaporama accueil propre sur téléphone */
@media screen and (max-width: 780px) {
  .building-panel-diapo {
    min-height: 0 !important;
  }

  .building-panel-diapo .home-diapo-launch {
    min-height: 245px !important;
    overflow: hidden !important;
  }

  .building-panel-diapo .home-diapo-cover,
  .home-diapo-cover {
    height: 245px !important;
    min-height: 245px !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .building-panel-diapo .home-diapo-overlay,
  .home-diapo-overlay {
    inset: 0 !important;
    padding: 16px 14px 18px !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    background: linear-gradient(180deg, rgba(6,18,38,.12) 0%, rgba(6,18,38,.36) 45%, rgba(6,18,38,.82) 100%) !important;
    box-sizing: border-box !important;
  }

  /* Sur mobile on retire ce badge, il prend trop de place */
  .building-panel-diapo .home-diapo-kicker,
  .home-diapo-kicker {
    display: none !important;
  }

  .building-panel-diapo .home-diapo-title,
  .home-diapo-title {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
    font-size: 27px !important;
    line-height: .98 !important;
    letter-spacing: .4px !important;
    text-align: left !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  /* La phrase est bien supprimée/masquée partout */
  .building-panel-diapo .home-diapo-subtitle,
  .home-diapo-subtitle {
    display: none !important;
  }

  .building-panel-diapo .home-diapo-cta,
  .home-diapo-cta {
    margin: 0 !important;
    padding: 10px 13px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    gap: 8px !important;
    border-radius: 999px !important;
    max-width: calc(100% - 6px) !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  .building-panel-diapo .home-diapo-cta .play-icon,
  .home-diapo-cta .play-icon {
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
    font-size: 12px !important;
  }

  .building-panel-diapo .home-diapo-hint,
  .home-diapo-hint {
    top: 10px !important;
    right: 10px !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    max-width: 118px !important;
    white-space: nowrap !important;
    box-shadow: 0 6px 16px rgba(0,0,0,.20) !important;
    z-index: 3 !important;
  }

  .building-panel-diapo .home-diapo-hint::before,
  .home-diapo-hint::before {
    content: "☝" !important;
  }
}

@media screen and (max-width: 430px) {
  .building-panel-diapo .home-diapo-launch,
  .building-panel-diapo .home-diapo-cover,
  .home-diapo-cover {
    height: 228px !important;
    min-height: 228px !important;
  }

  .building-panel-diapo .home-diapo-title,
  .home-diapo-title {
    font-size: 23px !important;
    line-height: 1.02 !important;
    max-width: 78% !important;
  }

  .building-panel-diapo .home-diapo-cta,
  .home-diapo-cta {
    font-size: 12px !important;
    padding: 9px 12px !important;
  }

  .building-panel-diapo .home-diapo-hint,
  .home-diapo-hint {
    font-size: 11px !important;
    max-width: 105px !important;
  }
}

@media screen and (max-width: 360px) {
  .building-panel-diapo .home-diapo-title,
  .home-diapo-title {
    font-size: 21px !important;
    max-width: 76% !important;
  }
}
