/* P’tiTemps — Landing page et téléchargement du guide gratuit. */
.ebook-page { background: var(--cream); }
.ebook-header { position: relative; background: rgba(255, 255, 255, .96); }
.header-reassurance { margin: 0 0 0 auto; color: var(--green-dark); font-size: .82rem; font-weight: 800; }
.header-reassurance span { margin-right: 7px; color: var(--green); }

.ebook-hero { overflow: hidden; padding-top: 72px; background: radial-gradient(circle at 80% 18%, rgba(242, 180, 65, .18), transparent 25%), var(--cream); }
.ebook-hero-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr); align-items: center; gap: 72px; }
.ebook-copy h1 { max-width: 680px; font-size: clamp(2.75rem, 5vw, 4.6rem); }
.ebook-benefits { margin-bottom: 2rem; }

.ebook-form-card { max-width: 720px; padding: 26px; border: 1px solid #cfe4de; border-radius: 24px; background: white; box-shadow: 0 18px 50px rgba(27, 86, 74, .12); }
.form-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.form-heading h2 { margin-bottom: .25rem; font-size: 1.45rem; letter-spacing: -.02em; }
.form-heading p { margin: 0; font-size: .9rem; }
.form-step { flex: 0 0 auto; padding: .3rem .65rem; border-radius: 999px; color: #765105; background: #fff0ca; font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.ebook-form .form-row { display: grid; grid-template-columns: .75fr 1.25fr; gap: 14px; }
.field-group { display: flex; flex-direction: column; }
.field-group label { margin-bottom: 6px; color: var(--ink); font-size: .82rem; font-weight: 800; }
.field-group label span { color: var(--text); font-size: .72rem; font-weight: 500; }
.field-group input { width: 100%; min-height: 51px; padding: 0 14px; border: 1px solid #bfd4ce; border-radius: 12px; color: var(--ink); background: #fbfdfc; font: inherit; outline: none; }
.field-group input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 142, 121, .13); }
.field-group input[aria-invalid="true"] { border-color: #ad4f42; }
.consent-field { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; color: #52635f; cursor: pointer; font-size: .76rem; line-height: 1.45; }
.consent-field input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--green); }
.field-error { display: block; min-height: 1.1em; margin-top: 4px; color: #9a3f35; font-size: .72rem; font-weight: 700; }
.ebook-submit { width: 100%; margin-top: 10px; border: 0; cursor: pointer; font: inherit; }
.ebook-submit:disabled { cursor: wait; opacity: .75; }
.form-trust { display: flex; justify-content: center; gap: 16px; margin: 12px 0 0; color: #647570; font-size: .7rem; font-weight: 750; }
.form-trust span::before { content: "✓"; margin-right: 4px; color: var(--green); }
.form-status { min-height: 1.1em; margin: 5px 0 0; color: var(--green-dark); font-size: .75rem; font-weight: 700; text-align: center; }

.ebook-visual { position: relative; isolation: isolate; text-align: center; }
.ebook-visual > img { position: relative; z-index: 2; width: min(100%, 480px); margin: 0 auto; border: 10px solid white; border-radius: 30px; box-shadow: 0 28px 70px rgba(43, 75, 68, .2); transform: rotate(1.5deg); }
.ebook-glow { position: absolute; z-index: 0; inset: 10% -8% 22%; border-radius: 50%; background: var(--green-soft); filter: blur(3px); }
.ebook-badge { position: absolute; z-index: 3; top: 7%; right: -2%; padding: 12px 16px; border-radius: 15px; color: var(--ink); background: white; box-shadow: var(--shadow); font-size: .78rem; }
.ebook-badge strong { display: inline-block; margin-right: 5px; color: var(--green); }
.ebook-visual > p { position: relative; z-index: 3; max-width: 360px; margin: 22px auto 0; color: #52635f; font-size: .84rem; }
.ebook-visual > p strong { color: var(--ink); }

.ebook-proof { background: white; }
.ebook-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ebook-feature-grid article { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfdfc; }
.feature-number { display: inline-grid; width: 42px; height: 42px; place-items: center; margin-bottom: 18px; border-radius: 12px; color: var(--green-dark); background: var(--green-soft); font-size: .75rem; font-weight: 900; }
.ebook-feature-grid h3 { margin-bottom: .6rem; }
.ebook-feature-grid p { margin: 0; font-size: .92rem; }

.ebook-final { padding-top: 70px; }
.ebook-final-card { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 38px 42px; border: 1px solid #cfe4de; border-left: 8px solid var(--green-dark); border-radius: 24px; background: var(--green-soft); }
.ebook-final-card h2 { margin-bottom: .5rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.ebook-final-card p:last-child { max-width: 650px; margin-bottom: 0; }
.ebook-final-card .btn { flex: 0 0 auto; }

.email-confirmation { padding: 72px 0; background: radial-gradient(circle at 22% 20%, rgba(23, 142, 121, .1), transparent 28%), var(--cream); }
.confirmation-card { display: grid; grid-template-columns: .62fr 1.38fr; overflow: hidden; max-width: 980px; padding: 0; border: 1px solid #cfe4de; border-radius: 28px; background: white; box-shadow: var(--shadow); }
.mail-illustration { position: relative; display: grid; min-height: 620px; place-items: center; overflow: hidden; background: linear-gradient(145deg, #dcefe9, #f1f8f5); }
.mail-illustration::before, .mail-illustration::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.mail-illustration::before { width: 240px; height: 240px; top: -75px; left: -90px; }
.mail-illustration::after { width: 150px; height: 150px; right: -45px; bottom: -35px; }
.mail-envelope { position: relative; width: 190px; height: 128px; border: 7px solid white; border-radius: 19px; background: var(--green); box-shadow: 0 22px 45px rgba(27, 86, 74, .2); }
.mail-envelope::before, .mail-envelope::after { content: ""; position: absolute; top: 13px; width: 104px; height: 7px; border-radius: 999px; background: white; }
.mail-envelope::before { left: 2px; transform: rotate(35deg); transform-origin: left center; }
.mail-envelope::after { right: 2px; transform: rotate(-35deg); transform-origin: right center; }
.mail-check { position: absolute; top: calc(50% - 100px); right: calc(50% - 120px); display: grid; width: 60px; height: 60px; place-items: center; border: 6px solid #e6f4f0; border-radius: 50%; color: white; background: var(--green-dark); font-size: 1.55rem; font-weight: 900; box-shadow: 0 10px 25px rgba(27, 86, 74, .2); }
.confirmation-copy { padding: 52px 52px 46px; }
.confirmation-copy h1 { max-width: 630px; margin-bottom: 1rem; font-size: clamp(2.55rem, 5vw, 3.8rem); }
.no-break { white-space: nowrap; }
.confirmation-copy > .lead { margin-bottom: 1.8rem; font-size: 1.05rem; }
.mail-steps { display: grid; gap: 11px; }
.mail-steps article { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fbfdfc; }
.mail-steps article > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--green-dark); background: var(--green-soft); font-size: .76rem; font-weight: 900; }
.mail-steps h2 { margin-bottom: .25rem; font-size: 1rem; letter-spacing: -.01em; }
.mail-steps p { margin: 0; font-size: .8rem; line-height: 1.5; }
.mail-help { margin: 18px 0 0; color: #60716d; font-size: .78rem; }
.mail-help a { color: var(--green-dark); font-weight: 800; }

.confirmation-pack { background: white; }
.confirmation-pack-card { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 55px; }
.confirmation-pack-visual { padding: 30px; border-radius: 26px; background: var(--green-soft); }
.confirmation-pack-visual img { max-height: 450px; margin: 0 auto; object-fit: contain; }
.confirmation-pack-card h2 { max-width: 620px; }
.pack-secondary-note { margin: 13px 0 0; color: #687873; font-size: .75rem; }

.download-hero { min-height: 660px; display: flex; align-items: center; background: radial-gradient(circle at 20% 20%, rgba(23, 142, 121, .1), transparent 30%), var(--cream); }
.download-card { display: grid; grid-template-columns: .78fr 1.22fr; overflow: hidden; max-width: 940px; padding: 0; border: 1px solid #cfe4de; border-radius: 28px; background: white; box-shadow: var(--shadow); }
.download-visual { display: grid; place-items: center; padding: 42px; background: linear-gradient(145deg, #dcefe9, #f1f8f5); }
.download-visual img { max-height: 470px; border: 7px solid white; border-radius: 20px; box-shadow: 0 18px 45px rgba(27, 86, 74, .16); }
.download-copy { padding: 58px 55px; }
.download-copy h1 { margin-bottom: 1rem; font-size: clamp(2.5rem, 5vw, 3.8rem); }
.download-copy .lead { font-size: 1.04rem; }
.success-icon { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: 20px; border-radius: 50%; color: white; background: var(--green); font-size: 1.5rem; font-weight: 900; box-shadow: 0 10px 24px rgba(23, 142, 121, .22); }
.download-button { width: 100%; }
.download-help { margin: 14px 0 0; font-size: .75rem; text-align: center; }
.download-help a { color: var(--green-dark); font-weight: 800; }

.next-step { background: white; }
.next-step-card { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 55px; }
.next-step-card > div { max-width: 600px; }
.next-step-card img { max-height: 480px; margin: 0 auto; object-fit: contain; }
.ebook-secondary-button { color: var(--green-dark); background: white; }
.ebook-secondary-button:hover { color: white; background: var(--green-dark); }

@media (max-width: 920px) {
  .ebook-hero-grid { grid-template-columns: 1fr; gap: 55px; }
  .ebook-copy { max-width: 760px; margin: 0 auto; }
  .ebook-visual { max-width: 520px; margin: 0 auto; }
  .ebook-feature-grid { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: .8fr 1.2fr; }
  .download-copy { padding: 40px 34px; }
  .next-step-card { gap: 30px; }
  .confirmation-card { grid-template-columns: .48fr 1.52fr; }
  .mail-illustration { min-height: 650px; }
  .confirmation-copy { padding: 42px 34px; }
  .confirmation-pack-card { gap: 30px; }
}

@media (max-width: 700px) {
  .header-reassurance { display: none; }
  .ebook-hero { padding-top: 50px; }
  .ebook-copy h1 { font-size: clamp(2.35rem, 12vw, 3.25rem); }
  .ebook-form-card { padding: 20px; }
  .ebook-form .form-row { grid-template-columns: 1fr; }
  .form-heading { flex-direction: column; }
  .form-trust { align-items: center; flex-direction: column; gap: 3px; }
  .ebook-badge { right: 0; }
  .ebook-final-card { align-items: flex-start; flex-direction: column; padding: 30px 25px; }
  .ebook-final-card .btn { width: 100%; }
  .download-hero { min-height: auto; }
  .download-card { grid-template-columns: 1fr; }
  .download-visual { padding: 28px; }
  .download-visual img { max-height: 350px; }
  .download-copy { padding: 34px 24px; }
  .next-step-card { grid-template-columns: 1fr; }
  .next-step-card img { grid-row: 1; max-height: 340px; }
  .confirmation-card { grid-template-columns: 1fr; }
  .mail-illustration { min-height: 210px; }
  .mail-envelope { width: 150px; height: 100px; }
  .mail-check { top: calc(50% - 86px); right: calc(50% - 100px); width: 50px; height: 50px; }
  .confirmation-copy { padding: 34px 22px; }
  .confirmation-copy h1 { font-size: clamp(2.25rem, 11vw, 3rem); }
  .mail-steps article { grid-template-columns: 36px 1fr; padding: 14px; }
  .mail-steps article > span { width: 34px; height: 34px; }
  .confirmation-pack-card { grid-template-columns: 1fr; }
  .confirmation-pack-visual { padding: 20px; }
}
