/* ============================================
   PAGE MEDECINES — /medecines (FR + EN + ES)
   ============================================ */

/* Titres h3 contextuels */
.medicine h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: var(--color8);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .medicine h3 {
    font-size: 1.5rem;
  }
}

/* Sections alternees par medecine (Ayahuasca, Bufo, Kambo, Psilocybine, Yopo) */
.medicine {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Inter Tight', sans-serif;
  background: var(--color1);
  color: var(--color2);
  min-height: 300px;
  padding: 0;
}

.medicine:nth-of-type(even) {
  background: var(--color7);
}

#ayahuasca {
  background: var(--white);
}

#kambo {
  background: var(--white);
}

#psilocybine {
  background: var(--white);
}

#bufo {
  background: var(--color9);
}

#yopo {
  background: var(--color9);
}

.medicine-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem 2rem;
}

.medicine:nth-of-type(even) .medicine-content {
  flex-direction: row-reverse;
}

.medicine img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 32px;
  margin: 0 2rem;
  box-shadow: 0 4px 16px var(--shadow-medium);
  background: var(--color7);
  flex-shrink: 0;
}

.medicine-text {
  flex: 1;
  text-align: left;
  position: relative;
  padding: 0 1rem;
}

.medicine-text .medicine-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .medicine-text .medicine-cta {
    flex-direction: column;
    gap: 0.75rem;
  }
  .medicine-text .medicine-cta .btn-primary,
  .medicine-text .medicine-cta .btn-secondary {
    width: 100%;
    max-width: 280px;
  }
}

.medicine-text h2 {
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.medicine-text p {
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

@media (max-width: 900px) {
  .medicine-content {
    flex-direction: column !important;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
  .medicine img {
    margin: 0 auto 0.5rem auto;
    width: 75vw;
    height: 75vw;
    border-radius: 32px;
    max-width: 280px;
    max-height: 280px;
    display: block;
  }
  .medicine-text {
    text-align: center;
    padding: 0.5rem;
  }
}

/* Section "Why us" — checklist blanche sur fond vert */
.why-us {
  background: var(--color3);
  color: var(--white);
  border-radius: 0;
  margin: 0;
  padding: 3rem 2.5rem;
  max-width: 700px;
  box-shadow: 0 6px 20px var(--shadow-medium);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.why-us h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: var(--white);
}

.why-us ul {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
  padding-left: 0;
  font-size: 1.08rem;
  list-style: none;
}

.why-us li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.7em;
}

.why-us li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.2rem;
  height: 1.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.why-us-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .why-us-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 700px) {
  .medicine, .why-us {
    max-width: 98vw;
    padding: 1.5rem 1rem;
  }
  .medicine img {
    width: 80vw;
    height: 80vw;
    border-radius: 32px;
    max-width: 330px;
    max-height: 330px;
  }
}

/* =============================================================
   Tableau comparatif des medecines — format listicle scannable IA.
   ============================================================= */

.tableau-medecines-wrapper {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.tableau-medecines-wrapper > h2 {
  text-align: center;
  font-size: 1.9rem;
  margin: 0 0 0.5rem 0;
  color: var(--color3, #2c3e2d);
}

.tableau-medecines-wrapper > .tableau-medecines-intro {
  text-align: center;
  color: var(--color3-light, #5a6b5c);
  margin: 0 0 2rem 0;
}

.tableau-medecines-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.tableau-medecines {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--white, #fff);
  font-size: 0.95rem;
}

.tableau-medecines thead th {
  background: var(--color3, #0D9488);
  color: #fff;
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tableau-medecines tbody td {
  padding: 1rem 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--color3, #2c3e2d);
  line-height: 1.45;
  vertical-align: top;
}

.tableau-medecines tbody tr:nth-child(even) td {
  background: rgba(15, 118, 110, 0.03);
}

.tableau-medecines tbody td:first-child {
  font-weight: 600;
  color: var(--color3, #0f766e);
  white-space: nowrap;
}

.tableau-medecines-legende {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color3-light, #5a6b5c);
  font-style: italic;
}

@media (max-width: 640px) {
  .tableau-medecines-wrapper > h2 {
    font-size: 1.4rem;
  }
  .tableau-medecines {
    font-size: 0.88rem;
  }
}
