.background-section {
    height: 100vh;
    background-image: url("/img/b4.jpg");
    /* Replace with your image URL */
    background-size: cover;
    background-position: center;
    position: relative;
}
.background-section-trans {
    height: 100vh;
    background-image: url("/img/b3.jpg");
    /* Replace with your image URL */
    background-size: cover;
    background-position: center;
    position: relative;
}
.background-section-finance {
    height: 100vh;
    background-image: url("/img/b1.jpg");
    /* Replace with your image URL */
    background-size: cover;
    background-position: center;
    position: relative;
}
.background-section-gestion {
    height: 100vh;
    background-image: url("/img/b2.jpg");
    /* Replace with your image URL */
    background-size: cover;
    background-position: center;
    position: relative;
}
.background-section-conformite {
    height: 100vh;
    background-image: url("/img/b5.jpg");
    /* Replace with your image URL */
    background-size: cover;
    background-position: center;
    position: relative;
}
.backBody {
    height: auto;
    background-image: url("/img/backBody.png");
    /* Replace with your image URL */
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-title {
    position: absolute;
    /* left: 2rem; */
    top: 75%;
    color: white;
    font-size: 3rem;
    font-weight: bold;
}
.big-title1 {
    font-size: 47px;
    font-weight: bold;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .background-section-conformite,
    .background-section-finance,
    .background-section-gestion,
    .background-section-trans,
    .background-section {
        height: 71vh;
    }

    .greenCard {
        min-height: 11.5rem !important;
    }
}
@media (max-width: 991px) {
    .card-row {
        padding: 1rem !important;
    }
    .big-title1 {
        font-size: 30px !important;
        font-weight: bold;
        margin-bottom: 20px;
    }
    .paddingWeb {
        padding: 1rem !important;
    }
}
.menu-toggle {
    display: none;
}
.card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 2rem;
    gap: 1rem;
    position: absolute;
    bottom: 10rem; /* Adjust as needed */
    right: 0rem;
    width: 50%;
}

.card {
    background-color: white; /* Green color */
    color: #2a5645;
    padding: 1rem;
    border-radius: 18px;
    flex: 1;
    text-align: center;
    border: none;
}

.card-content h4 {
    margin-bottom: 0.5rem;
    font-size: 60px;
}

.card-content p {
    font-size: 24px;
    line-height: 1.5;
}
.widthTitle {
    width: 40%;
}
@media (max-width: 991px) {
    .card-row {
        width: 100%;
    }
    .widthTitle {
        width: 100%;
    }
    .page-title {
        top: 75% !important;
        position: absolute;
        bottom: 2rem;
        color: white;
        font-size: 1.5rem;
        font-weight: bold;
        padding: 1rem;
        width: 90%;
    }
    .card-content h4 {
        margin-bottom: 0.5rem;
        font-size: 40px;
    }

    .card-content p {
        font-size: 20px;
        line-height: 1.5;
    }
    summary {
        font-size: 18px !important;
    }
}
.show {
    z-index: 99999;
    width: 100%;
    justify-content: center;
    text-align: center;
}
details {
    border: 1px solid rgba(112, 112, 112, 0.1);
    border-radius: 24px;
    padding: 0.5em 0.5em 0;
    margin-bottom: 10px;
    cursor: pointer;
    overflow: hidden;
}

summary {
    font-weight: bold;
    margin: -0.5em -0.5em 0;
    padding: 1em;
    list-style-type: "+";
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000000;
    background-color: #16a879;
    font-size: 28px;
}

details[open] {
    /*   padding: 0.5em;  */
    border: 1px solid transparent;
    background-color: #16a879;
    color: #39474b;
}

summary::marker {
    color: #0000ff;
    font-size: 1.2em;
    margin-right: 20px;
}

details:hover {
    background-color: #16a879;
}

details summary::after {
    content: "+";
    float: right;
    font-size: 1.2em;
    color: green;
}

details[open] summary::after {
    content: "-";
    float: right;
    font-size: 1.5em;
}
details[open] summary {
    color: #fff;
}

/* There might Not be much browser support for the styles below */

details::details-content {
    block-size: 0;
    transition: block-size 0.4s, content-visibility 0.4s;
    transition-behavior: allow-discrete;
}

details[open]::details-content {
    block-size: auto;
}
.content {
    padding: 1.5rem;
}
nav {
    background: #06222847;
    height: 80px;
    width: 100%;
    position: fixed;
    z-index: 99999;
}
label.logo {
    color: white;
    font-size: 25px;
    line-height: 80px;
    /* padding: 0 100px; */
    font-weight: bold;
}
nav ul {
    float: right;
    margin-right: 20px;
}
nav ul li {
    display: inline-block;
    line-height: 80px;
    margin: 0 5px;
}
nav ul li a {
    color: white;
    font-size: 17px;
    padding: 7px 13px;
    border-radius: 3px;
    text-transform: uppercase;
}

