/* ============================================
   INDEX PAGE STYLES - INNOVA (FULL)
   Carrousel médecins : infini, continu, sans vide
   ============================================ */

/* ============================================
   HERO (DESKTOP)
   ============================================ */

.hero {
  padding-top: 80px;
  min-height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-container {
  display: contents; /* remplace votre inline style */
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 700px;
  background-color: var(--color-bg-light);
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  padding-right: 80px;
}

.hero-divider {
  width: 48px;
  height: 1px;
  background-color: var(--color-primary);
  margin-bottom: 32px;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 28px;
  font-weight: 300;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 44px;
}

.hero-buttons {
  display: flex;
  gap: 32px;
  row-gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 18px 48px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid var(--color-primary);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  background-color: #000;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.btn-outline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.btn-outline::after {
  content: '→';
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-outline:hover {
  padding-bottom: 6px;
  opacity: 0.7;
}

.btn-outline:hover::after { transform: translateX(4px); }


/* ============================================
   PHILOSOPHY
   ============================================ */

.philosophy {
  padding: 120px 0;
  background-color: var(--color-white);
}

.philosophy-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 120px;
  align-items: start;
}

.philosophy-left {
  position: relative;
  z-index: 2;
}

.section-number {
  font-size: 16rem;
  font-weight: 300;
  color: var(--color-bg-light);
  position: absolute;
  top: -80px;
  left: 0;
  line-height: 1;
  z-index: 1;
}

.section-title-small {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 24px;
  font-weight: 300;
  position: relative;
  z-index: 2;
}

.section-divider {
  width: 64px;
  height: 1px;
  background-color: var(--color-primary);
  margin-top: 24px;
}

.philosophy-right { padding-top: 80px; }

.philosophy-text { margin-bottom: 24px; }

.philosophy-text:first-child {
  font-size: 1.125rem;
  color: var(--color-text);
  font-weight: 400;
}

.philosophy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.stat-number {
  font-size: 2rem;
  margin-bottom: 8px;
  font-weight: 300;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
}


/* ============================================
   TREATMENTS
   ============================================ */

.treatments {
  padding: 80px 0;
  background-color: var(--color-bg-light);
}

.treatments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 80px;
}

.treatment-card {
  background-color: var(--color-white);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.treatment-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.treatment-image-wrapper {
  height: 400px;
  overflow: hidden;
  position: relative;
}

.treatment-duration {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.treatment-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.treatment-card:hover .treatment-image { transform: scale(1.05); }

.treatment-content { padding: 32px; }

.treatment-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.treatment-title {
  font-size: 1.75rem;
  margin-bottom: 16px;
  font-weight: 300;
}

.treatment-description {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.treatment-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.treatment-link:hover { gap: 12px; }


/* ============================================
   CONCERNS
   ============================================ */

.concerns {
  padding: 120px 0;
}

.concerns-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 120px;
}

.concerns-left { padding-top: 40px; }

.concerns-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-light);
  margin-bottom: 80px;
}

.concerns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--color-border);
}

.concern-card {
  background-color: var(--color-white);
  padding: 48px;
  transition: var(--transition);
}

.concern-card:hover { background-color: var(--color-bg-light); }

.concern-number {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.concern-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  font-weight: 300;
}

.concern-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.concern-link:hover {
  color: var(--color-primary);
  gap: 12px;
}


/* ============================================
   TEAM (CARROUSEL INFINI SANS VIDE)
   - Duplication x3 dans le HTML
   - Animation de 0 à -33.333% (1/3) => boucle propre
   ============================================ */

.team {
  padding: 120px 0;
  background-color: var(--color-bg-light);
}

.team-intro { margin-bottom: 80px; }

.team-intro p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.125rem;
}

.team-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 9%, black 91%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 9%, black 91%, transparent 100%);
}

.team-track {
  --gap: 22px;
  --duration: 70s; /* lent */
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: teamLoop var(--duration) linear infinite;
  will-change: transform;
}

@keyframes teamLoop {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-33.333% - (var(--gap) / 3))); }
}

.team-member {
  flex: 0 0 340px;
  background-color: var(--color-white);
  overflow: hidden;
}

