* {
    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 {
    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: white;
}

/* Section Contact */
.contact-section {
    background-image: url('../images/background_building.png');
    background-size: contain;
    background-position: left;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 40px 0;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.contact-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.contact-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Conteneur principal avec bordure */
.contact-card {
    background: white;
    border: 1px solid black;
    border-radius: 15px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Section Formulaire */
.contact-form-section {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.contact-form-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.contact-form-section p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid black;
    font-size: 1rem;
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #007bff;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid black;
    font-size: 1rem;
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23333" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.form-group select:focus {
    border-bottom-color: #007bff;
}

.form-group select option {
    background: white;
    color: #333;
    padding: 10px;
}

.submit-btn {
    background: #333;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    letter-spacing: 3px;
}

.submit-btn:hover {
    background: #555;
}

/* Section Carte */
.map-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.contact-details {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.info-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-card {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .contact-details {
        flex-direction: column;
        gap: 20px;
    }

    .info-item {
        flex-direction: row;
        text-align: left;
    }
}

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

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


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

    .apropos-section {
        height: 45vh;
        padding: 0 3%;
    }

    .apropos-content h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .apropos-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .apropos-content .divider {
        width: 60px;
        height: 2px;
    }

    .missions-section {
        padding: 40px 3%;
        min-height: 300px;
    }

    .missions-content h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .missions-content h2::after {
        width: 60px;
        height: 2px;
    }

    .missions-grid {
        gap: 20px;
        margin-top: 30px;
    }

    .mission-item {
        padding: 10px;
    }

    .mission-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Étapes d'accompagnement pour mobile */
    .etapes-section {
        padding: 40px 3%;
    }

    .etapes-content h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .timeline-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .timeline-content {
        padding: 15px 20px;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
    }

    .engagements-section {
        padding: 40px 3%;
    }

    .engagements-content h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .engagements-content h2::after {
        width: 60px;
        height: 2px;
    }

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

    .engagement-item {
        padding: 25px 15px;
    }

    .engagement-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .engagement-icon svg {
        width: 30px;
        height: 30px;
    }

    .engagement-item h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .engagement-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .valeurs-section {
        padding: 40px 3%;
    }

    .valeurs-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .logo-image {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
    }



    .valeurs-right h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
        text-align: center;
    }

    .valeurs-right h2::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 2px;
    }

    .valeurs-list {
        gap: 15px;
    }

    .valeur-item {
        font-size: 1rem;
        justify-content: center;
    }

    .checkmark {
        width: 20px;
        height: 20px;
        font-size: 1.1rem;
    }
      .testimonials {
        flex-direction: column;
        padding: 30px 15px;
        gap: 10px;
    }

    .left-panel {
        flex: 0 0 auto;
        padding-right: 0;
        margin-bottom: 25px;
        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;
    }

    #contain_triangle {
        gap: 20px;
    }

    #triangle1 {
        width: 20%;
        height: 15%;
        margin-top: 20px;
    }

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



}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-header h1 {
        font-size: 2rem;
    }

    .contact-form-section {
        padding: 30px 20px;
    }

    .contact-infoo {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .info-item {
        flex-direction: row;
        text-align: left;
    }
}

@media only screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-section {
        min-width: 100%;
    }

    .footer {
        padding: 30px 15px 15px 15px;
    }

    .footer-logo {
    width: 50%;
    height: 50%;
  }

}
