
/* ==================================================
   AD INFORMATIQUE - PREMIUM V5.3
   ================================================== */

/* Toutes les pages : proportions de l'accueil */

.detail-page .detail-hero {
    min-height: 620px;
    padding: 125px 0 80px;
}

.detail-page .detail-copy h1,
.detail-page .detail-mail-hero .detail-copy h1 {
    font-size: clamp(42px,4.4vw,65px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.detail-page h2 {
    font-size: clamp(29px,3.1vw,45px);
    line-height: 1.12;
}

.detail-page .detail-copy .lead {
    font-size: 16px;
    line-height: 1.7;
}

.detail-page .detail-copy .buttons {
    margin-top: 25px;
}

.detail-page .detail-copy .btn {
    min-height: 46px;
    font-size: 14px;
}

.detail-page .detail-feature h3 {
    font-size: 21px;
}

.detail-page .detail-feature {
    padding: 27px 25px;
}

.detail-page .detail-features,
.detail-page .detail-special,
.detail-page .detail-approach,
.detail-page .detail-location,
.detail-page .detail-faq {
    padding: 76px 0;
}


/* ACCUEIL : assistance plus lumineuse */

#reactivite .v52-technician {
    background: linear-gradient(
        160deg,
        #3a5774 0%,
        #29445f 42%,
        #192d44 100%
    );

    border: 1px solid #8eafce80;

    box-shadow:
        inset 0 1px 2px #c5deff35,
        0 15px 35px #00000035;
}

#reactivite .v52-technician-avatar {
    background: linear-gradient(
        145deg,
        #527ca5,
        #294b6b
    );

    color: #e2efff;
}

#reactivite .v52-ticket {
    background: linear-gradient(
        155deg,
        #36536f,
        #1c3048
    );
}


/* CYBERSECURITE ET PHOTOCOPIEURS */
/* Prolongement des images jusqu'aux bords des cartes */

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

#services .service:nth-child(3) .service-visual::before,
#services .service:nth-child(6) .service-visual::before {

    content: "" !important;

    position: absolute;
    inset: -12px;

    background-size: cover;
    background-position: center;

    filter: blur(11px) brightness(.66);
    transform: scale(1.05);

    z-index: 0;
}

#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');
}

#services .service:nth-child(3) .service-visual img,
#services .service:nth-child(6) .service-visual img {

    position: absolute;

    inset: 0 auto auto 50% !important;

    width: auto !important;
    height: 100% !important;
    max-width: 100%;

    transform: translateX(-50%) !important;

    object-fit: contain !important;
    object-position: center;

    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 15%,
        black 85%,
        transparent 100%
    );

    filter: none;
    z-index: 1;
}

#services .service:nth-child(3) .service-visual::after,
#services .service:nth-child(6) .service-visual::after {

    z-index: 2;

    background: linear-gradient(
        0deg,
        #10203677,
        transparent 24%
    );
}

#services .service-number {
    z-index: 3;
}


/* PAGE PHOTOCOPIEURS : appareil entier */

body[data-ad-page="photocopieurs"] .detail-hero {
    overflow: hidden;
}

body[data-ad-page="photocopieurs"] .detail-hero-photo {
    width: 66%;
    height: 100%;
    inset: 0 0 0 auto;

    object-fit: contain;
    object-position: right center;
    filter: brightness(.97);
}

body[data-ad-page="photocopieurs"] .detail-hero::before {

    content: "";

    position: absolute;
    inset: 0 0 0 35%;

    background:
        linear-gradient(
            90deg,
            #0a1422,
            #0a142230 60%,
            #0a142240
        ),
        url('/ad-premium-v5/assets/photocopieurs-31e9590bfb.webp')
        center / cover;

    filter: blur(15px);
    opacity: .6;
    z-index: -3;
}

body[data-ad-page="photocopieurs"] .detail-image {
    background: #13283e;
}

body[data-ad-page="photocopieurs"] .detail-image img {
    object-fit: contain;
    object-position: center;
}