.team-image {
  height: 500px;
  overflow: hidden;
  background-color: var(--color-bg-light);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info { padding: 32px; }

.team-name {
  font-size: 1.5rem;
  margin-bottom: 4px;
  font-weight: 300;
}

.team-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.team-specialty { color: var(--color-text-light); }

@media (prefers-reduced-motion: reduce) {
  .team-track { animation: none; transform: none; }
}


/* ============================================
   LOCATION
   ============================================ */

.location {
  padding: 120px 0;
}

.location-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: center;
}

.location-info h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.location-details {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.location-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.location-icon {
  width: 20px;
  height: 20px;
  margin-top: 4px;
}

.location-text {
  color: var(--color-text-light);
  line-height: 1.8;
}

.location-text a { color: var(--color-text-light); }
.location-text a:hover { color: var(--color-primary); }

.location-cta { margin-top: 48px; }

.location-image-wrapper {
  height: 600px;
  background-color: var(--color-bg-light);
  overflow: hidden;
}

.location-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}


/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials {
  padding: 120px 0;
  background-color: var(--color-bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 80px;
}

.testimonial-card {
  background-color: var(--color-white);
  padding: 48px;
}

.testimonial-quote-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 32px;
}

.testimonial-text {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 32px;
}

.testimonial-author {
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.testimonial-location {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
}


/* ============================================
   COMMITMENTS
   ============================================ */

.commitments {
  padding: 120px 0;
}

.commitments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 64px;
  margin-top: 80px;
}

.commitment-item { text-align: center; }

.commitment-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
}

.commitment-icon { width: 24px; height: 24px; }

.commitment-title {
  font-size: 1.125rem;
  margin-bottom: 12px;
  font-weight: 300;
}

.commitment-description {
  color: var(--color-text-light);
  font-size: 0.875rem;
  line-height: 1.6;
}


/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }


/* ============================================
   BREAKPOINTS
   ============================================ */

/* 1400 */
@media (max-width: 1400px) {
  .container { padding: 0 60px; }
  .hero { gap: 60px; }
  .hero-image-wrapper { height: 660px; }
  .philosophy-container { gap: 100px; }
  .section-number { font-size: 14rem; }
  .treatments-grid { gap: 40px; }
  .testimonials-grid { gap: 40px; }
  .commitments-grid { gap: 56px; }
  .team-member { flex-basis: 320px; }
  .team-image { height: 470px; }
}

/* 1200 */
@media (max-width: 1200px) {
  .container { padding: 0 50px; }

  .hero { gap: 50px; padding-top: 100px; }
  .hero-image-wrapper { height: 600px; }
  .hero-content { padding-right: 40px; }
  .hero-title { font-size: 4rem; }
  .hero-subtitle { font-size: 1rem; }

  .philosophy { padding: 100px 0; }
  .philosophy-container { gap: 80px; }
  .section-number { font-size: 12rem; top: -70px; }
  .section-title { font-size: 2.75rem; }
  .philosophy-right { padding-top: 60px; }

  .treatments { padding: 80px 0; }
  .treatments-grid { gap: 36px; margin-top: 70px; }
  .treatment-image-wrapper { height: 360px; }
  .treatment-content { padding: 28px; }

  .concerns { padding: 100px 0; }
  .concerns-container { gap: 100px; }
  .concern-card { padding: 40px; }

  .team { padding: 100px 0; }
  .team-member { flex-basis: 300px; }
  .team-image { height: 450px; }
  .team-info { padding: 28px; }
  .team-name { font-size: 1.375rem; }

  .location { padding: 100px 0; }
  .location-container { gap: 100px; }
  .location-image-wrapper { height: 550px; }

  .testimonials { padding: 100px 0; }
  .testimonials-grid { gap: 40px; margin-top: 70px; }
  .testimonial-card { padding: 40px; }

  .commitments { padding: 100px 0; }
  .commitments-grid { gap: 52px; margin-top: 70px; }
}

