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

html, body {
    height: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

h1, h2, h3 {
    color: #333;
}

/* Main Content Styles */
main {
    padding-top: 65px; /* Adjust this value to match the height of your header */
}

#top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 42px;
    width: auto;
    margin-right: 10px;
}

.top-toolbar {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    padding: 10px 20px; /* 👈 Ajoute du padding horizontal */
    text-align: right;  
}

.top-toolbar li {
    margin: 0 15px;
}

.top-toolbar li a {
    color: #393939;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-toolbar li a:hover {
    color: #007BFF;
}



.main-title {
    display: inline-block;
    white-space: normal; /* Allows line breaks */
    overflow: hidden;
    border-right: .15em solid transparent; /* Hides the cursor */
    color: #fff;
    font-weight: bold;
    font-size: 2.5em;
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
    word-wrap: break-word; /* Allows line breaks if necessary */
}

#intro-text {
    opacity: 0; /* Initially hidden */
    transition: opacity 0.5s ease-in;
    text-align: center;
    margin-top: 20px;
    color: #fff;
}

.cta {
            text-align: center;
            margin: 50px 0;
            background: linear-gradient(to right, rgba(84, 143, 203, 0.8), rgba(223, 230, 237, 0.8)), url('images/risk-a.jpg') no-repeat center center/cover;
            color: rgb(27, 27, 27);
            padding: 40px 20px;
            border-radius: 10px;
        }

        .cta p {
            font-size: 1.2rem;
            margin-bottom: 20px;
        }

        .btn-primary {
            display: inline-block;
            padding: 12px 25px;
            background-color: #164577;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            transition: background-color 0.3s ease;
        }

        .btn-primary:hover {
            background-color: #0a4c9a;
        }

a {
    color: #063461;
    text-decoration: none;
}

a:hover, a:focus {
    text-decoration: underline;
    outline: none;
}

/* Header Styles */
.ftnt-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(251, 251, 251, 0.8);
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}



/* === Company Values Section === */
.company-values {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}
.values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}
.value-card {
    flex: 1 1 250px;
    max-width: 300px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}
.value-card:hover {
    transform: translateY(-5px);
}
.value-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}



/* Mobile Navigation */
.mobile-nav {
    display: none;
}

.menu-toggle {
    cursor: pointer;
    padding: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #363636;
    margin: 3px 0;
    transition: 0.4s;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .top-toolbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(74, 74, 74, 0.8);
        z-index: 999;
        align-items:flex-start;
    }

    .top-toolbar.show {
        display: flex;
    }

    .top-toolbar li {
        margin: 10px 0;
    }

    .logo {
        height: 42px;
    }

    .main-title {
        font-size: 2em; /* Reduce font size on smaller screens */
    }
}

/* Animation for Hamburger Menu */
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Custom Background Section */
.custom-background-section {
    background: url('images/back.webp') no-repeat center center fixed;
    background-size: cover;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    text-align: center;
    padding: 50px 20px;
}

.custom-background-section .content {
    max-width: 800px;
    z-index: 10;
}

.custom-background-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

/* Button Styles */
.button--transparent--home {
    color: #fff;
    text-decoration: none;
    border: 2px solid #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 70px 15px 30px;
    margin-top: 20px;
    display: inline-block;
    text-transform: uppercase;
    border-radius: 30px;
    position: relative;
    transition: all .5s;
    opacity: 0; /* Initially hidden */
}

.button--transparent--home:hover {
    background-color: rgb(44, 21, 112);
}

.button--transparent--home:after {
    content: '';
    width: 26px;
    height: 26px;
    display: inline-block;
    position: absolute;
    right: 20px;
    margin-top: -3px;
    transition: all .5s;
}


/* Impact Section Styles */
.impact-section {
    background-image: url('images/de.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 50px 20px;
    color: #ffffff;
}

#impact-title {
    color: #fff;
    font-weight: bold;
}

.section-title {
    color: #343434;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.impact-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.impact-item {
    text-align: center;
    margin: 0 10px;
    background-color: rgba(30, 30, 30, 0.5);
    padding: 10px;
    border-radius: 8px;
}

