/*
 * /sur-mesure (spec 5.8). The lead-form block (.w-sm-brief, .w-sm-card, .w-sm-benefit, .w-sm-ok) and the
 * tiles (.w-sm-tile) are shared with /corporate (spec 5.9 section 5 "layout as 5.8 section 5"), which
 * loads this file through $meta['css'].
 */
@layer pages {

/* 1. Hero: forest + teal glow + topo, copy | photo (4/5, asymmetric radius, glass caption) */
.w-sm-hero {
  position: relative; overflow: hidden; color: var(--w-on-dark);
  background: var(--w-glow-dark), var(--w-topo) 0 0 / 640px repeat, var(--w-forest);
  padding: calc(var(--w-header-h) + 32px) 0 48px;
}
@media (min-width: 768px) { .w-sm-hero { padding: calc(var(--w-header-h) + 48px) 0 56px; } }
@media (min-width: 1024px) { .w-sm-hero { display: flex; flex-direction: column; justify-content: center; min-height: 640px; padding: calc(var(--w-header-h) + 56px) 0 72px; } }
.w-sm-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .w-sm-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(48px, 5vw, 72px); } }
.w-sm-hero__h1 { max-width: 12em; }   /* em, not ch: stable across the font swap */
.w-sm-hero__l2 { display: block; color: var(--w-teal); }
/* from 1024 the copy column is ~46 % of the width: "Exactement comme" (~10.5 em) must fit it in both Jakarta and
   the fallback font so the font swap never re-wraps the title (CLS 0.08 at 1024 before) */
@media (min-width: 1024px) { .w-sm-hero__h1 { font-size: min(var(--w-fs-h1), 4.3vw); } }
.w-sm-hero__lead { margin-top: 20px; color: var(--w-on-dark-muted); max-width: 48ch; }
.w-sm-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: 28px; }
.w-sm-hero__actions .w-link-arrow > .w-icon:last-child { transition: transform var(--w-dur-fast) var(--w-ease-out); }
@media (hover: hover) and (pointer: fine) { .w-sm-hero__actions .w-link-arrow:hover > .w-icon:last-child { transform: translateY(2px); } }
@media (max-width: 599px) {
  .w-sm-hero__actions { flex-direction: column; align-items: stretch; }
  .w-sm-hero__actions .w-btn { width: 100%; }
  .w-sm-hero__actions .w-link-arrow { justify-content: center; }
}
.w-sm-proofs { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; padding-top: 20px; border-top: var(--w-border-dark); }
.w-sm-proofs li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--w-on-dark-muted); }
.w-sm-proofs .w-icon { width: 16px; height: 16px; color: var(--w-teal); }
@media (max-width: 599px) { .w-sm-proofs { flex-direction: column; } }

.w-sm-hero__visual { position: relative; width: 100%; max-width: 620px; margin: 0; }
@media (min-width: 1024px) { .w-sm-hero__visual { max-width: 440px; justify-self: end; } }
.w-sm-hero__photo {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 28px 28px 56px 28px;
  background: var(--w-placeholder-bg); box-shadow: var(--w-sh-4);
}
@media (min-width: 1024px) { .w-sm-hero__photo { aspect-ratio: 4 / 5; border-radius: 28px 28px 72px 28px; } }
.w-sm-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w-sm-hero__visual--plain .w-sm-hero__photo {
  display: grid; place-items: center; border: var(--w-border-dark); box-shadow: none;
  background: var(--w-glow-dark-2), var(--w-topo) 0 0 / 480px repeat, var(--w-forest-2);
}
.w-sm-hero__mark { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--w-on-dark-fill-2); color: var(--w-teal); }
.w-sm-hero__mark .w-icon { width: 40px; height: 40px; }
.w-sm-hero__cap {
  position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 4px; padding: 12px 16px;
  border-radius: 16px 16px 40px 16px; background: rgb(16 34 32 / .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--w-ivory);
}
@media (min-width: 1024px) { .w-sm-hero__cap { left: 20px; right: 20px; bottom: 20px; padding: 14px 18px; border-radius: 16px 16px 52px 16px; } }
.w-sm-hero__cap-label { font-size: 11px; font-weight: 800; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--w-teal); }
.w-sm-hero__cap-title { font-size: 13px; font-weight: 600; line-height: 1.4; text-wrap: balance; }   /* long trip names split evenly */