/* NOUVELLES PHOTOS DATACENTERS */

.v53-dc-frame {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #102237;
    isolation: isolate;
}

.v53-dc-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.v52-dc-card:nth-child(2) .v53-dc-frame::before {

    content: "";

    position: absolute;
    inset: -10px;

    background:
        url('/ad-premium-v5/assets/v53-saint-gaudens.webp')
        center / cover;

    filter: blur(14px) brightness(.65);
    z-index: -1;
}

.v52-dc-card:nth-child(2) .v53-dc-frame img {

    position: relative;

    width: auto;
    max-width: 100%;
    height: 100%;

    margin: auto;
    object-fit: contain;

    mask-image: linear-gradient(
        90deg,
        transparent,
        black 12%,
        black 88%,
        transparent
    );
}

.v52-dc-card .v52-photo-credit {
    opacity: .85;
    font-size: 10px;
}


/* CONTACT : theme compatible avec le formulaire original */

body.ad-v53-contact {
    background: #0a1422;
    color: #edf4ff;
}

body.ad-v53-contact main {
    background: radial-gradient(
        ellipse at 82% 25%,
        #203b59,
        #0a1422 72%
    );
    color: #edf4ff;
}

body.ad-v53-contact main section {
    background: transparent;
}

body.ad-v53-contact main h1 {
    color: #f0f5ff;
    font-size: clamp(42px,4.4vw,65px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

body.ad-v53-contact main h2 {
    color: #edf4ff;
    font-size: clamp(29px,3.1vw,45px);
}

body.ad-v53-contact main h3 {
    color: #e2eeff;
}

body.ad-v53-contact main p {
    color: #b7c8db;
}

body.ad-v53-contact main form {
    padding: clamp(22px,3vw,36px);
    border-radius: 20px;
    border: 1px solid #779bc74f;
    background: linear-gradient(
        145deg,
        #233d59,
        #14253a
    );
    box-shadow: 0 20px 50px #0003;
}

body.ad-v53-contact main label {
    color: #e2edfb;
}

body.ad-v53-contact main input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
body.ad-v53-contact main textarea,
body.ad-v53-contact main select {

    border: 1px solid #6584a6;
    border-radius: 10px;
    background: #0d1d30;
    color: #edf4ff;
    padding: 13px;
    font: inherit;
}

body.ad-v53-contact main input:focus,
body.ad-v53-contact main textarea:focus {
    outline: 2px solid #559ce7;
    outline-offset: 2px;
}

body.ad-v53-contact main form button[type="submit"],
body.ad-v53-contact main form input[type="submit"] {
    background: linear-gradient(
        130deg,
        #377ce0,
        #1d56a9
    );
    color: white;
    padding: 13px 22px;
    border: 1px solid #76b3ff4f;
    border-radius: 11px;
    font-weight: 650;
    cursor: pointer;
}


/* MENU CONTACT : meme verre fume que les pages V5 */

.v53-contact-header {
    position: sticky;
    top: 12px;
    z-index: 50;

    max-width: 1450px;
    width: calc(100% - 76px);
    margin: 12px auto;
}

.v53-contact-header .v53-contact-nav {

    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 65px;
    gap: 12px;
    padding: 6px 17px;

    background: linear-gradient(
        135deg,
        #2f4965de,
        #172a40eb 70%
    );

    backdrop-filter: blur(24px);
    border: 1px solid #abc8e44d;
    border-radius: 35px;

    box-shadow:
        inset 0 1px 1px #ffffff25,
        0 10px 30px #0003;
}

.v53-contact-header .v53-contact-brand {
    display: flex;
    width: 145px;
    height: 50px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.v53-contact-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.v53-contact-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
}

.v53-contact-links a {
    color: #eef5ff;
    font-size: 13px;
    font-weight: 570;
    padding: 9px 10px;
    white-space: nowrap;
    border-radius: 28px;
    text-decoration: none;
    transition: transform .25s, background .25s;
}

.v53-contact-links a:hover {
    transform: translateY(-2px) scale(1.09);
    background: #8eb6e340;
}

.v53-contact-button {
    background: linear-gradient(
        130deg,
        #377ce0,
        #1d56a9
    );

    color: white;
    border-radius: 28px;
    padding: 9px 19px;

    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.v53-contact-menu {
    display: none;
    border: 0;
    background: transparent;
    color: white;
    font-size: 25px;
    cursor: pointer;
}


/* TABLETTES ET MOBILES */

@media (max-width: 950px) {

    .detail-page .detail-hero {
        min-height: 580px;
        padding: 120px 0 70px;
    }

    .detail-page .detail-copy h1 {
        font-size: clamp(39px,6vw,58px);
    }

    .v53-contact-header {
        width: calc(100% - 36px);
    }

    .v53-contact-menu {
        display: block;
    }

    .v53-contact-links {

        display: none;

        position: absolute;
        top: 72px;
        left: 0;
        right: 0;

        padding: 14px;
        border-radius: 20px;
        border: 1px solid #afc8e350;
        background: #172a40fa;

        flex-direction: column;
        align-items: stretch;
    }

    .v53-contact-links.open {
        display: flex;
    }

    .v53-contact-links a {
        padding: 12px 17px;
        font-size: 15px;
    }
}

@media (max-width: 560px) {

    .detail-page .detail-hero {
        min-height: 0;
        padding: 112px 0 60px;
    }

    .detail-page .detail-copy h1,
    .detail-page .detail-mail-hero .detail-copy h1,
    body.ad-v53-contact main h1 {

        font-size: clamp(35px,9.5vw,48px);
    }

    .detail-page .detail-features,
    .detail-page .detail-special,
    .detail-page .detail-approach,
    .detail-page .detail-location,
    .detail-page .detail-faq {
        padding: 55px 0;
    }

    .detail-page .detail-feature {
        padding: 22px;
    }

    body[data-ad-page="photocopieurs"] .detail-hero-photo {
        width: 100%;
        object-position: center;
    }

    .v53-contact-header {
        width: calc(100% - 20px);
    }

    .v53-contact-header .v53-contact-nav {
        min-height: 58px;
        padding: 5px 10px;
    }

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

    .v53-contact-button {
        padding: 8px 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v53-contact-links a {
        transition: none;
    }

    .v53-contact-links a:hover {
        transform: none;
    }
}


/* AD-V55-CONTACT-DEBUT */

/* Transition native entre les pages */

@view-transition {
    navigation: auto;
}

::view-transition-group(root) {
    animation-duration: .28s;
    animation-timing-function: ease-in-out;
}

/* Le site reste visible meme sans JavaScript */

body[data-ad-release="premium-v5"] {
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none !important;
    }
}

/* Finitions du formulaire Contact */

body.ad-v53-contact main {
    background: radial-gradient(
        ellipse at 85% 20%,
        #203951,
        #0a1422 72%
    );
}

body.ad-v53-contact main h1 {
    font-size: clamp(35px, 4vw, 56px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

body.ad-v53-contact main form {
    border: 1px solid #6f91b45c;
    border-radius: 17px;
    background: linear-gradient(155deg,#29435e,#14263a);
    box-shadow:
        inset 0 1px 0 #ffffff20,
        0 20px 45px #0003;
}

body.ad-v53-contact main form textarea {
    min-height: 150px;
    resize: vertical;
}

body.ad-v53-contact main form :is(input,textarea)::placeholder {
    color: #a4b9d1;
}

body.ad-v53-contact main form button[type="submit"] {
    min-height: 46px;
    transition: transform .2s, box-shadow .2s;
}

body.ad-v53-contact main form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px #317ce53b;
}

body.ad-v53-contact main a:not(.btn) {
    color: #a1ccff;
}

body.ad-v53-contact .footer {
    background: #081321;
}

/* AD-V55-CONTACT-FIN */
