/* Chouinard.work — design system (direction « Signature ») */
:root {
  --bg: #F3EFE6;            /* sable */
  --fg: #12241C;            /* vert-noir, texte */
  --body: #3B4A42;          /* texte courant */
  --muted: #5B6B62;         /* texte atténué */
  --border: rgba(18, 36, 28, 0.12);

  --dark: #0E2A20;          /* vert profond : hero, carte Populaire, contact */
  --dark-fg: #E9F2EC;
  --dark-muted: #A8C8B6;

  --primary: #3DBE7F;       /* vert vif : CTA */
  --primary-hover: #34A86F;
  --primary-fg: #0E2A20;
  --green-text: #1E8A5A;    /* vert lisible sur fond clair */
  --tint-green: #DCEFE4;
  --tint-sand: #F7ECCB;
  --yellow: #EAC24A;        /* ponctuation : mot « croître », badge, point */
  --card: #FFFFFF;

  --radius: 999px;          /* boutons et pilules */
  --radius-card: 24px;
  --radius-figure: 32px;

  --px: 24px;
  --py: 88px;
  --nav-h: 84px;

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (min-width: 768px) { :root { --px: 48px; --py: 120px; } }
@media (min-width: 1024px) { :root { --px: 96px; --py: 152px; } }
@media (min-width: 1280px) { :root { --px: 128px; } }

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }

