@import url("https://fonts.cdnfonts.com/css/agency-fb");
@import url("https://fonts.cdnfonts.com/css/calibri");

* {
  font-family: Arial, Helvetica, sans-serif;
}

html {
  font-size: 16px;
}

main p,
.wysiwyg-content p,
.article-content p {
  font-size: 16px !important; /* Augmenté de 15 à 16px */
  line-height: 24px !important; /* Augmenté de 20 à 24px */
  margin: 0 0 1.2em 0 !important;
  color: #32323c;
  letter-spacing: 0.01em !important; /* Ajout d'espacement */
}

/* H2 - 22px / 28px line-height (augmenté) */
main h2,
.wysiwyg-content h2,
.article-content h2 {
  font-size: 24px !important; /* Augmenté de 22 à 24px */
  line-height: 30px !important; /* Augmenté de 22 à 30px */
  margin: 1.5em 0 0.6em 0 !important;
  color: #32323c;
  font-weight: normal !important; /* Légèrement plus gras */
  font-style: normal !important;
  letter-spacing: -0.01em !important;
}

/* H1 - 23px / 32px line-height (augmenté) */
main h1,
.wysiwyg-content h1,
.article-content h1 {
  font-size: 28px !important; /* Augmenté de 23 à 28px */
  line-height: 36px !important; /* Augmenté de 27 à 36px */
  margin: 1em 0 0.6em 0 !important;
  color: #32323c;
  font-weight: 600 !important; /* Légèrement plus gras */
  letter-spacing: -0.02em !important;
}

/* H3 - 20px / 26px line-height */
main h3,
.wysiwyg-content h3,
.article-content h3 {
  font-size: 20px !important;
  line-height: 26px !important;
  margin: 1.3em 0 0.5em 0 !important;
  color: #32323c;
  font-weight: 400 !important;
  font-style: normal !important; /* Force en droit */
  letter-spacing: -0.01em !important;
}

/* ============================================
           TABLETTE (écrans 768px - 1024px)
           ============================================ */
@media screen and (max-width: 1024px) {
  main p,
  .wysiwyg-content p,
  .article-content p {
    font-size: 15px !important;
    line-height: 23px !important;
  }

  .content h2,
  .wysiwyg-content h2,
  .article-content h2 {
    font-size: 22px !important;
    line-height: 28px !important;
  }

  main h1,
  .wysiwyg-content h1,
  .article-content h1 {
    font-size: 25px !important;
    line-height: 32px !important;
  }
}

/* ============================================
           MOBILE (écrans < 768px)
           ============================================ */
@media screen and (max-width: 768px) {
  main,
  .wysiwyg-content,
  .article-content {
    padding: 15px;
  }

  main p,
  .wysiwyg-content p,
  .article-content p {
    font-size: 14px !important;
    line-height: 21px !important;
  }

  main h2,
  .wysiwyg-content h2,
  .article-content h2 {
    font-size: 20px !important;
    line-height: 26px !important;
  }

  main h1,
  .wysiwyg-content h1,
  .article-content h1 {
    font-size: 22px !important;
    line-height: 28px !important;
  }
}

/* ============================================
           PETIT MOBILE (écrans < 480px)
           ============================================ */
@media screen and (max-width: 480px) {
  main,
  .wysiwyg-content,
  .article-content {
    padding: 10px;
  }

  main p,
  .wysiwyg-content p,
  .article-content p {
    font-size: 13px !important;
    line-height: 20px !important;
  }

  main h2,
  .wysiwyg-content h2,
  .article-content h2 {
    font-size: 18px !important;
    line-height: 24px !important;
  }

  main h1,
  .wysiwyg-content h1,
  .article-content h1 {
    font-size: 20px !important;
    line-height: 26px !important;
  }
}

/* ============================================
OVERRIDE DES STYLES INLINE DE CKEDITOR
============================================ */

