/* La Poule House — site. Palette et typo de l'app (src/theme). */
:root {
  --bg: #fff8e7;
  --bg-dark: #f3e9d2;
  --surface: #ffffff;
  --text: #4a3728;
  --muted: #7a6250;
  --yellow: #f4c430;
  --yellow-dark: #d9a400;
  --yellow-soft: #fcf0c2;
  --green: #3d6b2e;
  --green-soft: #e3f0dd;
  --red: #b5442d;
  --red-soft: #fbebe6;
  --sky: #2f5c8a;
  --sky-soft: #dde8f3;
  --line: #e9dfc8;
  --sky-top: #bfe3f7;
  --sky-bottom: #ffe7b3;
  --hill: #a9d88f;
  --hill-far: #8cc97a;
  --sun: #ffe082;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1711;
    --bg-dark: #2c2219;
    --surface: #2c2219;
    --text: #fff8e7;
    --muted: #e9dfc8;
    --yellow-soft: #3a2d12;
    --green-soft: #22301d;
    --red-soft: #3a2420;
    --sky-soft: #1e2a3a;
    --line: #3e3128;
    --sky-top: #16243a;
    --sky-bottom: #3a2d12;
    --hill: #2e4a26;
    --hill-far: #3d6b2e;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Nunito,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
img,
svg {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--yellow);
  color: #4a3728;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  box-shadow: 0 6px 0 var(--yellow-dark);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--yellow-dark);
}
.button.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 2px var(--line);
}
.button.ghost:active {
  transform: none;
}

