:root {
  --primary-dark: #023645;
  --primary-green: #12a75d;
  --button-green: #00972b;
  --text-grey: #444444;
  --white: #ffffff;
  --color-dark-blue: #023645;
  --color-green: #12a75d;
  --color-green-btn: #00972b;
  --color-gray-light: #efefef;
  --color-white: #ffffff;
  --color-text-dark: #1e1e1e;
  --color-pink: #e9699e;
  --color-teal: #298371;
  --color-brown: #8f543e;
  --color-blue: #1a4b98;
  --color-light-blue: #81b9de;
  --color-purple: #934b9e;
  --color-red: #c13444;
  --color-dark-red: #c43535;
  --color-dark-brown: #4f3530;
  --color-magenta: #cc5a93;
  --font-main: 'Inter', sans-serif;
}

body {
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  background-color: var(--white);
  color: var(--text-grey);
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1180px; /* Based on content width ~1136px + padding */
  margin: 0 auto;
  padding: 0 20px;
}

.main-wrapper {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  background-color: var(--white);
  overflow: hidden;
}

.text-danger {
  color: rgb(220,53,69);
}

.broad-text .wrap {
  padding-bottom: 25px;
}

.broad-text .wrap a {
  color: var(--primary-dark);
  text-decoration: underline;
}

.contents-wrapper.broad-text {
  padding-top: 30px;
  padding-bottom: 30px;
}

.broad-text h1, .broad-text h4 {
  margin-bottom: 18px;
  color: var(--primary-dark);
}

.broad-text p {
  margin-bottom: 14px;
  line-height: 1.7;
}

.broad-text ul {
  margin-bottom: 14px;
  padding-left: 24px;
}

.broad-text strong {
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

/* CSS for section section:Header */
.header-section {
  padding: 12px 0 20px;
  background-color: #fff;
}

.header-top {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--text-grey);
}

.top-link:hover {
  text-decoration: underline;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 74px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 16px;
  padding-bottom: 4px;
}

.nav-link.active {
  border-bottom: 2px solid var(--button-green);
}

@media (max-width: 768px) {
  .header-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .main-nav {
    width: 100%;
    justify-content: space-between;
  }
}

/* CSS for section section:Footer */
#section-footer {
  width: 100%;
  /*max-width: 1440px;*/
  margin: 0 auto;
  background-color: #12a75d;
  color: #ffffff;
  padding: 46px 0;
}

.footer-container {
  /* Matching the content grid margins (approx 152px left/right) */
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.footer-col p, .footer-col a {
  font-size: 12px;
  line-height: 1.5;
  color: #ffffff;
  display: block;
}

.footer-col a {
  text-decoration: underline;
  font-size: 14px;
  font-weight: 700;
}

.contact-col {
  flex: 0 0 auto;
  width: 150px;
}

.address-col {
  flex: 1;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.links-col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  width: 210px;
}

.copyright {
  margin-top: 16px;
}

@media (max-width: 1024px) {
  .footer-container {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    padding: 0 20px;
  }
  
  .address-col {
    max-width: 100%;
  }
}

/* Index */

/* CSS for section section:Hero */
body.index #section-hero {
  width: 100%;
  /*max-width: 1440px;*/
  margin: 0 auto;
  position: relative;
  height: auto;
  min-height: 624px;
  overflow: hidden;
}

body.index .hero-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url('./images/6433d142c82ac976ddb5decbb4212f0ac8d3d31c.png');
  background-size: cover;
  background-position: right;;
  background-repeat: no-repeat;
}

/* Layer 1: Solid Color */
body.index .hero-bg-solid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #023645;
  z-index: 1;
}

/* Layer 2: Image with Multiply Blend */
body.index .hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 1052px; /* From JSON */
  height: 100%;
  z-index: 2;
  mix-blend-mode: multiply;
  opacity: 0.68;
}

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

