/* =====================================================================
   HOMOLOGATION & AVIS TECHNIQUE — Feuille de style dédiée
   Réutilise les variables globales définies dans myCss.css (:root) :
   --green (#01a08c) / --gryeF (#38598b) / --greenO (#155263)
   --sousText (#4a4a48) / --orange (#ffebbb)
   Ce fichier NE remplace PAS la section .homologation existante dans
   myCss.css : il faut retirer/commenter l'ancien bloc
   "Start Homologation ... End Homologation" (lignes ~1588-1826)
   dans myCss.css pour éviter les conflits de spécificité.
   ===================================================================== */

.homologation {
  --ink-soft: #86847f;
  --surface: #f7f9f9;
  --border: #e5ebea;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  background: var(--surface);
  padding-bottom: 4rem;
}

/* ---------- HERO ---------- */
.homologation .hom-hero {
  background: linear-gradient(135deg, var(--greenO) 0%, #0e3d49 100%);
  color: #fff;
  padding: 5.6rem 4% 6.4rem;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 1.6rem 1.6rem;
}

.homologation .hom-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 52rem;
  height: 52rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(1, 160, 140, 0.35), transparent 70%);
}

.homologation .hom-crumb {
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.8rem;
  position: relative;
}

.homologation .hom-crumb span {
  color: #fff;
  font-weight: 700;
}

.homologation .hom-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  max-width: 64rem;
  position: relative;
  line-height: 1.25;
}

.homologation .hom-hero .hom-sub {
  margin-top: 1.4rem;
  max-width: 60rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  line-height: 1.6;
  position: relative;
}

.homologation .hom-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1rem 1.6rem;
  border-radius: 1rem;
  font-size: 1.35rem;
  position: relative;
  backdrop-filter: blur(6px);
}

.homologation .hom-badge i {
  color: var(--orange);
}

.homologation .hom-badge b {
  color: var(--orange);
  font-weight: 700;
}

/* ---------- FACTS ROW ---------- */
.homologation .hom-facts {
  max-width: 108rem;
  margin: -3.4rem auto 0;
  padding: 0 4%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  position: relative;
  z-index: 2;
}

.homologation .hom-fact {
  background: #fff;
  border-radius: 1.4rem;
  padding: 2rem 2.2rem;
  box-shadow: 0 1rem 3rem rgba(10, 40, 45, 0.08);
  border: 1px solid var(--border);
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
}

.homologation .hom-fact .ic {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 160, 140, 0.1);
  color: var(--green);
  font-size: 1.7rem;
}

.homologation .hom-fact.warn .ic {
  background: #fff3d6;
  color: #a5720b;
}

.homologation .hom-fact h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.homologation .hom-fact p {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--greenO);
}

.homologation .hom-fact.warn p {
  color: #8a5a05;
  font-weight: 500;
  font-size: 1.38rem;
}

.homologation .hom-fact a {
  color: var(--green);
  font-weight: 700;
}

/* ---------- SECTION HEADERS ---------- */
.homologation .hom-section {
  max-width: 108rem;
  margin: 0 auto;
  padding: 6.4rem 4% 0.8rem;
}

.homologation .hom-eyebrow {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.homologation .hom-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.homologation .hom-section h2 {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--greenO);
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}

.homologation .hom-section .hom-lede {
  color: var(--ink-soft);
  font-size: 1.45rem;
  max-width: 64rem;
  margin-bottom: 3.6rem;
  line-height: 1.6;
}

/* ---------- STEPPER ---------- */
.homologation .hom-steps {
  position: relative;
}

.homologation .hom-steps::before {
  content: '';
  position: absolute;
  left: 2.7rem;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--border) 0 6px, transparent 6px 12px);
}

.homologation .hom-step {
  position: relative;
  display: flex;
  gap: 2.2rem;
  padding-bottom: 1.4rem;
}

.homologation .hom-step-num {
  flex: none;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green);
  color: var(--green);
  font-weight: 900;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.homologation .hom-step-body {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  margin-bottom: 2.2rem;
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.homologation .hom-step-body:hover {
  box-shadow: 0 1.2rem 2.8rem rgba(10, 40, 45, 0.07);
}

.homologation .hom-step-head {
  padding: 1.8rem 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 1.2rem;
}

.homologation .hom-step-head .txt h3 {
  font-size: 1.7rem;
  color: var(--greenO);
  font-weight: 700;
}

.homologation .hom-step-head .txt span {
  font-size: 1.3rem;
  color: var(--ink-soft);
}

.homologation .hom-step-head .hom-chev {
  color: var(--green);
  transition: transform 0.25s ease;
  flex: none;
}

.homologation .hom-step-body.open .hom-chev {
  transform: rotate(180deg);
}

.homologation .hom-step-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.homologation .hom-step-body.open .hom-step-panel {
  max-height: 90rem;
}

.homologation .hom-step-panel-in {
  padding: 1.6rem 2.2rem 2.2rem;
  border-top: 1px solid var(--border);
}

.homologation ul.hom-checklist {
  list-style: none;
}

.homologation ul.hom-checklist li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 1.4rem;
  color: var(--sousText);
  padding: 0.7rem 0;
}

