/* ══════════════════════════════════════════
   MONPETITJOB.CH · SITE VITRINE
   ══════════════════════════════════════════ */

:root {
  --cream: #f7f3e8;          /* fond du logo */
  --cream-soft: #efe9da;
  --ink: #2b2620;            /* noir chaud du wordmark */
  --body: #5b544a;
  --muted: #968d7f;
  --green: #4cb673;          /* vert montagnes */
  --green-deep: #2e8f55;
  --green-pale: #dff0e2;
  --sun: #f5b13d;            /* jaune soleil */
  --sun-pale: #fdeecd;
  --white: #fffdf8;
  --line: #e6dfd0;
  --radius: 22px;
  --shadow: 0 14px 40px -18px rgba(43, 38, 32, 0.22);
  --font-display: "Nunito", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; }

.container { width: min(1080px, 90%); margin: 0 auto; }
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-soft { background: linear-gradient(180deg, var(--cream), #f1ecdd, var(--cream)); }

/* ══ BOUTONS ══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 800;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(76, 182, 115, 0.65);
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-ghost { background: var(--white); color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: #d4cab4; transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 15px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-block { width: 100%; }

/* ══ NAV ══ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 232, 0.85);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 223, 208, 0.6);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 44px; width: auto; }

/* ══ HERO ══ */
.hero { position: relative; padding: clamp(64px, 9vw, 120px) 0 0; text-align: center; }
.hero-inner { max-width: 780px; position: relative; z-index: 2; padding-bottom: clamp(80px, 11vw, 150px); }
.hero-badge {
  display: inline-block;
  background: var(--sun-pale); color: #8a6519;
  border: 1.5px solid #f0d9a4;
  font-size: 13.5px; font-weight: 700;
  padding: 8px 18px; border-radius: 999px;
  margin-bottom: 26px;
}
h1 {
  font-size: clamp(36px, 5.6vw, 60px);
  font-weight: 900;
  margin-bottom: 22px;
}
h1 em { font-style: normal; color: var(--green-deep); position: relative; white-space: nowrap; }
h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 0.32em; background: var(--sun-pale); z-index: -1; border-radius: 4px;
}
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--body); max-width: 56ch; margin: 0 auto 30px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.hero-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip {
  background: var(--white); border: 1.5px solid var(--line);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.hero-hills { position: absolute; left: 0; right: 0; bottom: -2px; line-height: 0; }
.hero-hills svg { width: 100%; height: clamp(70px, 10vw, 150px); }

/* ══ PHOTOS ══ */
.photos { background: var(--green-pale); padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .photos-grid { grid-template-columns: 1fr; } }
.photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.photo:nth-child(1) { transform: rotate(-1.4deg); }
.photo:nth-child(2) { transform: rotate(0.8deg) translateY(10px); }
.photo:nth-child(3) { transform: rotate(1.6deg); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(255, 253, 248, 0.92);
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  padding: 7px 14px; border-radius: 999px;
}
.photos-note {
  text-align: center; margin-top: 36px;
  font-size: 15.5px; color: var(--body); font-weight: 500;
  max-width: 56ch;
}

/* ══ SECTIONS ══ */
.section-title { font-size: clamp(28px, 4vw, 42px); text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.section-title em { font-style: normal; color: var(--green-deep); }

/* cartes promesses */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px;
  box-shadow: 0 8px 26px -16px rgba(43, 38, 32, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  text-align: center;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-ico {
  width: 64px; height: 64px; margin: 0 auto 18px;
  background: var(--green-pale); border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.card:nth-child(2) .card-ico { background: var(--sun-pale); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--body); }

/* étapes */
.steps { display: flex; align-items: stretch; gap: 14px; justify-content: center; }
@media (max-width: 820px) { .steps { flex-direction: column; align-items: center; } .step-arrow { transform: rotate(90deg); } }
.step-item { flex: 1; max-width: 300px; text-align: center; padding: 10px; }
.step-num {
  width: 46px; height: 46px; margin: 0 auto 16px;
  background: var(--ink); color: var(--cream);
  font-family: var(--font-display); font-weight: 900; font-size: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step-item h3 { font-size: 19px; margin-bottom: 8px; }
.step-item p { font-size: 14.5px; color: var(--body); }
.step-arrow { display: flex; align-items: center; font-size: 26px; color: var(--green); font-weight: 700; }

/* ══ CONTACT ══ */
.contact-wrap { max-width: 680px; }
.contact-head { text-align: center; }
.contact-sub { text-align: center; color: var(--body); margin: -24px 0 36px; font-size: 16.5px; }
.contact-form {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 26px;
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 14.5px; margin-bottom: 7px;
}
.form-field .optional { font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: 12.5px; }
.form-field input, .form-field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #b3a993; }
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--green); background: var(--white);
  box-shadow: 0 0 0 4px rgba(76, 182, 115, 0.15);
}
.form-error { color: #c43d3d; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.form-privacy { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; }
.form-privacy a { color: var(--green-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.form-success {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: 26px; padding: 56px 36px;
  text-align: center; box-shadow: var(--shadow);
}
.fs-ico { font-size: 44px; margin-bottom: 14px; }
.form-success h3 { font-size: 24px; margin-bottom: 8px; }
.form-success p { color: var(--body); }
.fs-insta { margin-top: 26px; padding-top: 24px; border-top: 1.5px solid var(--line); }
.fs-insta p { font-size: 14.5px; margin-bottom: 14px; }
.btn-insta {
  padding: 14px 28px; font-size: 16px; color: #fff;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 10px 26px -10px rgba(204, 35, 102, 0.55);
}
.btn-insta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(204, 35, 102, 0.7); }
.btn-insta svg { width: 20px; height: 20px; }

/* ══ FOOTER ══ */
.footer { background: var(--ink); color: rgba(247, 243, 232, 0.75); padding: 52px 0; }
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo { height: 64px; width: auto; border-radius: 14px; background: var(--cream); padding: 8px 16px; }
.footer-line { font-size: 14.5px; max-width: 52ch; }
.footer-line strong { color: var(--cream); }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 14px; font-weight: 600; }
.footer-links a { color: var(--sun); }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { font-size: 12px; color: rgba(247, 243, 232, 0.45); letter-spacing: 0.04em; }

/* ══ PAGES LÉGALES ══ */
.legal-page { max-width: 760px; padding: clamp(48px, 7vw, 90px) 0; }
.legal-page h1 { font-size: clamp(30px, 4.5vw, 42px); margin-bottom: 10px; }
.legal-updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal-page h2 { font-size: 21px; margin: 34px 0 10px; }
.legal-page p, .legal-page li { font-size: 15.5px; color: var(--body); margin-bottom: 10px; }
.legal-page ul { padding-left: 22px; }
.legal-page a { color: var(--green-deep); font-weight: 600; }
.back-home { display: inline-block; margin-bottom: 28px; font-weight: 700; color: var(--green-deep); }

/* ══ REVEAL ══ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
