/**
 * Design-system hero alignment — pages other than home / google-ads.
 * Invariants from measured Accueil + Ads (1440 / 1024):
 *   eyebrow top 133px, left = wrap inset, Syne 700 11px + trait
 *   H1 Syne 700, lh 1.02, tracking -0.04em (size adapts to copy length)
 *   lede Plex Sans ~1.05–1.18rem / 1.7
 *   one padding-top: --sk-hero-eyebrow-y (3.5rem). No vertical center vs art.
 * No 2-column grid on a single-child hero. No max-width: 8.2em on long titles.
 */

:root {
  --sk-ds-wrap: min(81.875rem, calc(100% - clamp(1.35rem, 5.2vw, 4.75rem) * 2));
}

body[data-page="creation"] .c-crumbs,
body[data-page="creation-yverdon"] .c-crumbs,
body[data-page="creation-lausanne"] .c-crumbs {
  display: none;
}

/* ——— Accent animation (same recipe as home / Ads) ——— */

@keyframes sk-ds-accent-shift {
  from {
    background-position: 8% 50%;
  }

  to {
    background-position: 92% 50%;
  }
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  body[data-page="seo"] .p09-hero h1 em,
  body[data-page="seo-lausanne"] .p22-hero h1 em,
  body[data-page="prix-guide"] .p07-hero h1 em,
  body[data-page="creation"] .c-hero__title em,
  body[data-page="creation-yverdon"] .c-yv-hero__title em,
  body[data-page="creation-lausanne"] .c-la-hero__title em {
    background-image: linear-gradient(
      105deg,
      var(--color-bronze) 0%,
      color-mix(in srgb, var(--color-bronze-bright) 88%, var(--color-paper)) 32%,
      var(--color-bronze-bright) 48%,
      color-mix(in srgb, var(--color-focus) 55%, var(--color-bronze)) 68%,
      var(--color-bronze-bright) 84%,
      var(--color-bronze) 100%
    );
    background-size: 240% 100%;
    background-position: 12% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: sk-ds-accent-shift 16s ease-in-out infinite alternate;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="seo"] .p09-hero h1 em,
  body[data-page="seo-lausanne"] .p22-hero h1 em,
  body[data-page="prix-guide"] .p07-hero h1 em,
  body[data-page="creation"] .c-hero__title em,
  body[data-page="creation-yverdon"] .c-yv-hero__title em,
  body[data-page="creation-lausanne"] .c-la-hero__title em {
    animation: none;
    background-size: 100% 100%;
    background-position: 42% 50%;
  }
}

/* ——— Wrap / inset (desktop) ——— */

@media (min-width: 48rem) {
  body[data-page="404"] .page-hero {
    padding-block: var(--sk-hero-eyebrow-y) clamp(1.75rem, 4vw, 3rem);
  }

  body[data-page="404"] .page-hero .container {
    width: var(--sk-ds-wrap);
    max-width: 100%;
    margin-inline: auto;
  }

  body[data-page="services"] .svc-hero__inner,
  body[data-page="services"] .svc-hero__strip,
  body[data-page="services"] .svc-section--intro .svc-wrap--wide,
  body[data-page="creation"] .c-wrap--wide,
  body[data-page="creation-yverdon"] .c-wrap--wide,
  body[data-page="creation-lausanne"] .c-wrap--wide,
  body[data-page="seo"] .p09-wrap,
  body[data-page="seo-lausanne"] .p22-wrap,
  body[data-page="prix-guide"] .p07-wrap,
  body[data-page="contact"] .home-story--interior .home-story__inner,
  body[data-page="exemples"] .home-story--interior .home-story__inner,
  body[data-page="legal"] .home-story--interior .home-story__inner,
  body[data-page="privacy"] .home-story--interior .home-story__inner,
  body[data-page="404"] .home-story--interior .home-story__inner {
    width: var(--sk-ds-wrap);
    max-width: 100%;
    margin-inline: auto;
  }
}

/* ——— Eyebrow Y: one padding source ——— */

@media (min-width: 48rem) {
  body[data-page="services"] .svc-section--intro,
  body[data-page="services"] .svc-section--intro.svc-section--flush-top {
    padding-top: 0;
    border-top: none;
  }

  body[data-page="services"] .svc-intro__head {
    padding-top: var(--sk-hero-eyebrow-y);
    margin-bottom: 1.35rem;
  }

  body[data-page="seo"] .p09-hero,
  body[data-page="seo-lausanne"] .p22-hero,
  body[data-page="prix-guide"] .p07-hero {
    align-items: start;
    padding-top: var(--sk-hero-eyebrow-y);
  }

  body[data-page="creation"] .c-hero,
  body[data-page="creation-yverdon"] .c-yv-hero,
  body[data-page="creation-lausanne"] .c-la-hero {
    padding-top: var(--sk-hero-eyebrow-y);
  }

  body[data-page="prix-guide"] .p07-hero .p07-index {
    position: static;
    margin: 2.15rem 0 0;
    padding-top: 1.05rem;
    padding-bottom: 0;
    border-bottom: none;
    border-top: var(--hairline) solid var(--color-bronze-line);
  }

  body[data-page="creation"] .c-hero__grid,
  body[data-page="creation-yverdon"] .c-yv-hero__grid,
  body[data-page="creation-lausanne"] .c-la-hero__grid {
    align-items: start;
  }

  body[data-page="contact"] .home-act--hero .hero__inner,
  body[data-page="exemples"] .home-act--hero .hero__inner,
  body[data-page="legal"] .home-act--hero .hero__inner,
  body[data-page="privacy"] .home-act--hero .hero__inner,
  body[data-page="404"] .home-act--hero .hero__inner {
    gap: 0;
    padding-top: var(--sk-hero-eyebrow-y);
  }

  body[data-page="contact"] .home-act--hero,
  body[data-page="exemples"] .home-act--hero,
  body[data-page="legal"] .home-act--hero,
  body[data-page="privacy"] .home-act--hero,
  body[data-page="404"] .home-act--hero {
    padding-top: 0;
  }
}