.checkbtn {
    font-size: 22px;
    color: white;
    float: right;
    line-height: 80px;
    margin-right: 30px;
    cursor: pointer;
    display: none;
}
#check {
    display: none;
}
@media (max-width: 890px) {
    .checkbtn {
        display: block;
    }
    label.logo {
        font-size: 22px;
    }
    .ul {
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #072e2d;
        top: 80px;
        left: -100%;
        text-align: center;
        transition: all 0.5s;
        z-index: 99999;
        padding-left: 2rem !important;
        padding-right: 2rem;
        overflow-y: auto;
    }
    nav ul li {
        display: block;
        margin: 20px 0;
        line-height: 30px;
        background: #207359;
        padding: 0.5rem;
        border-radius: 10px;
    }

    nav ul li a {
        font-size: 20px;
    }
    a:hover,
    a.active {
        background: none;
        color: #fff;
    }
    #check:checked ~ ul {
        left: 0;
    }
    .services-list {
        position: inherit !important;
        top: 100%;
        left: 0;
        color: #333;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 0.5em 1em;
        z-index: 1000;
    }
    .cards {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
}

ul li a:hover {
    color: #45ffc2;
    text-decoration: none !important;
}
/* Base styles for nav */

.services-list {
    position: absolute;
    top: 100%;
    /* left: 0; */
    color: #333;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0.5em 1em;
    z-index: 1000;
}

.services-menu:hover .services-list {
    display: block;
}
@media (min-width: 891px) {
    .services-listWeb {
        position: absolute;
        top: 50%;
        right: 10%;
        color: #333;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        background-color: #cdcdcdcc;
        width: 25rem;
        padding: 1.5rem !important;
    }
    .services-list a {
        display: flex;
        align-items: center;
        text-align: start;
        margin: 10px 0;
        font-size: 14px;
        color: #fff; /* Adjust text color as needed */
        line-height: normal;
        background-color: #062b2c;
        padding: 0.5rem;
        border-radius: 14px;
    }
}
@media (max-width: 1050px) {
    label.logo {
        padding-left: 30px;
    }
    nav ul li a {
        font-size: 16px;
    }
}
/* Responsive media query code for small screen */
@media (min-width: 891px) {
    .services-listWeb {
        position: absolute;
        top: 50%;
        right: 10%;
        color: #333;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        background-color: #cdcdcdcc;
        width: 25rem;
        padding: 1.5rem !important;
    }
    .services-list a {
        display: flex;
        align-items: center;
        text-align: start;
        margin: 10px 0;
        font-size: 14px;
        color: #fff; /* Adjust text color as needed */
        line-height: normal;
        background-color: #062b2c;
        padding: 0.5rem;
        border-radius: 14px;
    }
}

ul li a:hover {
    color: #45ffc2;
    text-decoration: none !important;
}
/* General Styles for Services List */
.services-list {
    display: none; /* Hide by default */
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.services-list a {
    display: flex;
    align-items: center;
    text-align: start;
    margin: 10px 0;
    font-size: 14px;
    color: #fff; /* Adjust text color as needed */
}

.services-list i {
    margin-right: 10px; /* Space between icon and text */
    font-size: 18px;
    color: #fff; /* Adjust icon color as needed */
}

@media (min-width: 992px) and (max-height: 875px) {
    .page-title {
        top: 50% !important;
    }
}

/* Mobile-Specific Styles */
@media (max-width: 768px) {
    .services-list {
        display: block; /* Show on mobile */
    }

    .services-list a {
        padding: 5px 10px;
        background-color: #062b2c; /* Adjust background color as needed */
        border-radius: 10px;
    }

    .services-list a + a {
        margin-top: 10px; /* Add spacing between list items */
    }
    .sousServices {
        font-size: 14px;
        color: #fff;
        line-height: normal;
    }
}
.card-container {
    perspective: 1000px;
}

.card-content {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-container:hover .card-content {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background-color: #fff;
}

.card-front img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.card-back {
    transform: rotateY(180deg);
    background-color: #f8f9fa; /* Light gray background */
    color: #333; /* Text color */
    font-size: 1.2rem;
    font-weight: bold;
}
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 10rem;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 10rem;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.flip-card:focus {
    outline: 0;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front1,
.flip-card-front2,
.flip-card-front3,
.flip-card-front4,
.flip-card-front5,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-front1 {
    background-image: url("/img/icon_contact1.png");
    background-size: cover; /* Ensure the image covers the section */
    background-position: center; /* Center the image */
    background-repeat: no-repeat;
    color: black;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
}
.flip-card-front2 {
    background-image: url("/img/icon_contact2.png");
    background-size: cover; /* Ensure the image covers the section */
    background-position: center; /* Center the image */
    background-repeat: no-repeat;
    color: black;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
}
.flip-card-front3 {
    background-image: url("/img/icon_contact3.png");
    background-size: cover; /* Ensure the image covers the section */
    background-position: center; /* Center the image */
    background-repeat: no-repeat;
    color: black;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
}
.flip-card-front4 {
    background-image: url("/img/icon_contact4.png");
    background-size: cover; /* Ensure the image covers the section */
    background-position: center; /* Center the image */
    background-repeat: no-repeat;
    color: black;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
}
.flip-card-front5 {
    background-image: url("/img/icon_contact5.png");
    background-size: cover; /* Ensure the image covers the section */
    background-position: center; /* Center the image */
    background-repeat: no-repeat;
    color: black;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
}

.flip-card-back {
    background: linear-gradient(to right, #16a879, #16a879);
    color: white;
    transform: rotateY(180deg);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
}
.bg_container {
    position: relative;
    background-image: url("/img/replaceGif.jpg"); /* Replace with your image URL */
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 5rem;
}
.paddingWeb {
    padding: 3rem;
}
.btn-white {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #0a0e1a;
    background-color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 2.875rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 13rem;
    text-align: center;
}

.btn-white:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
    cursor: pointer;
}
