/* Story verticale affichée seule (pleine largeur de colonne) */
.blog-article .ja69-story { max-width: 420px; margin: 2rem auto; }
.blog-article .ja69-story img { height: auto; max-height: none; object-fit: contain; }

/* Captures de stories publiées (vidéo verticale) */
.ja69-video { margin: 2rem 0; }
.blog-article .ja69-video video { display: block; width: 100%; max-width: 390px; height: auto; max-height: 78vh; object-fit: contain; margin: 1rem auto; border-radius: 18px; background: #111; }

/* Renvoi vers un contenu hébergé sur Instagram (reel non lisible hors de leur app) */
.blog-article .ja69-linkout { margin: 2rem 0; padding: 1.25rem 1.4rem; border: 1px solid rgba(103, 94, 255, 0.28); border-radius: 16px; background: rgba(103, 94, 255, 0.05); }
.blog-article .ja69-linkout > *:first-child { margin-top: 0; }
.blog-article .ja69-linkout > *:last-child { margin-bottom: 0; }
.blog-article .ja69-linkout__btn { display: inline-block; padding: 0.6rem 1.1rem; border-radius: 999px; background: #0f1a2b; color: #fff; text-decoration: none; font-weight: 600; }
.blog-article .ja69-linkout__btn:hover, .blog-article .ja69-linkout__btn:focus { background: #675eff; color: #fff; }

/* Le programme officiel : document portrait, affiché en largeur limitée */
.blog-article .ja69-programme { margin: 2rem auto; max-width: 520px; }
.blog-article .ja69-programme img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; border-radius: 14px; border: 1px solid rgba(103, 94, 255, 0.22); background: #fff; box-shadow: 0 18px 35px rgba(16, 12, 40, 0.12); }

/* Bloc « journal » : image portrait et texte côte à côte.
   La bascule dépend de la largeur réelle de la colonne d'article (≈700 px max),
   pas de celle de la fenêtre : d'où la container query. */
.blog-article .ja69-journal { container-type: inline-size; margin: 2.5rem 0; }
.blog-article .ja69-inline { display: grid; gap: 1.25rem; align-items: start; }
.blog-article .ja69-inline > figure { margin: 0 auto; max-width: 320px; }
.blog-article .ja69-inline > figure img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; border-radius: 16px; border: 1px solid rgba(103, 94, 255, 0.22); box-shadow: 0 18px 35px rgba(16, 12, 40, 0.12); }
.blog-article .ja69-inline > figure figcaption { margin-top: 0.6rem; font-size: 0.8rem; line-height: 1.45; opacity: 0.8; }
.blog-article .ja69-inline__text > *:first-child { margin-top: 0; }

@container (min-width: 540px) {
    .blog-article .ja69-inline { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 1.75rem; }
    .blog-article .ja69-inline > figure { margin: 0; max-width: none; }
}

/* ---- Carrousel des master shots drone ---- */
.blog-article .ja69-drone .article-carousel__slide img { cursor: zoom-in; }
.blog-article .ja69-drone .article-carousel__slide img:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.blog-article .ja69-drone .article-carousel__slide figcaption { padding: 2.2rem 1rem 0.75rem; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); line-height: 1.4; }
.blog-article .ja69-drone__hint { margin-top: -0.9rem; text-align: center; font-size: 0.84rem; opacity: 0.75; }

/* ---- Visionneuse plein écran (zoom.js) ----
   z-index 50000 : au-dessus du header fixe (11000), du centre d'accessibilité
   (12000) et du bandeau cookies (9999), mais sous la popup RDV (99999). */
/* display:flex l'emporte sur le display:none du navigateur pour [hidden] :
   sans cette règle, la visionneuse reste affichée en permanence. */
.ja69-zoom[hidden] { display: none !important; }
.ja69-zoom { position: fixed; inset: 0; z-index: 50000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; padding: 3.2rem 1rem 1rem; background: rgba(8, 8, 12, 0.94); backdrop-filter: blur(4px); }
.ja69-zoom__stage { position: relative; display: flex; align-items: center; justify-content: center; max-width: 100%; min-height: 0; flex: 1 1 auto; }
.ja69-zoom__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; transition: opacity 0.2s; }
.ja69-zoom.is-loading .ja69-zoom__stage img { opacity: 0.25; }
.ja69-zoom__spinner { position: absolute; width: 34px; height: 34px; border: 3px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; border-radius: 50%; opacity: 0; animation: ja69-spin 0.8s linear infinite; }
.ja69-zoom.is-loading .ja69-zoom__spinner { opacity: 1; }
@keyframes ja69-spin { to { transform: rotate(360deg); } }
.ja69-zoom__caption { flex: 0 0 auto; margin: 0; max-width: 780px; text-align: center; color: #f2f3f8; font-size: 0.88rem; line-height: 1.5; }
.ja69-zoom__counter { display: block; margin-bottom: 0.25rem; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
.ja69-zoom__close { position: absolute; top: 0.9rem; right: 1rem; width: 40px; height: 40px; font-size: 1.7rem; line-height: 1; }
.ja69-zoom__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; }
.ja69-zoom__nav--prev { left: 1rem; }
.ja69-zoom__nav--next { right: 1rem; }
.ja69-zoom__close, .ja69-zoom__nav { display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; transition: background 0.2s; }
.ja69-zoom__close:hover, .ja69-zoom__nav:hover, .ja69-zoom__close:focus-visible, .ja69-zoom__nav:focus-visible { background: rgba(255, 255, 255, 0.3); }

@media (max-width: 640px) {
    .ja69-zoom { padding: 3rem 0.5rem 0.75rem; }
    .ja69-zoom__nav { width: 38px; height: 38px; }
    .ja69-zoom__nav--prev { left: 0.4rem; }
    .ja69-zoom__nav--next { right: 0.4rem; }
    .ja69-zoom__caption { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ja69-zoom__spinner { animation: none; }
}

/* Les master shots sont tous en 16/9 : on annule la hauteur fixe du composant
   partagé, qui ajoutait des bandes noires au-dessus et en dessous. */
.blog-article .ja69-drone .article-carousel__slide img { height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
