/* ============================================================
   Section Méthode — 4 étapes process
   ============================================================ */

/* ── Variables ── */
.method-section {
  --meth-bg:         #f2f7f5;
  --meth-dark:       #003c3d;
  --meth-primary:    #025253;
  --meth-accent:     #21b593;
  --meth-card-border:#f3f4f6;
  --meth-card-shadow: 0px 20px 50px 0px rgba(18, 17, 39, 0.08);
  --meth-card-radius: 24px;
  --meth-badge-bg:   rgba(33, 181, 147, 0.3);
}

/* ── Wrapper ── */
.method-section {
  background-color: var(--meth-bg);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

/* ── Image de fond décorative ── */
.method-section__bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: flex-end;
}

.method-section__bg-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ── Conteneur centré ── */
.method-section__inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

/* ============================================================
   En-tête
   ============================================================ */

.method-section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  text-align: center;
  max-width: 960px;
}

.method-section__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem; /* 20px */
  line-height: 1;
  color: var(--meth-accent);
  text-transform: uppercase;
  margin: 0;
}

.method-section__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.8125rem; /* 45px */
  line-height: 1.1;
  color: var(--meth-dark);
  margin: 0;
}

.method-section__intro {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--meth-dark);
  margin: 0;
  max-width: 600px;
}

.method-section__intro p,
.method-section__intro li,
.method-section__intro span {
  color: var(--meth-dark);
  margin: 0 0 0.75em;
}

.method-section__intro p:last-child {
  margin-bottom: 0;
}

.method-section__intro strong,
.method-section__intro b {
  font-weight: 600;
}

.method-section__intro em,
.method-section__intro i {
  font-style: italic;
}