/* Force la police Arial partout */
main *[style*="font-family"],
.wysiwyg-content *[style*="font-family"],
.article-content *[style*="font-family"] {
  font-family: Arial, sans-serif !important;
}
/* Neutralise les tailles inline (sauf images) */
main *[style*="font-size"]:not(img),
.wysiwyg-content *[style*="font-size"]:not(img),
.article-content *[style*="font-size"]:not(img) {
  /* La taille est définie par les règles ci-dessus */
}

/* ============================================
           AUTRES ÉLÉMENTS
           ============================================ */

main strong,
main b,
.wysiwyg-content strong,
.wysiwyg-content b,
.article-content strong,
.article-content b {
  font-weight: 600 !important; /* Plus prononcé */
}

main em,
main i,
.wysiwyg-content em,
.wysiwyg-content i,
.article-content em,
.article-content i {
  font-style: italic !important;
}

/* Images responsives */
main img,
.wysiwyg-content img,
.article-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 1em auto;
}

/* Tableaux responsives */
main table,
.wysiwyg-content table,
.article-content table {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
  display: block;
  font-size: 15px !important;
}

@media screen and (max-width: 768px) {
  .content table,
  .wysiwyg-content table,
  .article-content table {
    font-size: 13px !important;
  }
}

input::-webkit-input-placeholder {
  color: lightgray !important;
  /* Pour Chrome, Safari et Opera */
}

input::-moz-placeholder {
  color: lightgray lightgray;
  /* Pour Firefox 19+ */
}

.form-select option[selected] {
  color: lightgray !important;
  /* Couleur du placeholder */
}

html,
body {
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: #fff !important;
  height: 100%;
}

.custom-container {
  max-width: 1700px;
  margin: 0 auto;
  padding-right: 12px;
  padding-left: 12px;
}

.custom-container img {
  max-width: 100%;
  height: auto;
}

.limited-width {
  max-width: 1700px;
}

.custom-container h2 {
  font-style: italic;
  font-weight: 700;
  font-size: 32px;
}

.clickable-div {
  cursor: pointer;
}

.clickable-div:hover {
  background-color: #acacac;
  /* Changement de couleur au survol */
}

a {
  /*color: #183d3d;*/
}

:root {
  --bs-primary: #ff5733;
}

.bg-zen-primary {
  background-color: #370028;
}

.menu-home a {
  color: #370028;
  border-bottom: 4px solid transparent;
  /* Bordure transparente par défaut */
  padding-bottom: 4px;
  text-align: center;
}

@media (max-width: 768px) {
  .menu-home {
    gap: 5px;
    /* Réduit l'espacement entre les éléments pour les petits écrans */
  }
}

.menu-home a.active {
  color: #370028 !important;
  font-weight: bold;
  border-bottom-color: #370028;
}

.menu-investisseur a {
  color: #000;
}

.menu-investisseur a.active {
  color: #000 !important;
  font-weight: bold;
  border-bottom: 4px solid #257d43;
}

.main-nav {
  background-color: #cbdfd1;
}

.main-nav-g {
  font-size: 14px;
  font-weight: bold;
}

nav .nav-item a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.main-nav-g a {
  border-bottom: 4px solid transparent;
}

.sub-menu-container a {
  border-bottom: 4px solid transparent;
}

.sub {
  font-size: 13px;
}

.main-nav-intraday {
  background-color: #b3edff;
}

.menu-intraday a {
  color: #000 !important;
}

.menu-intraday a.active {
  color: #000;
  font-weight: bold;
  border-bottom: 4px solid #0a63fc;
}

.text-zen-primary {
  color: #183d3d;
}

/*.bg-zen-primary a {
  color: #fff;
}*/

.methode-section a {
  font-size: 15px;
}

.l-sidebar {
  position: relative;
  top: 10px;
}

#h2-list .sidebar-h3 {
  margin-left: 20px;
  font-size: 0.95em;
  color: #888;
  list-style-type: circle;
}

.btn-investisseur {
  color: #000 !important;
  background-color: #cbdfd1;
}

.btn-intraday {
  color: #000 !important;
  background-color: #b3edff;
}

.blog-footer {
  padding: 2.5rem;
  color: #727272;
  text-align: center;
  background-color: #f9f9f9;
  border-top: 0.05rem solid #e5e5e5;
}