.homologation ul.hom-checklist li i {
  color: var(--green);
  margin-top: 0.3rem;
  font-size: 1.1rem;
}

.homologation .hom-tech-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--green);
  font-weight: 700;
  font-size: 1.35rem;
  cursor: pointer;
}

.homologation .hom-tech-link:hover {
  text-decoration: underline;
}

.homologation .hom-pdf-card {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.4rem 1.6rem;
}

.homologation .hom-pdf-card .picon {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 0.9rem;
  background: #fde3e3;
  color: #c0392b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex: none;
}

.homologation .hom-pdf-card .meta {
  flex: 1;
}

.homologation .hom-pdf-card .meta b {
  font-size: 1.38rem;
  display: block;
}

.homologation .hom-pdf-card .meta span {
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.homologation .hom-btn-solid {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 0.8rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.homologation .hom-btn-solid:hover {
  background: #018876;
}

/* ---------- ATTRIBUTION CTA ---------- */
.homologation .hom-cta {
  max-width: 108rem;
  margin: 4.4rem auto 0;
  padding: 0 4%;
}

.homologation .hom-cta-inner {
  background: linear-gradient(120deg, var(--green), #018876);
  border-radius: 1.6rem;
  padding: 2.8rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  color: #fff;
}

.homologation .hom-cta-inner h3 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.homologation .hom-cta-inner p {
  font-size: 1.38rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 44rem;
}

.homologation .hom-cta-inner .go {
  background: #fff;
  color: var(--greenO);
  font-weight: 800;
  font-size: 1.4rem;
  padding: 1.2rem 2.2rem;
  border-radius: 0.9rem;
  white-space: nowrap;
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  transition: transform 0.2s ease;
}

.homologation .hom-cta-inner .go:hover {
  transform: translateY(-2px);
}

/* ---------- TECH REQUIREMENTS TABS ---------- */
.homologation .hom-tech-block {
  display: none;
  max-width: 108rem;
  margin: 2.6rem auto 0;
  padding: 0 4%;
}

.homologation .hom-tech-block.show {
  display: block;
}

.homologation .hom-tech-block-in {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  overflow: hidden;
}

.homologation .hom-tech-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.homologation .hom-tech-tab {
  padding: 1.6rem 2rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.homologation .hom-tech-tab.active {
  color: var(--greenO);
  border-color: var(--green);
}

.homologation .hom-tech-panel {
  display: none;
  padding: 2.2rem;
}

.homologation .hom-tech-panel.active {
  display: block;
}

.homologation table.hom-norm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
}

.homologation table.hom-norm-table th {
  background: var(--greenO);
  color: #fff;
  text-align: left;
  padding: 1rem 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.homologation table.hom-norm-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.homologation table.hom-norm-table tr:nth-child(even) td {
  background: var(--surface);
}

.homologation table.hom-norm-table .code {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--gryeF);
}

/* ---------- PDF DRAWER ---------- */
.homologation .hom-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 30, 0.55);
  backdrop-filter: blur(2px);
  display: none;
  align-items: stretch;
  justify-content: flex-end;
  z-index: 9998;
}

.homologation .hom-drawer-overlay.open {
  display: flex;
}

.homologation .hom-drawer {
  width: min(56rem, 92vw);
  background: #fff;
  height: 100%;
  box-shadow: -2rem 0 4rem rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(2rem);
  animation: homDrawerIn 0.3s ease forwards;
}

@keyframes homDrawerIn {
  to {
    transform: translateX(0);
  }
}

.homologation .hom-drawer-head {
  padding: 2rem 2.2rem;
  background: var(--greenO);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.homologation .hom-drawer-head h4 {
  font-size: 1.55rem;
  font-weight: 700;
}

.homologation .hom-drawer-head span {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
}

.homologation .hom-drawer-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.8rem;
  cursor: pointer;
  font-size: 1.4rem;
}

.homologation .hom-drawer-body {
  flex: 1;
  padding: 1.8rem 2.2rem;
  overflow: auto;
}

.homologation .hom-drawer-body iframe {
  width: 100%;
  height: 100%;
  min-height: 40rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.homologation .hom-drawer-actions {
  padding: 1.6rem 2.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
}

.homologation .hom-drawer-actions a {
  flex: 1;
  text-align: center;
  background: var(--green);
  color: #fff;
  padding: 1.2rem;
  border-radius: 0.9rem;
  font-weight: 700;
  font-size: 1.35rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .homologation .hom-facts {
    grid-template-columns: 1fr;
    margin-top: -2.4rem;
  }

  .homologation .hom-hero {
    padding: 4.4rem 6% 5.4rem;
  }

  .homologation .hom-steps::before {
    left: 1.9rem;
  }

  .homologation .hom-step {
    gap: 1.4rem;
  }

  .homologation .hom-step-num {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
  }

  .homologation .hom-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .homologation .hom-drawer {
    width: 100%;
  }
}