.method-section__intro a {
  color: var(--meth-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.method-section__intro a:hover {
  opacity: 0.8;
}

.method-section__intro ul,
.method-section__intro ol {
  margin: 0 0 0.75em 1.25em;
  padding: 0;
}

.method-section__intro li {
  margin-bottom: 0.25em;
}

/* ============================================================
   Grille
   ============================================================ */

.method-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  min-height: 450px;
  align-items: center;
}

/* ── Wrapper étape (contient timeline mobile + card) ── */
.method-step {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Timeline mobile — masquée en desktop */
.method-step__timeline {
  display: none;
}

/* ============================================================
   Card
   ============================================================ */

.method-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: #ffffff;
  border: 2px solid var(--meth-card-border);
  min-height: 328px;
  border-radius: var(--meth-card-radius);
  box-shadow: var(--meth-card-shadow);
  padding: 30px 30px 30px 40px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.method-card:hover {
  border-color: rgba(33, 181, 147, 0.75);
  box-shadow: 0px 20px 25px 0px rgba(18, 17, 39, 0.08);
}

/* ── Top : icône + badge ── */
.method-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Icône wrapper */
.method-card__icon-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background-color: var(--meth-primary);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.method-card:hover .method-card__icon-wrap {
  background-color: var(--meth-accent);
}

.method-card__icon {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Badge "Étape N" */
.method-card__badge {
  background-color: var(--meth-badge-bg);
  color: var(--meth-primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem; /* 13px */
  line-height: 1.5;
  letter-spacing: 0.65px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.method-card:hover .method-card__badge {
  background-color: var(--meth-accent);
  color: #ffffff;
}

/* ── Corps ── */
.method-card__body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

/* Titre H3 */
.method-card__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.4375rem; /* 23px */
  line-height: 1.391; /* 32px */
  color: var(--meth-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Flèche dans le titre — masquée en desktop, visible en mobile */
.method-card__title-arrow {
  display: none;
  flex-shrink: 0;
  color: var(--meth-primary);
}

/* Sous-titre vert */
.method-card__subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.125rem; /* 18px */
  line-height: 1.3;
  color: var(--meth-accent);
  margin: 0;
}

/* ── Description (apparaît au survol via grid trick) ── */
.method-card__desc-wrap {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.35s ease;
}

.method-card__desc-wrap > .method-card__desc {
  min-height: 0;
  opacity: 0;
  transition: opacity 0.3s ease 0.05s;
}

.method-card:hover .method-card__desc-wrap {
  grid-template-rows: 1fr;
}

.method-card:hover .method-card__desc {
  opacity: 1;
}

.method-card__desc {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.467; /* 22px */
  color: #4a5565;
  margin: 0;
}

/* ── Lien "En savoir plus" ── */
.method-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.0625rem; /* 17px */
  letter-spacing: -0.2px;
  color: var(--meth-dark);
  white-space: nowrap;
  transition: color 0.25s ease, gap 0.25s ease;
}

.method-card__more-arrow {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.method-card:hover .method-card__more {
  color: var(--meth-accent);
  gap: 4px;
}

/* ============================================================
   Bouton CTA
   ============================================================ */

.method-section__cta {
  display: flex;
  justify-content: center;
}

.method-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--meth-primary);
  color: #fefefe;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1875rem; /* 19px */
  letter-spacing: -0.2px;
  text-decoration: none;
  border-radius: 40px;
  padding: 0 35px;
  height: 55px;
  white-space: nowrap;
  transition: background-color 0.25s ease;
}

.method-btn:hover {
  background-color: #013e3f;
  color: #fefefe;
}

.method-btn__icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: #d4f7a5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── ≤ 1280px : 2 colonnes ── */
@media (max-width: 1280px) {
  .method-section {
    padding: 90px 0;
  }

  .method-section__title {
    font-size: 2.25rem; /* 36px */
  }

  .method-section__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ── Mobile (≤ 991px) : timeline verticale ── */
@media (max-width: 991px) {
  .method-section {
    padding: 60px 0;
    overflow: visible;
  }

  .method-section__header {
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }

  .method-section__title {
    font-size: 1.625rem; /* 26px */
  }

  .method-section__inner {
    gap: 50px;
    align-items: stretch;
  }

  /* Grille → colonne unique */
  .method-section__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Wrapper étape : row (timeline + card) */
  .method-step {
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
  }

  /* ── Pattern de fond masqué sur mobile ── */
  .method-section__bg {
    display: none;
  }

  /* ── Timeline mobile ── */
  .method-step__timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
  }

  .method-step__number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #bce9df;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.875rem; /* 14px */
    color: #025253;
    flex-shrink: 0;
  }

  .method-step__line {
    width: 2px;
    flex: 1;
    background-color: #d4f7a5;
  }

  /* Card mobile */
  .method-card {
    flex: 1;
    min-width: 0;
    min-height: unset;
    align-items: stretch;
    gap: 16px;
    padding: 20px 20px 24px;
    margin-bottom: 20px;
  }

  .method-step:last-child .method-card {
    margin-bottom: 0;
  }

  .method-card__top {
    gap: 12px;
  }

  .method-card__icon-wrap {
    width: 52px;
    height: 52px;
  }

  .method-card__icon {
    width: 24px;
    height: 24px;
  }

  .method-card__badge {
    font-size: 0.75rem;
  }

  .method-card__title {
    font-size: 1.0625rem; /* 17px */
    line-height: 1.3;
  }

  /* Icône + badge masqués sur mobile */
  .method-card__top {
    display: none;
  }

  /* Flèche dans le titre : visible sur mobile */
  .method-card__title-arrow {
    display: inline-flex;
  }

  .method-card__subtitle {
    font-size: 1rem; /* 16px */
  }

  /* Description toujours visible sur mobile */
  .method-card__desc-wrap {
    grid-template-rows: 1fr;
    overflow: visible;
    transition: none;
  }

  .method-card__desc-wrap > .method-card__desc {
    opacity: 1;
    transition: none;
  }

  /* "En savoir plus" masqué sur mobile */
  .method-card__more {
    display: none;
  }

  /* CTA mobile pleine largeur */
  .method-btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
  }
}

/* ── Petit mobile (≤ 575px) ── */
@media (max-width: 575px) {
  .method-section {
    padding: 50px 0;
  }
}