/* Layer 3: Gradient Overlay */
body.index .hero-bg-gradient {
  position: absolute;
  top: 0;
  right: 0; /* Positioned relative to the image area roughly */
  width: 790px; /* From JSON */
  height: 100%;
  background: linear-gradient(90deg, #023645 0%, rgba(41, 162, 174, 0) 100%);
  z-index: 3;
  /* Adjust positioning to match design overlap */
  left: 383px; /* From JSON x position */
}

body.index .hero-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  align-items: center;
}

body.index .hero-text-group {
  width: 100%;
  max-width: 528px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  color: #ffffff;
  margin-top: 60px; /* Visual adjustment */
  margin-bottom: 60px;
}

body.index .hero-text-group h1 {
  font-size: 36px; /* Estimated */
  line-height: 1.2;
  font-weight: 700;
}

body.index .hero-text-group p {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

@media (max-width: 1024px) {
  body.index .hero-bg-gradient {
    width: 100%;
    left: 0;
    background: linear-gradient(180deg, #023645 0%, rgba(41, 162, 174, 0.5) 100%);
  }
  
  body.index .hero-bg-image {
    width: 100%;
  }
}

@media (max-width: 768px) {
  body.index #section-hero {
    height: auto;
    padding: 60px 0;
    min-height: unset;
  }
  
  body.index .hero-text-group h1 {
    font-size: 28px;
  }

  body.index .hero-text-group {
    margin: 30px 0;
  }
}

/* CSS for section section:Login */
#section-login {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px 0 100px;
  background-color: #ffffff;
}

