/* Reset des marges et paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Styles des régions */
.header-container,
.hero-services-container,
.hero-services-wrapper {
  position: relative;
  width: 100%;
}

.region-about-banner,
.region-services-banner,
.region-ressources-banner,
.region-programs-banner {
  background-color: transparent;
  padding: 0;
  margin: 0;
  width: 100vw;
  position: relative;
  overflow: hidden;
  height: auto;
  margin-top: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.region-hero {
  background-color: #f4f4f4;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-services-wrapper {
  position: relative;
}

/* Styles pour le composant hero */
.hero {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-inner {
  display: flex;
  height: 100%;
  position: relative;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  margin-left: 5%;
  align-items: flex-end;
  text-align: right;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-button {
  display: inline-block;
  background-color: #df6b22;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  align-self: flex-end;
}

.hero-button:hover {
  background-color: #c55a1b;
}

/* Styles pour le composant about-banner */
.about-banner,
.services-banner,
.ressources-banner,
.programs-banner {
  width: 100vw;
  position: relative;
  background-color: transparent;
  height: 100%;
  left: 0;
  right: 0;
}

.about-banner-inner,
.services-banner-inner,
.ressources-banner-inner,
.programs-banner-inner {
  display: flex;
  position: relative;
  height: 100%;
  width: 100vw;
}

.about-banner-image,
.services-banner-image,
.ressources-banner-image,
.programs-banner-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: 1;
}

.about-banner-image img,
.services-banner-image img,
.ressources-banner-image img,
.programs-banner-image img {
  width: 100vw;
  height: 110%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  margin: 0 auto;
}

.about-banner-image::after,
.services-banner-image::after,
.ressources-banner-image::after,
.programs-banner-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.about-banner-content,
.services-banner-content,
.ressources-banner-content,
.programs-banner-content {
  position: relative;
  z-index: 2;
  padding: 0;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* padding-bottom: 100px; */
  align-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
  margin-top: 15vh;
}

.about-banner-content h1,
.services-banner-content h1,
.ressources-banner-content h1,
.programs-banner-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: white;
}

.about-banner-subtitle,
.services-banner-subtitle,
.ressources-banner-subtitle,
.programs-banner-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.about-banner-description,
.services-banner-description,
.ressources-banner-description,
.programs-banner-description {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: white;
  max-width: 70%;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;

}

.region-services {
  position: relative;
  bottom: 0;
  left: 0;
  /* background-color: #4C627B; */
  width: 100%;
  z-index: 20;
}

.region-services .container {
  max-width: 90%;
  margin: 0 auto;
  width: 100%;
}

.region-services h2 {
  color: #df6b22;
  font-weight: bold;
  margin-bottom: 1rem;
}

.region-services .services-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.region-services .service-card {
  background-color: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex: 1;
}

.region-services .service-card h3 {
  color: #df6b22;
  font-weight: bold;
  margin-bottom: 1rem;
  position: relative;
  padding-top: 20px;
}

.region-services .service-card h3:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background-color: #df6b22;
}

.region-services .service-card p {
  color: #333;
  margin-bottom: 1.5rem;
}

.region-services .service-card a {
  display: inline-block;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.region-branding {
  position: absolute;
  top: 7vh;
  left: 0;
  width: 100%;
  z-index: 100;
  color: white;
  padding: 0;
  margin: 0;
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 90%;
  margin: 0 auto;
  width: 100%;
}

.info-center {
  display: flex;
  gap: 5px;
  color: #242941 !important;
}

.info-center a {
  color: #242941 !important;
}

.leader-top {
  background-color: #df6b22;
  color: white;
  font-size: 1.1rem;
  padding: 40px 20px;
  margin: 0;
}

/* Layout de base */
html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
}

#page-wrapper,
#page {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.layout-main-wrapper {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
}