.header-logo {
  font-size: 1.7rem;
  text-decoration: none;
}

.blog-post-title {
  margin-bottom: 0.25rem;
  font-size: 2.5rem;
}

.blog-post {
  margin-bottom: 4rem;
}

.blog-post-meta {
  margin-bottom: 1.25rem;
  color: #727272;
}

.blog-nav-second {
  background-color: #fff;
}

.blog-nav {
  line-height: 1;
  border-bottom: 1px solid rgb(229, 229, 229);
}

a {
  text-decoration: none;
}

.zen-button {
  background-color: #370028;
  border: #370028;
}

.zen-button:hover {
  background-color: #7e025d;
  color: #fff !important;
}

.form-control:focus {
  box-shadow: none !important;
}

/*.dropdown-menu a {
  color: #000 !important;
}*/

/* padding-bottom and top for image */

.mfp-no-margins img.mfp-img {
  padding: 0;
}

/* position of shadow behind the image */

.mfp-no-margins .mfp-figure:after {
  top: 0;
  bottom: 0;
}

/* padding for main container */

.mfp-no-margins .mfp-container {
  padding: 0;
}

/*

for zoom animation
uncomment this part if you haven't added this code anywhere else

*/

.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
  opacity: 0;
  -webkit-backface-visibility: hidden;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}

.mfp-with-zoom.mfp-ready .mfp-container {
  opacity: 1;
}

.mfp-with-zoom.mfp-ready.mfp-bg {
  opacity: 0.8;
}

.mfp-with-zoom.mfp-removing .mfp-container,
.mfp-with-zoom.mfp-removing.mfp-bg {
  opacity: 0;
}

/*label.required:after {
    background: red;
    border-radius: 50%;
    content: "";
    display: inline-block;
    filter: opacity(75%);
    height: 4px;
    position: relative;
    right: -2px;
    top: -8px;
    width: 4px;
    z-index: 99;
}*/

label.required:after {
  content: "*";
  color: red;
  display: inline-block;
  filter: opacity(75%);
  height: 4px;
  position: relative;
  right: -2px;
  top: -6px;
  width: 4px;
  z-index: 99;
}

.quote-container {
  background-image: url("../images/ban3.jpg");
  background-size: 100% auto;
  /* Ajuste la largeur à 100% et la hauteur automatiquement */
  min-height: 410px;
  background-repeat: no-repeat;
  width: 100%;
  padding: 50px 20px;
  z-index: 1;
  overflow: hidden;
}

.quote-text {
  font-size: 1.9rem;
  font-style: italic;
  color: #000000;
}

.quote-author {
  font-style: italic;
  font-size: 1rem;
  color: #6c6c6c;
}

.middle-quote {
  font-size: 1.7rem;
  font-style: italic;
  margin-top: 20px;
  margin-left: 3%;
  color: #000000;
}

.right-quote {
  font-size: 1.7rem;
  font-style: italic;
  margin-top: 30px;
  margin-left: 7%;
  color: #3faf45;
}

@font-face {
  font-family: "Agency FB Bold";
  font-style: normal;
  font-weight: normal;
  src:
    local("Agency FB Bold"),
    url("../font/AgencyFBBold.ttf") format("ttf");
}

.left-section {
  font-family: "Agency FB Bold", sans-serif;
  font-size: 10rem;
  color: #ca0101;
  line-height: 1;
  text-align: center;
}

.right-section {
  font-size: 23px;
}

.r-title {
  font-size: 4rem;
  font-family: "Agency FB Bold", sans-serif;
  color: #ca0101;
}

.s-title {
  font-size: 4rem;
  font-family: "Agency FB Bold", sans-serif;
  color: #3b9e40;
}

.content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.right-section p {
  margin: 0;
}

.important-text {
  color: #3b9e40;
  font-size: 1.5rem;
  text-align: center;
}

#h2-list li {
  padding-top: 13px;
}

.sidebar {
  background-color: #fff;
  font-size: 20px;
}

