/* Correctifs de finition home/offres — chargé après style.css et visual-refresh.css */

/* 1. Processus : 5 blocs sur une ligne desktop, dernier différencié */
.section-steps .section-inner {
  max-width: 1280px;
}

.section-steps .steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.section-steps .step {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.section-steps .step-num {
  margin-left: 0;
  margin-right: 0;
}

.section-steps .step--support {
  background: linear-gradient(160deg, var(--ink) 0%, var(--navy2) 62%, var(--clay-dark) 100%);
  border-color: rgba(242, 209, 107, 0.42);
  color: var(--ivory);
}

.section-steps .step--support::before {
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-yellow-soft));
}

.section-steps .step--support .step-num {
  background: var(--brand-yellow);
  color: var(--ink);
  border-color: rgba(255, 249, 240, 0.35);
}

.section-steps .step--support h3,
.section-steps .step--support p {
  color: var(--ivory);
}

.section-steps .step--support p {
  opacity: 0.82;
}

/* 2. Offres : 4 cards desktop + titres/checks/boutons alignés */
.section-offres-home .section-inner--wide,
.offres-page .section-inner--wide,
body:has(.offres-table-wrap) .section-inner--wide {
  max-width: 1400px;
}

.offres-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.offres-grid .offre-card {
  width: 100%;
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(4.8em, auto) auto minmax(270px, 1fr) 148px;
  row-gap: 0;
  transform: none;
}

.offres-grid .offre-card:hover,
.offres-grid .offre-card--featured,
.offres-grid .offre-card--featured:hover {
  transform: none;
}

.offres-grid .offre-tag {
  min-height: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 5px;
  padding: 4px 9px;
  border: 2px solid var(--brand-yellow);
  border-radius: 15px;
  background: rgba(255, 241, 184, 0.32);
  line-height: 1.2;
}

.offres-grid .offre-price {
  min-height: 3.1rem;
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 10px 0 12px;
  padding: 8px 14px;
  border: 1px solid rgba(222, 209, 195, 0.92);
  border-radius: 15px;
  background: rgba(255, 249, 240, 0.54);
}

