@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-quick: 200ms;
  --dur-slow: 800ms;
  --ink: #17271e;
}

.hero-rise { animation: hero-rise var(--dur-slow) var(--ease-soft) both; }
.hero-rise-2 { animation: hero-rise var(--dur-slow) var(--ease-soft) 0.12s both; }
.hero-rise-3 { animation: hero-rise var(--dur-slow) var(--ease-soft) 0.24s both; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.btn-press:active { transform: scale(0.98); }

/* Hero : un écran, titre dans le tiers bas, métiers tout en bas */
.hero.meadow-hero{
  min-height: 100dvh;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #0d130f;
  color: #fff;
}
.meadow-still,
.meadow-video,
.meadow-scrim{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.meadow-still{
  background-color: #0d130f;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.meadow-video{
  object-fit: cover;
  z-index: 1;
  opacity: 0;
}
.meadow-video.is-on{
  opacity: 1;
  transition: opacity var(--dur-slow) var(--ease-soft);
}
.meadow-scrim{
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 78% 58% at 50% 58%, rgba(0,0,0,.55) 0%, rgba(0,0,0,.22) 52%, transparent 74%),
    linear-gradient(to bottom, rgba(0,0,0,.28) 0%, rgba(0,0,0,.36) 46%, rgba(0,0,0,.78) 100%);
}
.meadow-frame{
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 5.5rem 20px 0;
  box-sizing: border-box;
  text-align: center;
}
.meadow-spacer-top{ flex: 0.85; width: 100%; min-height: 0.75rem; }
.meadow-spacer{ flex: 1; width: 100%; min-height: 0.85rem; }

.meadow-brand{
  display: block;
  margin: 0 auto 0.7rem;
  line-height: 0;
  animation: hero-rise var(--dur-slow) var(--ease-soft) 0.12s both;
}
.meadow-brand img{
  display: block;
  height: clamp(72px, 12vw, 118px);
  width: auto;
  max-width: min(92vw, 560px);
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.62)) drop-shadow(0 1px 2px rgba(0,0,0,.8));
}

.hero.meadow-hero h1.meadow-title{
  margin: 0;
  max-width: 18ch;
  font-family: "Inter Variable", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 560;
  font-style: normal;
  font-size: clamp(2.15rem, 5.4vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0,0,0,.75), 0 1px 2px rgba(0,0,0,.9);
  animation: hero-rise var(--dur-slow) var(--ease-soft) 0.12s both;
}
.hero.meadow-hero .hero-role-top,
.hero.meadow-hero .hero-role-sub,
.hero.meadow-hero .hero-duo-and,
.hero.meadow-hero .hero-role-place{
  font-family: inherit;
  font-weight: inherit;
  font-style: normal;
  letter-spacing: inherit;
  text-transform: none;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.75), 0 1px 2px rgba(0,0,0,.9);
  line-height: 1.05;
}
.hero.meadow-hero .hero-role-top{
  display: block;
  font-size: 1em;
  margin: 0;
}
.hero.meadow-hero .hero-duo{
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.22em;
  margin: 0.06em 0 0;
  font-size: 0.56em;
  font-weight: 500;
}
.hero.meadow-hero .hero-duo .hero-role-sub,
.hero.meadow-hero .hero-duo-and{
  display: inline;
  font-size: 1em;
}
.hero.meadow-hero .hero-role-place{
  display: block;
  margin-top: 0.35em;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero.meadow-hero .meadow-sub{
  margin: 1.75rem auto 0;
  max-width: 36rem;
  font-family: "Inter Variable", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.78), 0 1px 2px rgba(0,0,0,.9);
  animation: hero-rise var(--dur-slow) var(--ease-soft) 0.12s both;
}
.meadow-ctas{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.35rem;
  margin-top: 2.5rem;
  animation: hero-rise var(--dur-slow) var(--ease-soft) 0.24s both;
}
.meadow-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.75rem;
  background: #fff;
  color: #17271e;
  padding: 1rem 2rem;
  font-family: "Inter Variable", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  transition: transform var(--dur-quick) var(--ease-soft);
}
.meadow-cta:hover{ transform: translateY(-1px); color: #17271e; }
.meadow-link{
  font-family: "Inter Variable", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 14px rgba(0,0,0,.8), 0 1px 2px rgba(0,0,0,.9);
  opacity: 1;
  transition: opacity var(--dur-quick) var(--ease-soft);
}
.meadow-link .nav-new{
  animation: none;
  opacity: 1;
  color: #17271e;
  background: #f6e2a9;
}
.meadow-link:hover{ opacity: 0.6; color: #fff; }

.meadow-marks{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.1rem 3.2rem;
  width: 100%;
  margin: 0 0 2.25rem;
  animation: hero-rise var(--dur-slow) var(--ease-soft) 0.24s both;
}
.meadow-marks a{
  font-family: "Inter Variable", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  text-transform: none;
  text-shadow: 0 2px 14px rgba(0,0,0,.8), 0 1px 2px rgba(0,0,0,.9);
  opacity: 1;
  transition: opacity var(--dur-quick) var(--ease-soft);
}
.meadow-marks a:hover{ opacity: 0.6; color: #fff; }

.hero.meadow-hero .hero-rule,
.hero.meadow-hero .hero-scroll-mobile{ display: none !important; }

/* Nav accueil : pilule blanche */
body.is-home #header{
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  left: 50%;
  right: auto;
  width: min(1090px, calc(100% - 32px));
  transform: translateX(-50%);
  z-index: 130;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 10px 10px 10px 22px;
  background: #fff;
  color: #17271e;
  border: 0;
  border-radius: 9999px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  overflow: visible;
}
body.is-home #header.scrolled{
  background: #fff;
  border: 0;
  padding: 10px 10px 10px 22px;
  backdrop-filter: none;
}
body.is-home #header .logo{
  opacity: 1;
  pointer-events: auto;
  min-width: 0;
  flex-direction: row;
  align-items: center;
}
body.is-home #header .logo-img{
  height: 48px;
  width: auto;
  filter: none;
}
body.is-home #header .nav-new{
  animation: none;
  opacity: 1;
}
body.is-home #header .logo-tag{ display: none; }
body.is-home #header .header-right{
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.6rem;
}
body.is-home #header nav{
  margin-left: 1.25rem;
  gap: clamp(0.45rem, 1.1vw, 1.35rem);
  min-width: 0;
}
body.is-home #header nav a.nl,
body.is-home #header .nav-more-btn{
  font-family: "Inter Variable", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: #17271e;
  opacity: 0.9;
  padding: 0.15rem 0;
  transition: opacity var(--dur-quick) var(--ease-soft);
}
body.is-home #header nav a.nl::after{ display: none; }
body.is-home #header nav a.nl:hover,
body.is-home #header nav a.nl.active,
body.is-home #header .nav-more-btn:hover,
body.is-home #header .nav-more.is-open .nav-more-btn{
  color: #17271e;
  opacity: 0.6;
}
body.is-home #header .nav-more-chevron{
  border-color: #17271e;
}
body.is-home #header .nav-cta:not(.nav-cta-shop){
  margin-left: auto;
  font-family: "Inter Variable", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  background: #111512;
  border: 0;
  border-radius: 9999px;
  padding: 10px 20px;
  transition: opacity var(--dur-quick) var(--ease-soft);
}
body.is-home #header .nav-cta:not(.nav-cta-shop):hover{
  background: #111512;
  color: #fff;
  border: 0;
  opacity: 0.85;
}
body.is-home #header .nav-cta:not(.nav-cta-shop):active{ transform: scale(0.98); }