/* 2. Two formulas: white cards, index + tile, link pinned to the bottom */
.w-sm-formulas__grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .w-sm-formulas__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.w-sm-formula {
  display: flex; flex-direction: column; min-height: 280px; padding: 24px;
  background: var(--w-white); border: var(--w-border); border-radius: var(--w-r-panel); box-shadow: var(--w-sh-1);
  transition: border-color var(--w-dur-base) var(--w-ease), box-shadow var(--w-dur-base) var(--w-ease);
}
@media (min-width: 768px) { .w-sm-formula { padding: 32px; } }
@media (hover: hover) and (pointer: fine) { .w-sm-formula:hover { border-color: var(--w-line-hover); box-shadow: var(--w-sh-3); } }
.w-sm-formula__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
@media (min-width: 1024px) { .w-sm-formula__top { margin-bottom: 56px; } }
.w-sm-formula__idx { font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--w-muted); font-variant-numeric: tabular-nums; }
.w-sm-formula__tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--w-teal-tint); color: var(--w-teal-ink); }
.w-sm-formula__tile .w-icon { width: 26px; height: 26px; }
.w-sm-formula__title { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.375rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; }
.w-sm-formula__text { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--w-muted); max-width: 46ch; }
.w-sm-formula__link { align-self: flex-start; margin-top: auto; padding-top: 16px; }

/* 3. Steps (the forest band): hairline grid, 2 x 2 from 768, 4 columns from 1024; vertical stepper below */
@media (min-width: 768px) {
  .w-sm-steps__list.w-process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: var(--w-border-dark); }
  .w-sm-steps__list .w-process__step { padding: 28px 24px 32px; border-bottom: var(--w-border-dark); }
  .w-sm-steps__list .w-process__step::before { display: none; }
  .w-sm-steps__list .w-process__step:nth-child(odd) { padding-left: 0; }
  .w-sm-steps__list .w-process__step:nth-child(even) { border-left: var(--w-border-dark); }
  .w-sm-steps__list .w-process__title { margin-top: 28px; }
}
@media (min-width: 1024px) {
  .w-sm-steps__list.w-process { grid-template-columns: repeat(var(--_n), minmax(0, 1fr)); }
  .w-sm-steps__list .w-process__step { min-height: 240px; padding: 28px 24px 32px; border-left: var(--w-border-dark); }
  .w-sm-steps__list .w-process__step:first-child { padding-left: 0; border-left: 0; }
  .w-sm-steps__list .w-process__step:nth-child(odd):not(:first-child) { padding-left: 24px; }
  .w-sm-steps__list .w-process__title { margin-top: 48px; }
}
.w-sm-steps__list .w-process__num { font-variant-numeric: tabular-nums; }

/* 4. Occasions: heading | tiles (3 x 2; 2 x 3 on phones, icon over label), then the two celebrations */
.w-sm-occ__grid { display: grid; }
@media (min-width: 1024px) {
  .w-sm-occ__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: center; }
  .w-sm-occ__head { margin-bottom: 0; }
}
.w-sm-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { .w-sm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.w-sm-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 64px; padding: 14px 16px;
  background: var(--w-white); border: var(--w-border); border-radius: var(--w-r-lg);
  font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--w-ink);
}
.w-sm-tile .w-icon { width: 28px; height: 28px; color: var(--w-teal-ink); }
@media (min-width: 600px) { .w-sm-tile { flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; } }

