/* Aromex Homepage - Styles spécifiques */
/* Les polices sont déjà définies dans aromex-fonts.css via aromex.css */

/* Force layout vertical */
.aromex-home {
  display: block !important;
  width: 100%;
  overflow-x: hidden;
  contain: content;
  content-visibility: auto;
}

.aromex-home > * {
  display: block !important;
  width: 100% !important;
  clear: both !important;
}

/* Grid System Bootstrap-like pour la homepage */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 15px;
}

@media (max-width: 768px) {
  .col-md-6,
  .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Masquer tous les éléments du thème Classic sur la homepage SAUF le footer Aromex */
#wrapper,
.footer,
.footer-container,
#footer-container,
#header .header-nav,
#header .header-top,
#notifications,
.breadcrumb,
#content-wrapper,
#main {
  display: none !important;
}

/* Masquer le footer PrestaShop par défaut mais pas le footer Aromex */
#footer:not(#aromex-footer),
footer:not(#aromex-footer):not(.aromex-footer),
.footer:not(.aromex-footer),
.footer-container:not(.aromex-footer),
#footer-container:not(.aromex-footer) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Permettre l'affichage du footer Aromex */
#aromex-footer,
.aromex-footer {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
}

/* Masquer spécifiquement les hooks de footer PrestaShop sauf le nôtre */
#hook-display-footer:not(.aromex-footer),
.hook-display-footer:not(.aromex-footer),
[data-hook="displayFooter"]:not(.aromex-footer) {
  display: none !important;
}

/* Styles pour la section hero */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background-image: url("../img/labo.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
  clear: both;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.hero-section::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.4) 60%,
    rgba(0, 0, 0, 0.3) 80%,
    rgba(0, 0, 0, 0) 90%,
    transparent 100%
  );
}

.hero-section .container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  padding: 0 20px;
  width: 90%;
  max-width: 1200px;
}

.hero-section h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-section h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.4;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Section Services */
.services-section {
  background-color: #000;
  color: white;
  padding: 120px 0;
  font-family: "Montserrat", sans-serif;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  display: block !important;
  width: 100vw !important;
  clear: both;
}

.services-section .section-header {
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 0 20px;
  position: relative;
  text-align: center;
}

.services-section .section-header h2 {
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: 8px;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.services-section .decorative-line {
  position: relative;
  height: 1px;
  width: 100%;
  background: #333;
}

.services-section .decorative-line::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background: white;
}

.service-item {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 60px;
  align-items: flex-start;
  contain: content;
  content-visibility: auto;
  contain-intrinsic-size: 0 300px;
}

.service-number {
  font-size: 15rem;
  font-weight: 500;
  line-height: 0.8;
  color: white;
  opacity: 0.9;
  text-align: right;
}

.service-content {
  padding-top: 15px;
}

.service-content h3 {
  margin: 0 0 15px 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase;
}

.service-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 800px;
  margin: 0;
}

/* Categories Section */
.categories-section {
  background: #f8f9fa;
  padding: 80px 0;
  margin-top: 60px;
  clear: both;
  display: block !important;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 50px;
}

.category-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 30px;
  contain: content;
  content-visibility: auto;
  contain-intrinsic-size: 0 300px;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.category-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

/* Responsive Design pour la homepage */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section h2 {
    font-size: 1.2rem;
  }

  .service-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .service-number {
    text-align: center;
    margin-top: 0;
  }

  .services-section .section-header h2,
  .section-title {
    font-size: 2rem;
  }
}

/* Section Why Choose Aromex */
.why-choose-section {
  position: relative;
  background-image: url("../img/pourquoi-choisir-aromex.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
  font-family: "Montserrat", sans-serif;
  clear: both;
  display: block !important;
  min-height: 500px;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.why-choose-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.why-choose-section .container {
  position: relative;
  z-index: 2;
}

.why-choose-content {
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 50px 40px;
  border-radius: 10px;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  contain: content;
  content-visibility: auto;
  contain-intrinsic-size: 0 300px;
}

.why-choose-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: white;
  line-height: 1.2;
}

.why-choose-content h3 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: #cccccc;
  line-height: 1.4;
}

.scrollable-text {
  max-height: 80px;
  overflow-y: auto;
  margin-bottom: 30px;
  padding-right: 15px;
  direction: ltr;
}

.scrollable-text::-webkit-scrollbar {
  width: 4px;
}

.scrollable-text::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.scrollable-text::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.scrollable-text::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 1);
}

/* Pour Firefox */
.scrollable-text {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.9) rgba(255, 255, 255, 0.3);
}

.scrollable-text p {
  direction: ltr;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0e0e0;
  margin: 0;
  text-align: left;
}

.btn-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 15px 25px;
  border-radius: 0;
  transition: all 0.3s ease;
  background: transparent;
  position: relative;
}

.btn-learn-more:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: white;
  text-decoration: none;
  transform: none;
}

.btn-learn-more .arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
  font-weight: normal;
}

.btn-learn-more:hover .arrow {
  transform: translateX(3px);
}

/* Responsive pour why-choose-section */
@media (max-width: 768px) {
  .why-choose-section {
    padding: 60px 0;
    min-height: 400px;
  }

  .why-choose-content {
    padding: 30px 25px;
    margin: 0 20px;
    max-width: none;
  }

  .why-choose-content h2 {
    font-size: 1.5rem;
  }

  .why-choose-content h3 {
    font-size: 1rem;
  }

  .scrollable-text {
    max-height: 80px;
    padding-left: 20px;
    padding-right: 10px;
  }
}

