/* OYC Agence — optimisation mobile v0.8.386.
   Scope strict : uniquement .oyc-page-agence et <=767px ; ordinateur intact. */
@media (max-width:767px) {
  html body .oyc-page-agence {
    --oyc-agency-mobile-gutter:12px;
    --oyc-agency-mobile-card-width:142px;
    --oyc-agency-mobile-card-height:156px;
  }
  /* Navigation haute = vignettes comme Références : 50% visuel / 50% libellé.
     Une taille uniforme même lorsqu'une rubrique est sélectionnée. */
  html body .oyc-page-agence .oyc-agence-jump-nav {
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:10px!important;
    box-sizing:border-box!important;
    width:calc(100% - 2 * var(--oyc-agency-mobile-gutter))!important;
    max-width:none!important;
    margin:0 auto 14px!important;
    padding:7px 1px 10px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;
    scroll-padding-inline:2px;
    scrollbar-width:thin;
    scrollbar-color:#f0867b #071730;
    -webkit-overflow-scrolling:touch;
    top:var(--oyc-agence-menu-top,82px)!important;
    background:#071730!important;
  }
  html body .oyc-page-agence .oyc-agence-jump-nav .oyc-agence-jump,
  html body .oyc-page-agence .oyc-agence-jump-nav .oyc-agence-jump.is-active {
    position:relative!important;
    box-sizing:border-box!important;
    flex:0 0 var(--oyc-agency-mobile-card-width)!important;
    width:var(--oyc-agency-mobile-card-width)!important;
    min-width:var(--oyc-agency-mobile-card-width)!important;
    max-width:var(--oyc-agency-mobile-card-width)!important;
    height:var(--oyc-agency-mobile-card-height)!important;
    min-height:var(--oyc-agency-mobile-card-height)!important;
    max-height:var(--oyc-agency-mobile-card-height)!important;
    border:1px solid #8290a7!important;
    border-radius:20px!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-end!important;
    align-items:stretch!important;
    padding:0 0 0!important;
    margin:0!important;
    transform:none!important;
    background-color:#071730!important;
    background-repeat:no-repeat!important;
    background-position:center top!important;
    background-size:100% 50%!important;
    scroll-snap-align:start;
    transition:border-color .15s ease,box-shadow .15s ease!important;
  }
  html body .oyc-page-agence .oyc-agence-jump-nav .oyc-agence-jump.is-active,
  html body .oyc-page-agence .oyc-agence-jump-nav .oyc-agence-jump[aria-current="true"],
  html body .oyc-page-agence .oyc-agence-jump-nav .oyc-agence-jump[aria-selected="true"] {
    border:2px solid #f0867b!important;
    box-shadow:0 0 0 1px rgba(240,134,123,.12)!important;
  }
  /* Images matérialisées dans le DOM plutôt que via background CSS. */
  html body .oyc-page-agence .oyc-agence-jump-nav .oyc-agence-jump > img,
  html body .oyc-page-agence .oyc-agence-jump-nav .oyc-agence-jump > picture,
  html body .oyc-page-agence .oyc-agence-jump-nav .oyc-agence-jump > picture > img {
    position:absolute!important;top:0!important;left:0!important;
    width:100%!important;height:50%!important;
    max-height:50%!important;object-fit:cover!important;
    border-radius:18px 18px 0 0!important;
  }
  /* Demi-bandeau inférieur bleu nuit : le titre est toujours lisible. */
  html body .oyc-page-agence .oyc-agence-jump-nav .oyc-agence-jump::before {
    content:""!important;position:absolute!important;
    inset:50% 0 0!important;background:#071730!important;
    z-index:1!important;pointer-events:none!important;
  }
  html body .oyc-page-agence .oyc-agence-jump-nav .oyc-agence-jump span,
  html body .oyc-page-agence .oyc-agence-jump-nav .oyc-agence-jump.is-active span {
    position:relative!important;z-index:2!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    line-clamp:2!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-height:0!important;max-height:66px!important;
    margin:0!important;
    padding:0 10px 12px!important;
    overflow:hidden!important;
    white-space:normal!important;
    text-overflow:clip!important;
    overflow-wrap:break-word!important;
    font-family:inherit!important;
    font-size:clamp(12px,3.6vw,15px)!important;
    font-weight:750!important;
    line-height:1.22!important;
    text-align:left!important;
    color:#fff!important;
    text-shadow:none!important;
  }
  html body .oyc-page-agence .oyc-agence-jump-nav .oyc-agence-jump:focus-visible {
    outline:3px solid #fff!important;outline-offset:2px!important;
  }
  /* Introduction : typographie, espacements, largeur cohérents avec Enjeux. */
  html body .oyc-page-agence .oyc-page-agence-top {
    box-sizing:border-box!important;
    width:calc(100% - 24px)!important;
    margin:0 auto!important;
    padding:10px 0 20px!important;
  }
  html body .oyc-page-agence .oyc-page-agence-top h1 {
    font-size:clamp(24px,6.4vw,29px)!important;
    font-weight:800!important;
    line-height:1.18!important;
    letter-spacing:-.015em!important;
    overflow-wrap:normal!important;
    hyphens:none!important;
    margin:0 0 12px!important;
  }
  html body .oyc-page-agence .oyc-agence-current-description,
  html body .oyc-page-agence .oyc-agence-current-description p {
    font-size:15px!important;
    line-height:1.56!important;
    letter-spacing:0!important;
    margin:0 0 11px!important;
    color:#e3e9f2!important;
    overflow-wrap:break-word!important;
  }
  /* Les panneaux et contenus respirent, sans ascenseur intérieur forcé. */
  html body .oyc-page-agence .oyc-final-panels {
    box-sizing:border-box!important;
    width:calc(100% - 24px)!important;
    max-width:none!important;
    margin:0 auto 28px!important;
    padding:0!important;
  }
  html body .oyc-page-agence .oyc-final-panels > .oyc-final-panel:not([hidden]) {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    padding:16px 14px 18px!important;
    border:1px solid rgba(255,255,255,.18)!important;
    border-radius:16px!important;
    margin:0!important;
    height:auto!important;
    overflow:visible!important;
  }
  html body .oyc-page-agence .oyc-final-panel h2,
  html body .oyc-page-agence .oyc-final-panel h3 {
    font-size:clamp(19px,5.3vw,23px)!important;
    line-height:1.25!important;
    margin-bottom:10px!important;
    overflow-wrap:break-word!important;
  }
  html body .oyc-page-agence .oyc-final-panel p,
  html body .oyc-page-agence .oyc-final-panel li {
    font-size:14px!important;
    line-height:1.55!important;
  }
  html body .oyc-page-agence .oyc-final-panel :is(img,video,iframe) {
    max-width:100%!important;
  }
  html body .oyc-page-agence .oyc-final-panel :is(a,button):focus-visible {
    outline:2px solid #f0867b!important;outline-offset:3px!important;
  }
}
@media (max-width:767px) and (prefers-reduced-motion:reduce) {
 html body .oyc-page-agence .oyc-agence-jump-nav,
 html body .oyc-page-agence .oyc-agence-jump-nav .oyc-agence-jump {scroll-behavior:auto!important;transition:none!important;}
}