.login-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.login-card {
  background: #ffffff;
  box-shadow: 0px 8px 32px 8px rgba(0, 0, 0, 0.15);
  width: 558px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.login-columns {
  display: flex;
  width: 100%;
  gap: 20px;
}

.login-column {
  flex: 1;
}

@media (max-width: 768px) {
  .login-columns {
    flex-direction: column;
    align-items: center;
  }
  .login-card {
    margin-left: auto;
    margin-right: auto;
  }
}

.card-header h3 {
  color: #023645;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

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

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #444444;
}

.input-frame {
  height: 40px;
  border: 2px solid rgba(0, 151, 43, 0.25);
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.input-frame input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: #444444;
}

.select-frame {
  justify-content: space-between;
  cursor: pointer;
}

.select-frame span {
  font-size: 14px;
  color: #444444;
}

.error-message, .info-message {
  font-size: 12px;
  line-height: 1.4;
  color: #444444;
  margin-top: 10px;
  min-height: 33px;
  display: none; /* Hidden by default, shown on error */
}

.error-highlight {
  color: #FF0000; /* Assuming red for error text based on context, though JSON style_8 is white, text color in image is red/black */
}

/* Override text color for error message based on visual inspection of image (red text) */
.error-message .error-highlight, .info-message .error-highlight {
  color: #E02B20; 
}

.btn-primary {
  background-color: #00972b;
  color: #ffffff;
  height: 48px;
  width: 153px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  margin-top: 20px;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #007a23;
}

@media (max-width: 1180px) {
  .login-card {
    width: 100%;
    max-width: 558px;
  }
}

/* home page */


/* CSS for section section:Hero */
body.home .hero-section {
  position: relative;
  height: 200px;
  background-color: var(--primary-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: linear-gradient(90deg, #023645 4.69%, rgba(41, 162, 174, 0) 36.45%, #023645 86.73%);
  background-image: url('images/hero-home.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
}

body.home .hero-content {
  position: relative;
  z-index: 2;
}

body.home .hero-content h1 {
  color: var(--white);
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CSS for section section:Intro */
.intro-section {
  padding: 60px 0;
}

.intro-section p {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-grey);
  max-width: 1136px;
}

/* CSS for section section:Products */
.products-section {
  padding-bottom: 80px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.card-image {
  height: 264px;
  background-color: #fff;
  border: 1px solid var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card-image img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.card-image.nopadding {
  padding: 0;
}

.card-image.nopadding img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-info {
  background-color: var(--primary-dark);
  padding: 24px;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.card-info h3 {
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
}

.btn-learn-more {
  background-color: var(--button-green);
  color: var(--white);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: capitalize;
  transition: background-color 0.2s;
}

.btn-learn-more:hover {
  background-color: #007a22;
}

html[lang="fr"] .btn-learn-more {
  text-transform: none;
}

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

  body.home .hero-section {
        background-size: cover;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .card-info {
    height: auto;
    gap: 20px;
  }
}

/* Product page */


/* CSS for section section:Hero */
body.product .hero-section {
  position: relative;
  height: 200px;
  background-color: var(--primary-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: linear-gradient(90deg, #023645 4.69%, rgba(41, 162, 174, 0) 36.45%, #023645 86.73%);
}

body.product .hero-content {
  position: relative;
  z-index: 2;
}

body.product .hero-content h1 {
  color: var(--white);
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-details-section {
  padding: 60px 0;
}

.product-image{
  width: 100%;
  max-width: 277px;
  margin: 0 auto 40px auto;
  border-collapse: collapse;
}

body.lupin-tiotropium .product-image{
  max-width: 1037px;
}

.product-image-table {
  width: 100%;
  max-width: 905px;
  margin: 0 auto;
  border-collapse: collapse;
}

.product-image-assets {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  border-collapse: collapse;
}

.product-info {
  max-width: 905px;
  margin: 0 auto 40px auto;
  text-align: center;
}

.product-description {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-grey);
}

.btn-green{
  background-color: var(--button-green);
  color: var(--white);
  padding: 10px 16px;
  font-size: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.btn-download{
  margin: 15px auto 30px auto;
  display: table;
}

/* Conteneur flex pour le bouton Back to product page */
.btn-back-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
.btn-back {
  margin: 50px 0 0 0;
}

@media (max-width: 600px) {
  .btn-back-container {
    justify-content: center;
  }
  .btn-back {
    margin: 50px auto 30px auto;
  }

  .btn-download{
    text-align: center;
  }
}

.btn-femyso-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 30px;
}

/* contact page */

/* CSS for section section:MainContent */
.main-content {
  padding-top: 72px;
  padding-bottom: 100px;
}

.section-title {
  color: #023645;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 48px;
  text-transform: uppercase;
  font-family: 'Open Sans', sans-serif;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.location-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.map-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.location-info h3 {
  color: #444444;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.location-info p {
  color: #444444;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.separator {
  height: 1px;
  background-color: #023645;
  width: 100%;
  margin-bottom: 72px;
}

.contact-details {
  color: #444444;
  font-size: 18px;
  line-height: 1.6;
}

.contact-details p {
  margin-bottom: 32px;
}

.contact-details strong {
  font-weight: 700;
  color: #444444;
}

@media (max-width: 1024px) {
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}



/* CSS for section section:ContactForm */
#contact-form {
  padding-bottom: 50px;
}

.form-card {
  max-width: 1220px;
  margin: 0 auto;
}

.form-card h2 {
  color: #023645;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 24px;
}

#contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#contact-form .form-group.full-width {
  margin-bottom: 24px;
}

#contact-form label {
  font-size: 16px;
  color: #444444;
  font-weight: 400;
}

#contact-form input, #contact-form select, #contact-form textarea {
  width: 100%;
  padding: 10px 16px;
  border: 2px solid rgba(0, 151, 43, 0.25);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #444444;
  background: #fff;
  outline: none;
  box-sizing: border-box;
}

#contact-form input:focus, #contact-form select:focus, #contact-form textarea:focus {
  border-color: #00972b;
}

#contact-form input.error, #contact-form select.error, #contact-form textarea.error {
  border-color: #E02B20;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 16px;
}

.btn-submit {
  background-color: #00972b;
  color: white;
  border: none;
  padding: 12px 48px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  display: inline-block;
}

.btn-submit:hover {
  background-color: #007a22;
}

body.contact-page .main-content {
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  .form-card {
    padding: 30px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Style for required asterisks in contact forms */
.required-asterisk {
  color: #EB0000;
  font-weight: bold;
}

/* CSS for section section:Content */
/* Specific override for Table 2 UPC row to not span */
.product-table.cols-4 .cell.row-data.upc-split {
  grid-column: auto; /* Don't span */
}

.product-table {
  display: grid;
  border: 1px solid var(--color-white);
  width: 100%;
  max-width: 905px;
  margin: 0 auto 40px auto;
}

/* Grid Columns Configuration */
.cols-1 { grid-template-columns: 167px 1fr; }
.cols-3 { grid-template-columns: 167px 1fr 1fr 1fr; }
.cols-4 { grid-template-columns: 167px 1fr 1fr 1fr 1fr; }
.cols-6 { grid-template-columns: 1fr 1fr 1fr 1fr 167px 1fr; }

.cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  font-size: 14px;
  border: 1px solid var(--color-white);
}

.cell small {
  font-size: 8px;
  margin-left: 2px;
  margin-top: 4px;
}

.cell.two-lines {
  display: grid;
  padding: 0 8px 0 16px;
  line-height: 15px;
}

.cell.two-lines small {
  justify-self: start;
  align-self: end;
  margin: 0;
}

/* Header Left Column (Strength/DIN) */
.header-left {
  background-color: var(--color-green);
  color: var(--color-white);
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.row-span-2 {
  grid-row: span 2;
}

/* Header Data Cells (Colored) */
.header-data {
  color: var(--color-white);
  font-weight: 700;
  height: 47px;
}

/* Data Cells */
.data-din {
  background-color: var(--color-gray-light);
  color: var(--color-text-dark);
  /*height: 47px;*/
  height: 34px;
}

/* Row Headers (Left Column) */
.row-header {
  background-color: var(--color-green);
  color: var(--color-white);
  justify-content: flex-start;
  padding-left: 16px;
  height: 34px;
}

/* Row Data (Right Column) */
.row-data {
  background-color: var(--color-gray-light);
  color: var(--color-text-dark);
  height: 34px;
}

.bg-pink { background-color: var(--color-pink); }
.bg-teal { background-color: var(--color-teal); }
.bg-brown { background-color: var(--color-brown); }
.bg-blue { background-color: var(--color-blue); }
.bg-light-blue { background-color: var(--color-light-blue); }
.bg-magenta { background-color: var(--color-magenta); }
.bg-dark-brown { background-color: var(--color-dark-brown); }
.bg-red { background-color: var(--color-red); }
.bg-purple { background-color: var(--color-purple); }
.bg-dark-red { background-color: var(--color-dark-red); }
.bg-green { background-color: var(--color-green); }
.bg-green-light { background-color: #d5ffea69; }

.full-width {
  grid-column: 2 / -1;
}

@media (max-width: 1024px) {
  .product-table {
    overflow-x: auto;
    display: grid; /* Keep grid but allow scroll if needed container */
  }
}

@media (max-width: 768px) {
  .product-table {
    display: flex;
    flex-direction: column;
    border: none;
  }
  
  .cols-1, .cols-3, .cols-4, .cols-6 {
    grid-template-columns: 1fr;
  }
  
  .cell {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    height: auto;
    min-height: 40px;
  }
  
  .header-left {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .row-span-2 {
    grid-row: auto;
  }
  
  .full-width {
    grid-column: auto;
  }
  
  /* Mobile specific adjustments would be complex for this table type, 
     horizontal scroll is better for data tables */
  .product-table {
    display: grid;
    /*min-width: 600px;*/ /* Force scroll */
  }
}

.fs-11 {
  font-size: 11px;
}

.fs-13 {
  font-size: 13px;
}