/* MND24 — styles propres à la page index */

html {
  scroll-behavior: smooth; scroll-padding-top: 125px;
}

/* ── TND SECTION ── */
.tnd-section {
  position: relative;
  scroll-margin-top: 125px;
  padding: 5rem 2rem;
  background:
  radial-gradient(circle at 8% 15%, rgba(58,173,168,.08), transparent 25%),
  var(--off-white);
}

.tnd-panel {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.tnd-panel::after {
  display: none;
}

.tnd-heading {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 2.8rem;
  text-align: center;
}

.tnd-heading-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: .38rem 1rem;
  background: var(--teal-pale);
  border: 1px solid rgba(58,173,168,.22);
  border-radius: var(--radius-pill);
  color: var(--teal-text);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tnd-section-title {
  margin-bottom: .9rem;
  color: var(--navy);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.tnd-section-title span {
  color: var(--teal-text);
}

.tnd-heading-line {
  width: 58px;
  height: 4px;
  margin: 0 auto 1.2rem;
  background: var(--teal);
  border-radius: 4px;
}

.tnd-section-text {
  max-width: 690px;
  margin: 0 auto;
  padding: 1.2rem 1.4rem;
  background: var(--white);
  border: 1px solid rgba(13,43,78,.08);
  border-radius: 1rem;
  box-shadow: 0 6px 22px rgba(13,43,78,.06);
  color: var(--text-muted);
  font-size: .94rem;
  font-weight: 500;
  line-height: 1.75;
}

.tnd-section-text strong {
  color: var(--navy);
  font-weight: 800;
}

.tnd-source-note {
  display: block;
  margin-top: .55rem;
  color: rgba(90,122,154,.8);
  font-size: .66rem;
  line-height: 1.45;
}

.tnd-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.tnd-card {
  grid-column: span 2;
  min-height: 150px;
  padding: 1.35rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
  linear-gradient(145deg, rgba(255,255,255,.025), rgba(58,173,168,.08)),
  var(--navy);
  border: 1px solid rgba(110,206,206,.32);
  border-radius: 1rem;
  box-shadow: 0 9px 24px rgba(13,43,78,.13);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tnd-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-light);
  box-shadow: 0 14px 30px rgba(13,43,78,.18);
}

.tnd-card:nth-child(-n+3) {
  grid-column: span 2;
}

.tnd-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.tnd-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.tnd-card-name {
  margin-bottom: .45rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tnd-card-full {
  max-width: 95%;
  color: var(--teal-light);
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.5;
}

.tnd-card.other {
  background:
  linear-gradient(145deg, rgba(58,173,168,.08), rgba(255,255,255,.02)),
  #12375f;
  border-style: solid;
}

.tnd-card.other .tnd-card-name {
  color: var(--white);
}

@media (max-width: 760px) {

  .tnd-section {
    padding: 3.2rem 1rem !important;
  }

  .tnd-heading {
    margin-bottom: 2rem;
  }

  .tnd-heading-kicker {
    font-size: .62rem;
    letter-spacing: .1em;
  }

  .tnd-section-title {
    font-size: 1.85rem;
  }

  .tnd-section-text {
    padding: 1rem;
    font-size: .84rem;
    line-height: 1.65;
  }

  .tnd-grid {
    grid-template-columns: 1fr;
    gap: .8rem !important;
  }

  .tnd-card,
  .tnd-card:nth-child(4),
  .tnd-card:nth-child(5) {
    grid-column: auto;
    min-height: 104px !important;
    width: 100% !important;
    max-width: none !important;
    padding: 1rem !important;
  }

  .tnd-card-name {
    font-size: .94rem;
  }

  .tnd-card-full {
    font-size: .72rem;
  }

}

/* ── RESPONSIVE ── */
    @media (max-width: 760px) {
  nav { padding: .75rem 1rem; }
  .nav-brand img { height: 40px; }
  .hero-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .hero-text { text-align: center; }
  .hero-text .hero-sub { max-width: 100%; }
  .hero-logo img { height: 140px; }
  .why-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-visual { display: none; }
  .section-title {
  text-align: center;
  }
  .section-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  }
  .why-point {
  gap: 0.75rem;
  }
  .hero-ctas {
  margin-top: 1rem;
  }
}

/* Correctifs mobiles prioritaires */
@media (max-width: 760px) {
  nav { padding: .65rem .75rem !important; }
  .nav-brand img { height: 46px !important; }
  .nav-cta { font-size: .72rem !important; padding: .65rem .9rem !important; text-align: center !important; line-height: 1.15 !important; max-width: calc(100% - 70px) !important; }
  .hero { margin-top: 72px !important; padding: 2.5rem 1rem 3rem !important; }
  .hero-inner { flex-direction: column !important; gap: 1.2rem !important; margin-bottom: 1.5rem !important; }
  .hero-logo img { height: 220px !important; max-width: 80vw !important; object-fit: contain !important; }
  .hero-text { text-align: center !important; }
  .hero-text h1 { font-size: 2rem !important; line-height: 1.08 !important; }
  .hero-text .hero-sub { font-size: .95rem !important; line-height: 1.55 !important; max-width: 100% !important; }
  .hero-ctas { margin-top: .5rem !important; }
  .hero-ctas .btn-primary, .hero-ctas .btn-secondary, .why-section .btn-primary, .cta-buttons .btn-primary, .cta-buttons .btn-secondary { width: 100% !important; justify-content: center !important; text-align: center !important; padding: .9rem 1rem !important; font-size: .82rem !important; }
  section { scroll-margin-top: 90px !important; }
  .why-inner { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .why-visual { display: none !important; }
  .section-title, .section-intro { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
  .why-point { gap: .75rem !important; }
  .why-point-text { flex: 1 !important; }
  .why-point-text h4, .why-point-text p { text-align: left !important; }
  .cta-section .section-title { font-size: 1.9rem !important; line-height: 1.12 !important; }
  .legal-section { padding: 3rem 1rem !important; }
  .legal-toggle { font-size: .78rem !important; padding: .9rem 1rem !important; }
}

/* ── CARTES TND MOBILE — présentation compacte 2 + 2 + 1 ── */
@media (max-width: 760px) {
  .tnd-section {
  padding: 3rem .85rem 3.4rem !important;
  }
  .tnd-heading {
  margin-bottom: 1.7rem;
  }
  .tnd-section-title {
  max-width: 330px;
  margin-right: auto;
  margin-left: auto;
  font-size: 1.72rem;
  line-height: 1.08;
  }
  .tnd-section-text {
  padding: 1rem .95rem;
  border-radius: .85rem;
  font-size: .82rem;
  line-height: 1.62;
  }
  .tnd-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .75rem !important;
  max-width: 430px;
  }
  .tnd-card,
  .tnd-card:nth-child(-n+3),
  .tnd-card:nth-child(4),
  .tnd-card:nth-child(5) {
  grid-column: auto !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 142px !important;
  padding: .9rem .65rem !important;
  border-radius: .9rem;
  }
  .tnd-card:nth-child(5) {
  grid-column: 1 / -1 !important;
  width: calc(50% - .375rem) !important;
  justify-self: center;
  }
  .tnd-card-name {
  margin-bottom: .42rem;
  font-size: .88rem;
  line-height: 1.15;
  }
  .tnd-card-full {
  max-width: 100%;
  font-size: .65rem;
  line-height: 1.38;
  }
}

/* Très petits écrans ou texte fortement agrandi : retour à une colonne */
@media (max-width: 355px) {
  .tnd-grid {
  grid-template-columns: 1fr !important;
  }
  .tnd-card,
  .tnd-card:nth-child(5) {
  grid-column: auto !important;
  width: 100% !important;
  min-height: 102px !important;
  }
}

html[data-a11y-size="xlarge"] .tnd-grid {
  grid-template-columns: 1fr !important;
}

html[data-a11y-size="xlarge"] .tnd-card,
html[data-a11y-size="xlarge"] .tnd-card:nth-child(5) {
  grid-column: auto !important;
  width: 100% !important;
  min-height: 112px !important;
}
