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

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************************************/
.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;
}

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


/********************************MAin*************************************/



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

#content {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    padding: 50px;
    width: 80%;
}

.slider-overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    letter-spacing: 0.01em;
}

.slider-overlay p {
    width: 50%;
    font-size: 1rem;
    margin-bottom: 25px;
}

.slider-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.slider-buttons .btn {
    background-color: black;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        transform 0.2s;
    letter-spacing: 0.08em;
    word-spacing: 0.1em;
}

.slider-buttons .btn:hover {
    background-color: #333;
    transform: scale(1.08);
}

.about-etisb {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 20px 0px;
    background-color: #f4f6f7;
    flex-wrap: wrap;
}

.about-images {
    position: relative;
    width: 470px;
    height: 250px;
}

.about-images .office-img1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.about-images .office-img2 {
    position: absolute;
    top: 190px;
    left: 230px;
    width: 65%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.about-text {
    max-width: 600px;
    text-align: center;
    margin-left: 80px;
    margin-top: 100px;
}

.about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #0d223a;
}

.about-text hr {
    margin: 10px auto;
    border: none;
    border-top: 2px solid #dcdcdc;
}

.about-text p {
    font-size: 1.2rem;
    color: #3d3d3d;
    line-height: 1.6;
    margin-top: 15px;
}

.why-choose-us {
    background-color: #2e2e2e;
    color: white;
    margin-top: 100px;
    padding: 30px 0px 60px 0px;
    text-align: center;
}

.why-choose-us h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.why-container {
    display: flex;
    height: 500px;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.why-column {
    display: flex;
    flex-direction: column;

}

.why-box {
    background-color: #111;
    margin-bottom: 30px;
    padding: 20px;
    width: 350px;
    text-align: left;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.4);
}

.why-box h3 {
    font-size: 0.9rem;
    font-weight: 700;
}

.why-box hr {
    margin: 10px 0;
    border: none;
    border-top: 2px solid #999;
}

.why-box p {
    font-size: 0.8rem;
    color: #ccc;
    line-height: 1.5;
}

.why-image img {
    padding-right: 70px;
    padding-left: 70px;
    height: 530px;
    max-width: 100%;
}



/* Animation d'apparition */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.why-choose-us h2 {
}

.why-box {
}


.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;
}


.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);
}

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

.testimonials {
    display: flex;
    justify-content: center;
    padding: 60px 30px;
    background-color: #f4f6f7;
    position: relative;
    min-height: 400px;
    gap: 20px;
}

.left-panel {
    flex: 0 0 30%;
    padding-right: 40px;
}

.left-panel h2 {
    font-size: 2.2rem;
    color: #0d223a;
    margin-bottom: 5px;
}

.left-panel hr {
    width: 60%;
    border: none;
    border-top: 3px solid #0d223a;
    margin-bottom: 20px;
}

.left-panel p {
    font-size: 1.2rem;
    color: #626d79;
    margin-bottom: 30px;
}

.controls {
    display: flex;
}

.controls button {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    padding: 8px;
}

.controls button:active {
    transform: scale(0.95);
}

.controls button img {
    width: 40px;
    height: 40px;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.controls button img:hover {
    transform: scale(1.15);
}

.testimonials-container {
    flex: 0 0 38%;
    position: relative;
    height: 350px;
    overflow: hidden;
    display: flex;
    gap: 20px;
}

.testimonial-card {
    flex: 0 0 calc(50% - 10px);
    background-color: #e8e8e8;
    border-radius: 20px;
    padding: 30px 25px;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    height: calc(100% - 0px);
    width: calc(50% - 10px);
}

.testimonial-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    position: relative;
}

.testimonial-card.active:first-child {
    left: 0;
}

.testimonial-card.active:nth-child(2) {
    right: 0;
}

.testimonial-card.slide-out-left {
    opacity: 0;
    transform: translateX(-100%) scale(0.9);
}

.testimonial-card.slide-out-right {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
}

.testimonial-card.slide-in-left {
    opacity: 1;
    transform: translateX(0) scale(1);
    animation: slideInLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card.slide-in-right {
    opacity: 1;
    transform: translateX(0) scale(1);
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.testimonial-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.author-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.author-info h3 {
    font-size: 0.95rem;
    color: #2d3748;
    margin-bottom: 3px;
    font-weight: 600;
}

.author-info p {
    font-size: 0.8rem;
    color: #718096;
    margin: 0;
}

#contain_triangle {
    display: flex;
    justify-content: center;
    gap: 30px;

}

#triangle1 {
    margin-top: 30px;
    width: 15%;
    height: 18%;

}


