
/* AD INFORMATIQUE - Correctif V5.1 */

/* Menu commun : plus compact */

.header {
    top: 12px;
    margin: 12px auto -78px;
}

.header .nav {
    min-height: 65px;
    padding: 6px 17px;
    gap: 12px;
    border-radius: 35px;
}

.header .brand {
    width: 145px;
    height: 50px;
}

.header .navlinks {
    gap: 3px;
}

.header .navlinks a {
    font-size: 13px;
    padding: 9px 10px;
}

.header .nav .btn {
    min-height: 40px;
    padding: 9px 19px;
    font-size: 13px;
}

/* Accueil uniquement */

body[data-ad-home="v51"] .hero {
    min-height: 620px;
    padding: 125px 0 80px;
}

body[data-ad-home="v51"] .hero h1 {
    font-size: clamp(42px, 4.4vw, 65px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

body[data-ad-home="v51"] h2 {
    font-size: clamp(29px, 3.1vw, 45px);
}

body[data-ad-home="v51"] .hero .lead {
    font-size: 16px;
    line-height: 1.7;
}

body[data-ad-home="v51"] .hero .buttons {
    margin-top: 25px;
}

body[data-ad-home="v51"] .hero .buttons .btn {
    min-height: 46px;
    font-size: 14px;
}

/* Datacenter : moins de zoom et moins d'agrandissement */

@media (min-width: 951px) {
    body[data-ad-home="v51"] .hero-photo {
        inset: auto 0 auto auto;
        top: 50%;
        width: min(66%, 760px);
        height: auto;
        transform: translateY(-50%);
        object-fit: contain;
        object-position: center;
        filter: brightness(1.02) saturate(.92);
        mask-image: radial-gradient(
            ellipse at 70% 50%,
            black 35%,
            rgba(0,0,0,.95) 55%,
            transparent 100%
        );
    }

    body[data-ad-home="v51"] .hero:after {
        background: linear-gradient(
            90deg,
            #0a1422 0%,
            #0a1422 26%,
            #0a1422ec 37%,
            #0a142271 55%,
            transparent 83%
        );
    }
}

/* Nouveau dessin du support */

.v51-support {
    display: block;
    padding: 0;
    width: 100%;
    max-width: 620px;
}

.v51-support svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Schéma ransomware plus grand */

body[data-ad-home="v51"] .recovery-visual {
    padding: 32px 28px;
    min-height: 365px;
}

body[data-ad-home="v51"] .restore-grid {
    margin: 38px 0;
}

body[data-ad-home="v51"] .restore-node .iconbox {
    width: 138px;
    height: 130px;
    border-radius: 22px;
    background: linear-gradient(
        145deg,
        #395e87,
        #20364e
    );
    box-shadow: 0 12px 30px #0003;
}

body[data-ad-home="v51"] .restore-node .ico {
    width: 72px;
    height: 72px;
}

body[data-ad-home="v51"] .restore-node strong {
    font-size: 15px;
}

/* Deux photos de datacenter */

.dc-photo.v51-dc-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    aspect-ratio: 1.8;
    background: #0e1e30;
}

.dc-photo.v51-dc-pair > img {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    object-fit: cover;
    object-position: center;
}

/* Cybersécurité et photocopieur : image entière */

#services .service:nth-child(3) .service-visual,
#services .service:nth-child(6) .service-visual {
    background: #102237;
}

#services .service:nth-child(3) .service-visual img,
#services .service:nth-child(6) .service-visual img {
    object-fit: contain;
    object-position: center;
}

#services .service:nth-child(3) .service-visual:before,
#services .service:nth-child(6) .service-visual:before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(.42);
    transform: scale(1.12);
}

#services .service:nth-child(3) .service-visual:before {
    background-image:
        url('/ad-premium-v5/assets/cybersecurite-0d7ec8b2d5.webp');
}

#services .service:nth-child(6) .service-visual:before {
    background-image:
        url('/ad-premium-v5/assets/photocopieurs-31e9590bfb.webp');
}

/* Animations IA et Microsoft 365 */

.v51-mini {
    background: radial-gradient(
        ellipse at center,
        #254969,
        #102036 80%
    );
}

.v51-mini > svg {
    width: 100%;
    height: 100%;
    display: block;
}

.v51-flow {
    stroke-dasharray: 6 13;
    animation: v51-transfer 1.9s linear infinite;
}

.v51-red {
    animation-delay: .7s;
}

@keyframes v51-transfer {
    from { stroke-dashoffset: 38; }
    to { stroke-dashoffset: 0; }
}

body.v51-paused .v51-flow {
    animation-play-state: paused;
}

.v51-pause {
    display: block;
    margin: 20px 0 0 auto;
    border: 1px solid #aebed0;
    border-radius: 7px;
    background: transparent;
    color: #355779;
    padding: 7px 12px;
    font-size: 11px;
    cursor: pointer;
}

/* Tablettes et mobiles */

@media (max-width: 950px) {
    .header .navlinks {
        top: 72px;
        padding: 12px;
    }

    body[data-ad-home="v51"] .hero {
        min-height: 580px;
        padding: 120px 0 70px;
    }
}

@media (max-width: 560px) {

    .header {
        top: 8px;
        margin: 8px auto -68px;
    }

    .header .nav {
        min-height: 58px;
        padding: 5px 10px;
        gap: 7px;
    }

    .header .brand {
        width: 112px;
        height: 45px;
    }

    .header .nav .btn {
        min-height: 38px;
        padding: 8px 13px;
    }

    .header .navlinks {
        top: 65px;
    }

    body[data-ad-home="v51"] .hero {
        min-height: 0;
        padding: 112px 0 60px;
    }

    body[data-ad-home="v51"] .hero h1 {
        font-size: clamp(35px, 9.5vw, 48px);
    }

    body[data-ad-home="v51"] .recovery-visual {
        padding: 21px 15px;
        min-height: 0;
    }

    body[data-ad-home="v51"] .restore-node .iconbox {
        width: 95px;
        height: 95px;
    }

    body[data-ad-home="v51"] .restore-node .ico {
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v51-flow {
        animation: none !important;
    }

    .v51-pause {
        display: none;
    }
}
