/*
 * Author: Arnaud BERNARD
 * Copyright: © 2024 Pixelorigine - Tous droits réservés
 * Version: 2.0.0
 *
 * Styles de bases du template de la nouvelle version de VRS-INFO
 *
 */


html {
    scroll-behavior: smooth;
}

html.focus-lost {
    overflow: hidden;
    scrollbar-gutter: stable
}

main {
    padding-top: 120px;
    font-family: 'poppins', sans-serif;
    font-size: 1em;
    line-height: 1.7;
}

main *,
footer * {
    box-sizing: border-box;
}

h1 {
    margin: 0;
    font-family: 'Days One', sans-serif;
    font-weight: normal;
}


/**
 * .container
 */
.container {
    display: grid;
    position: relative;
    z-index: 1;
    margin: auto auto 120px;
    padding: 0 20px;
    max-width: 1320px;
}

@media (min-width: 390px) {
    .container {
        padding: 0 10%;
    }
}

@media (min-width: 960px) {
    .container {
        padding: 0 40px;
    }

    .container--with-aside-child {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .container--with-aside-child {
        grid-template-columns: auto 1fr;
    }

    .container--with-aside-child > aside {
        min-width: 260px;
    }
}

@media (min-width: 960px) and (max-width: 1320px) {
    .container--support-zimbra > aside {
        display: none;
    }
}

@media (max-width: 1320px) {
    .container--support-zimbra {
        grid-template-columns: 1fr;
    }
}

/**
 * .grid-cards
 */
.grid-cards {
    display: grid;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.grid-cards > li {
    border-radius: 2px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.grid-cards a {
    display: flex;
    flex-direction: column;
    text-align: center;
    color: #fff500;
    text-decoration: none;
    background-color: white;
}

.grid-cards a:hover img {
    transform: scale(1.09);
}

.grid-cards a span {
    position: relative;
    display: block;
    padding: 20px;
}

.grid-cards a span i.fa-external-link {
    position: absolute;
    z-index: 1;
    display: block;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    transition: color 250ms;
}

.grid-cards a:hover span i.fa-external-link {
    color: #006eeb;
}

.grid-cards a img {
    display: block;
    margin: auto;
    width: 100%;
    max-width: 250px;
    height: auto;
    transition: all 500ms ease;
}


.grid-cards a h2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 10px;
    height: 90px;
    line-height: 1.2;
    font-size: 1.3em;
    font-weight: normal;
    background-color: #006eeb;
    background-image: linear-gradient(to bottom, #006eeb 50%, #fff500 50%);
    background-size: 100% 200%;
    transition: background-position 250ms cubic-bezier(.01, .78, .64, .84), color 200ms;
}

.grid-cards a:hover h2 {
    color: #006eeb;
    background-position-y: 100%;
}

@media (min-width: 600px) {
    .grid-cards {
        grid-template-columns: 1fr 1fr;
    }

    .grid-cards--materiels {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1200px) {
    .grid-cards {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .grid-cards--materiels {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1350px) {
    .grid-cards > li {
        min-width: 300px;
    }
}


/**
 * .grid-cards--materiels
 * Modification de .grid-cards pour les liste de matériels
 */
.grid-cards--materiels > li {
    padding: 30px;
}

@media (min-width: 580px) and (max-width: 1199px) {
    .grid-cards--materiels img {
        margin: auto;
        width: auto !important;
    }
}

.grid-cards--materiels h2 {
    margin: 25px 0 15px !important;
    line-height: 1.2;
    font-family: 'Poppins' !important;
    font-size: 1.5em;
}

.grid-cards--materiels ul {
    padding-left: 0;
    list-style: none;
}

.grid-cards--materiels ul li {
    display: flex;
    align-items: baseline;
    margin: 6px 0;
    line-height: 1.5;
}

.grid-cards--materiels ul > li::before {
    content: '';
    flex-shrink: 0;
    margin-right: 8px;
    width: 8px;
    height: 8px;
    background-color: #555;
}


/**
* ========================================================
* Titre de page avec background
* NB : ce style est presque identique pour mobile et ordinateur
* ========================================================
*/

.page-header__background {
    align-content: flex-end;
    padding-bottom: 60px;
    height: 350px;
    background-color: white;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header__background--none {
    position: relative;
    height: 220px;
    background-image: linear-gradient(to bottom, #006eeb 20%, #fff500);
}

.page-header__background--none:before {
    content: '';
    display: block;
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url(/public/img/header-none.svg);
    background-repeat: repeat-x;
    background-position: 0 85%;
    background-size: 160px;
    opacity: 0.1;
}

/**
 * Background header PROFESSIONNELS
 */
.page-header__background--professionnels {
    background-image: url(/public/img/header-pro/small@2x.jpg);
    background-image: image-set(url(/public/img/header-pro/small@2x.webp) 2x,
            url(/public/img/header-pro/small@3x.webp) 3x,
            url(/public/img/header-pro/small@4x.webp) 4x);
}

@media (min-width: 600px) {
    .page-header__background--professionnels {
        background-image: url(/public/img/header-pro/medium@2x.jpg);
        background-image: image-set(url(/public/img/header-pro/medium@2x.webp) 2x);
    }
}

@media (min-width: 1330px) {
    .page-header__background--professionnels {
        height: 440px;
        background-image: url(/public/img/header-pro/large@1360w.jpg);
        background-image: image-set(url(/public/img/header-pro/large@1360w.webp));
    }
}

@media (min-width: 1550px) {
    .page-header__background--professionnels {
        background-image: url(/public/img/header-pro/large@1600w.jpg);
        background-image: image-set(url(/public/img/header-pro/large@1600w.webp));
    }
}

@media (min-width: 1900px) {
    .page-header__background--professionnels {
        background-image: url(/public/img/header-pro/large@1900w.jpg);
        background-image: image-set(url(/public/img/header-pro/large@1900w.webp),
                url(/public/img/header-pro/large@1900w@2x.webp) 2x);
    }
}

@media (min-width: 2500px) {
    .page-header__background--professionnels {
        background-image: url(/public/img/header-pro/large@2500w.jpg);
        background-image: image-set(url(/public/img/header-pro/large@2500w.webp));
    }
}

/**
 * Background header PARTICULIERS
 */
.page-header__background--particuliers {
    background-image: url(/public/img/header-particuliers/small@2x.jpg);
    background-image: image-set(url(/public/img/header-particuliers/small@2x.webp) 2x,
            url(/public/img/header-particuliers/small@3x.webp) 3x,
            url(/public/img/header-particuliers/small@4x.webp) 4x);
}

@media (min-width: 600px) {
    .page-header__background--particuliers {
        background-image: url(/public/img/header-particuliers/medium@2x.jpg);
        background-image: image-set(url(/public/img/header-particuliers/medium@2x.webp) 2x);
    }
}

@media (min-width: 1330px) {
    .page-header__background--particuliers {
        height: 440px;
        background-image: url(/public/img/header-particuliers/large@1360w.jpg);
        background-image: image-set(url(/public/img/header-particuliers/large@1360w.webp));
    }
}

@media (min-width: 1550px) {
    .page-header__background--particuliers {
        background-image: url(/public/img/header-particuliers/large@1600w.jpg);
        background-image: image-set(url(/public/img/header-particuliers/large@1600w.webp));
    }
}

@media (min-width: 1900px) {
    .page-header__background--particuliers {
        background-image: url(/public/img/header-particuliers/large@1900w.jpg);
        background-image: image-set(url(/public/img/header-particuliers/large@1900w.webp),
                url(/public/img/header-particuliers/large@1900w@2x.webp) 2x);
    }
}

@media (min-width: 2500px) {
    .page-header__background--particuliers {
        background-image: url(/public/img/header-particuliers/large@2500w.jpg);
        background-image: image-set(url(/public/img/header-particuliers/large@2500w.webp));
    }
}

/**
 * Background header SUPPORT
 */
.page-header__background--support {
    background-image: url(/public/img/header-support/small@2x.jpg);
    background-image: image-set(url(/public/img/header-support/small@2x.webp) 2x,
            url(/public/img/header-support/small@3x.webp) 3x,
            url(/public/img/header-support/small@4x.webp) 4x);
}

@media (min-width: 600px) {
    .page-header__background--support {
        background-image: url(/public/img/header-support/medium@2x.jpg);
        background-image: image-set(url(/public/img/header-support/medium@2x.webp) 2x);
    }
}

@media (min-width: 1330px) {
    .page-header__background--support {
        height: 440px;
        background-image: url(/public/img/header-support/large@1360w.jpg);
        background-image: image-set(url(/public/img/header-support/large@1360w.webp));
    }
}

@media (min-width: 1550px) {
    .page-header__background--support {
        background-image: url(/public/img/header-support/large@1600w.jpg);
        background-image: image-set(url(/public/img/header-support/large@1600w.webp));
    }
}

@media (min-width: 1900px) {
    .page-header__background--support {
        background-image: url(/public/img/header-support/large@1900w.jpg);
        background-image: image-set(url(/public/img/header-support/large@1900w.webp),
                url(/public/img/header-support/large@1900w@2x.webp) 2x);
    }
}

@media (min-width: 2500px) {
    .page-header__background--support {
        background-image: url(/public/img/header-support/large@2500w.jpg);
        background-image: image-set(url(/public/img/header-support/large@2500w.webp));
    }
}

/**
 * Background header CONTACT
 */
.page-header__background--contact {
    background-image: url(/public/img/header-contact/small@2x.jpg);
    background-image: image-set(url(/public/img/header-contact/small@2x.webp) 2x,
            url(/public/img/header-contact/small@3x.webp) 3x,
            url(/public/img/header-contact/small@4x.webp) 4x);
}

@media (min-width: 600px) {
    .page-header__background--contact {
        background-image: url(/public/img/header-contact/medium@2x.jpg);
        background-image: image-set(url(/public/img/header-contact/medium@2x.webp) 2x);
    }
}

@media (min-width: 1330px) {
    .page-header__background--contact {
        height: 440px;
        background-image: url(/public/img/header-contact/large@1360w.jpg);
        background-image: image-set(url(/public/img/header-contact/large@1360w.webp));
    }
}

@media (min-width: 1550px) {
    .page-header__background--contact {
        background-image: url(/public/img/header-contact/large@1600w.jpg);
        background-image: image-set(url(/public/img/header-contact/large@1600w.webp));
    }
}

@media (min-width: 1900px) {
    .page-header__background--contact {
        background-image: url(/public/img/header-contact/large@1900w.jpg);
        background-image: image-set(url(/public/img/header-contact/large@1900w.webp), url(/public/img/header-contact/large@1900w@2x.webp) 2x);
    }
}

@media (min-width: 2500px) {
    .page-header__background--contact {
        background-image: url(/public/img/header-contact/large@2500w.jpg);
        background-image: image-set(url(/public/img/header-contact/large@2500w.webp));
    }
}


/**
 * Page header title
 */
.page-header__title {
    position: relative;
    margin: auto 20px;
    max-width: 1320px;
    color: #fff500
}

.page-header__title > div {
    margin-left: auto;
    max-width: 810px;
}

@media (min-width: 1200px) {
    .page-header__title {
        margin: auto;
    }

    .page-header__title > div {
        margin-right: 20px;
    }
}

.page-header__title h1 {
    margin-bottom: 30px;
    font-size: 9vw;
    text-shadow: 1px 1px 3px #222;
}

@media (min-width: 440px) {
    .page-header__title h1 {
        font-size: 2.4em;
    }
}

@media (min-width: 1200px) {
    .page-header__title h1 {
        font-size: 2.6em;
    }
}

.page-header__title p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 3px 20px;
    color: #006eeb;
    background-color: #fff500;
}

@media (min-width: 600px) {
    .page-header__title p:after {
        content: url(/public/img/icon-devices.svg);
        display: block;
        margin: 0 40px 0 auto;
        opacity: 0.2;
    }
}

.page-header__title p span {
    text-transform: uppercase;
    font-size: 1.4em;
    line-height: 2;
}

.page-header__title i.fa-arrow-circle-down {
    order: 3;
    width: 33px;
    height: auto;
    font-size: 2.4em;
}



/**
 * Déco circuits imprimés en background
 */
.background-deco-circuit {
    position: relative;
    overflow-x: hidden;
}

.background-deco-circuit::before,
.background-deco-circuit::after {
    content: '';
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.05;
    background-repeat: repeat-y;
    background-position-y: top;
}

.background-deco-circuit::before {
    background-image: url(/public/img/circuit-elec-background-left.svg);
    background-position-x: right;
}

@media (min-width: 740px) {
    .background-deco-circuit::before {
        background-position-x: left;
    }
}

@media (min-width: 1280px) {
    .background-deco-circuit::after {
        background-image: url(/public/img/circuit-elec-background-right.svg);
        background-position-x: right;
    }

    .background-deco-circuit::before {
        margin-left: -100px;
    }

    .background-deco-circuit::after {
        margin-right: -100px;
    }
}

@media (min-width: 1550px) {

    .background-deco-circuit::before,
    .background-deco-circuit::after {
        margin: 0;
    }
}


/**
 * Styles de base pour toute les vues des pages
 * en dehors des pages de navigation qui utilisent .grid-cards
 */

.views-container h2 {
    margin: 80px 0 0;
    font-family: 'Days One', sans-serif;
    color: #006eeb;
}

.views-container img {
    display: block;
}

.views-container figure {
    margin: 20px auto;
}

.views-container figure img {
    margin: auto;
}

.views-container figcaption {
    font-size: 0.9em;
    text-align: center;
    color: #656565;
}

.views-container > figure:first-child {
    margin-top: 0;
}

.views-container img:not([width]) {
    width: 100%;
    height: auto;
}

.views-container p {
    margin: 30px 0;
}

.views-container a,
.dialog-contact-fai-free a {
    color: #006eeb;
    padding-bottom: 1px;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dashed #006eeb;
}

.views-container a:hover,
.dialog-contact-fai-free a:hover {
    border-bottom-style: solid;
}

.views-container > p:first-child {
    margin-top: 0;
}

.views-container__intro {
    margin-bottom: 50px !important;
}

.views-container__grid {
    display: grid;
}

.views-container__grid > div > h2 {
    margin-top: 0;
}

.views-container__flexrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 40px;
    margin: 20px 0;
}

.views-container__NB {
    margin-top: 50px;
    padding: 10px 0;
    color: #444;
    background-color: #ddd;
}

.views-container__NB p {
    margin: 0;
    padding: 10px 20px;
    font-size: 0.9em;
}

.views-container__NB p:before {
    content: '(*) ';
    font-size: 1.1em;
}

@media (min-width: 600px) {
    .views-container figure {
        max-width: max-content;
    }

    .views-container__flexrow {
        flex-direction: row;
    }
}

@media (min-width: 1200px) {
    .views-container__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .views-container__grid figure {
        margin-left: 0;
        margin-right: 0;
    }

    .views-container__columns {
        padding: 20px;
        columns: 2;
        column-gap: 6%;
    }

    .views-container__columns p:first-child {
        margin-top: 0;
    }
}

.views-container--error404 {
    text-align: center;
}

.views-container--error404 h2 {
    margin-top: 0;
    font: bold 10vw 'Poppins', sans-serif !important;
}

.views-container--error404 p {
    font-size: 1.5em;
}

.views-container__figure-fluid {
    width: 100% !important;
}

.views-container__figure-fluid img {
    margin-left: auto;
    margin-right: auto;
}


/**
 * Dialog contacter FAI Free
 */
.dialog-contact-fai-free {
    position: fixed;
    z-index: 999;
    left: 10px;
    right: 10px;
    max-width: 580px;
    margin: auto;
    padding-bottom: 10px;
    font-size: 0.9em;
    word-break: keep-all;
    color: #656565;
    background-color: white;
    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.4);
}

.dialog-contact-fai-free--open {
    animation: freeDialogSmallScreen 250ms ease-out forwards;
    animation-delay: 400ms;
}

.dialog-contact-fai-free--close {
    animation: freeDialogSmallScreen 250ms ease-out forwards reverse;
}

.dialog-contact-fai-free::before,
.dialog-contact-fai-free::after {
    display: block;
    position: absolute;
    left: 0;
    width: 30px;
}

.dialog-contact-fai-free::before {
    content: '';
    top: 0;
    bottom: 0;
    background-color: #a2a5aa;
}

.dialog-contact-fai-free::after {
    content: '\f129';
    font-family: 'FontAwesome';
    font-size: 2em;
    text-align: center;
    top: 50%;
    transform: translate(0, -50%);
    color: white;
}

.dialog-contact-fai-free button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    font-family: serif;
    font-size: 3.5em;
    line-height: 0;
    color: #656565;
    cursor: pointer;
    border: none;
    background-color: transparent;
}

.dialog-contact-fai-free button::before {
    content: '\d7';
}

.dialog-contact-fai-free figure {
    margin: 10px 20px 10px 50px;
}

@media (min-width: 1330px) {
    .dialog-contact-fai-free {
        top: 385px;
        left: -420px;
        bottom: auto;
        max-width: 405px;
        margin: 0;
    }

    .dialog-contact-fai-free::before,
    .dialog-contact-fai-free::after {
        width: 40px;
    }

    .dialog-contact-fai-free--open,
    .dialog-contact-fai-free--close {
        animation-name: freeDialogLargeScreen;
    }
}

@keyframes freeDialogSmallScreen {
    0% {
        opacity: 0;
        bottom: -220px;
        /* Closed state */
    }

    33% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        bottom: 0;
        /* Open state */
    }
}

@keyframes freeDialogLargeScreen {
    0% {
        opacity: 0;
        left: -420px;
        /* Closed state */
    }

    33% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        left: 20px;
        /* Open state */
    }
}


/**
 * Carousel des logos partenaires
 */
#carousel-partners {
    visibility: hidden; /* Évite le FOUC : Swiper révèle le bloc quand il est prêt */
    border-top: 15px solid #fff500;
}

#carousel-partners .swiper-wrapper {
    padding: 0;
}

