* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f7fb;
  color: #172033;
  font-family: Arial, sans-serif;
}

.page-accompagnement {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 150px 0 70px;
}

.hero-accompagnement {
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 34px;
  padding: 70px 28px;
  margin-bottom: 70px;
  color: white;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 32%),
    linear-gradient(135deg, #264ecf 0%, #6f5be8 48%, #45b89f 100%);
  box-shadow: 0 28px 70px rgba(38, 78, 207, 0.25);
}

.hero-contenu {
  max-width: 820px;
}

.etiquette,
.mini-etiquette {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(69, 184, 159, 0.14);
  color: #246c61;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-accompagnement .etiquette {
  background: rgba(255,255,255,0.18);
  color: white;
}

.hero-accompagnement h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.02;
}

.hero-accompagnement p {
  margin: 0 auto 30px;
  max-width: 760px;
  font-size: 1.17rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.94);
}

.btn-principal,
.btn-reservation,
.btn-forfait {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 15px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-principal {
  background: white;
  color: #264ecf;
  box-shadow: 0 18px 35px rgba(0,0,0,0.16);
}

.btn-principal:hover,
.btn-reservation:hover,
.btn-forfait:hover {
  transform: translateY(-3px);
}

.section-titre {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 30px;
}

.section-titre .etiquette {
  margin-left: auto;
  margin-right: auto;
}

.section-titre h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
}

.section-titre p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #5f6c80;
}

.carte-educatrice {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 34px;
  align-items: center;
  margin-bottom: 78px;
  padding: 42px;
  border-radius: 30px;
  background: white;
  border: 1px solid rgba(38, 78, 207, 0.11);
  box-shadow: 0 24px 60px rgba(23, 32, 51, 0.10);
}

.carte-educatrice h3,
.forfait h3 {
  margin: 0 0 16px;
  font-size: 1.75rem;
  line-height: 1.15;
}

.carte-educatrice p,
.description-forfait {
  color: #5f6c80;
  line-height: 1.75;
}

.carte-educatrice ul,
.forfait ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.carte-educatrice li,
.forfait li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: #243047;
  line-height: 1.45;
}

.carte-educatrice li::before,
.forfait li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(69, 184, 159, 0.16);
  color: #21816f;
  font-size: 0.78rem;
  font-weight: 900;
}

.carte-educatrice-action {
  text-align: center;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f5f8ff 0%, #eefbf8 100%);
}

.prix,
.prix-forfait {
  margin: 0;
  color: #172033;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.prix {
  font-size: 3.8rem;
}

.detail-prix {
  margin: 2px 0 22px;
  color: #6b7483;
  font-weight: 700;
}

.btn-reservation {
  width: 100%;
  background: #264ecf;
  color: white;
  box-shadow: 0 16px 32px rgba(38, 78, 207, 0.25);
}

.section-consultant-titre {
  margin-top: 10px;
}

.grille-forfaits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.forfait {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 610px;
  padding: 32px;
  border-radius: 28px;
  background: white;
  border: 1px solid rgba(23, 32, 51, 0.09);
  box-shadow: 0 20px 50px rgba(23, 32, 51, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.forfait:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 70px rgba(23, 32, 51, 0.14);
}

.prix-forfait {
  font-size: 3.15rem;
  margin-bottom: 18px;
}

.forfait-populaire {
  border: 2px solid #45b89f;
  transform: scale(1.04);
  box-shadow: 0 34px 80px rgba(69, 184, 159, 0.20);
}

.forfait-populaire:hover {
  transform: scale(1.04) translateY(-8px);
}

.badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 999px;
  background: #45b89f;
  color: white;
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(69, 184, 159, 0.32);
}

.btn-forfait {
  width: 100%;
  margin-top: 30px;
  background: #172033;
  color: white;
  box-shadow: 0 16px 32px rgba(23, 32, 51, 0.18);
}

.btn-populaire {
  background: #45b89f;
  box-shadow: 0 18px 35px rgba(69, 184, 159, 0.28);
}

@media (max-width: 980px) {
  .page-accompagnement {
    padding-top: 130px;
  }

  .carte-educatrice {
    grid-template-columns: 1fr;
  }

  .grille-forfaits {
    grid-template-columns: repeat(2, 1fr);
  }

  .forfait-populaire {
    transform: none;
  }

  .forfait-populaire:hover {
    transform: translateY(-8px);
  }
}

@media (max-width: 680px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  header {
    width: 100%;
    max-width: 100%;
  }

  .page-accompagnement {
    width: min(calc(100% - 22px), 1180px);
    max-width: 100%;
    padding-top: 115px;
    padding-bottom: 44px;
  }

  .hero-accompagnement {
    min-height: auto;
    padding: 48px 18px;
    border-radius: 24px;
    margin-bottom: 48px;
  }

  .hero-accompagnement h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .hero-accompagnement p,
  .section-titre p {
    font-size: 1rem;
  }

  .section-titre {
    margin-bottom: 24px;
  }

  .carte-educatrice,
  .forfait,
  .carte-educatrice-action,
  .carte-educatrice-texte {
    min-width: 0;
    max-width: 100%;
    padding: 24px;
    border-radius: 24px;
  }

  .grille-forfaits {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .forfait {
    min-height: auto;
  }

  .forfait-populaire {
    margin-top: 2px;
  }

  .badge {
    max-width: calc(100% - 32px);
    white-space: normal;
    text-align: center;
  }

  .prix,
  .prix-forfait {
    font-size: 2.7rem;
  }
}

@media (max-width: 420px) {
  header {
    padding: 8px;
  }

  header h1 {
    margin: 0;
    font-size: clamp(1.1rem, 5.5vw, 1.45rem);
    line-height: 1.1;
  }

  header img {
    width: 52px;
    height: 36px;
  }

  header nav {
    margin-left: 8px;
  }

  .menu-principal .menu-liste-princ {
    top: 52px;
    right: 6px;
    max-width: calc(100vw - 12px);
  }

  .carte-educatrice-action {
    padding: 22px 16px;
  }

  .btn-principal,
  .btn-reservation,
  .btn-forfait {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
}
