/* ═══════════════════════════════════════════════════════════
   PAGE DOMOTIQUE KNX BRETAGNE
   Intégrateur KNX — Standard ISO · Bretagne
   Repose sur tokens.css + styles.css
   ═══════════════════════════════════════════════════════════ */

/* ─── SECTION LAYOUT ─── */
.od-section          { padding: 84px 0; }
.od-section--white   { background: var(--od-white); }
.od-section--cream   { background: var(--od-amber-050); }
.od-section--dark    { background: var(--od-navy-900); }
.od-section__inner   { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.od-section__head    { text-align: center; margin-bottom: 52px; }
.od-section__head .od-lead { margin: 16px auto 0; max-width: 680px; }

/* ─── HERO SPLIT ─── */
.od-hero--knx .od-hero__inner { align-items: center; }

.od-hero__inner--split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

.od-hero__content { display: flex; flex-direction: column; }

/* ─── SPEC-CARD KNX ─── */
.od-knx-speccard {
  background: var(--od-navy-900);
  border: 1.5px solid var(--od-amber-500);
  border-radius: var(--od-radius-lg);
  padding: 28px 28px 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  flex-shrink: 0;
}

.od-knx-speccard__label {
  font-family: var(--od-font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--od-amber-500);
  margin-bottom: 18px;
  display: block;
}

.od-knx-speccard__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.od-knx-speccard__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.od-knx-speccard__list li:last-child { border-bottom: none; }

.od-knx-speccard__key {
  font-size: 12px;
  color: rgba(255,255,255,0.50);
  font-weight: 500;
  white-space: nowrap;
}

.od-knx-speccard__val {
  font-size: 14px;
  font-weight: 700;
  color: var(--od-amber-500);
  text-align: right;
}

/* ─── SECTION 1 — AVANTAGES KNX (3 cols) ─── */
.od-knx-advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.od-knx-advantage {
  background: var(--od-white);
  border: 1px solid var(--od-ink-100);
  border-radius: var(--od-radius-lg);
  padding: 32px 26px;
  transition: box-shadow var(--od-t-base) var(--od-ease),
              transform var(--od-t-base) var(--od-ease);
}

.od-knx-advantage:hover {
  box-shadow: var(--od-shadow-md);
  transform: translateY(-3px);
}

.od-knx-advantage__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--od-radius-md);
  background: var(--od-amber-050);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--od-amber-600);
  border: 1px solid rgba(242,182,0,0.2);
}

.od-knx-advantage h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--od-navy-900);
  margin: 0 0 10px;
  line-height: 1.3;
}

.od-knx-advantage p {
  font-size: 14px;
  color: var(--od-fg-muted);
  line-height: 1.75;
  margin: 0;
}

/* ─── SECTION 2 — FONCTIONS KNX DARK (2×2 grid) ─── */
.od-knx-functions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.od-knx-function {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--od-radius-lg);
  padding: 32px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: background var(--od-t-base) var(--od-ease),
              border-color var(--od-t-base) var(--od-ease);
}

.od-knx-function:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(242,182,0,0.25);
}

.od-knx-function__num {
  font-family: var(--od-font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--od-amber-500);
  opacity: 0.25;
  line-height: 1;
  flex-shrink: 0;
  min-width: 44px;
}

.od-knx-function__body { flex: 1; }

.od-knx-function__body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--od-white);
  margin: 0 0 10px;
  line-height: 1.3;
}

.od-knx-function__body p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin: 0;
}

/* ─── SECTION 3 — TABLEAU COMPARATIF ─── */
.od-knx-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--od-radius-lg);
  border: 1px solid var(--od-ink-100);
  box-shadow: var(--od-shadow-sm);
}

.od-knx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}

.od-knx-table thead tr {
  background: var(--od-navy-900);
}

.od-knx-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-family: var(--od-font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--od-white);
  border: none;
}

.od-knx-table thead th:nth-child(2) {
  color: var(--od-amber-500);
}

.od-knx-table thead th:nth-child(3) {
  color: rgba(255,255,255,0.60);
}

.od-knx-table tbody tr {
  border-bottom: 1px solid var(--od-ink-100);
  transition: background var(--od-t-fast) var(--od-ease);
}

.od-knx-table tbody tr:last-child { border-bottom: none; }

.od-knx-table tbody tr:hover { background: var(--od-amber-050); }

.od-knx-table tbody td {
  padding: 14px 20px;
  color: var(--od-ink-700);
  vertical-align: middle;
  line-height: 1.5;
}

.od-knx-table tbody td:first-child {
  font-weight: 600;
  color: var(--od-navy-900);
  width: 28%;
}

.od-knx-table__badge {
  display: inline-block;
  margin-right: 6px;
  font-size: 13px;
}

/* ─── SECTION 4 — ÉTAPES KNX ─── */
.od-method-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.od-method-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 48px;
  bottom: 48px;
  width: 2px;
  background: linear-gradient(to bottom, var(--od-amber-500), rgba(242,182,0,0.1));
}

.od-method-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  position: relative;
}

.od-method-step:not(:last-child) {
  border-bottom: 1px solid var(--od-ink-100);
}

.od-method-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--od-navy-900);
  color: var(--od-amber-500);
  font-family: var(--od-font-display);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 2px solid var(--od-amber-500);
}

.od-method-body { flex: 1; padding-top: 10px; }