/* the group title outranks its card titles (h3 above h4): the sub-section size of 1.5 (30 / 22 px) */
.w-sm-celebs__title { margin: 48px 0 20px; font-size: var(--w-fs-h2-sm); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
@media (min-width: 1024px) { .w-sm-celebs__title { margin-top: 56px; } }
.w-sm-celebs { display: grid; gap: 16px; }
@media (min-width: 768px) { .w-sm-celebs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.w-sm-celeb { display: flex; flex-direction: column; padding: 24px; background: var(--w-white); border: var(--w-border); border-radius: var(--w-r-panel); }
@media (min-width: 768px) { .w-sm-celeb { padding: 32px; } }
.w-sm-celeb__top { display: flex; align-items: center; gap: 12px; }
.w-sm-celeb__tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--w-forest); color: var(--w-teal); flex-shrink: 0; }
.w-sm-celeb__tile .w-icon { width: 24px; height: 24px; }
.w-sm-celeb__kicker { font-size: 11px; font-weight: 800; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--w-teal-ink); }
.w-sm-celeb__title { margin-top: 20px; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.375rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; }
.w-sm-celeb__text { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--w-muted); max-width: 48ch; }
.w-sm-celeb__list { display: grid; gap: 10px; margin: 20px 0 28px; }
.w-sm-celeb__list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.5; color: var(--w-slate); }
.w-sm-celeb__list .w-icon { width: 22px; height: 22px; padding: 4px; margin-top: 0; border-radius: 50%; background: var(--w-teal-tint); color: var(--w-teal-ink); }
.w-sm-celeb__cta { align-self: flex-start; margin-top: auto; }
@media (max-width: 599px) { .w-sm-celeb__cta { align-self: stretch; white-space: normal; } }

/* 5. Brief: copy + benefits | form card (4 px trail bar). Shared with /corporate. */
.w-sm-brief__grid { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .w-sm-brief__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .w-sm-brief__intro { position: sticky; top: calc(var(--w-header-h) + 32px); }
}
.w-sm-brief__lead { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--w-slate); max-width: 44ch; }
.w-sm-benefits { display: grid; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: var(--w-border); }
.w-sm-benefit { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.w-sm-benefit__tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--w-teal-tint); color: var(--w-teal-ink); }
.w-sm-benefit__tile .w-icon { width: 20px; height: 20px; }
.w-sm-benefit__num { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.w-sm-benefit__title { display: block; font-size: 15px; font-weight: 800; line-height: 1.35; color: var(--w-ink); }
.w-sm-benefit__text { display: block; margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--w-muted); }
.w-sm-brief__wa { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; padding: 16px 20px; border-radius: var(--w-r-lg); background: var(--w-sand); }
.w-sm-brief__wa p { font-size: 15px; font-weight: 700; line-height: 1.35; }
@media (max-width: 599px) { .w-sm-brief__wa .w-btn { width: 100%; } }

.w-sm-card {
  position: relative; overflow: hidden; padding: 28px 20px 24px;
  background: var(--w-white); border: var(--w-border); border-radius: var(--w-r-panel); box-shadow: var(--w-sh-3);
}
.w-sm-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--w-trail); }
@media (min-width: 600px) { .w-sm-card { padding: 36px 32px 32px; } }
.w-sm-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: var(--w-border); }
.w-sm-card__title { font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.w-sm-card__note { font-size: 13px; color: var(--w-muted); }
.w-sm-card__note span { color: var(--w-err-fg); font-weight: 700; }
.w-sm-form__submit { display: grid; gap: 12px; margin-top: 8px; }
.w-sm-form__submit .w-form-note { justify-content: center; }
.w-sm-ok { padding: 4px 0 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.w-sm-ok__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 599px) { .w-sm-ok__actions .w-btn { width: 100%; white-space: normal; } }
.w-sm-flash { animation: w-sm-flash 1.2s var(--w-ease-out) 1; }
@keyframes w-sm-flash { 0%, 100% { box-shadow: 0 0 0 0 rgb(19 236 221 / 0); } 30% { box-shadow: 0 0 0 4px rgb(19 236 221 / .45); } }

/* Wraps: no single word left alone on the last line of a paragraph (shared with /corporate) */
.w-sm-hero__lead, .w-sm-brief .w-sec-head__intro, .w-sm-formulas .w-sec-head__intro, .w-sm-steps .w-sec-head__intro,
.w-sm-occ .w-sec-head__intro, .w-sm-formula__text, .w-sm-celeb__text, .w-sm-brief__lead, .w-sm-benefit__text,
.w-process__text { text-wrap: pretty; }
}
