/* ==========================================================================
   Page: A Propos (apropos.php)
   ========================================================================== */

/* --- Title Section & Video Description --- */
.title-section {
    align-items: center;
    position: relative;
    font-size: 32px;
    line-height: 38px;
    font-weight: 700;
    letter-spacing: .015em;
    margin: 0;
    text-align: center;
}

.titre-underline::after {
    display: block;
    content: '';
    width: 100px;
    height: 4px;
    background-image: linear-gradient(45deg, #0e7332, #bacf0c) !important;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translate(-50%, 10px);
}

.desc-video {
    width: 50%;
}

.section-video {
    height: 70vh;
}

@media (min-width: 992px) {
    #header_home {
        padding-top: 15%;
        padding-bottom: 15%;
        background-image: url('../../img/header/Billight_Apropos_Header.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
    }
}

@media (max-width: 991px) {
    #header_home {
        padding-top: 20%;
        padding-bottom: 20%;
        background-image: url('../../img/header/Billight_mobile_Apropos_M.jpg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
    }
}

/* --- About Fabrication Responsive Backgrounds --- */
@media (min-width: 992px) {
    .about-fabrication {
        padding-top: 200px;
        padding-bottom: 200px !important;
        background-image: url('../../img/a_propos/Billight_AboutUs_La_Fabrication_De_Cadrans_Luminescents.jpg');
        background-position: center center;
        margin-top: 0px;
        background-repeat: no-repeat;
        background-size: cover;
    }
}

@media (max-width: 992px) {
    .about-fabrication {
        background-image: url('../../img/a_propos/Billight_AboutUs_Version_M.jpg');
        margin-top: 0px;
        background-repeat: no-repeat;
        background-size: cover;
    }
}

/* --- Flip Cards CSS --- */
.col-lg-12.col-md-12.center-section {
    backdrop-filter: blur(5px);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #00000045;
}

.square-flip {
    perspective: 1000;
    transform: perspective(1000px);
    transform-style: preserve-3d;
    position: relative;
    height: 400px;
}

.square, .square2 {
    width: 100%;
    height: 100%;
}

.square {
    background-size: cover;
    background-position: center center;
    transition: transform 0.6s cubic-bezier(0.5, 0.3, 0.3, 1);
    overflow: hidden;
    position: absolute;
    top: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.square-flip .square {
    transform: rotateY(0deg);
    transform-style: preserve-3d;
    z-index: 1;
}

.square-flip:hover .square {
    transform: rotateY(-180deg);
    transform-style: preserve-3d;
}

.square2 {
    background-size: cover;
    background-position: center center;
    transition: transform 0.6s cubic-bezier(0.5, 0.3, 0.3, 1);
    overflow: hidden;
    position: absolute;
    top: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.square-flip .square2 {
    transform: rotateY(180deg);
    transform-style: preserve-3d;
    z-index: 1;
}

.square-flip:hover .square2 {
    transform: rotateY(0deg);
    transform-style: preserve-3d;
}

/* Square content */
.square-container {
    padding: 40px;
    text-align: center;
    position: relative;
    top: 50%;
    transition: transform 0.6s cubic-bezier(0.5, 0.3, 0.3, 1);
    transform: translateY(-50%) translateX(0px) scale(1);
    transform-style: preserve-3d;
    z-index: 2;
}

.square-flip:hover .square-container {
    transform: translateY(-50%) translateX(-650px) scale(0.88);
    transform-style: preserve-3d;
}

.square-container2 {
    padding: 40px;
    text-align: center;
    position: relative;
    top: 50%;
    transition: transform 0.6s cubic-bezier(0.5, 0.3, 0.3, 1);
    transform: translateY(-50%) translateX(650px) translateZ(60px) scale(0.88);
    transform-style: preserve-3d;
    z-index: 2;
}

.square-flip:hover .square-container2 {
    transform: translateY(-50%) translateX(0px) translateZ(0px) scale(1);
    transform-style: preserve-3d;
}

.square-flip h2 {
    color: white;
    font-weight: 700;
    font-size: 20px;
    height: 50px;
}

.square-flip h3 {
    color: white;
    font-weight: 500;
    font-size: 18px;
    line-height: 26px;
}

/* Style text / Elements */
.flip-overlay {
    display: block;
    background: linear-gradient(to bottom right, #5ad0e3 25%, #36d198 75%);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
}

.align-center {
    margin: 0 auto;
}

/* Shadows (optional) */
.square-flip .square .boxshadow, .square-flip .square .textshadow {
    transition: 0.6s;
}

.square-flip .square2 .boxshadow, .square-flip .square2 .textshadow {
    transition: 0.6s;
}

.square-flip .square .boxshadow {
    box-shadow: 24px 42px 58px -8px rgba(0, 0, 0, 0.3);
}

.square-flip .square .textshadow {
    text-shadow: 24px 42px 58px -8px rgba(0, 0, 0, 0.3);
}

.square-flip:hover .square .boxshadow, .square-flip:hover .square .textshadow {
    box-shadow: 240px 42px 58px -8px rgba(0, 0, 0, 0);
}

.square-flip .square2 .boxshadow {
    box-shadow: 240px 42px 58px -8px rgba(0, 0, 0, 0);
}

.square-flip .square2 .textshadow {
    text-shadow: 240px 42px 58px -8px rgba(0, 0, 0, 0);
}

.square-flip:hover .square2 .boxshadow, .square-flip:hover .square2 .textshadow {
    box-shadow: 24px 42px 58px -8px rgba(0, 0, 0, 0.3);
}

.mt-100 {
    margin-top: 80px;
    margin-bottom: 80px;
}

.img-logo-apropos {
    width: 120px !important;
}

@media screen and (max-width: 992px) {
    .d-flex.h-100.text-left.align-items-center.justify-content-end {
        display: flex !important;
        flex-direction: column;
    }

    .desc-video {
        width: 100%;
        margin-top: 200px;
    }
}

/* --- Video Header --- */
.header {
    position: relative;
    background-color: black;
    width: 100%;
    overflow: hidden;
}

.header video {
    position: absolute;
    top: 0%;
    left: 0%;
    max-width: 100%;
    max-height: 100%;
}

.header .container {
    position: relative;
    z-index: 2;
}

.header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: 0.4;
    z-index: 1;
}

@media (max-width: 992px) {
    .section-video {
        height: 100%;
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

/* --- Aventure Contu --- */
.aventure-contu {
    background: #000;
    padding: 150px 50px;
}

/* --- Button Flach --- */
.btn-flach:before, .btn-flach::after {
    background: #00f5fa !important;
    box-shadow: 0 0 5px #00f5fa, 0 0 15px #00f5fa, 0 0 30px #00f5fa, 0 0 60px #00f5fa !important;
}

/* --- CTA Home Responsive Backgrounds --- */
@media (min-width: 992px) {
    #ctl_home {
        background-image: url('../../img/ctl/Billight_Services_CTA.jpg');
        background-position: center center;
        height: 500px;
        margin-top: 0px;
        background-repeat: no-repeat;
        background-size: cover;
    }
}

@media (max-width: 991px) {
    #ctl_home {
        background: #0A0B10;
        background-position: center center;
        height: 500px;
        margin-top: 0px;
        background-repeat: no-repeat;
        background-size: cover;
    }
}