/* Suppression des marges des régions */
.region {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

.region > * {
  margin: 0 !important;
  padding: 0 !important;
}

.article-page {
  margin-top: 10vh !important;
  margin-bottom: 2rem !important;
}

/* GUDE-PME Financing Node Styles - Enhanced for WYSIWYG Content */
.node.gude-pme-financing {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 40px auto;
  max-width: 100%;
  position: relative;
}

.node.gude-pme-financing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #df6b22;
  border-radius: 8px 8px 0 0;
}

.node__content {
  padding: 1rem;
}

.node__content__info {
  margin-top: 2rem;
}

/* Update the flex layout to be vertical */
.node.gude-pme-financing .node__flex-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  align-items: stretch;
}

.node.gude-pme-financing .node__image {
  width: 100% !important;
  flex: none;
  overflow: hidden;
  position: relative;
  height: 300px; /* Set a fixed height or adjust as needed */
}

.node.gude-pme-financing .node__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.node.gude-pme-financing .node__image:hover img {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.node.gude-pme-financing .node__main-content {
  width: 100% !important;
  flex: 1;
  padding: 40px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.node.gude-pme-financing .node__title {
  font-size: 2rem !important;
  color: #333 !important;
  margin-bottom: 15px !important;
  font-weight: normal !important;
  text-align: left !important;
  line-height: 1.2 !important;
}

.node.gude-pme-financing .node__title a {
  color: #2c3e50 !important;
  text-decoration: none;
}

.node.gude-pme-financing .node__description {
  color: #666 !important;
  font-style: italic !important;
  margin-bottom: 40px !important;
  line-height: 1.5 !important;
  font-size: 1.1rem !important;
  font-weight: normal !important;
  text-align: left !important;
}

.node.gude-pme-financing .node__contenu ol{
  padding: 0 20px !important;
}

/* Style for h3 sections (Notre objectif, Nos solutions, Garantie) */
.node.gude-pme-financing .node__contenu h3,
.node.gude-pme-financing .node__content-field h3 {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: #2c3e50 !important;
  margin: 30px 0 20px 0 !important;
  padding-bottom: 8px;
  border-bottom: 3px solid #df6b22 !important;
  display: inline-block;
}

/* Style for h5 subsections (1. Crédits d'exploitation, etc.) */
.node.gude-pme-financing .node__contenu h5,
.node.gude-pme-financing .node__content-field h5 {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  color: #2c3e50 !important;
  margin: 25px 0 15px 0 !important;
  position: relative;
}

.node.gude-pme-financing .node__contenu h5::after,
.node.gude-pme-financing .node__content-field h5::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #df6b22;
}

/* Table styling - Simpler design */
.node.gude-pme-financing .node__contenu table,
.node.gude-pme-financing .node__content-field table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 20px 0 30px 0 !important;
  background: white !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
}

.node.gude-pme-financing .node__contenu table td:first-child,
.node.gude-pme-financing .node__content-field table td:first-child {
  background: #f8f9fa !important;
  color: #2c3e50 !important;
  font-weight: bold !important;
  padding: 15px !important;
  width: 30% !important;
  vertical-align: top !important;
  border-right: 1px solid #e2e8f0 !important;
}

.node.gude-pme-financing .node__contenu table td:last-child,
.node.gude-pme-financing .node__content-field table td:last-child {
  padding: 15px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: top !important;
  background: white !important;
  color: #4a5568 !important;
}

.node.gude-pme-financing .node__contenu table tr:first-child td:first-child,
.node.gude-pme-financing .node__content-field table tr:first-child td:first-child {
  background: #e2e8f0 !important;
  color: #2c3e50 !important;
  font-weight: bold !important;
}

.node.gude-pme-financing .node__contenu table tr:first-child td:last-child,
.node.gude-pme-financing .node__content-field table tr:first-child td:last-child {
  background: #e2e8f0 !important;
  color: #2c3e50 !important;
  font-weight: bold !important;
}

