/* ===== STYLES SPÉCIFIQUES PAGE POLITIQUE HSEQ ===== */

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO BANNER / SLIDER ===== */

.hero-banner {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  padding: 40px;
  border-radius: 10px;
}

.hero-text h2 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
  font-size: 18px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  max-width: 600px;
}

/* ===== SECTION HSEQ POLICY ===== */

.hseq-policy {
  padding: 60px 0;
  background: white;
}

.section-heading {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: #1a237e;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #1a237e;
}

.hseq-policy .container {
  max-width: 1000px;
}

.hseq-policy p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.policy-list {
  margin: 20px 0;
  padding-left: 30px;
}

.policy-list li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
}

/* ===== ONGLETS / TABS ===== */

.tab-container {
  margin: 40px 0;
}

.tab-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 20px 0;
  border-bottom: 1px solid #ddd;
}

.tab-item {
  padding: 15px 25px;
  margin: 5px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  font-weight: 500;
  color: #666;
  background: #f8f9fa;
  border-radius: 5px 5px 0 0;
}

.tab-item:hover {
  background: #e9ecef;
  color: #1a237e;
}

.tab-item.active {
  border-bottom: 3px solid #1a237e;
  color: #1a237e;
  font-weight: bold;
  background: white;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.tab-content {
  background: white;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-content .tab-panel {
  display: none;
  padding: 30px;
  border-top: 1px solid #ddd;
}

.tab-content .tab-panel.active {
  display: block;
}

.tab-panel h4 {
  color: #1a237e;
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
}

.tab-panel p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

/* ===== SIGNATURE BLOCK ===== */

.signature-block {
  text-align: right;
  margin-top: 40px;
  padding: 20px;
  background: #f8f9fa;
  border-left: 4px solid #1a237e;
  border-radius: 5px;
}

.signature-block strong {
  color: #1a237e;
  font-size: 18px;
}

.signature-block em {
  color: #666;
  font-size: 14px;
}

/* ===== RÈGLES D'OR / GOLDEN RULES ===== */

.golden-rules {
  padding: 60px 0;
  background: #f8f9fa;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.rule-item {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 4px solid #ff6600;
  position: relative;
  overflow: hidden;
}

.rule-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6600, #3f51b5);
}

.rule-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(26, 35, 126, 0.2);
}

.rule-item h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #1a237e;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rule-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ===== RESPONSIVE SPÉCIFIQUE PAGE POLITIQUE ===== */

@media (max-width: 768px) {
  .top-nav {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 15px 0;
  }

  .top-nav-left,
  .top-nav-right {
    padding: 0 10px;
  }

  .header-container {
    flex-direction: column;
    gap: 20px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .hero-text h2 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-text {
    padding: 20px;
  }

  .section-heading {
    font-size: 28px;
  }

  .tab-nav {
    flex-direction: column;
    align-items: center;
  }

  .tab-item {
    width: 100%;
    text-align: center;
    margin: 2px 0;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .footer-sections {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-text h2 {
    font-size: 24px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .section-heading {
    font-size: 24px;
  }

  .tab-panel {
    padding: 20px !important;
  }

  .rule-item {
    padding: 20px;
  }
}