/* General Body Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(30, 58, 138, 0.5);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.sticky {
    position: fixed;
    background-color: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}

.header.sticky .logo h1 {
    color: #1a2c5a;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 2rem;
}

.mobile-controls {
    display: none;
}


/* Language Switcher */
.language-switcher {
    position: relative;
    cursor: pointer;
}

.selected-language {
    display: flex;
    align-items: center;
}

.selected-language .arrow {
    border: solid #fff;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    margin-left: 5px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.header.sticky .selected-language .arrow {
    border-color: #333;
}

.language-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.language-options.show {
    display: block;
}

.language-options li {
    padding: 10px 20px;
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
}

.flag-icon {
    margin-right: 0;
}

.language-options li:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.language-options li.active span::before {
    content: '✔';
    margin-right: 10px;
    color: #007BFF;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.header.sticky .nav-link {
    color: #333;
}

.nav-link:hover {
    color: #007BFF;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

.header.sticky .nav-link.active::after {
    background-color: #007BFF;
}

#current-language {
    color: #fff;
}

.header.sticky #current-language {
    color: #333;
}
.header.sticky .nav-menu.active {
    color: #333;
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    background: url('assets/images/hero-background.jpg') no-repeat center center/cover;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 58, 138, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    margin-bottom: auto;
    margin-top: 100px; /* Desktop par défaut */
}

/* Sur mobile (moins de 768px), on enlève le margin-top */
@media (max-width: 767px) {
  .hero-content {
    margin-top: 0;
  }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button {
    background-color: #007BFF;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

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


/* Sections */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #007BFF;
}

/* About Section */
.about {
    background-color: #f8fafc;
}

@media (max-width: 768px) {
  .about {
    padding-top: 0px;
  }
  
  .section-header {
    margin-top: 0px;
    margin-bottom: 0px;
  }

  .section-header h2 {
    font-size: 24px;
  }
  
  .strategy {
    padding-top: 0px;
  }
  
   .footer-section {
    margin-top: 0px;
    margin-bottom: 0px;
  }
  
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

/* Strategy Section */
.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

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

.card h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.card p {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
}

/* Investment Focus Section */
.investment-container {
  background-color: #1f3c94; /* bleu principal */
  padding: 40px 20px;
  border-radius: 20px;
  text-align: center;
  color: white;
  max-width: 1200px;
  margin: auto;
}

.investment-container h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.investment-items {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* autorise le passage à la ligne */
}

.investment-item {
  background-color: #324da3; /* bleu plus clair */
  padding: 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  flex: 1 1 22%; /* base largeur environ 1/4 */
  max-width: 250px;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Contact Section */
.contact {
    background-color: #f8f9fa;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #e0f7ff;
    padding: 3rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group .required {
    color: #666;
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.submit-button {
    background-color: #007BFF;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    width: 30%;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}


/* Disclaimer Section */
.disclaimer {
    display: none;
}
.disclaimer .container {
    background-color: #fef7e0;
    border: 1px solid #d4a373;
    border-radius: 15px;
    padding: 2.5rem;
}

.disclaimer h3 {
    color: #b5651d;
    margin-top: 0;
    font-weight: 700;
}

.disclaimer p {
    color: #575757;
}

.disclaimer p strong {
    color: #b5651d;
    font-weight: 700;
}

/* Footer */
.footer {
    background-color: #007BFF;
    color: #fff;
    padding: 0.1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.1rem;
    margin-bottom: 2rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.1rem;
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #1a2c5a;
    transition: all 0.3s ease-in-out;
}

.header.scrolled .hamburger span {
    background-color: #333;
}

@media (min-width: 769px) {
    .mobile-controls {
        display: none;
    }
}

@media (max-width: 1024px) {
    .cards-container {
      grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    body {
        font-size: 15px;
    }

    .hero {
        height: 74vh;
    }

    .desktop-switcher {
        display: none;
    }

    .mobile-controls {
        display: flex;
        align-items: center;
    }

    .mobile-switcher {
        margin-right: 1rem;
    }

    .mobile-switcher .language-options {
        flex-direction: row;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        color: #333;
    }

    .hamburger {
        display: block;
        background-color: #ffffffc7;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-content, .footer-content {
        grid-template-columns: 1fr;
    }

    .cards-container {
      grid-template-columns: 1fr;
    }

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

    .nav-link.active {
        color: #333;
    }

    .nav-menu .language-switcher #current-language,
    .nav-menu .language-switcher .selected-language .arrow {
        color: #333;
        border-color: #333;
    }

    .nav-menu .language-switcher {
        padding: 1rem;
    }

    .submit-button {
        width: 60%;
    }
}

@media (max-width: 480px) {
    .investment-item {
        flex-basis: 100%;
    }
}
