:root {
  /* Design tokens Figma */
  --green-5: #fbfff6;
  --green-10: #eff7e7;
  --green-20: #dff4ce;
  --green-75: #266158;
  --green-100: #18413b;
  --green-150: #13312d;

  --text: #13312d;
  --muted: #4a5a52;
  --white: #ffffff;

  --shadow-s: 0 1px 3.5px rgba(0, 0, 0, 0.25);
  --shadow-m: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 10px 30px rgba(20, 40, 30, 0.08);

  --radius-s: 4px;
  --radius-m: 14px;
  --radius-l: 18px;

  --font-serif: 'Federo', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--green-5);
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(38, 97, 88, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
}

body { line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.header { padding: 18px 0; background: transparent; }

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  background: rgba(251, 255, 246, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 84px;
  padding: 18px 48px;
  max-width: 789px;
  margin: 0 auto;
  box-shadow: 0 1px 12.6px rgba(0, 0, 0, 0.25);
  position: relative;
}

.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 60px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--green-100);
  flex: 1;
}

.nav__links--left { justify-content: flex-end; }
.nav__links--right { justify-content: flex-start; }

.nav__links a {
  padding: 6px 4px;
  transition: color .2s;
}
.nav__links a:hover { color: var(--green-100); }

.nav__logo {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  flex-shrink: 0;
}

.nav__logo img {
  display: block;
  height: 48px;
  width: auto;
}

.nav__burger {
  display: none;
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-100);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.nav__mobile { display: none; }

.nav__mobile.is-open {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 60;
}

.nav__mobile a {
  padding: 10px 4px;
  font-weight: 500;
  border-bottom: 1px solid var(--green-10);
}
.nav__mobile a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 0; text-align: center; }
.hero__inner { padding: 30px 0 20px; }

.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--green-100);
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.1;
  margin: 0 0 14px;
}

.hero__subtitle {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 15px;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 0;
  transition: transform .15s, box-shadow .2s, background .2s;
}

.btn--primary {
  background: var(--green-100);
  color: var(--green-5);
  box-shadow: 0 8px 20px rgba(24, 65, 59, 0.25);
}

.btn--primary:hover {
  transform: translateY(-1px);
  background: var(--green-150);
}

.btn--dark {
  background: var(--green-100);
  color: var(--green-5);
  padding: 13.5px 27px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 77.4px;
}

.btn--dark:hover { background: var(--green-150); }

/* ---------- Gallery ---------- */
.gallery {
  margin: 40px 0 0;
  padding: 10px 0;
  overflow: hidden;
}

.gallery__track {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 0 48px;
  max-width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery__track::-webkit-scrollbar { display: none; }

.gallery__item {
  flex: 0 0 auto;
  width: 241px;
  height: 360px;
}

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

/* ---------- Stats ---------- */
.stats {
  background: var(--green-75);
  color: var(--green-5);
  padding: 62px 48px;
  margin-top: 50px;
}

.stats__grid {
  display: flex;
  gap: 128px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1360px;
  margin: 0 auto;
}

.stats__item {
  width: 219px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.stats__num {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--green-5);
  font-size: 60px;
  line-height: 1;
}

.stats__plus {
  font-size: 40px;
  margin-left: 2px;
}

.stats__label {
  font-family: var(--font-sans);
  color: var(--green-20);
  font-size: 20px;
  font-weight: 400;
}

/* ---------- Section title ---------- */
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(42px, 5vw, 64px);
  color: var(--green-100);
  text-align: center;
  margin: 0 0 72px;
}

.section-title--light { color: var(--green-10); }

/* ---------- Prestations ---------- */
.prestations {
  padding: 120px 48px;
  background: var(--green-5);
}

.prestations .container { max-width: 1360px; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26.4px;
  margin: 0 auto 72px;
  max-width: 947px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8.8px;
  padding: 15.84px 24.64px;
  border-radius: 92.4px;
  background: var(--green-10);
  color: var(--green-150);
  font-family: var(--font-serif);
  font-size: 21.12px;
  font-weight: 400;
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow-s);
  transition: background .2s, color .2s, transform .15s;
}