body.is-home:has(#nav.open) #header{
  background: transparent;
  box-shadow: none;
}
body.is-home:has(#nav.open) #header .nav-cta{ opacity: 0; pointer-events: none; }
body.is-home:has(#nav.open) #header .burger span{ background: #f6f3ec; }

@media (max-width: 1180px){
  body.is-home #header nav a.nl,
  body.is-home #header .nav-more-btn{ font-size: 13px; }
  body.is-home #header nav{ gap: 0.55rem; margin-left: 0.7rem; }
}
@media (max-width: 1024px){
  body.is-home #header{
    top: max(12px, env(safe-area-inset-top));
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    transform: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 14px;
  }
  body.is-home #header.scrolled{ padding: 6px 8px 6px 14px; }
  body.is-home #header .header-right,
  body.is-home #header .header-actions{ display: contents; }
  body.is-home #header .logo{
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  body.is-home #header #burger{
    display: block;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    opacity: 1;
  }
  body.is-home #header #burger span{ background: #17271e; }
  body.is-home #header .nav-cta:not(.nav-cta-shop){
    display: inline-flex !important;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    z-index: 122;
    margin: 0;
    padding: 8px 14px;
    font-size: 14px;
  }
  .meadow-ctas{ margin-top: 1.6rem; }
  .meadow-marks{ gap: 0.85rem 1.6rem; margin-bottom: max(1.25rem, env(safe-area-inset-bottom)); }
}
@media (max-width: 420px){
  body.is-home #header .logo-img{ height: 38px; }
  .meadow-brand img{ height: 78px; }
  .hero.meadow-hero h1.meadow-title{ font-size: clamp(2rem, 10vw, 2.6rem); }
  .meadow-cta{ padding: 0.9rem 1.3rem; font-size: 16px; }
}
@media (max-height: 760px){
  .meadow-frame{ padding-top: 4.6rem; }
  .meadow-brand img{ height: 64px; }
  .hero.meadow-hero h1.meadow-title{ font-size: clamp(1.85rem, 5.2vw, 2.8rem); }
  .hero.meadow-hero .meadow-sub{
    margin-top: 0.7rem;
    font-size: 1rem;
  }
  .meadow-ctas{ margin-top: 0.9rem; }
  .meadow-marks a{ font-size: 16px; }
}
@media (max-width: 520px){
  .meadow-marks{
    margin-bottom: max(5.6rem, calc(env(safe-area-inset-bottom) + 5rem));
  }
}
@media (prefers-reduced-motion: reduce){
  .hero-rise, .hero-rise-2, .hero-rise-3,
  .meadow-brand,
  .hero.meadow-hero h1.meadow-title,
  .hero.meadow-hero .meadow-sub,
  .meadow-ctas,
  .meadow-marks{ animation: none; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