#carousel-partners .swiper-slide img {
    display: block;
    margin: 10px 20px;
    width: auto;
    height: 60px;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter 200ms ease, opacity 200ms ease;
    transition-delay: 100ms;
}

@media (min-width: 600px) {
    #carousel-partners .swiper-slide img {
        margin-left: 40px;
        margin-right: 40px;
    }
}
    
#carousel-partners .swiper-slide {
    width: auto;
    padding: 0 10px;
}

#carousel-partners .swiper-slide-active img {
    opacity: 1;
    filter: none;
    transition-delay: 200ms;
}

.no-js #carousel-partners .swiper-wrapper {
    flex-wrap: wrap;
    justify-content: center;
}


/**
 * Icon rotation on hover
 */
a:hover i.rotate360 {
    animation: ease rotate360deg 0.4s;
}

@keyframes rotate360deg {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}


/**
 * Bouton pour scroller vers le haut
 */
.btn-back-to-top {
    visibility: hidden;
    position: fixed;
    z-index: 3;
    right: 32px;
    bottom: 62px;
    padding: 0;
    /* si un élément <button> est utilisé à la place de <a> */
    width: 60px;
    height: 60px;
    line-height: 0;
    background-color: #006eeb;
    border: none;
    border-radius: 50%;
    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition-property: visibility, opacity, background-color;
    transition-duration: 250ms;
    transition-delay: 0s, 10ms, 10ms;
}

.btn-back-to-top > svg {
    width: 44%;
    fill: #fff500;
}

.btn-back-to-top:hover {
    background-color: #fff500
}

.btn-back-to-top:hover > svg {
    fill: #006eeb;
}

.btn-back-to-top--visible {
    visibility: visible;
    opacity: 1;
    cursor: pointer;
    pointer-events: all;
}

@media(min-width: 1550px) {
    .btn-back-to-top {
        right: 20px;
    }
}