/* Section Career Opportunities */
.career-opportunities-section {
  background: #000;
  padding: 100px 0;
  margin: 100px 0;
  font-family: "Montserrat", sans-serif;
  clear: both;
  display: block !important;
  min-height: 500px;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.career-opportunities-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.career-opportunities-section .row {
  display: flex !important;
  align-items: center;
  min-height: 400px;
  gap: 40px;
}

.career-opportunities-section .col-md-6 {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  max-width: none !important;
}

.career-content {
  color: white;
  padding: 0;
  max-width: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.career-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 30px;
  text-transform: uppercase;
  color: white;
  line-height: 1.2;
}

.career-content .scrollable-text {
  max-height: 80px;
  overflow-y: auto;
  margin-bottom: 30px;
  padding-right: 15px;
  direction: ltr;
}

.career-content .scrollable-text p {
  direction: ltr;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 15px;
  text-align: left;
}

.career-content .scrollable-text p:last-child {
  margin-bottom: 0;
}

.career-content .scrollable-text::-webkit-scrollbar {
  width: 4px;
}

.career-content .scrollable-text::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.career-content .scrollable-text::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.career-content .scrollable-text::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 1);
}

/* Slider de cards */
.careers-slider {
  position: relative;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.career-card {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 40px 30px;
  color: white;
  display: none;
  transition: all 0.3s ease;
  min-height: 300px;
  contain: content;
  content-visibility: auto;
  contain-intrinsic-size: 0 300px;
}

.career-card.active {
  display: block;
}

.career-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: white;
}

.career-card .location {
  font-size: 0.9rem;
  color: #cccccc;
  margin-bottom: 25px;
  font-weight: 300;
}

.career-card .card-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 30px;
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 15px 25px;
  border-radius: 0;
  transition: all 0.3s ease;
  background: transparent;
  position: relative;
}

.btn-apply:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: white;
  text-decoration: none;
  transform: none;
}

.btn-apply .arrow {
  font-size: 1rem;
  transition: transform 0.3s ease;
  font-weight: normal;
}

.btn-apply:hover .arrow {
  transform: translateX(3px);
}

/* Slider dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Responsive pour career-opportunities-section */
@media (max-width: 768px) {
  .career-opportunities-section {
    padding: 60px 0;
    min-height: 400px;
  }

  .career-opportunities-section .row {
    flex-direction: column !important;
    min-height: auto;
    gap: 20px;
  }

  .career-opportunities-section .col-md-6 {
    flex: none !important;
    width: 100% !important;
  }

  .career-content {
    padding: 30px 25px;
    margin: 0 20px;
    max-width: none;
    margin-bottom: 40px;
    height: auto;
  }

  .career-content h2 {
    font-size: 1.5rem;
  }

  .careers-slider {
    padding: 10px;
    height: auto;
  }

  .career-card {
    padding: 30px 20px;
    min-height: 250px;
  }

  .career-card h3 {
    font-size: 1.3rem;
  }
}

/* Section Stats - Aromex en chiffre */
.stats-section {
  background: white !important;
  padding: 100px 0;
  font-family: "Montserrat", sans-serif;
  clear: both;
  display: block !important;
  min-height: 500px;
  margin-bottom: 60px;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.stats-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.stats-section .row {
  display: flex !important;
  align-items: center;
  min-height: 400px;
  gap: 60px;
  position: relative;
}

.stats-section .col-md-6 {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  max-width: none !important;
}

.stats-image {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  margin-left: calc(-28vw + 28%);
  width: calc(28vw - 28% + 530px);
  padding-left: 0;
}

.stats-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-left: 0;
  display: block;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.stats-content {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.stats-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 50px;
  text-transform: uppercase;
  color: #333;
  line-height: 1.2;
}

.stats-content h2 span {
  color: #666;
  font-weight: 300;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
  contain: content;
  content-visibility: auto;
  contain-intrinsic-size: 0 300px;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: #333;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.stat-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label span {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #666;
  line-height: 1;
}

.stat-label span:first-child {
  border-bottom: 2px solid #333;
  padding-bottom: 5px;
  margin-bottom: 3px;
}

/* Masquer les bannières promotionnelles et pop-ups indésirables */
.promo-banner,
.promotional-banner,
.discount-banner,
.sale-banner,
.popup-banner,
.newsletter-popup,
.promo-popup,
.discount-popup,
.floating-banner,
.sticky-banner,
[class*="promo"],
[class*="discount"],
[class*="sale"],
[class*="popup"]:not(.aromex-popup),
[id*="promo"],
[id*="discount"],
[id*="sale"],
[id*="popup"]:not(#aromex-popup),
.modal:not(.aromex-modal),
.overlay:not(.aromex-overlay),
.notification-bar,
.offer-bar,
.deal-banner {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  z-index: -1 !important;
}

/* Responsive pour career-opportunities-section */
@media (max-width: 768px) {
  .career-opportunities-section {
    padding: 60px 0;
    min-height: 400px;
  }

  .career-content {
    padding: 30px 25px;
    margin: 0 20px;
    max-width: none;
    margin-bottom: 40px;
  }

  .career-content h2 {
    font-size: 1.5rem;
  }

  .career-content .scrollable-text {
    max-height: 80px;
    padding-left: 20px;
    padding-right: 10px;
  }

  .careers-slider {
    padding: 10px;
  }

  .career-card {
    padding: 30px 20px;
    min-height: 250px;
  }

  .career-card h3 {
    font-size: 1.3rem;
  }

  /* Responsive pour stats-section */
  .stats-section {
    padding: 60px 0;
    min-height: 400px;
  }

  .stats-section .row {
    flex-direction: column !important;
    min-height: auto;
    gap: 40px;
  }

  .stats-section .col-md-6 {
    flex: none !important;
    width: 100% !important;
  }

  .stats-content {
    padding: 40px 30px;
    margin: 0 20px;
  }

  .stats-content h2 {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label span {
    font-size: 0.8rem;
  }
}