.tab:hover { transform: translateY(-1px); }

.tab.is-active {
  background: var(--green-75);
  color: var(--green-5);
}

.tab__icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}

/* Règles .tab__icon--XXX générées dans svg/_icons.css (data URI en base64 pour contourner CORS file://) */

.cards-wrap {
  background: var(--green-5);
  padding: 30px;
  border-radius: var(--radius-m);
  max-width: 1335px;
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.card {
  background: var(--green-10);
  border-radius: 5.8px;
  padding: 17.4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 7.7px;
  flex: 1;
  min-width: 0;
}

.card__head {
  display: flex;
  gap: 7.7px;
  align-items: center;
  flex-wrap: wrap;
}

.card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 23.2px;
  font-weight: 400;
  color: #000;
  line-height: 1.15;
}

.card__duration {
  background: var(--green-75);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 11.6px;
  font-weight: 400;
  padding: 3.9px 15.5px;
  border-radius: 69.7px;
  white-space: nowrap;
}

.card__desc {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--green-100);
  font-size: 15.5px;
  line-height: 1.4;
}

.card__price {
  background: var(--green-20);
  color: var(--green-100);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15.5px;
  padding: 14.5px 17.4px;
  border-radius: 91px;
  flex-shrink: 0;
  align-self: center;
}

/* ---------- Offres ---------- */
.offres {
  position: relative;
  background: var(--green-75);
  color: var(--green-5);
  padding: 120px 48px;
  overflow: hidden;
  isolation: isolate;
}

.offres::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px, 22px 22px;
  background-position: 0 0, 11px 11px;
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

.offres .container { max-width: 1000px; }

.offres__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 421px));
  gap: 67px;
  justify-content: center;
}

.offer-card {
  background: var(--green-10);
  color: var(--text);
  border-radius: var(--radius-l);
  padding: 36px 43px;
  display: flex;
  flex-direction: column;
  gap: 66px;
  box-shadow: var(--shadow-m);
}

.offer-card--light { background: var(--green-5); }

.offer-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.offer-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 35px;
  font-weight: 400;
  color: var(--green-150);
}

.price {
  background: var(--green-20);
  color: var(--green-100);
  padding: 15px 18px;
  border-radius: 91px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  height: 40px;
  display: inline-flex;
  align-items: center;
}

.offer-card__inner { display: flex; flex-direction: column; gap: 20px; }

.offer-card .btn { align-self: flex-start; }

.offer-card p {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--green-100);
  line-height: 1.4;
  margin: 0;
}

.offer-card strong {
  color: var(--green-100);
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact {
  padding: 120px 165px;
  background: var(--green-5);
}

.contact__grid {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  max-width: 1360px;
  margin: 0 auto;
}

.contact__map {
  width: 100%;
  max-width: 677px;
  aspect-ratio: 677 / 439;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--green-150);
  box-shadow: var(--shadow-soft);
  flex-shrink: 1;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact__info {
  width: 100%;
  max-width: 410px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
}

.contact__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.2;
  color: #000;
  margin: 0;
  text-align: center;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-100);
  color: var(--green-5);
  padding: 14.4px 36.8px;
  border-radius: 115.2px;
  font-family: var(--font-sans);
  font-size: clamp(20px, 3vw, 28.8px);
  font-weight: 500;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 20px rgba(24, 65, 59, 0.25);
  transition: transform .15s, background .2s;
  white-space: nowrap;
}

.phone-pill:hover {
  background: var(--green-150);
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.footer {
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--green-5);
}

/* ---------- Responsive ---------- */