/* ——— Eyebrow + trait ——— */

body[data-page="creation"] .c-hero .c-kicker,
body[data-page="creation-yverdon"] .c-yv-hero .c-kicker,
body[data-page="creation-lausanne"] .c-la-hero .c-kicker,
body[data-page="404"] .page-hero .eyebrow,
body[data-page="services"] .svc-intro__head .svc-section__eyebrow,
body[data-page="prix-guide"] .p07-hero .p07-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-bronze);
}

body[data-page="creation"] .c-hero .c-kicker::before,
body[data-page="creation-yverdon"] .c-yv-hero .c-kicker::before,
body[data-page="creation-lausanne"] .c-la-hero .c-kicker::before,
body[data-page="404"] .page-hero .eyebrow::before,
body[data-page="services"] .svc-intro__head .svc-section__eyebrow::before,
body[data-page="prix-guide"] .p07-hero .p07-eyebrow::before,
body[data-page="contact"] .home-hero__eyebrow::before,
body[data-page="exemples"] .home-hero__eyebrow::before,
body[data-page="legal"] .home-hero__eyebrow::before,
body[data-page="privacy"] .home-hero__eyebrow::before,
body[data-page="404"] .home-hero__eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

body[data-page="contact"] .home-hero__eyebrow,
body[data-page="exemples"] .home-hero__eyebrow,
body[data-page="legal"] .home-hero__eyebrow,
body[data-page="privacy"] .home-hero__eyebrow,
body[data-page="404"] .home-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-bronze);
}

/* ——— H1 display (Syne 700). Long copy: no 8.2em. ——— */

body[data-page="services"] .svc-intro__title {
  margin: 0.85rem 0 1.35rem;
  max-width: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.45rem, min(3.35vw + 0.45rem, 8svh), 3.85rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--color-ink);
  text-wrap: pretty;
}

body[data-page="creation"] .c-hero__title,
body[data-page="creation-yverdon"] .c-yv-hero__title,
body[data-page="creation-lausanne"] .c-la-hero__title {
  max-width: none;
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.45rem, min(3.35vw + 0.45rem, 8svh), 3.85rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

body[data-page="seo"] .p09-hero h1,
body[data-page="seo-lausanne"] .p22-hero h1 {
  max-width: none;
  margin: 0.85rem 0 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.55rem, 4.2vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

body[data-page="prix-guide"] .p07-hero h1 {
  max-width: none;
  margin: 0.85rem 0 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.55rem, 4.2vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

body[data-page="contact"] .home-hero__title,
body[data-page="exemples"] .home-hero__title,
body[data-page="legal"] .home-hero__title,
body[data-page="privacy"] .home-hero__title,
body[data-page="404"] .page-hero h1,
body[data-page="404"] .home-hero__title {
  margin: 0.85rem 0 1.35rem;
  max-width: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.45rem, min(3.35vw + 0.45rem, 8svh), 3.85rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--color-ink);
}

/* ——— Lede / CTA ——— */

body[data-page="services"] .svc-intro__lede,
body[data-page="creation"] .c-hero__lede,
body[data-page="creation-yverdon"] .c-yv-hero__lede,
body[data-page="creation-lausanne"] .c-la-hero__lede,
body[data-page="seo"] .p09-hero .p09-lead,
body[data-page="seo-lausanne"] .p22-hero .p22-lead,
body[data-page="prix-guide"] .p07-hero .p07-lead,
body[data-page="contact"] .home-hero__lede,
body[data-page="exemples"] .home-hero__lede,
body[data-page="legal"] .home-hero__lede,
body[data-page="privacy"] .home-hero__lede,
body[data-page="404"] .home-hero__lede {
  max-width: 32rem;
  margin: 0 0 1.7rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  line-height: 1.7;
  color: var(--color-ink-soft);
}

body[data-page="creation"] .c-hero__cta,
body[data-page="creation-yverdon"] .c-yv-hero__cta,
body[data-page="creation-lausanne"] .c-la-hero__cta,
body[data-page="prix-guide"] .p07-hero__actions,
body[data-page="contact"] .home-hero__cta,
body[data-page="exemples"] .home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem 1.4rem;
  margin-top: 0;
}

@media (max-width: 47.99rem) {
  body[data-page="services"] .svc-intro__head,
  body[data-page="seo"] .p09-hero,
  body[data-page="seo-lausanne"] .p22-hero,
  body[data-page="prix-guide"] .p07-hero,
  body[data-page="creation"] .c-hero,
  body[data-page="creation-yverdon"] .c-yv-hero,
  body[data-page="creation-lausanne"] .c-la-hero {
    padding-top: clamp(1.15rem, 3.25svh, 1.65rem);
  }

  body[data-page="services"] .svc-intro__title,
  body[data-page="creation"] .c-hero__title,
  body[data-page="creation-yverdon"] .c-yv-hero__title,
  body[data-page="creation-lausanne"] .c-la-hero__title,
  body[data-page="contact"] .home-hero__title,
  body[data-page="exemples"] .home-hero__title,
  body[data-page="legal"] .home-hero__title,
  body[data-page="privacy"] .home-hero__title,
  body[data-page="404"] .home-hero__title {
    font-size: clamp(2.35rem, 9.2vw, 3.05rem);
  }
}
