* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.specialites-section {
    background-color: #f8f9fa;
    padding: 40px 0 80px 0;
}

.specialites-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.specialites-container h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.specialites-container>p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 30px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 20px 0 10px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    padding: 0 20px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-btn {
    background-color: transparent;
    color: #232323;
    border: 2px solid #232323;
    padding: 10px 25px;
    margin-bottom: 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.service-btn:hover {
    background-color: #232323;
    color: white;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "header"
        "main"
        "footer";
    height: 100vh;
    background-color: #f4f6f7;
    font-family: system-ui;
}

.header {
    grid-area: header;
    background-color: white;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
    color: #626d79;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 70px;
    width: 82.6px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #626d79;
    font-size: 1rem;
    transition:
        color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        font-weight 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: #626d79;
    font-weight: 700;
    transform: scale(1.08);
}


.navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #626d79;
    cursor: pointer;
}

.lang-icon {
    height: 30px;
    width: 30px;
    object-fit: contain;
}

/******************************dropdownlist***************************************/
.language-dropdown {
    position: absolute;
    top: 55px;
    right: 3px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
    width: 150px;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

.language-option:hover {
    background-color: #f0f0f0;
}

/*********************************************************************/

.menu-icon {
    display: none;
    height: 45px;
    width: 45px;
    cursor: pointer;
}

.main {
    grid-area: main;
    background-color: #f4f6f7;
}

.footer {
    grid-area: footer;
    background-color: #f4f6f7;
}

/* Styles pour la section domaines d'activité */
.domaines-section {
    position: relative;
    padding: 20px 0;
    height: 600px;
    overflow: hidden;
}

.background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

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

.container {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    color: #1f2937;
    position: relative;
}

.section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #0f172a;
    margin-bottom: 10px;
}

.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 60px;
    position: relative;
}

.left img {
    max-width: 650px;
    width: 100%;
    height: 500px;
}

.right {
    max-width: 500px;
    text-align: left;
}

.right h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #0f172a;
}

.right p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.right ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.right ul li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.right button {
    padding: 10px 20px;
    background-color: #0f172a;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: transform;
}

.right button:hover {
    transform: scale(1.05);
    background-color: #1a2942;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
}

.dot.active {
    background-color: #0f172a;
}

/* Boutons slide */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 3;
    /* Ensure above .container which is z-index: 2 */
}

.left-btn {
    left: 20px;
}

.right-btn {
    right: 20px;
}

.slide-btn img {
    width: 80%;
    height: 80%;
    transition: transform 0.3s ease;
}

.slide-btn:hover img {
    transform: scale(1.2);
}

#slide-image,
#slide-title,
#slide-text,
#slide-btn,
#slide-list {
    opacity: 1;
    transition: opacity 0.5s, transform 0.4s;
}

.fade-out {
    opacity: 0;
}

.slide-out-left {
    opacity: 0;
    transform: translateX(-1000px);
}

.slide-out-right {
    opacity: 0;
    transform: translateX(1000px);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-1000px);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(1000px);
}

.slide-visible {
    opacity: 1;
    transform: translateX(0);
}


.video-container {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
    padding-left: 5%;
}

.content-wrapper {
    color: white;
    text-align: left;
}