/*********************************************************************/
/******************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;
}

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

/******************logic_nav_responsive******************/

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





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

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

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

    .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: 69px;
        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;
    }

}





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

    /* Slider Section */
    #content {
        height: 350px;
    }

    .slider-overlay {
        padding: 30px;
        width: 85%;
    }

    .slider-overlay h1 {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .slider-overlay p {
        width: 60%;
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .slider-buttons .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* About ETISB Section */
    .about-etisb {
        padding: 40px 20px;
        flex-direction: column;
        gap: 30px;
    }

    .about-images {
        width: 400px;
        height: 220px;
    }

    .about-images .office-img2 {
        top: 160px;
        left: 200px;
    }

    .about-text {
        margin-left: 0;
        margin-top: 0;
        max-width: 100%;
        padding: 100px 50px 0px 100px;
    }

    .about-text h2 {
        font-size: 1.6rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    /* Why Choose Us Section */
    .why-choose-us {
        padding: 40px 15px 40px 15px;
        margin-top: 0px;
    }

    .why-choose-us h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .why-container {
        height: auto;
        flex-direction: column;
        gap: 20px;
    }

    .why-column {
        flex-direction: row;
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .why-box {
        width: 300px;
        margin-bottom: 0;
    }

    .why-image img {
        height: 400px;
        padding: 0 40px;
    }

    /* 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%;
    }
}

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

    /* Slider Section */
    #content {
        height: 320px;
    }

    .slider-overlay {
        padding: 25px;
        width: 90%;
    }

    .slider-overlay h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .slider-overlay p {
        width: 70%;
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

    .slider-buttons {
        gap: 15px;
    }

    .slider-buttons .btn {
        padding: 9px 16px;
        font-size: 0.85rem;
    }

    /* About ETISB Section */
    .about-etisb {
        padding: 40px 20px;
        flex-direction: column;
        gap: 30px;
    }

    .about-images {
        width: 400px;
        height: 220px;
    }

    .about-images .office-img2 {
        top: 160px;
        left: 200px;
    }

    .about-text {
        margin-left: 0;
        margin-top: 0;
        max-width: 100%;
        padding: 100px 50px 0px 100px;
    }

    .about-text h2 {
        font-size: 1.6rem;
    }

    .about-text p {
        font-size: 1rem;
    }


    /* Why Choose Us Section */
    .why-choose-us {
        padding: 40px 15px 40px 15px;
        margin-top: 0px;
    }

    .why-choose-us h2 {
        font-size: 1.7rem;
        margin-bottom: 25px;
    }

    .why-container {
        height: auto;
        flex-direction: column;
        gap: 15px;
    }

    .why-column {
        flex-direction: column;
        align-items: center;
    }

    .why-box {
        width: 280px;
        margin-bottom: 15px;
    }

    .why-image img {
        height: 400px;
        padding: 0 30px;
    }

    .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%;
    }
}


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

    /* Slider Section */
    #content {
        height: 280px;
    }

    .slider-overlay {
        padding: 20px;
        width: 95%;
    }

    .slider-overlay h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .slider-overlay p {
        width: 85%;
        font-size: 0.85rem;
        margin-bottom: 15px;
    }


    .slider-buttons .btn {
        padding: 10px 14px;
        font-size: 0.8rem;
        width: 200px;
    }

    /* Responsive pour domaines d'activité */
    .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;
    }

    /* About ETISB Section */
    .about-etisb {
        padding: 40px 20px;
        flex-direction: column;
        gap: 30px;
    }

    .about-images {
        width: 400px;
        height: 220px;
    }

    .about-images .office-img2 {
        top: 160px;
        left: 200px;
    }

    .about-text {
        margin-left: 0;
        margin-top: 0;
        max-width: 100%;
        padding: 100px 50px 0px 100px;
    }

    .about-text h2 {
        font-size: 1.6rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    /* Why Choose Us Section */
    .why-choose-us {
        padding: 25px 10px 35px 10px;
        margin-top: 0px;
    }

    .why-choose-us h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .why-container {
        height: auto;
        flex-direction: column;
        gap: 10px;
    }

    .why-column {
        flex-direction: column;
        align-items: center;
    }

    .why-box {
        width: 95%;
        max-width: 320px;
        margin-bottom: 10px;
        padding: 15px;
    }

    .why-box h3 {
        font-size: 0.85rem;
    }

    .why-box p {
        font-size: 0.75rem;
    }

    .why-image img {
        height: 400px;
        padding: 0 20px;
    }
}


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

    /* Slider Section */
    #content {
        height: 250px;
    }

    .slider-overlay {
        padding: 15px;
        width: 98%;
    }

    .slider-overlay h1 {
        font-size: 1.5rem;
        margin-bottom: 9px;

    }

    .slider-overlay p {
        width: 98%;
        font-size: 0.75rem;
        margin-bottom: 13px;
        line-height: 1.3;
    }

    .slider-buttons {
        gap: 5px;
        flex-direction: column;
        align-items: center;
    }

    /* 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;
    }

    .slider-buttons .btn {
        padding: 7px 12px;
        font-size: 0.75rem;
        width: 180px;
    }

    /* About ETISB Section */
    .about-etisb {
        padding: 20px 8px;
        flex-direction: column;
        gap: 15px;
    }

    .about-images {
        width: 250px;
        height: 140px;
    }

    .about-images .office-img2 {
        top: 100px;
        left: 120px;
        width: 75%;
    }

    .about-text {
        margin: 0;
        max-width: 100%;
        padding: 100px 8px 0px 8px;
    }

    .about-text h2 {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .about-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Why Choose Us Section */
    .why-choose-us {
        padding: 20px 8px 30px 8px;
        margin-top: 0px;
    }

    .why-choose-us h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .why-container {
        height: auto;
        flex-direction: column;
        gap: 8px;
    }

    .why-column {
        flex-direction: column;
        align-items: center;
    }

    .why-box {
        width: 95%;
        max-width: 280px;
        margin-bottom: 8px;
        padding: 12px;
    }

    .why-box h3 {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .why-box p {
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .why-image img {
        height: 350px;
        padding: 0 15px;
    }

    /**testemonial**/
      .testimonials {
        flex-direction: column;
        padding: 30px 15px 0px 15px;
        gap: 10px;
    }
     #contain_triangle {
        display: none;
    }
    .left-panel {
        flex: 0 0 auto;
        padding-right: 0;
        margin-bottom: 5px;
        text-align: center;
    }

    .left-panel h2 {
        font-size: 1.8rem;
    }

    .left-panel p {
        font-size: 1rem;
    }

    .left-panel hr {
        margin: 15px auto;
        width: 80%;
    }

    .controls {
        justify-content: center;
        margin-bottom: 20px;
    }

    .controls button img {
        width: 35px;
        height: 35px;
    }

    .testimonials-container {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 250px;
        flex-direction: column;
        gap: 15px;
        position: static;
    }

    .testimonial-card {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 200px;
        position: static !important;
        margin-bottom: 15px;
        padding: 20px 15px;
        left: auto !important;
        right: auto !important;
        display: none;
    }

    .testimonial-card.active {
        position: static !important;
        opacity: 1;
        transform: none;
        display: flex;
    }

    .testimonial-content p {
        font-size: 0.9rem;
    }

    .author-img {
        width: 40px;
        height: 40px;
    }

    .author-info h3 {
        font-size: 0.9rem;
    }

    .author-info p {
        font-size: 0.75rem;
    }

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

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

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

    .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: 69px;
        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;
    }
}