/* ---------- Navigation ---------- */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.nav nav {
  display: flex;
  gap: 22px;
  font-weight: 700;
  font-size: 15px;
}
.nav nav a {
  text-decoration: none;
  opacity: 0.85;
}
@media (max-width: 640px) {
  .nav nav {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
  padding: 120px 0 0;
  min-height: 560px;
  color: #4a3728;
}
@media (prefers-color-scheme: dark) {
  .hero {
    color: #fff8e7;
  }
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: end;
}
.hero-copy {
  padding-bottom: 150px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  max-width: 15ch;
}
.hero p.lead {
  margin-top: 18px;
  font-size: clamp(17px, 2vw, 21px);
  max-width: 34ch;
  opacity: 0.9;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero .stores {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.75;
}
.sun {
  position: absolute;
  right: 12%;
  top: 70px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 28px rgba(255, 224, 130, 0.35);
}
.hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 260px;
  pointer-events: none;
}
.hills .far {
  position: absolute;
  left: -20%;
  bottom: 70px;
  width: 90%;
  height: 260px;
  border-radius: 50%;
  background: var(--hill-far);
}
.hills .near {
  position: absolute;
  right: -25%;
  bottom: -40px;
  width: 110%;
  height: 300px;
  border-radius: 50%;
  background: var(--hill);
}
.yard {
  position: relative;
  height: 320px;
}
.yard .coop {
  position: absolute;
  right: 8%;
  bottom: 42px;
  width: 190px;
}
.yard .hen {
  position: absolute;
  bottom: 30px;
}
.yard .hen.h1 {
  left: 6%;
  width: 78px;
  bottom: 24px;
}
.yard .hen.h2 {
  left: 30%;
  width: 62px;
  bottom: 54px;
}
.yard .hen.h3 {
  left: 48%;
  width: 70px;
  bottom: 18px;
}
@media (prefers-reduced-motion: no-preference) {
  .yard .hen {
    animation: peck 3.2s ease-in-out infinite;
    transform-origin: 60% 80%;
  }
  .yard .hen.h2 {
    animation-delay: 1.1s;
  }
  .yard .hen.h3 {
    animation-delay: 2s;
  }
  @keyframes peck {
    0%,
    78%,
    100% {
      transform: rotate(0deg);
    }
    84% {
      transform: rotate(12deg);
    }
    90% {
      transform: rotate(0deg);
    }
    95% {
      transform: rotate(10deg);
    }
  }
}
@media (max-width: 820px) {
  .hero {
    padding-top: 96px;
    min-height: 0;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-copy {
    padding-bottom: 32px;
  }
  .sun {
    width: 96px;
    height: 96px;
    right: 8%;
    top: 84px;
  }
  .yard {
    height: 250px;
  }
  .yard .coop {
    width: 150px;
    right: 4%;
  }
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
}
.section-head p {
  margin-top: 12px;
  font-size: 18px;
  color: var(--muted);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -70px;
  position: relative;
  z-index: 1;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 10px 30px rgba(74, 55, 40, 0.08);
}
.pillar .icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--yellow-soft);
  display: grid;
  place-items: center;
}
.pillar .icon svg {
  width: 30px;
  height: 30px;
}
.pillar h3 {
  font-size: 17px;
}
.pillar p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}
@media (max-width: 820px) {
  .pillars {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
}

/* Captures */
.shots .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
}
.shots .row:nth-child(even) .phone-col {
  order: -1;
}
.shots h3 {
  font-size: clamp(24px, 3vw, 32px);
}
.shots .row p {
  margin-top: 12px;
  font-size: 18px;
  color: var(--muted);
  max-width: 40ch;
}
.shots ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.shots li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
}
.shots li::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-soft);
}
.phone-col {
  display: flex;
  justify-content: center;
}
.phone {
  width: min(300px, 78vw);
  aspect-ratio: 1206 / 2622;
  border-radius: 46px;
  padding: 10px;
  background: #2b2118;
  box-shadow:
    0 30px 60px rgba(74, 55, 40, 0.22),
    inset 0 0 0 2px #4a3d33;
  position: relative;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
}
.phone::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  border-radius: 999px;
  background: #000;
}
.phone.tilt {
  transform: rotate(-3deg);
}
@media (max-width: 820px) {
  .shots .row {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .shots .row:nth-child(even) .phone-col {
    order: 0;
  }
  .phone.tilt {
    transform: none;
  }
}

/* Grille de fonctions */
.features {
  background: var(--bg-dark);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature .art {
  height: 84px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 12px;
}
.feature .art svg {
  height: 84px;
  width: auto;
}
.feature h3 {
  font-size: 18px;
}
.feature p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}
.feature .tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky);
  background: var(--sky-soft);
  padding: 3px 8px;
  border-radius: 999px;
}
@media (max-width: 820px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Tarifs */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 760px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.plan.premium {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px var(--yellow-soft);
}
.plan .price {
  font-size: 34px;
  font-weight: 800;
  margin-top: 6px;
}
.plan .price small {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}
.plan ul {
  margin: 14px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}
.plan li {
  margin: 4px 0;
}
@media (max-width: 640px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* Bandeau final */
.cta {
  background: linear-gradient(180deg, var(--sky-bottom), var(--bg));
  text-align: center;
}
.cta .mascot {
  width: 150px;
  margin: 0 auto 8px;
}
.cta h2 {
  font-size: clamp(26px, 3.4vw, 38px);
}
.cta p {
  margin: 12px auto 24px;
  max-width: 44ch;
  color: var(--muted);
  font-size: 18px;
}

/* Pied de page */
footer {
  padding: 28px 0 48px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Pages simples (cgu, confidentialité, invitation) ---------- */
main.doc {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}
main.doc header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 24px;
}
main.doc header.site img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
main.doc header.site a {
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
}
main.doc h1 {
  font-size: 30px;
  margin-bottom: 8px;
}
main.doc h2 {
  font-size: 20px;
  margin: 28px 0 8px;
}
main.doc h3 {
  font-size: 17px;
  margin: 20px 0 6px;
}
main.doc p,
main.doc li {
  margin: 0 0 12px;
}
main.doc .lead {
  color: var(--muted);
  font-size: 18px;
}
main.doc .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
}
main.doc footer {
  margin-top: 48px;
  padding: 16px 0 0;
}