.container {
  width: 100%;
  max-width: 1536px;
  margin-inline: auto;
  padding-inline: var(--px);
}
.section { padding-block: var(--py); }
.section--white { background: var(--card); }
.section--dark { background: var(--dark); color: var(--dark-fg); }
.section--tight-top { padding-top: 0; }

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-text);
  margin-bottom: 1.5rem;
}
.section--dark .eyebrow { color: var(--primary); }
.h2 { font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem); line-height: 1.05; max-width: 44rem; text-wrap: balance; }
.section--dark .h2 { color: #fff; }
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--body); max-width: 36rem; }
.section--dark .lead { color: var(--dark-muted); }
.section-head { margin-bottom: 4rem; }
@media (min-width: 1024px) { .section-head { margin-bottom: 4.5rem; } }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font: 600 0.9375rem/1 var(--sans);
  text-decoration: none;
  min-height: 50px;
  padding: 0 1.625rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--primary { background: var(--primary); color: var(--primary-fg); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--outline { border-color: var(--fg); color: var(--fg); font-weight: 500; background: transparent; }
.btn--outline:hover { background: var(--fg); color: #fff; }
.btn--lg { min-height: 54px; padding: 0 1.875rem; font-size: 1rem; }
.btn--sm { min-height: 44px; padding: 0 1.25rem; font-size: 0.875rem; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* Navbar : transparente sur le hero, translucide après défilement */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  color: #fff;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  color: var(--fg);
  background: rgba(243, 239, 230, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo span { color: var(--primary); }
.nav.is-scrolled .logo span, .footer .logo span { color: var(--green-text); }
.nav__links { display: none; gap: 2.25rem; }
.nav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--dark-muted);
  transition: color .2s ease;
}
.nav__links a:hover { color: #fff; }
.nav.is-scrolled .nav__links a { color: var(--muted); }
.nav.is-scrolled .nav__links a:hover { color: var(--fg); }
.nav__right { display: flex; align-items: center; gap: 1.25rem; }
@media (min-width: 900px) { .nav__links { display: flex; } }

.social { display: flex; align-items: center; gap: 0.75rem; }
.social a { display: inline-flex; color: var(--dark-muted); transition: color .2s ease; }
.nav.is-scrolled .social a, .footer .social a { color: var(--green-text); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social a.is-linkedin:hover { color: #0A66C2 !important; }
.social a.is-substack:hover { color: #FF6719 !important; }
@media (max-width: 479px) { .nav .social { display: none; } }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--dark);
  color: var(--dark-fg);
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__art {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  pointer-events: none;
  animation: drift 70s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-24px, 16px); }
}
@media (prefers-reduced-motion: reduce) { .hero__art { animation: none; } }
.hero__content { position: relative; padding-block: 96px 128px; }
.hero h1 {
  font-size: clamp(2.875rem, 1.5rem + 4.2vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 62rem;
  color: #fff;
  text-wrap: balance;
}
.hero h1 em { color: var(--yellow); }
.hero__sub {
  margin-top: 2rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--dark-muted);
  max-width: 34rem;
}
.hero__cta { margin-top: 3rem; }

/* Qui on accompagne */
.who { display: grid; gap: 2.5rem; }
.who__intro { margin-top: 1.5rem; }
.signals { margin-top: 0.5rem; }
.signals li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-block: 1.25rem;
  border-top: 1px solid var(--border);
}
.signals li:last-child { border-bottom: 1px solid var(--border); }
.signals__num { font-family: var(--serif); font-size: 1.125rem; color: var(--green-text); }
.signals__text { font-size: 1.0625rem; color: var(--fg); }
.signals__text strong { font-weight: 500; }
.signals__text span { display: block; color: var(--muted); font-size: 0.9375rem; margin-top: 0.125rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 2rem; }
.pill {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg);
}
@media (min-width: 1024px) {
  .who { grid-template-columns: 5fr 6fr; gap: 6rem; align-items: start; }
}

/* Cartes */
.card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 2rem;
}
@media (min-width: 1024px) { .card { padding: 2.75rem; } }
.card--green { background: var(--tint-green); }
.card--sand { background: var(--tint-sand); }
.card--bg { background: var(--bg); }
.card h3 { font-size: 1.875rem; line-height: 1.1; letter-spacing: -0.01em; }
.card__desc { margin-top: 0.875rem; color: var(--muted); }
.card--sand .card__desc { color: #5E5440; }
.card--green .card__desc { color: #4C5F55; }

.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.grid-2 { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }

.dash-list { display: flex; flex-direction: column; gap: 0.625rem; }
.dash-list li {
  position: relative;
  padding-left: 1.375rem;
  font-size: 0.9375rem;
}
.dash-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 0.625rem; height: 1.5px;
  background: currentColor;
  opacity: 0.4;
}

/* Expertise */
.pillar { display: flex; flex-direction: column; }
.pillar__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.125rem;
}
.pillar h3 { margin-top: 2rem; }
.pillar .dash-list { margin-top: 2rem; }
.pillar__result {
  margin-top: auto;
  padding-top: 2.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3125rem;
  line-height: 1.3;
  color: var(--dark);
}
.card:not(.card--green):not(.card--sand) .pillar__result { color: var(--green-text); }

/* Formats */
.format { display: flex; flex-direction: column; gap: 3.5rem; }
.format__num {
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--green-text);
}
.format .card__desc { max-width: 30rem; }

/* Pourquoi nous */
.why { display: grid; gap: 3rem; align-items: center; }
.why__text .h2 { margin-bottom: 2rem; }
.why__text p { color: var(--body); max-width: 36rem; font-size: 1.0625rem; }
.why__text p + p { margin-top: 1.25rem; }
.why__sig {
  margin-top: 1.75rem !important;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--fg) !important;
}
.why__sig span { color: var(--muted); }
.why__img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 0;
}
.why__img img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
@media (min-width: 1024px) {
  .why { grid-template-columns: 480px 1fr; gap: 6rem; }
}

