/* ============================================================
   TASKORA — Page d'accueil publique (référencement)
   Légère et autonome : pas besoin de la feuille de l'appli.
   ============================================================ */
:root {
  --terracotta: #C28374; --terracotta-dk: #A9685A; --nude: #D9A79E; --blush: #EBC9BC; --blush-soft: #F3DED5;
  --bg: #FBF7F2; --surface: #FFFFFF; --surface-2: #F7F1EB; --border: #ECE3DB; --border-strong: #E0D4C9;
  --text: #4A413D; --muted: #6E635D; --soft: #9E938C;
  --display: "Playfair Display", Georgia, serif; --body: "Lato", -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --terracotta: #CF8F7F; --terracotta-dk: #E3A999; --nude: #B27F72; --blush: #5A443D; --blush-soft: #3A2E2A;
  --bg: #1D1917; --surface: #25201E; --surface-2: #2F2825; --border: #3A322F; --border-strong: #4A403C;
  --text: #F2E8E1; --muted: #C3B6AE; --soft: #9C9089; color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.18; margin: 0; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--nude); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.lp-skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
.lp-skip:focus { left: 12px; }

/* Boutons (plats, sans relief) */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; padding: 10px 18px; font-weight: 700; font-size: 15px; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.lp-btn--primary { background: var(--terracotta); color: #fff; }
.lp-btn--primary:hover { background: var(--terracotta-dk); }
.lp-btn--ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.lp-btn--ghost:hover { border-color: var(--nude); color: var(--terracotta-dk); }
.lp-btn--lg { padding: 14px 26px; font-size: 16px; }

/* En-tête */
.lp-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 14px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.lp-brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--text); }
.lp-brand img { width: 34px; height: 34px; }
.lp-brand--sm { font-size: 17px; }
.lp-brand--sm img { width: 24px; height: 24px; }
.lp-nav { display: flex; gap: 4px; margin: 0 auto; }
.lp-nav a { padding: 7px 12px; border-radius: 99px; font-weight: 700; font-size: 14.5px; color: var(--muted); }
.lp-nav a:hover { background: var(--surface-2); color: var(--text); }
.lp-top__cta { display: flex; gap: 8px; }

/* Héros */
.lp-hero { max-width: 1200px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 48px) 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.lp-eyebrow { margin: 0 0 10px; font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 800; color: var(--terracotta); }
.lp-hero h1 { font-size: clamp(36px, 5.2vw, 60px); }
.lp-hero h1 em { font-style: italic; color: var(--terracotta); }
.lp-lead { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--muted); margin: 20px 0 28px; max-width: 560px; }
.lp-hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 22px 0 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.lp-proof li { display: inline-flex; align-items: center; gap: 6px; }
.lp-proof svg { color: var(--terracotta); }

/* Captures de l'appli dans un cadre de navigateur */
.lp-hero { position: relative; }
.lp-hero__visual { position: relative; z-index: 1; }
.lp-hero__visual::before { content: ""; position: absolute; inset: -30px -10px 10px 40px; border-radius: 40% 60% 55% 45%; background: var(--blush-soft); z-index: -1; }
.lp-shot { margin: 0; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border-strong); }
.lp-shot__bar { display: flex; gap: 6px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.lp-shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.lp-shot__bar i:first-child { background: var(--nude); }
.lp-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.lp-hero__visual .lp-shot { width: 118%; max-width: none; }

/* Visite en images : texte et capture en alternance */
.lp-tour > h2 { margin-bottom: 0; }
.lp-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(40px, 6vw, 80px); }
.lp-row--rev { grid-template-columns: 1.2fr .8fr; }
.lp-row--rev .lp-row__txt { order: 2; }
.lp-row__txt h3 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 12px; }
.lp-row__txt > p:not(.lp-tag) { color: var(--muted); margin: 0 0 18px; }
.lp-tag { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 99px; background: var(--blush-soft); color: var(--terracotta-dk); font-size: 12.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.lp-row__img { position: relative; }
.lp-row__img::before { content: ""; position: absolute; inset: 12% -4% -6% 10%; border-radius: 45% 55% 50% 50%; background: var(--blush-soft); z-index: -1; }
.lp-row--rev .lp-row__img::before { inset: 12% 10% -6% -4%; }
.lp-tour { position: relative; z-index: 0; }

/* Pétales qui tombent doucement dans le haut de page */
.lp-petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.lp-petals i { position: absolute; top: -24px; width: 13px; height: 10px; border-radius: 100% 0 100% 0; background: var(--blush); opacity: 0; animation: lp-fall 16s linear infinite; }
.lp-petals i:nth-child(1) { left: 8%;  animation-delay: 0s;   animation-duration: 17s; }
.lp-petals i:nth-child(2) { left: 22%; animation-delay: 5s;   animation-duration: 19s; width: 10px; height: 8px; }
.lp-petals i:nth-child(3) { left: 41%; animation-delay: 9s;   animation-duration: 15s; background: var(--nude); }
.lp-petals i:nth-child(4) { left: 57%; animation-delay: 2.5s; animation-duration: 21s; }
.lp-petals i:nth-child(5) { left: 71%; animation-delay: 12s;  animation-duration: 18s; width: 10px; height: 8px; }
.lp-petals i:nth-child(6) { left: 86%; animation-delay: 7s;   animation-duration: 16s; background: var(--nude); }
.lp-petals i:nth-child(7) { left: 95%; animation-delay: 14s;  animation-duration: 20s; }
@keyframes lp-fall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .75; }
  50%  { transform: translate(-40px, 50vh) rotate(160deg); }
  90%  { opacity: .6; }
  100% { transform: translate(20px, 100vh) rotate(320deg); opacity: 0; }
}