.main-title {
    font-size: 3.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle-line {
    width: 80px;
    height: 4px;
    background-color: white;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/******************footer******************/

.footer {
    grid-area: footer;
    background-color: #f4f6f7;
    padding: 40px 20px 20px 20px;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-section {
    background-color: #efefef;
    border-radius: 15px;
    padding: 15px;
    flex: 1;
    min-width: 280px;
}

.logo-section {
    text-align: center;
}

.footer-logo {
    width: 100%;
    height: 90%;

}


.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #626d79;
}

.contact-item .icon {
    font-size: 1.2rem;
    width: 25px;
}

.footer-section h4 {
    color: #0d223a;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: bold;
    position: relative;
    padding-left: 15px;
}

.footer-section h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #000000;
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #626d79;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: #0d223a;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.hours-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-info p {
    color: #626d79;
    margin: 0;
    font-size: 0.85rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.footer-bottom p {
    color: #626d79;
    margin: 0;
    font-size: 0.85rem;
}

/************************************/

/* Responsive Design */
@media only screen and (max-width: 768px) {
    .video-overlay {
        padding-left: 3%;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .content-wrapper {
        text-align: center;
    }

    .main-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .subtitle-line {
        width: 60px;
        margin: 0 auto 15px auto;
    }
}

@media only screen and (max-width: 320px) {
    .main-title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}

@media only screen and (max-width: 480px) {

    .language-dropdown {
        top: 402%;
        left: 4%;
    }

    .lang-text {
        position: relative;
        padding-left: 7px;
        bottom: 10px;
    }

    .nav-links li {
        margin-top: 10px;
    }

    .navbar-right {
        display: none;
        background-color: white;
        position: absolute;
        top: 245px;
        left: 0;
        width: 100%;
        padding: 0px 30px 17px 30px;
        z-index: 10;

    }

    .slide img {
        height: 350px;
    }

    .nav-links {
        display: none;
        background-color: white;
        gap: 20px;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 0px 30px 17px 30px;
        z-index: 10;

    }

    .nav-links.active,
    .navbar-right.active {
        display: block;
        z-index: 10;
    }

    .menu-icon {
        display: block;
    }

    .navbar {
        position: relative;
    }

    /* Responsive pour domaines d'activité */
    .domaines-section {
        height: auto;
        padding: 20px 10px;
    }

    .content {
        flex-direction: column;
        gap: 30px;
    }

    .left img {
        max-width: 100%;
        height: 300px;
    }

    .right {
        max-width: 100%;
        text-align: center;
        padding: 0 20px;
    }

    .right h3 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .slide-btn {
        padding: 6px;
    }

    .slide-btn img {
        width: 60%;
        height: 60%;
    }

    #dots-container {
        margin-top: 13px;
    }

    /* Responsive styles for specialites section */
    .specialites-section {
        padding: 20px 0;
    }

    .specialites-container h2 {
        font-size: 1.8rem;
    }

    .specialites-container>p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .service-card img {
        height: 150px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    #dots-container {
        margin-top: 13px;
    }
}

@media only screen and (min-width: 480px) and (max-width: 652px) {
    
    .domaines-section {
        height: auto;
        padding: 20px 15px;
    }

    .content {
        flex-direction: column;
        gap: 40px;
    }

    .left img {
        max-width: 100%;
        height: 350px;
    }

    .right {
        max-width: 100%;
        text-align: center;
        padding: 0 30px;
    }

    .right h3 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .slide-btn {
        padding: 7px;
    }

    .slide-btn img {
        width: 65%;
        height: 65%;
    }

    #dots-container {
        margin-top: 13px;
    }
}

@media only screen and (max-width: 652px) and (min-width: 480px) {
    .language-dropdown {
        top: 402%;
        left: 4%;
    }

    .lang-text {
        position: relative;
        padding-left: 7px;
        bottom: 10px;
    }

    .nav-links li {
        margin-top: 10px;
    }

    .navbar-right {
        display: none;
        background-color: white;
        position: absolute;
        top: 245px;
        left: 0;
        width: 100%;
        padding: 0px 30px 17px 30px;
        z-index: 10;

    }

    .slide img {
        height: 350px;
    }

    .nav-links {
        display: none;
        background-color: white;
        gap: 20px;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 0px 30px 17px 30px;
        z-index: 10;

    }

    .nav-links.active,
    .navbar-right.active {
        display: block;
        z-index: 10;
    }

    .menu-icon {
        display: block;
    }

    .navbar {
        position: relative;
    }

    .content {
        gap: 50px;
    }

    .left img {
        max-width: 500px;
        height: 400px;
    }

    .right {
        max-width: 450px;
    }

    .slide-btn {
        padding: 8px;
    }

    .slide-btn img {
        width: 70%;
        height: 70%;
    }

    .domaines-section {
        height: auto;
        padding: 20px 15px;
    }

    .content {
        flex-direction: column;
        gap: 40px;
    }

    .left img {
        max-width: 100%;
        height: 350px;
    }

    .right {
        max-width: 100%;
        text-align: center;
        padding: 0 30px;
    }

    .right h3 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .slide-btn {
        padding: 7px;
    }

    .slide-btn img {
        width: 65%;
        height: 65%;
    }

    #dots-container {
        margin-top: 13px;
    }

    /* Responsive styles for specialites section */
    .specialites-section {
        padding: 50px 0;
    }

    .specialites-container h2 {
        font-size: 2rem;
    }

    .specialites-container>p {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .service-card img {
        height: 180px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    #dots-container {
        margin-top: 13px;
    }
}

@media only screen and (min-width: 652px) and (max-width: 768px) {
    .language-dropdown {
        top: 402%;
        left: 2%;
    }


    .lang-text {
        position: relative;
        padding-left: 7px;
        bottom: 10px;
    }

    .nav-links li {
        margin-top: 10px;
    }

    .navbar-right {
        display: none;
        background-color: white;
        position: absolute;
        top: 245px;
        left: 0;
        width: 100%;
        padding: 0px 30px 17px 30px;
        z-index: 10;

    }

    .slide img {
        height: 350px;
    }

    .nav-links {
        display: none;
        background-color: white;
        gap: 20px;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 0px 30px 17px 30px;
        z-index: 10;

    }

    .nav-links.active,
    .navbar-right.active {
        display: block;
        z-index: 10;
    }

    .menu-icon {
        display: block;
    }

    .navbar {
        position: relative;
    }

    /* Responsive pour domaines d'activité */
    .domaines-section {
        height: auto;
        padding: 30px 20px;
    }

    .content {
        gap: 50px;
    }

    .left img {
        max-width: 500px;
        height: 400px;
    }

    .right {
        max-width: 450px;
    }

    .right h3 {
        font-size: 1.7rem;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .slide-btn {
        padding: 8px;
    }

    .slide-btn img {
        width: 70%;
        height: 70%;
    }

    /* Responsive styles for specialites section */
    .specialites-section {
        padding: 60px 0;
    }

    .specialites-container h2 {
        font-size: 2.2rem;
    }

    .specialites-container>p {
        font-size: 1.05rem;
        margin-bottom: 50px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-top: 35px;
    }

    .service-card img {
        height: 180px;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-card p {
        font-size: 1rem;
    }


}

@media only screen and (min-width: 768px) and (max-width: 1150px) {

    /* Responsive pour domaines d'activité */
    .domaines-section {
        height: auto;
        padding: 30px 20px;
    }

    .content {
        gap: 60px;
    }

    .left img {
        max-width: 600px;
        height: 450px;
    }

    .right {
        max-width: 500px;
    }

    .right h3 {
        font-size: 1.7rem;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .slide-btn {
        padding: 10px;
    }

    .slide-btn img {
        width: 80%;
        height: 80%;
    }
}