.elementor-counter-number-wrapper {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

.elementor-counter-title {
    font-weight: bold;
    margin-top: 10px;
    color: #fff;
}

.separator {
    width: 2px;
    background-color: #ccc;
    height: 50px;
    margin: 0 20px;
}



/* Contact Section Styles */
.contact-info {
    margin-top: 20px;
    font-size: 16px;
}

.contact-info p {
    margin: 5px 0;
}



    .contact-container {
      display: flex;
      flex-wrap: wrap;
      max-width: 1200px;
      margin: 120px auto 50px; /* 💡 augmente la marge en haut ici */
      padding: 30px;
      background: #ffffff;
      border-radius: 16px;
      box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .contact-info {
      flex: 1 1 40%;
      padding: 20px;
    }

    .contact-info h2 {
      font-size: 28px;
      color: #1c1c1c;
    }

    .contact-info p {
      color: #555;
      margin-bottom: 20px;
    }



    .info-list {
      list-style: none;
      padding: 0;
    }

    .info-list li {
      margin-bottom: 12px;
      font-size: 16px;
      color: #333;
    }

    .info-list i {
      margin-right: 10px;
      color: #007BFF;
    }

    .social-links a {
      font-size: 20px;
      color: #007BFF;
      margin-right: 15px;
      text-decoration: none;
    }

    .contact-form {
      flex: 1 1 55%;
      padding: 20px;
      display: flex;
      flex-direction: column;
    }

    .contact-form label {
      font-weight: 500;
      margin-top: 12px;
      margin-bottom: 6px;
    }

    .contact-form input,
    .contact-form textarea {
      padding: 12px;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 15px;
      transition: 0.3s;
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
      border-color: #007BFF;
      outline: none;
    }

    .contact-background {
      background-image: url('images/contact-us.webp'); /* adapte le chemin si nécessaire */
      background-size: cover;
      background-repeat: no-repeat;
      background-attachment: fixed;
      background-position: center 65px;
      
    }


    .contact-form button {
      margin-top: 20px;
      padding: 14px;
      background-color: #007BFF;
      border: none;
      color: white;
      font-size: 16px;
      border-radius: 8px;
      cursor: pointer;
      transition: 0.3s;
    }

    .contact-form button:hover {
      background-color: #0056b3;
    }

    @media (max-width: 768px) {
      .contact-container {
        display: flex;
        flex-wrap: wrap;
        max-width: 1200px;
        padding: 30px;
        background: rgb(255, 255, 255);
        border-radius: 16px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
      }

      .contact-form,
      .contact-info {
        flex: 1 1 100%;
      }
    }

/* Map Container Styling */
.map-container {
    max-width: 1000px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.medium-img {
    width: 400px;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* Partners Section */
.partner-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.partner {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.partner:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.partner img {
    width: 120px;
    height: auto;
    margin-right: 20px;
}

.partner p {
    margin: 0;
    color: #333;
}

/* Mobile Menu Styles */
.top-toolbar.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(231, 231, 231, 0.8);
    z-index: 999;
}

/* Services Section Styles */
.services-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.service-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-card-header {
    background-color: #3d9bff;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-weight: bold;
}

.service-card-body {
    padding: 20px;
}

.service-card-body p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.service-card-body ul {
    list-style-type: none;
    padding: 0;
}

.service-card-body ul li {
    margin-bottom: 10px;
    color: #333;
    position: relative;
    padding-left: 20px;
}

.service-card-body ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #007BFF;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    margin-bottom: 100px;
}

form label {
    margin-bottom: 5px;
    font-weight: bold;
}

form input, form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    padding: 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #0056b3;
}

/* Footer Styles */
footer {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre tout horizontalement */
}

/* Section des liens principaux */
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centre les liens */
}

.footer-nav ul li {
    margin: 0 15px; /* Espacement horizontal entre les liens */
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #007BFF;
    text-decoration: underline;
}

/* Section "Also of Interest" */
.footer-interest {
    margin-top: 30px;
    text-align: center;
}

.footer-interest p {
    font-weight: bold;
    margin-bottom: 10px; /* Espace entre le titre et les liens */
}

.footer-interest ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center; /* Centre les liens horizontalement */
    flex-wrap: wrap; /* Gère les petits écrans */
    gap: 15px; /* Espace horizontal entre les liens */
}

.footer-interest ul li {
    margin: 0; /* Aucun espacement vertical spécifique */
}

.footer-interest a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-interest a:hover {
    color: #007BFF;
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 768px) {
    .footer-content {
        padding: 20px;
    }

    .footer-nav ul, .footer-interest ul {
        flex-direction: column; /* Passe les liens en colonne sur petit écran */
        align-items: center;
    }

    .footer-interest ul li {
        margin: 10px 0; /* Espacement vertical entre les liens */
    }
}



/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Improve layout for company page */
.logo-title-container {
    text-align: center;
    margin-bottom: 20px;
}

.company-logo {
    max-width: 200px;
    height: auto;
}

#company-title {
    margin-top: 20px;
}

.company-description {
    margin-bottom: 30px;
}

/* Ensure the layout is flexible */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}