/* Tablette paysage / petit desktop */
@media (max-width: 1200px) {
  .container { padding: 0 24px; }
  .stats { padding: 56px 32px; }
  .stats__grid { gap: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .offres { padding: 100px 32px; }
  .contact { padding: 100px 32px; }
}

/* Tablette portrait */
@media (max-width: 900px) {
  /* Nav passe en mode burger dès ici */
  .nav {
    justify-content: center;
    padding: 12px 18px;
    gap: 0;
    max-width: 100%;
    position: relative;
  }
  .nav__links { display: none; }
  .nav__burger {
    display: flex;
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
  }
  .nav__logo { padding: 0; }
  .nav__logo img { height: 40px; }

  .hero { padding-top: 20px; }
  .hero__inner { padding: 20px 0 16px; }
  .gallery__track {
    gap: 16px;
    padding: 0 20px;
    justify-content: flex-start;
  }
  .gallery__item { width: 200px; height: 300px; }

  .stats { padding: 48px 24px; margin-top: 40px; }
  .stats__grid { gap: 32px; }
  .stats__item { width: auto; min-width: 140px; flex: 1 1 160px; }
  .stats__num { font-size: 48px; }
  .stats__plus { font-size: 32px; }
  .stats__label { font-size: 16px; }

  .section-title { margin-bottom: 48px; }

  .prestations { padding: 80px 24px; }
  .tabs { gap: 12px; margin-bottom: 48px; }
  .tab {
    font-size: 16px;
    padding: 12px 18px;
    gap: 8px;
  }
  .tab__icon { width: 28px; height: 28px; }

  .cards-wrap { padding: 16px; }

  .offres { padding: 80px 24px; }
  .offres__grid { grid-template-columns: minmax(0, 421px); gap: 24px; }
  .offer-card { gap: 40px; padding: 32px; }

  .contact { padding: 80px 24px; }
  .contact__grid { flex-direction: column; gap: 40px; }
  .contact__info { padding: 0; }
}

/* Mobile */
@media (max-width: 640px) {
  .container { padding: 0 16px; }

  .nav { padding: 10px 16px; border-radius: 60px; }
  .nav__burger { left: 16px; }
  .nav__logo img { height: 36px; }

  .hero__title { font-size: clamp(32px, 8vw, 40px); }
  .hero__subtitle { font-size: 14px; margin-bottom: 22px; }
  .btn { padding: 12px 24px; font-size: 14px; }

  .gallery { margin-top: 28px; }
  .gallery__track { padding: 0 16px; gap: 12px; }
  .gallery__item { width: 170px; height: 255px; }

  .stats { padding: 36px 16px; margin-top: 32px; }
  .stats__grid {
    gap: 20px;
    flex-direction: column;
  }
  .stats__item { width: 100%; flex: 0 0 auto; }
  .stats__num { font-size: 42px; }
  .stats__plus { font-size: 26px; }
  .stats__label { font-size: 15px; }

  .section-title { margin-bottom: 36px; }

  .prestations { padding: 56px 16px; }
  .tabs { gap: 8px; margin-bottom: 32px; }
  .tab {
    font-size: 14px;
    padding: 10px 14px;
    gap: 6px;
    box-shadow: none;
  }
  .tab__icon { width: 22px; height: 22px; }

  .cards-wrap { padding: 0; background: transparent; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .card { padding: 14px; gap: 10px; }
  .card__title { font-size: 19px; }
  .card__desc { font-size: 14px; }
  .card__price { font-size: 14px; padding: 10px 14px; }
  .card__duration { font-size: 11px; padding: 3px 12px; }

  .offres { padding: 56px 16px; }
  .offres__grid { grid-template-columns: 1fr; }
  .offer-card { padding: 24px; gap: 28px; border-radius: 14px; }
  .offer-card h3 { font-size: 26px; }
  .offer-card p { font-size: 14px; }
  .price { font-size: 14px; padding: 10px 14px; height: 36px; }
  .btn--dark { padding: 11px 22px; font-size: 15px; }

  .contact { padding: 56px 16px; }
  .contact__grid { gap: 28px; }
  .phone-pill { padding: 12px 24px; }
}

/* Très petits écrans */
@media (max-width: 380px) {
  .nav { padding: 8px 12px; gap: 8px; }
  .nav__logo img { height: 32px; }
  .gallery__item { width: 150px; height: 225px; }
  .stats__num { font-size: 36px; }
  .hero__title { font-size: 28px; }
}
