/* La Divine Ortie — pages atelier relaxation */
:root {
  --cream: #fbf8f0;
  --cream-2: #f6f0dd;
  --green-900: #2f4a2c;
  --green-800: #3d5937;
  --green-700: #566e4e;
  --green-600: #6f8862;
  --green-400: #8fa67f;
  --line: #b9c2ae;
  --yellow: #e6ad0a;
  --yellow-soft: #f6df7a;
  --text: #3e4b3a;
  --muted: #6b7564;
  --radius: 22px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --script: "Caveat", "Segoe Print", cursive;
  --sans: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text);
  background: #c9c88a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0px, 3vw, 40px);
  position: relative;
  overflow-x: hidden;
}
/* fond flouté (lumière dorée + verdure) */
body::before {
  content: "";
  position: fixed;
  inset: -60px;
  background: url("meditation.jpg") center / cover no-repeat;
  filter: blur(38px) saturate(1.15) brightness(1.05);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(255, 248, 225, .35), rgba(120, 140, 60, .18));
  z-index: -1;
}

.card {
  position: relative;
  width: 100%;
  max-width: 1200px;
  min-height: min(780px, calc(100vh - 80px));
  display: grid;
  grid-template-columns: 46% 54%;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(47, 74, 44, .45), 0 0 0 1px rgba(255, 255, 255, .6) inset;
}

.photo {
  position: relative;
  background: url("meditation.jpg") 30% center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, #000 72%, transparent 100%);
          mask-image: linear-gradient(to right, #000 72%, transparent 100%);
  min-height: 100%;
}

.content {
  position: relative;
  padding: 30px clamp(28px, 4vw, 56px) 30px clamp(12px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
}

.logo {
  align-self: flex-end;
  width: 118px;
  height: auto;
  mix-blend-mode: multiply;
  margin: -6px -10px 4px 0;
}

.ortie {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 116px;
  height: auto;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 35%), linear-gradient(to bottom, transparent, #000 12%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 35%), linear-gradient(to bottom, transparent, #000 12%);
          mask-composite: intersect;
  z-index: -1;
  opacity: .95;
}

/* ---------- Titres ---------- */
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  color: var(--green-800);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.t-serif { display: block; font-size: clamp(2rem, 3.6vw, 3.15rem); }
.t-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 10px 0 4px;
}
.t-script {
  font-family: var(--script);
  font-weight: 700;
  color: var(--green-900);
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  line-height: 1;
}
.t-yellow {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--yellow);
  font-size: clamp(1.9rem, 3.8vw, 3.25rem);
  line-height: 1.08;
}

/* surlignage coup de pinceau */
.brush {
  position: relative;
  display: inline-block;
  padding: 0 .35em .05em;
  z-index: 0;
}
.brush::before {
  content: "";
  position: absolute;
  inset: 12% -2% 4% -2%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 50' preserveAspectRatio='none'%3E%3Cpath d='M7 12C40 5 110 3 194 7c4 1 5 3 4 6-2 9 0 19-3 28-1 3-3 4-6 4-58 2-120 3-181-1-3 0-5-2-5-5 1-8-1-15 1-23 0-2 2-4 4-4z' fill='%23f6df7a'/%3E%3Cpath d='M20 9c50-3 120-3 170 0' stroke='%23f2d35a' stroke-width='2' fill='none' opacity='.6'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  z-index: -1;
  transform: rotate(-1.2deg);
}

.pill {
  display: inline-block;
  font-family: var(--script);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  color: #fff;
  padding: .05em .55em .12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 50' preserveAspectRatio='none'%3E%3Cpath d='M9 8C50 3 140 2 192 6c5 1 7 4 6 8-1 8 1 17-2 25-1 4-4 6-8 6-60 2-118 3-176 0-4 0-7-3-7-7 0-7-1-14 0-22 0-4 3-7 6-8z' fill='%237d9a6b'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: rotate(-3deg);
  line-height: 1.15;
}