@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é */
    .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%;
    }

    /* Hero Section Responsive */
    .hero-section {
        height: 58vh;
        padding: 0 40px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 1.15rem;
        margin-bottom: 30px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    /* Projects Section Responsive */
    .projects-section {
        padding: 40px 0;
        min-height: 100vh;
    }

    .projects-container {
        max-width: 700px;
        padding: 35px 20px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 25px;
    }

    .project-card {
        height: 330px;
    }

    .project-card img {
        height: 170px;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }

    .project-content p {
        font-size: 0.95rem;
    }

    .project-btn {
        padding: 9px 22px;
        font-size: 0.85rem;
    }
}

/***testemonials**/
@media only screen and (min-width: 481px) and (max-width: 1024px) {
    .testimonials {
        flex-direction: column;
        justify-content: center;
        padding: 30px 20px 0px 20px;
        gap: 15px;
    }

    #contain_triangle {
        display: none;
    }

    .left-panel {
        flex: 0 0 auto;
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }

    .left-panel h2 {
        font-size: 2rem;
    }

    .left-panel hr {
        margin: 15px auto;
        width: 70%;
    }

    .controls {
        justify-content: center;
    }

    .testimonials-container {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 400px;
        flex-direction: row;
        gap: 15px;
        position: relative;
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 7.5px);
        width: calc(50% - 7.5px);
        height: auto;
        min-height: 250px;
        position: absolute;
    }

    .testimonial-card.active {
        position: absolute;
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .testimonial-card.active:first-child {
        left: 0;
    }

    .testimonial-card.active:nth-child(2) {
        right: 0;
    }
}

@media only screen and (min-width: 1025px) and (max-width: 1381px) {
    .testimonials {
        padding: 60px 50px;
        gap: 30px;
        max-width: 1180px;
        margin: 0 auto;
        justify-content: space-between;
        align-items: flex-start;
    }

    .left-panel {
        flex: 0 0 35%;
        padding-right: 40px;
    }

    .left-panel h2 {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .left-panel p {
        font-size: 1.15rem;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .left-panel hr {
        width: 65%;
        margin-bottom: 25px;
    }

    .controls button img {
        width: 42px;
        height: 42px;
    }

    .testimonials-container {
        flex: 0 0 58%;
        height: 370px;
        gap: 20px;
    }

    .testimonial-card {
        padding: 32px 28px;
        width: calc(50% - 10px);
        border-radius: 22px;
    }

    .testimonial-content p {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .author-img {
        width: 52px;
        height: 52px;
    }

    .author-info h3 {
        font-size: 1.02rem;
    }

    .author-info p {
        font-size: 0.88rem;
    }

    #contain_triangle {
        gap: 35px;
    }

    #triangle1 {
        width: 14%;
        height: 18%;
        margin-top: 32px;
    }
}