/* 1024 */
@media (max-width: 1024px) {
  .container { padding: 0 40px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 120px;
    min-height: auto;
  }
  .hero-content { padding-right: 0; order: 1; }
  .hero-image-wrapper { order: 2; height: 500px; }
  .hero-title { font-size: 3.5rem; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 40px; }
  .btn-primary { padding: 16px 40px; }

  .philosophy { padding: 90px 0; }
  .philosophy-container { grid-template-columns: 1fr; gap: 60px; }
  .philosophy-left { text-align: center; }
  .section-number { font-size: 10rem; top: -60px; left: 50%; transform: translateX(-50%); }
  .section-divider { margin: 24px auto 0; }
  .philosophy-right { padding-top: 0; }

  .treatments { padding: 70px 0; }
  .treatments-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 60px; }
  .treatment-image-wrapper { height: 340px; }

  .concerns { padding: 90px 0; }
  .concerns-container { grid-template-columns: 1fr; gap: 60px; }
  .concerns-left { text-align: center; padding-top: 0; }
  .concerns-subtitle { margin-bottom: 0; }
  .concerns-grid { grid-template-columns: repeat(2, 1fr); }

  .team { padding: 90px 0; }
  .team-member { flex-basis: 280px; }
  .team-image { height: 400px; }
  .team-track { --duration: 75s; }

  .location { padding: 90px 0; }
  .location-container { grid-template-columns: 1fr; gap: 60px; }
  .location-image-wrapper { height: 450px; order: -1; }

  .testimonials { padding: 90px 0; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 60px; }

  .commitments { padding: 90px 0; }
  .commitments-grid { grid-template-columns: repeat(2, 1fr); gap: 48px; margin-top: 60px; }
}

/* 768 : HERO 100vh */
@media (max-width: 768px) {
  .container { padding: 0 24px; }

  .hero {
    position: relative;
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
    min-height: 100vh;
    align-items: center;
  }

  .hero-container { display: block; }

  .hero-image-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .hero-image { width: 100%; height: 100%; object-fit: cover; }

  .hero-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
  }

  .hero-content {
    position: relative;
    z-index: 2;
    padding-right: 0;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    color: var(--color-white);

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding-top: 92px;
    padding-bottom: 44px;
  }

  .hero-divider {
    width: 44px;
    margin: 0 auto 18px;
    background-color: rgba(255, 255, 255, 0.9);
  }

  .hero-title { font-size: 2.35rem; margin-bottom: 14px; }
  .hero-subtitle { font-size: 0.92rem; margin-bottom: 28px; color: rgba(255,255,255,0.82); }

  .hero-buttons { justify-content: center; gap: 18px; row-gap: 14px; }
  .btn-primary { padding: 12px 22px; font-size: 0.62rem; letter-spacing: 0.12em; }
  .btn-outline { font-size: 0.62rem; color: rgba(255,255,255,0.92); border-bottom-color: rgba(255,255,255,0.75); }

  .team-track { --gap: 16px; --duration: 85s; }
  .team-member { flex-basis: 78vw; }
  .team-image { height: 380px; }
}

/* 640 */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero-content { max-width: 520px; padding-top: 86px; padding-bottom: 40px; }
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 0.875rem; margin-bottom: 26px; }
  .hero-buttons { gap: 16px; row-gap: 12px; }
  .btn-primary { padding: 11px 20px; font-size: 0.62rem; }

  .team-track { --duration: 95s; }
  .team-member { flex-basis: 86vw; }
  .team-image { height: 360px; }

  .location-image-wrapper { height: 320px; }
}

/* 480 */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-content { max-width: 420px; padding-top: 82px; padding-bottom: 38px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 0.875rem; margin-bottom: 22px; }
  .btn-primary { padding: 10px 18px; font-size: 0.6rem; }
  .btn-outline { font-size: 0.6rem; }

  .team-track { --duration: 110s; }
  .team-member { flex-basis: 90vw; }
  .team-image { height: 320px; }

  .treatment-image-wrapper { height: 240px; }
  .location-image-wrapper { height: 280px; }
}

/* 375 */
@media (max-width: 375px) {
  .hero-content { max-width: 360px; padding-top: 78px; padding-bottom: 34px; }
  .hero-title { font-size: 1.75rem; }
  .hero-subtitle { font-size: 0.8125rem; margin-bottom: 20px; }

  .team-track { --duration: 130s; }
  .team-member { flex-basis: 92vw; }
  .team-image { height: 280px; }
  .team-name { font-size: 1rem; }

  .treatment-image-wrapper { height: 220px; }
  .location-image-wrapper { height: 260px; }
}