.od-method-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--od-navy-900);
  margin: 0 0 4px;
}

.od-knx-step-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--od-amber-600);
  background: rgba(242,182,0,0.10);
  border: 1px solid rgba(242,182,0,0.20);
  border-radius: var(--od-radius-pill);
  padding: 3px 10px;
  margin-bottom: 10px;
}

.od-method-body p {
  font-size: 14px;
  color: var(--od-fg-muted);
  line-height: 1.75;
  margin: 0;
}

/* ─── SECTION 5 — FAQ DARK ─── */
.od-faq { max-width: 800px; margin: 0 auto; }

.od-faq--dark .od-faq__item {
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.od-faq--dark .od-faq__item:first-child {
  border-top: 1px solid rgba(255,255,255,0.10);
}

.od-faq__item {
  border-bottom: 1px solid var(--od-ink-100);
}

.od-faq__item:first-child { border-top: 1px solid var(--od-ink-100); }

.od-faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--od-font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--od-navy-900);
  text-align: left;
  line-height: 1.4;
  transition: color var(--od-t-fast) var(--od-ease);
}

.od-faq--dark .od-faq__question {
  color: var(--od-white);
}

.od-faq__question:hover { color: var(--od-amber-600); }

.od-faq--dark .od-faq__question:hover { color: var(--od-amber-500); }

.od-faq__icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--od-amber-500);
  flex-shrink: 0;
  transition: transform var(--od-t-base) var(--od-ease);
  line-height: 1;
}

.od-faq__item.is-open .od-faq__icon { transform: rotate(45deg); }

.od-faq__answer {
  font-size: 14px;
  color: var(--od-fg-muted);
  line-height: 1.8;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--od-t-slow) var(--od-ease),
              padding var(--od-t-slow) var(--od-ease);
}

.od-faq--dark .od-faq__answer {
  color: rgba(255,255,255,0.65);
}

.od-faq__item.is-open .od-faq__answer {
  max-height: 600px;
  padding-bottom: 20px;
}

/* ─── SECTION 6 — LINK-CARDS MAILLAGE ─── */
.od-link-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.od-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--od-white);
  border: 1px solid var(--od-ink-100);
  border-radius: var(--od-radius-lg);
  padding: 22px 20px;
  text-decoration: none;
  transition: box-shadow var(--od-t-base) var(--od-ease),
              border-color var(--od-t-base) var(--od-ease),
              transform var(--od-t-base) var(--od-ease);
}

.od-link-card:hover {
  box-shadow: var(--od-shadow-md);
  border-color: var(--od-amber-500);
  transform: translateY(-2px);
}

.od-link-card--cta {
  border-color: var(--od-amber-500);
  background: var(--od-amber-050);
}

.od-link-card--cta:hover {
  background: rgba(242,182,0,0.08);
}

.od-link-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--od-radius-md);
  background: var(--od-amber-050);
  border: 1px solid rgba(242,182,0,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--od-amber-600);
  flex-shrink: 0;
}

.od-link-card__body { flex: 1; min-width: 0; }

.od-link-card__body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--od-navy-900);
  margin: 0 0 4px;
  line-height: 1.3;
}

.od-link-card__body p {
  font-size: 12px;
  color: var(--od-fg-muted);
  line-height: 1.5;
  margin: 0;
}

.od-link-card__arrow {
  color: var(--od-ink-300);
  flex-shrink: 0;
  transition: color var(--od-t-fast) var(--od-ease),
              transform var(--od-t-fast) var(--od-ease);
}

.od-link-card:hover .od-link-card__arrow {
  color: var(--od-amber-500);
  transform: translateX(3px);
}

/* ─── CTA FINAL (dark) ─── */
.od-cta-section {
  background: var(--od-navy-900);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.od-cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 110%,
    rgba(242,182,0,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.od-cta-section__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.od-cta-mention {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.od-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}

/* ─── EYEBROW COLORS ─── */
.od-eyebrow--amber { color: var(--od-amber-500); }

/* ─── MOBILE STICKY ─── */
.od-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  background: var(--od-navy-900);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 20px;
  gap: 10px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .od-hero__inner--split {
    grid-template-columns: 1fr 320px;
    gap: 36px;
  }
  .od-knx-advantages {
    grid-template-columns: repeat(2, 1fr);
  }
  .od-knx-functions {
    grid-template-columns: 1fr;
  }
  .od-link-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .od-section { padding: 60px 0; }

  .od-hero__inner--split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .od-knx-speccard {
    order: -1;
  }

  .od-knx-advantages {
    grid-template-columns: 1fr;
  }

  .od-knx-functions {
    grid-template-columns: 1fr;
  }

  .od-link-cards {
    grid-template-columns: 1fr;
  }

  .od-method-steps::before { display: none; }

  .od-mobile-cta { display: flex; }
  body { padding-bottom: 76px; }

  .od-nav,
  .od-btn.od-btn--sm:not(.od-btn--mobile-visible) { display: none; }
  .od-burger { display: flex; }
}

@media (max-width: 480px) {
  .od-knx-table { min-width: 480px; }

  .od-knx-speccard { padding: 20px 18px; }

  .od-knx-function {
    flex-direction: column;
    gap: 12px;
  }

  .od-knx-function__num {
    font-size: 28px;
    min-width: auto;
  }
}