.home .box-title {
  background-color: #d9d9d9;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.home .sidebar-title {
  font-size: 1.7rem;
  color: #370028;
}

.home li {
  color: #370028;
}

.home li a {
  color: #370028;
}

.investisseur .box-title {
  background-color: #bdd0c3;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.investisseur .sidebar-title {
  font-size: 1.7rem;
  color: #257d43;
}

.investisseur li {
  color: #257d43;
}

.investisseur li a {
  color: #257d43;
}

.intraday .box-title {
  background-color: #d3e0ef;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.intraday .sidebar-title {
  font-size: 1.7rem;
  color: #0a63fc;
}

.intraday li {
  color: #0a63fc;
}

.intraday li a {
  color: #0a63fc;
}

.text-justify {
  text-align: justify;
}

.bg-light-green {
  background-color: #e2f4e2;
}

.bg-green {
  background-color: #cbdfd1;
}

.bg-blue {
  background-color: #c5dbff;
}

.bg-light-yellow {
  background-color: #f9f5e3;
}

.bg-light-red {
  background-color: #ffd9d9;
}

.bg-light-blue {
  background-color: #e7ffff;
}

.bg-light-green-2 {
  background-color: #e9ffea;
}

.bg-light {
  background-color: #fff !important;
}

.table-child-2 th:nth-of-type(n + 2):nth-of-type(-n + 5) {
  background-color: #ffe4b5;
}

.table-child-3 th:nth-of-type(n + 2):nth-of-type(-n + 5) {
  background-color: #fdd131;
}

.table-child-4 th:nth-of-type(n + 2):nth-of-type(-n + 5) {
  background-color: #ff8c00;
  color: #fff;
}

.table-child-5 th:nth-of-type(n + 2):nth-of-type(-n + 5) {
  background-color: #fe5308;
  color: #fff;
}

.table-child-6 th:nth-of-type(n + 2):nth-of-type(-n + 5) {
  background-color: #ff0000;
  color: #fff;
}

.cnt-ch-jp li {
  padding-bottom: 20px;
  margin-bottom: 10px;
}

/* Card hover effects */
.hover-shadow {
  transition: all 0.3s ease;
}

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

.modern-footer {
  background: #262133;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.modern-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

/* === FORM STYLE (SaaS-like) === */

.contact-form label {
  font-weight: 500;
  font-size: 14px;
  color: #111827;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background-color: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  outline: none;
}

/* Bouton */
.contact-form button {
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
}

.footer-content {
  padding: 1.5rem 0 2rem 0;
  position: relative;
  z-index: 1;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-logo {
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
  max-width: 25px;
  height: auto;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: #ffffff;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-section-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #cbdfd1, #b3edff);
  border-radius: 1px;
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #b8c5c0;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: "→";
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: all 0.3s ease;
  color: #b3edff;
}

.footer-links a:hover {
  color: #cbdfd1;
  padding-left: 15px;
}

.footer-links a:hover::before {
  opacity: 1;
}

.footer-contact p {
  color: #b8c5c0;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.footer-contact i {
  color: #b3edff;
  width: 16px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(203, 223, 209, 0.1);
  color: #cbdfd1;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(203, 223, 209, 0.2);
}

.social-link:hover {
  background: #cbdfd1;
  color: #370028;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(203, 223, 209, 0.3);
}

.footer-bottom {
  background: #262133;
  padding: 1rem 0;
  border-top: 1px solid rgba(203, 223, 209, 0.1);
  position: relative;
  z-index: 1;
}

.copyright-text {
  color: #b8c5c0;
  margin: 0;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.legal-link {
  color: #b8c5c0;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.legal-link:hover {
  color: #cbdfd1;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    padding: 2rem 0 1.5rem 0;
  }

  .footer-bottom {
    padding: 1rem 0;
  }

  .footer-legal {
    justify-content: flex-start;
    margin-top: 1rem;
    gap: 1rem;
  }

  .social-links {
    justify-content: center;
  }

  .footer-section-title {
    margin-top: 1.5rem;
  }
}

@media (max-width: 576px) {
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
}
