/* Blocs éditoriaux : intro (titre + chapo), texte/photos, partenaires, bloc SEO dégradé */

.intro {
    padding: 100px 0 0;
}

.intro .sec-head {
    margin-bottom: 40px;
}

/* ---- Rangée texte + visuels ---- */
.split {
    --bs-gutter-x: 24px;
    margin-top: 0;
}

.split+.split {
    margin-top: 40px;
}

.split-media {
    display: flex;
    gap: 24px;
    height: 100%;
}

/* Deux photos portrait côte à côte + badge ISO au centre */
.photos-duo {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--duo-gap);
    min-height: 556px;
    --duo-gap: 24px;
}

.photos-duo .photo {
    height: 100%;
}

/* Variante : 1 grande à gauche, 2 empilées à droite */
.photos-trio {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
    min-height: 486px;
}

.photos-trio .photo:first-child {
    grid-row: 1 / span 2;
}

.photo-video {
    height: 100%;
    min-height: 486px;
}

.photo-video .photo-poster {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grande photo (gif / vidéo) */
.photo-tall {
    height: 100%;
    min-height: 518px;
}

.photo-tall .btn-pill {
    position: absolute;
    left: 30px;
    bottom: 30px;
    z-index: 2;
}

/* ---- Logos des partenaires techniques ---- */
.partners {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0 0;
    padding: 16px 32px;
    list-style: none;
    border-radius: 999px;
    background: rgba(125, 125, 125, .2);
}

.partners li {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
    margin: 0;
}

.partners li+li {
    border-left: 1px solid #797979;
}

.partners img {
    display: block;
    height: 80px;
    width: auto;
    max-width: 100%;
    transition: transform .8s var(--ease-out);
}

.partners li:hover img {
    transform: scale(1.06);
}

/* ---- Bloc SEO (fond dégradé vert) ---- */
.seo-block {
    padding: 100px 0 40px;
}

.seo-block-in,
.soft-box {
    padding: 40px;
    border-radius: var(--radius);
    background: var(--grad-soft);
}

/* Les photos prennent exactement la hauteur du texte voisin */
.seo-block .split>[class*="col-"] {
    display: flex;
    flex-direction: column;
}

.seo-block .split .photo {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    position: relative;
}

.seo-block .split .photo>img {
    position: absolute;
    inset: 0;
}

.seo-block .sec-head {
    margin-bottom: 10px;
}

.seo-block .sec-head h2 {
    padding-bottom: 20px;
}

/* Un même visuel coupé en 2 verticalement (page secteur) : l'image couvre les 2 colonnes + la gouttière,
   chaque cadre en montre sa moitié */
.photos-duo--590 {
    min-height: 590px;
}

.photo>img.obj-left,
.photo>img.obj-right {
    position: absolute;
    top: 0;
    width: calc(200% + var(--duo-gap));
    max-width: none;
}

.photo>img.obj-left {
    left: 0;
}

.photo>img.obj-right {
    right: 0;
}

/* zoom synchronisé des 2 moitiés */
.photos-duo:hover .photo>img.obj-left,
.photos-duo:hover .photo>img.obj-right {
    transform: scale(1.04);
}

.split--gap {
    padding-top: 40px;
    padding-bottom: 60px;
    align-items: flex-start;
}

/* Icône lecture décorative posée sur le GIF */
.photo-gif .video-play-deco {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    opacity: .2;
    pointer-events: none;
}

/* Filigrane S en haut à gauche (vidéo du matériel) */
.photo-mark-tl::after {
    content: "";
    position: absolute;
    left: 30px;
    top: 30px;
    width: 63px;
    height: 90px;
    background: url("../userfiles/icons/ico-s-white.svg") center / contain no-repeat;
    pointer-events: none;
    z-index: 1;
}