/* Arrivée du haut de page */
@keyframes lp-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.lp-hero__txt > * { animation: lp-up .8s cubic-bezier(.2, .7, .2, 1) both; }
.lp-hero__txt > :nth-child(2) { animation-delay: .08s; }
.lp-hero__txt > :nth-child(3) { animation-delay: .16s; }
.lp-hero__txt > :nth-child(4) { animation-delay: .24s; }
.lp-hero__txt > :nth-child(5) { animation-delay: .32s; }
.lp-hero__visual { animation: lp-up 1s .2s cubic-bezier(.2, .7, .2, 1) both; }
.lp-hero__visual .lp-shot { animation: lp-float 7s 1.2s ease-in-out infinite; }

/* Apparitions au défilement (activées par landing.js) */
.lp-anim .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.lp-anim .rv.is-in { opacity: 1; transform: none; }
.lp-anim .lp-row__img.rv { transform: translateY(28px) scale(.98); transition-delay: .1s; }
.lp-anim .lp-row__img.rv.is-in { transform: none; }
.lp-anim .lp-feat.rv:nth-child(3n+2) { transition-delay: .08s; }
.lp-anim .lp-feat.rv:nth-child(3n) { transition-delay: .16s; }
.lp-shot img { transition: transform .6s ease; }
.lp-row__img:hover .lp-shot img { transform: scale(1.015); }

@media (prefers-reduced-motion: reduce) {
  .lp-petals { display: none; }
  .lp-hero__txt > *, .lp-hero__visual, .lp-hero__visual .lp-shot { animation: none !important; }
}

/* Sections */
.lp-section { max-width: 1200px; margin: 0 auto; padding: clamp(50px, 7vw, 90px) clamp(16px, 4vw, 48px) 10px; }
.lp-section > h2 { font-size: clamp(28px, 3.6vw, 40px); max-width: 760px; }
.lp-section__lead { color: var(--muted); font-size: 17.5px; max-width: 680px; margin: 14px 0 34px; }
.lp-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-feat { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.lp-feat__ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--blush-soft); color: var(--terracotta); margin-bottom: 14px; }
.lp-feat h3 { font-size: 20px; margin-bottom: 6px; }
.lp-feat p { margin: 0; color: var(--muted); font-size: 15px; }

.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.lp-split h2 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 12px; }
.lp-split p { color: var(--muted); margin: 0 0 16px; }
.lp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-list li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.lp-list svg { flex: none; color: var(--terracotta); }

.lp-trust { text-align: center; }
.lp-trust__ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--blush-soft); color: var(--terracotta); }
.lp-trust h2 { margin: 0 auto 26px; }
.lp-trust__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; text-align: left; }
.lp-trust__grid p { margin: 0; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.lp-trust__grid b { display: block; color: var(--text); margin-bottom: 4px; }

.lp-faq { max-width: 860px; }
.lp-faq h2 { margin-bottom: 20px; }
.lp-faq__item { border-bottom: 1px solid var(--border); }
.lp-faq__item summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 800; font-size: 17px; }
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__item summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 24px; font-weight: 400; color: var(--terracotta); transition: transform .2s; }
.lp-faq__item[open] summary::after { transform: rotate(45deg); }
.lp-faq__item p { margin: -6px 0 18px; color: var(--muted); }

.lp-final { max-width: 1200px; margin: clamp(50px, 7vw, 90px) auto 0; padding: clamp(40px, 6vw, 70px) 24px; text-align: center; background: var(--blush-soft); border-radius: 32px; }
.lp-final h2 { font-size: clamp(28px, 3.6vw, 40px); }
.lp-final p { color: var(--muted); margin: 10px 0 24px; font-size: 17.5px; }
@media (min-width: 1248px) { .lp-final { margin-left: auto; margin-right: auto; } }

.lp-foot { max-width: 1200px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 48px) 40px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--soft); font-size: 14px; }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 auto; }
.lp-foot nav a:hover { color: var(--terracotta-dk); text-decoration: underline; }

/* Responsive */
@media (max-width: 1000px) {
  .lp-nav { display: none; }
  .lp-top__cta { margin-left: auto; }
  .lp-hero { grid-template-columns: 1fr; }
  .lp-hero__visual { max-width: 680px; }
  .lp-hero__visual .lp-shot { width: 100%; }
  .lp-row, .lp-row--rev { grid-template-columns: 1fr; }
  .lp-row--rev .lp-row__txt { order: 0; }
  .lp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .lp-top { gap: 10px; }
  .lp-top .lp-btn--ghost { display: none; }
  .lp-feats, .lp-split, .lp-trust__grid { grid-template-columns: 1fr; }
  .lp-hero__cta .lp-btn { flex: 1 1 100%; }
  .lp-final { border-radius: 0; }
  .lp-shot { border-radius: 12px; }
  .lp-shot__bar { padding: 7px 10px; }
  .lp-foot { flex-direction: column; align-items: flex-start; }
  .lp-foot nav { margin: 0; }
}
