/*
 * /corporate (spec 5.9). The quote form block (.w-sm-brief, .w-sm-card...) and the activity tiles
 * (.w-sm-tile) come from css/pages/sur-mesure.css, loaded by the page through $meta['css'].
 */
@layer pages {

/* 1. Photo hero (scrim-x from 1024, scrim-y + anchored scrim below), prod numbers */
.w-corp-hero { min-height: clamp(560px, 72svh, 680px); }
.w-corp-hero--plain { background: var(--w-glow-dark), var(--w-topo) 0 0 / 640px repeat, var(--w-forest); }
.w-corp-hero--plain .w-hero__content::before { display: none; }
.w-corp-hero .w-hero__content { --_pt: calc(var(--w-header-h) + 40px); }
.w-corp-hero__h1 { max-width: 12em; }   /* em, not ch: stable across the font swap */
.w-corp-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.w-corp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 16px 32px; margin-top: 28px; }
@media (max-width: 599px) {
  .w-corp-hero__actions .w-btn { width: 100%; }
  .w-corp-hero__actions .w-btn--glass { display: none; }   /* "Voir les formules" = the very next section on phones */
  .w-corp-hero__actions .w-btn--xl { --_h: 52px; }
  .w-corp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
  .w-corp-stats .w-stat__label { font-size: 12px; }
}
@media (min-width: 768px) { .w-corp-hero .w-hero__content { padding-bottom: 48px; } }
@media (min-width: 1024px) {
  .w-corp-hero .w-hero__content { --_pt: calc(var(--w-header-h) + 56px); padding-bottom: 64px; }
  .w-corp-hero__actions { margin-top: 28px; }
  .w-corp-stats { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgb(250 246 239 / .18); max-width: 560px; }
}

/* 2. Formats: 4 white cards (4 columns >= 1200, 2 from 600, 1 below) */
.w-corp-formats__grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .w-corp-formats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1200px) { .w-corp-formats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.w-corp-format {
  display: flex; flex-direction: column; min-width: 0; padding: 24px;
  background: var(--w-white); border: var(--w-border); border-radius: var(--w-r-card);
  transition: border-color var(--w-dur-base) var(--w-ease), box-shadow var(--w-dur-base) var(--w-ease);
}
@media (hover: hover) and (pointer: fine) { .w-corp-format:hover { border-color: var(--w-line-hover); box-shadow: var(--w-sh-2); } }
.w-corp-format__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.w-corp-format__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-corp-format__tile .w-icon { width: 24px; height: 24px; }
.w-corp-format__dur { white-space: nowrap; }
.w-corp-format__title { font-size: var(--w-fs-h3); font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; }
.w-corp-format__text { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--w-muted); }

/* 3. Activity examples: 5 tiles (2 columns on phones, last one full width; 3 + 2 from 600; 5 in a row from 1024) */
.w-corp-acts__tiles .w-sm-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 600px) { .w-corp-acts__tiles .w-sm-tile:last-child:nth-child(odd) { grid-column: auto; } }
@media (min-width: 1024px) {
  .w-corp-acts__tiles.w-sm-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .w-corp-acts__tiles .w-sm-tile { flex-direction: column; align-items: flex-start; gap: 16px; min-height: 120px; padding: 20px; font-size: 15px; }
}

/* 4. What sets Wildly apart (the forest band): feature rows | photo carousel + trust logos */
.w-corp-why__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .w-corp-why__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; } }
.w-corp-why__grid--solo { grid-template-columns: minmax(0, 1fr) !important; }
.w-corp-feats { display: grid; gap: 20px; }
@media (min-width: 600px) and (max-width: 1023px) { .w-corp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.w-corp-why__grid--solo .w-corp-feats { max-width: 960px; }
@media (min-width: 600px) { .w-corp-why__grid--solo .w-corp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; } }
.w-corp-feat { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.w-corp-feat__tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--w-on-dark-fill-2); color: var(--w-teal); }
.w-corp-feat__tile .w-icon { width: 20px; height: 20px; }
.w-corp-feat__title { font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--w-ivory); }
.w-corp-feat__text { margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--w-on-dark-muted); max-width: 44ch; }
.w-corp-why__cta { margin-top: 32px; }
@media (max-width: 599px) { .w-corp-why__cta .w-btn { width: 100%; } }
.w-corp-panel { min-width: 0; padding: 16px; background: var(--w-forest-2); border: var(--w-border-dark); border-radius: var(--w-r-panel); }
@media (min-width: 768px) { .w-corp-panel { padding: 28px; } }
.w-corp-panel__photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--w-r-lg); background: var(--w-placeholder-bg); }
.w-corp-panel__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w-corp-panel__arrows { display: flex; gap: 8px; }
.w-corp-panel__rule { margin: 20px 0; border-top: var(--w-border-dark); }
.w-corp-panel .w-logos { padding: 16px 20px; }

/* 5. Process (light): 2 x 2 from 768 to 1023, 4 columns with dashed connectors from 1024 */
@media (min-width: 768px) and (max-width: 1023px) {
  .w-corp-process__list.w-process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
  .w-corp-process__list .w-process__step::before { display: none; }
}
.w-corp-process__list .w-process__text { max-width: 30ch; }

/* Wraps: no single word left alone on the last line of a paragraph; stat labels split evenly on phones */
.w-corp-formats .w-sec-head__intro, .w-corp-acts .w-sec-head__intro,
.w-corp-format__text, .w-corp-feat__text { text-wrap: pretty; }
.w-corp-stats .w-stat__label { text-wrap: balance; }
}