.node.gude-pme-financing .node__contenu table tr:not(:first-child):hover,
.node.gude-pme-financing .node__content-field table tr:not(:first-child):hover {
  background-color: #f8fafc !important;
}

.node.gude-pme-financing .node__contenu table tr:last-child td,
.node.gude-pme-financing .node__content-field table tr:last-child td {
  border-bottom: none !important;
}

/* Style for italic product names in tables */
.node.gude-pme-financing .node__contenu table td em,
.node.gude-pme-financing .node__content-field table td em {
  font-style: italic !important;
  font-weight: bold !important;
  color: #2c3e50 !important;
}

/* Style for strong text in descriptions - more subtle */
.node.gude-pme-financing .node__contenu table td strong,
.node.gude-pme-financing .node__content-field table td strong {
  color: #2c3e50 !important;
  font-weight: bold !important;
  background: #f0f4f8 !important;
  padding: 2px 4px !important;
  border-radius: 3px !important;
}

/* Special styling for the SGPME section - More subtle design */
.node.gude-pme-financing .node__contenu h3:last-of-type,
.node.gude-pme-financing .node__content-field h3:last-of-type {
  background: #f8f9fa !important;
  color: #2c3e50 !important;
  padding: 20px !important;
  border-radius: 12px !important;
  border-bottom: none !important;
  margin: 30px 0 15px 0 !important;
  display: block !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

/* Style for the paragraph following SGPME heading */
.node.gude-pme-financing .node__contenu h3:last-of-type + p,
.node.gude-pme-financing .node__content-field h3:last-of-type + p {
  background: #f8f9fa !important;
  color: #4a5568 !important;
  padding: 0 20px 20px 20px !important;
  border-radius: 0 0 12px 12px !important;
  margin: -15px 0 30px 0 !important;
  line-height: 1.7 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.node.gude-pme-financing .node__contenu h3:last-of-type + p strong,
.node.gude-pme-financing .node__content-field h3:last-of-type + p strong {
  color: #2c3e50 !important;
  background: #e2e8f0 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}

/* Style for the final italic conclusion */
.node.gude-pme-financing .node__contenu p em strong,
.node.gude-pme-financing .node__content-field p em strong {
  background: #f8f9fa !important;
  color: #2c3e50 !important;
  padding: 25px !important;
  border-radius: 8px !important;
  border-left: 5px solid #df6b22 !important;
  margin: 30px 0 !important;
  font-style: italic !important;
  text-align: center !important;
  display: block !important;
}

/* Regular paragraph styling */
.node.gude-pme-financing .node__contenu p,
.node.gude-pme-financing .node__content-field p {
  line-height: 1.6 !important;
  margin-bottom: 15px !important;
  color: #333 !important;
}

/* Override any existing list styles */
/* .node.gude-pme-financing ul {
  list-style: none !important;
} */

.node.gude-pme-financing ul li::before {
  content: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .node.gude-pme-financing .node__contenu table,
  .node.gude-pme-financing .node__content-field table {
    font-size: 0.9rem !important;
  }

  .node.gude-pme-financing .node__contenu table td,
  .node.gude-pme-financing .node__content-field table td {
    padding: 10px !important;
  }
}

/* Class to override last-of-type styling and use normal h3 appearance */
.node.gude-pme-financing .node__contenu h3.normal-section,
.node.gude-pme-financing .node__content-field h3.normal-section {
  background: none !important;
  color: #2c3e50 !important;
  padding-bottom: 8px !important;
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-radius: 0 !important;
  border-bottom: 3px solid #df6b22 !important;
  margin: 30px 0 20px 0 !important;
  display: inline-block !important;
  box-shadow: none !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
}

/* Style for paragraphs following normal-section h3 */
.node.gude-pme-financing .node__contenu h3.normal-section + p,
.node.gude-pme-financing .node__content-field h3.normal-section + p {
  background: none !important;
  color: #333 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  margin: 0 0 15px 0 !important;
  line-height: 1.6 !important;
  box-shadow: none !important;
}
