/* =========================================================
   Mountain Duck Studio — feuille de style
   Principe : la page est en noir sur blanc. Un "voile" blanc
   en mix-blend-mode: difference couvre la moitié droite et
   inverse tout ce qui est dessous (blanc → noir, noir → blanc).
   Au survol du logo, le voile glisse sur la moitié gauche.
   ========================================================= */

/* Polices auto-hébergées (pas d'appel à Google : conforme RGPD) */
@font-face { font-family: "Fredoka"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 300; font-style: normal; font-display: swap; src: url("assets/fonts/outfit-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/outfit-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #000;
  --paper: #fff;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --pad-x: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.77, 0, 0.18, 1);
  --speed: 0.9s;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- Le split ---------- */
.site {
  position: relative;
  isolation: isolate;       /* le blend reste dans le site */
  overflow: clip;           /* clip (et non hidden) pour garder le header sticky */
  background: var(--paper);
  min-height: 100vh;
}

.veil {
  position: absolute;
  inset: 0 0 0 50%;
  background: var(--paper);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 50;
  transform: translateX(0);
  transition: transform var(--speed) var(--ease);
  will-change: transform;
}
.site.is-flipped .veil { transform: translateX(-100%); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--pad-x);
  background: var(--paper);
}
.brand {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  letter-spacing: 0.02em; text-decoration: none;
}
.nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav a, .menu-toggle {
  font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; position: relative; padding: 10px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

.menu-toggle {
  display: none; background: none; border: 0; color: inherit; font-family: inherit; cursor: pointer;
  min-height: 44px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 88px);
  min-height: calc(100svh - 88px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 40px; padding: 24px 24px 80px; text-align: center;
}
.hero__logo {
  width: min(560px, 82vw); height: auto;
  animation: rise 1.1s var(--ease) both;
}
.hero__tagline {
  margin: 0; max-width: 640px; font-size: clamp(18px, 2vw, 22px); line-height: 1.5;
  animation: rise 1.1s 0.15s var(--ease) both;
}
.hero__tagline strong { font-weight: 600; }
.flip-btn { animation: rise 1.1s 0.3s var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Boutons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background 0.25s, color 0.25s;
}
.pill:hover, .pill:focus-visible { background: var(--ink); color: var(--paper); }
.pill--lg { min-height: 56px; padding: 0 34px; font-size: 18px; letter-spacing: 0.02em; text-transform: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ---------- Typo commune ---------- */
.eyebrow {
  margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
}
.display, .title, .contact__title, .card h3, .step__num {
  font-family: var(--font-display); font-weight: 600; margin: 0;
}
.display { font-size: clamp(34px, 5vw, 72px); line-height: 1; }
.title { font-size: clamp(32px, 4.5vw, 60px); line-height: 1.05; }
.lead { margin: 0; max-width: 440px; font-size: clamp(15px, 1.4vw, 18px); }

/* ---------- Santé | Sport ---------- */
.duo {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(80px, 10vw, 140px) 0;
}
.duo__col { display: flex; flex-direction: column; gap: 20px; padding: 0 clamp(16px, 5vw, 80px); }
.duo__col--left { align-items: flex-end; text-align: right; }
.duo__col--right { align-items: flex-start; text-align: left; }

/* ---------- Sections ---------- */
.section { padding: 80px var(--pad-x) 120px; }
.container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.section__head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }

.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.card {
  border: 1.5px solid var(--ink); border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.35s var(--ease);
}
.card:hover { transform: translateY(-6px); }
.card h3 { font-size: 24px; line-height: 1.2; }
.card p { margin: 0; }

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 32px;
}
.step { display: flex; flex-direction: column; gap: 12px; border-top: 1.5px solid var(--ink); padding-top: 24px; }
.step__num { font-size: 48px; line-height: 1; }
.step h3 { margin: 0; font-size: 20px; font-weight: 600; }
.step p { margin: 0; }

/* ---------- Contact ---------- */
.contact {
  padding: 120px 24px 140px;
  display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center;
}
.contact__title { max-width: 900px; font-size: clamp(40px, 6vw, 88px); line-height: 1; }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 28px var(--pad-x); border-top: 1.5px solid var(--ink); font-size: 14px; font-weight: 400;
}

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Page simple (mentions légales) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 40px var(--pad-x) 120px; }
.prose h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin-top: 40px; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--pad-x) 20px;
    background: var(--paper); border-bottom: 1.5px solid var(--ink);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 16px; }
  .duo { grid-template-columns: 1fr; gap: 72px; }
  .duo__col, .duo__col--left, .duo__col--right { align-items: center; text-align: center; gap: 14px; padding: 0 24px; }
  .card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