/* petits traits « étincelles » */
.spark {
  display: inline-block;
  width: 18px;
  height: 30px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 30'%3E%3Cg stroke='%232f4a2c' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M14 4 7 9M15 15H4M14 26l-7-5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.spark.r { transform: scaleX(-1); }

/* séparateur feuilles */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(380px, 80%);
  margin: 22px auto 18px;
  color: var(--green-800);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #e2c766 30%, #e2c766);
}
.divider::after { background: linear-gradient(270deg, transparent, #e2c766 30%, #e2c766); }
.divider svg { width: 34px; height: 30px; flex: none; }
.divider.heart { width: min(200px, 50%); margin: 20px auto 10px; color: var(--yellow); }
.divider.heart svg { width: 18px; height: 16px; }

.lead {
  margin: 0 auto 22px;
  max-width: 34em;
  font-size: clamp(1rem, 1.35vw, 1.13rem);
  line-height: 1.45;
  color: #4a5545;
  font-weight: 600;
}

/* ---------- Formulaire ---------- */
form { width: min(520px, 100%); margin: 0 auto; }
.field {
  position: relative;
  display: block;
  margin-bottom: 16px;
}
.field svg {
  position: absolute;
  left: 22px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  color: var(--green-700);
  pointer-events: none;
}
.field input {
  width: 100%;
  height: 62px;
  padding: 0 20px 0 62px;
  border: 1.5px solid #8b9a7f;
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
  font: 600 1.08rem var(--sans);
  color: var(--green-900);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input::placeholder { color: #7b8772; opacity: 1; font-weight: 600; }
.field input:focus {
  outline: none;
  border-color: var(--green-700);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(86, 110, 78, .16);
}
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 74px;
  padding: 10px 28px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--green-700);
  color: #fff;
  font: 700 clamp(1.2rem, 1.9vw, 1.55rem) var(--serif);
  font-variation-settings: "SOFT" 100;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(47, 74, 44, .7);
  transition: background .15s, transform .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:hover { background: var(--green-800); transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(47, 74, 44, .8); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn svg { width: 30px; height: 30px; flex: none; }
.btn .arrow { width: 26px; height: 26px; }

.legal {
  margin: 12px auto 0;
  max-width: 30em;
  font-size: .78rem;
  line-height: 1.4;
  color: var(--muted);
}
.legal a { color: inherit; }
.error {
  display: none;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fbe9e3;
  color: #8a3b22;
  font-size: .92rem;
  font-weight: 600;
}
.error.show { display: block; }

.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--script);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  color: var(--green-900);
  margin-top: 4px;
}
.tagline::before, .tagline::after { content: ""; width: 24px; height: 1.5px; background: var(--green-700); }

.spacer { flex: 1 1 auto; min-height: 8px; }

/* ---------- Page merci ---------- */
.merci h1 .t-serif { font-size: clamp(1.9rem, 3.6vw, 3.05rem); }
.merci .t-script { font-size: clamp(2.3rem, 4.4vw, 3.7rem); }
.merci .t-yellow { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.merci .divider { margin: 16px auto 14px; }

.mail-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0 auto;
}
.mail-circle {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle, #eaecd4 0 60%, #f2f1dd 61%);
  display: grid;
  place-items: center;
  color: var(--green-900);
}
.mail-circle svg { width: 50px; height: 50px; }
.mail-text {
  text-align: left;
  font-family: var(--serif);
  font-weight: 700;
  font-variation-settings: "SOFT" 100;
  color: var(--green-900);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.18;
}
.mail-text .t-row { justify-content: flex-start; margin: 4px 0 0 -26px; }
.mail-text .t-script { font-size: clamp(2rem, 3.4vw, 2.75rem); }

.fallback {
  margin: 14px auto 0;
  font-size: .9rem;
  color: var(--muted);
}
.fallback a { color: var(--green-700); font-weight: 700; }

.follow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 4px auto 14px;
  font-family: var(--serif);
  font-weight: 700;
  font-variation-settings: "SOFT" 100;
  color: var(--green-900);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.25;
  text-align: left;
}
.follow svg { width: 42px; height: 42px; flex: none; color: var(--green-700); }

.socials-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.socials { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socials a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: transform .15s;
}
.socials a:hover { transform: translateY(-3px); }
.socials a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 8px; }
.socials svg { width: 54px; height: 54px; }
.socials span {
  font: 700 .92rem/1 "Nunito Sans", sans-serif;
  letter-spacing: .03em;
  color: var(--green-900);
  padding: 7px 10px 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 50' preserveAspectRatio='none'%3E%3Cpath d='M6 9C50 4 140 3 194 7c4 1 6 4 5 8-1 8 1 16-2 24-1 4-4 6-8 6-60 2-120 3-180 0-4 0-6-3-7-7 0-7-1-14 0-21 0-4 2-7 4-7z' fill='%23f6e398'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.side-note {
  font-family: var(--script);
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  color: var(--green-900);
  transform: rotate(-9deg);
  line-height: 1.05;
  max-width: 7em;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  body { padding: 0; align-items: stretch; }
  .card {
    grid-template-columns: 1fr;
    border-radius: 0;
    min-height: 100vh;
  }
  .photo {
    height: 34vh;
    min-height: 220px;
    background-position: 40% 35%;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  }
  .content { padding: 0 16px 28px; margin-top: -40px; }
  .logo { align-self: center; width: 92px; margin: 0 0 6px; }
  .ortie { width: 70px; opacity: .55; }
  .field input { height: 56px; }
  .btn { min-height: 64px; font-size: 1.12rem; gap: 10px; padding: 10px 18px; }
  .btn svg { width: 24px; height: 24px; }
  .ortie { display: none; }
  .mail-block { gap: 14px; }
  .mail-circle { width: 76px; height: 76px; }
  .mail-circle svg { width: 38px; height: 38px; }
  .mail-text .t-row { margin-left: -18px; }
  .socials svg { width: 52px; height: 52px; }
}
@media (max-width: 420px) {
  .spark { width: 14px; height: 24px; }
  .follow svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