/* Tarifs */
.pricing { display: grid; gap: 1.75rem; }
@media (min-width: 1024px) { .pricing { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.price-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr auto;
  align-content: start;
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1024px) {
    .pricing { grid-template-rows: repeat(7, auto); }
    .price-card { grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; }
  }
}
.price-card h3 { font-size: 1.625rem; line-height: 1.15; }
.price-card__kicker { font-size: 0.875rem; color: var(--muted); margin-top: 0.375rem; min-height: 1.5em; }
.price-card__price {
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.price-card__price .cur { font-size: 1.75rem; margin-left: 0.25rem; }
.price-card__price small { font-family: var(--sans); font-size: 0.9375rem; color: var(--muted); letter-spacing: 0; margin-left: 0.375rem; }
.price-card__commit { margin-top: 1.25rem; font-size: 0.9375rem; font-weight: 500; }
.price-card__desc { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--muted); }
.price-card .dash-list { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.price-card .btn { margin-top: 2rem; width: 100%; }

.price-card--dark { background: var(--dark); color: var(--dark-fg); }
.price-card--dark h3, .price-card--dark .price-card__price { color: #fff; }
.price-card--dark .price-card__kicker,
.price-card--dark .price-card__desc,
.price-card--dark .price-card__price small { color: var(--dark-muted); }
.price-card--dark .dash-list { border-top-color: rgba(233, 242, 236, 0.16); }
.badge {
  position: absolute;
  top: 0;
  left: 2rem;
  transform: translateY(-50%);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4375rem 0.875rem;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--fg);
}
@media (min-width: 1024px) { .badge { left: 2.75rem; } }

/* Contact */
.contact { position: relative; overflow: hidden; }
.contact__art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contact .container { position: relative; }
.contact__frame {
  margin-top: 4rem;
  background: var(--card);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.contact__frame iframe { display: block; width: 100%; border: 0; }

/* Footer */
.footer { padding-block: 3rem; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.footer__links { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.footer__links a.text { font-size: 0.9375rem; color: var(--muted); text-decoration: none; }
.footer__links a.text:hover { color: var(--fg); }
.footer__copy { font-size: 0.875rem; color: var(--muted); width: 100%; }
@media (min-width: 768px) { .footer__copy { width: auto; } }

/* Sous-page (navbar toujours en mode « scrolled ») */
.page-head { padding-top: calc(var(--nav-h) + var(--py)); }
.page-head h1 { font-size: clamp(2.5rem, 1.5rem + 3.2vw, 4.25rem); line-height: 1.05; max-width: 44rem; }
.page-head .lead { margin-top: 1.5rem; }

/* Mouvement */
.hero__line {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: draw 2.4s cubic-bezier(.2,.7,.2,1) .2s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__dot { transform-origin: center; transform-box: fill-box; animation: pulse 4s ease-in-out 2.2s infinite; opacity: 0; }
@keyframes pulse {
  0% { opacity: 0; transform: scale(.6); }
  10%, 100% { opacity: 1; }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.js .hero__content > * { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero__content > :nth-child(1) { animation-delay: .1s; }
.js .hero__content > :nth-child(2) { animation-delay: .25s; }
.js .hero__content > :nth-child(3) { animation-delay: .45s; }
.js .hero__content > :nth-child(4) { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .hero__content.reveal { opacity: 1; transform: none; }

.card, .pill { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.grid-3 .card:hover, .grid-2 .card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(14,42,32,.35); }
.btn--primary:hover { transform: translateY(-1px); }
.btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }

/* Apparition en cascade à l'intérieur des grilles */
.js .reveal .stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible .stagger > * { opacity: 1; transform: none; }
.js .reveal.is-visible .stagger > :nth-child(1) { transition-delay: .1s; }
.js .reveal.is-visible .stagger > :nth-child(2) { transition-delay: .2s; }
.js .reveal.is-visible .stagger > :nth-child(3) { transition-delay: .3s; }
.js .reveal.is-visible .stagger > :nth-child(4) { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .hero__line { animation: none; stroke-dashoffset: 0; }
  .hero__dot { animation: none; opacity: 1; }
  .js .hero__content > * { animation: none; opacity: 1; transform: none; }
  .js .reveal .stagger > * { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}

/* Apparition */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Utilitaires */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.is-subpage .contact__frame { margin-top: 3.5rem; }