.offres-grid .offre-title {
  min-height: 4.8em;
  display: flex;
  align-items: flex-start;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.offres-grid .offre-features {
  min-height: 270px;
  display: flex;
  flex: initial;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0;
  padding-top: 18px;
}

.offres-grid .offre-features li {
  flex: 0 0 auto;
}

.offres-grid .offre-card-footer {
  align-self: stretch;
  display: grid;
  grid-template-rows: 52px 1fr;
  gap: 10px;
  min-height: 148px;
  height: 148px;
  margin-top: 0;
  padding-top: 24px;
}

.offres-grid .btn-offre {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  text-align: center;
}

.offres-grid .offre-note {
  min-height: 0;
}

.offres-grid .offre-card--featured .offre-note {
  color: var(--muted);
}

.section-offres-home {
  padding-bottom: 54px;
}

.section-offres-home .section-cta {
  margin-bottom: 0;
}

@media (min-width: 1181px) {
  .section-offres-home {
    padding-top: 58px;
    padding-bottom: 38px;
  }

  .section-offres-home .section-inner--wide {
    width: min(100%, 1240px);
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
  }

  .section-offres-home .section-head {
    margin-bottom: 34px;
  }

  .section-offres-home .section-head h2 {
    font-size: clamp(1.9rem, 2.75vw, 2.75rem);
    line-height: 1.08;
  }

  .section-offres-home .section-head p {
    max-width: 520px;
    font-size: 0.88rem;
    line-height: 1.48;
  }

  .section-offres-home .section-label {
    font-size: 0.66rem;
    margin-bottom: 8px;
  }

  .offres-grid {
    gap: 16px;
  }

  .offres-grid .offre-card {
    padding: 22px 20px;
    border-radius: 22px;
    grid-template-rows: auto auto minmax(3.55em, auto) auto minmax(205px, 1fr) 116px;
  }

  .offres-grid .offre-tag {
    font-size: 0.63rem;
    padding: 3px 8px;
    letter-spacing: 0.14em;
  }

  .offres-grid .offre-price {
    min-height: 2.45rem;
    margin: 7px 0 9px;
    padding: 6px 12px;
    font-size: clamp(2rem, 3vw, 2.62rem);
  }

  .offres-grid .offre-title {
    min-height: 3.55em;
    font-size: 0.86rem;
    line-height: 1.38;
  }

  .offres-grid .offre-features {
    min-height: 205px;
    padding-top: 10px;
  }

  .offres-grid .offre-features li {
    padding: 5px 0;
    gap: 8px;
    font-size: 0.76rem;
    line-height: 1.34;
  }

  .offres-grid .offre-card-footer {
    grid-template-rows: 42px 1fr;
    min-height: 116px;
    height: 116px;
    gap: 8px;
    padding-top: 14px;
  }

  .offres-grid .btn-offre {
    min-height: 42px;
    font-size: 0.82rem;
    padding: 10px;
  }

  .offres-grid .offre-note,
  .offres-note-globale {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .offres-note-globale {
    margin-top: 18px;
  }
}

/* 3. Option ponctuelle : card horizontale dédiée */
.section-visio-home {
  padding-top: 26px;
  padding-bottom: 72px;
  background: linear-gradient(180deg, rgba(244, 239, 231, 0.98) 0%, rgba(221, 232, 221, 0.42) 100%);
}

.section-visio-home .section-inner--narrow {
  width: min(100%, 1080px);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.mini-offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  padding: 30px 34px;
  background: rgba(255, 249, 240, 0.92);
  border: 1px solid rgba(222, 209, 195, 0.9);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.mini-offer-card h2 {
  margin: 0 0 8px;
  color: var(--ink);
}

.mini-offer-card p {
  color: var(--muted);
  max-width: 560px;
}

.mini-offer-price {
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 900;
  color: var(--brand-yellow-deep);
  line-height: 1;
  white-space: nowrap;
  padding: 8px 14px;
  border: 1px solid rgba(222, 209, 195, 0.92);
  border-radius: 15px;
  background: rgba(255, 249, 240, 0.54);
}

.mini-offer-card .btn-outline {
  white-space: nowrap;
}

/* 4. Barre stats home + about : composant partagé */
.section-stats--compact {
  position: relative;
  padding-top: 64px;
  padding-bottom: 92px;
  background: linear-gradient(180deg, rgba(221, 232, 221, 0.72) 0%, rgba(244, 239, 231, 0.92) 72%, rgba(244, 239, 231, 0) 100%);
}

.about-stats-section {
  margin-top: -24px;
}

.section-stats--compact .section-inner {
  width: min(100%, 1080px);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.section-stats--compact .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.section-stats--compact .stat-item {
  padding: 30px 24px;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-right: 1px solid rgba(222, 209, 195, 0.82);
}

.section-stats--compact .stat-item:last-child {
  border-right: 0;
}

.section-stats--compact .stat-number {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  color: var(--brand-yellow-deep);
  margin-bottom: 8px;
}

.section-stats--compact .stat-label {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* 5. Inspirations / voyages : cartes terrain partagées */
.section-inspirations-home .section-inner,
.section-voyages-page .section-inner {
  max-width: 1320px;
}

.inspirations-home-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.85fr) minmax(520px, 1.15fr);
  gap: 56px;
  align-items: center;
}

.inspirations-home-copy {
  max-width: none;
}

.inspirations-home-copy .section-sub {
  margin: 18px 0 16px;
}

.inspirations-about-btn {
  margin-top: 26px;
}

.terrain-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.voyages-terrain-grid {
  width: min(100%, 980px);
  margin: 0 auto;
}

.terrain-mini-card,
.terrain-mini-card--usa {
  grid-column: auto;
}

.terrain-mini-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 249, 240, 0.9);
  border: 1px solid rgba(222, 209, 195, 0.82);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(47, 42, 37, 0.06);
}

.voyage-terrain-card {
  scroll-margin-top: 120px;
}

.terrain-mini-marker {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  font-weight: 800;
  font-size: 2rem;
}

.terrain-mini-link {
  min-width: 116px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 2px 0 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--brand-yellow);
  transition: color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.terrain-mini-link:hover {
  color: var(--brand-yellow-deep);
  border-color: var(--brand-yellow-deep);
  transform: translateX(4px);
}

.terrain-mini-link span[aria-hidden="true"] {
  font-size: 1.15rem;
  line-height: 1;
}

.terrain-mini-date {
  display: block;
  margin-bottom: 3px;
  color: var(--brand-yellow-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terrain-mini-card h3 {
  color: var(--ink);
  margin-bottom: 4px;
}

.terrain-mini-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.voyage-terrain-card .voyage-card-meta {
  margin-top: 10px;
}

.voyage-terrain-card .voyage-card-meta span {
  font-size: 0.76rem;
}

@media (max-width: 1180px) {
  .section-steps .steps,
  .offres-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-steps .step--support {
    grid-column: 1 / -1;
  }

  .offres-grid .offre-card {
    grid-template-rows: auto auto auto auto minmax(220px, 1fr) 148px;
  }

  .offres-grid .offre-features {
    min-height: 220px;
  }
}

@media (max-width: 900px) {
  .mini-offer-card,
  .inspirations-home-grid {
    grid-template-columns: 1fr;
  }

  .mini-offer-card {
    text-align: left;
  }

  .section-stats--compact .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-stats--compact .stat-item:nth-child(2n) {
    border-right: 0;
  }

  .section-stats--compact .stat-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(222, 209, 195, 0.82);
  }
}

@media (max-width: 720px) {
  .section-steps .steps,
  .offres-grid,
  .terrain-mini-grid,
  .section-stats--compact .stats-grid {
    grid-template-columns: 1fr;
  }

  .section-steps .step,
  .mini-offer-card {
    text-align: left;
  }

  .offres-grid .offre-card {
    display: flex;
  }

  .offres-grid .offre-title,
  .offres-grid .offre-features,
  .offres-grid .offre-card-footer,
  .offres-grid .offre-note,
  .offres-grid .offre-decision-marker {
    min-height: 0;
    height: auto;
  }

  .terrain-mini-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .terrain-mini-link {
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }

  .section-stats--compact .stat-item {
    border-right: 0;
    border-bottom: 1px solid rgba(222, 209, 195, 0.82);
  }

  .section-stats--compact .stat-item:last-child {
    border-bottom: 0;
  }
}
