/* =========================================================
   PHOENIX INVEST — Page d'accueil de la démonstration
   Charte PAM : brun profond, or, crème, terracotta
   ========================================================= */

body.landing { background: var(--cream); color: var(--ink); }

.wrap { width: min(100% - 48px, 1180px); margin-inline: auto; }
body.landing.narrow .wrap { width: min(100% - 40px, 1080px); }

/* ---------- Barre supérieure ---------- */
.land-top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(254, 250, 248, .86);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
}
.land-top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.land-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.land-brand .mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--brown);
  display: grid; place-items: center; overflow: hidden; flex: none;
  box-shadow: var(--sh-2);
}
.land-brand .mark img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.land-brand strong { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: -.01em; display: block; line-height: 1.1; }
.land-brand em { font-style: normal; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.land-top nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.land-top nav a { font-size: 13.5px; color: var(--ink-soft); text-decoration: none; }
.land-top nav a:hover { color: var(--brown); }
.land-top .tag {
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brown-600); background: var(--gold-100);
  border: 1px solid #EDD6A9; padding: 5px 10px; border-radius: var(--r-full);
}

/* ---------- Héros ---------- */
.hero { position: relative; overflow: hidden; background: var(--brown-950); color: #FBF3E4; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 780px; height: 780px;
  background: radial-gradient(circle at 50% 50%, rgba(205,160,67,.28), rgba(184,100,46,.10) 42%, transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(246,231,200,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(246,231,200,.035) 1px, transparent 1px);
  background-size: 72px 72px; mask-image: radial-gradient(circle at 78% 40%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center;
  padding: 74px 0 82px;
}
.hero .eyebrow { color: var(--gold-300); }
.hero h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.04; letter-spacing: -.022em; margin: 18px 0 20px;
}
.hero h1 em { font-style: italic; color: var(--gold-300); }
.hero p.lead { font-size: 16.5px; line-height: 1.62; color: rgba(251,243,228,.78); max-width: 46ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn { height: 50px; padding: 0 22px; font-size: 14px; }
.hero .btn.gold { background: linear-gradient(180deg, #DDB25C, var(--gold)); color: #35200B; border-color: #C08F2F; box-shadow: var(--sh-gold); }
.hero .btn.outline { background: transparent; color: #FBF3E4; border: 1px solid rgba(246,231,200,.32); }
.hero .btn.outline:hover { background: rgba(246,231,200,.08); }
.hero .fine { margin-top: 22px; font-size: 11.5px; letter-spacing: .04em; color: rgba(251,243,228,.45); }
.hero .fine b { color: rgba(246,231,200,.72); font-weight: 500; }

/* Composition à droite : fenêtre produit */
.mock { position: relative; }
.mock .win {
  background: var(--cream); color: var(--ink); border-radius: 16px; overflow: hidden;
  box-shadow: 0 44px 90px -40px rgba(0,0,0,.7), 0 2px 0 rgba(255,255,255,.5) inset;
  border: 1px solid rgba(255,255,255,.18);
  transform: rotate(-1.2deg);
}
.mock .win-top {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: #F4EADE; border-bottom: 1px solid var(--line);
}
.mock .win-top i { width: 8px; height: 8px; border-radius: 50%; background: #D8C4AF; }
.mock .win-top span { margin-left: 8px; font-size: 10.5px; color: var(--muted); letter-spacing: .06em; }
.mock .win-body { padding: 18px; }
.mock .m-eyebrow { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mock .m-amount { font-family: var(--serif); font-size: 31px; letter-spacing: -.02em; margin: 4px 0 2px; }
.mock .m-amount small { font-size: 13px; color: var(--muted); font-family: var(--sans); letter-spacing: 0; }
.mock .m-delta { font-size: 11.5px; color: var(--success); }
.mock .m-chart { margin: 14px 0 4px; }
.mock .m-rows { display: grid; gap: 7px; margin-top: 10px; }
.mock .m-row { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; padding: 7px 0; border-top: 1px solid var(--line-soft); }
.mock .m-row b { font-weight: 600; }
.mock .m-row .dot { width: 7px; height: 7px; border-radius: 2px; display: inline-block; margin-right: 7px; }
.mock .float {
  position: absolute; right: -14px; bottom: -18px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; box-shadow: var(--sh-3); min-width: 190px;
  transform: rotate(1.4deg);
}
.mock .float .lbl { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mock .float .val { font-family: var(--serif); font-size: 19px; margin-top: 3px; }
.mock .float .sub { font-size: 10.5px; color: var(--success); }

/* ---------- Sections ---------- */
.sec { padding: 76px 0; }
.sec.tight { padding: 58px 0; }
.sec.cream { background: var(--cream-100); border-block: 1px solid var(--line-soft); }
.sec-head { max-width: 640px; margin-bottom: 34px; }
.sec-head h2 { font-family: var(--serif); font-size: clamp(27px, 2.5vw, 36px); font-weight: 500; letter-spacing: -.02em; margin: 10px 0 10px; line-height: 1.15; }
.sec-head p { color: var(--ink-soft); font-size: 15px; line-height: 1.62; margin: 0; }

/* Cartes des trois espaces */
.spaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.space {
  display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  text-decoration: none; color: inherit; position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.space::after {
  content: ""; position: absolute; inset: auto -40px -60px auto; width: 160px; height: 160px;
  border-radius: 50%; background: radial-gradient(circle, rgba(205,160,67,.14), transparent 70%);
  opacity: 0; transition: opacity .2s;
}
.space:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #DFC9AE; }
.space:hover::after { opacity: 1; }
.space .ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--cream-100); color: var(--brown); border: 1px solid var(--line);
}
.space.dark { background: var(--brown); color: #FBF3E4; border-color: var(--brown-600); }
.space.dark .ic { background: rgba(246,231,200,.08); color: var(--gold-300); border-color: rgba(246,231,200,.16); }
.space.dark p { color: rgba(251,243,228,.7); }
.space h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; margin: 4px 0 0; }
.space p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.space .go { margin-top: auto; padding-top: 14px; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; color: var(--brown-600); }
.space.dark .go { color: var(--gold-300); }
.space .kv { display: flex; gap: 14px; margin-top: 2px; }
.space .kv span { font-size: 11px; color: var(--muted); }
.space.dark .kv span { color: rgba(251,243,228,.55); }

/* Parcours */
.script { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.step { position: relative; padding: 26px 16px 6px 0; border-right: 1px solid var(--line-soft); }
.step:last-child { border-right: 0; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 10.5px; letter-spacing: .12em; color: var(--gold); font-weight: 600;
  display: block; margin-bottom: 10px;
}
.step h4 { font-size: 13.5px; font-weight: 600; margin: 0 0 6px; line-height: 1.35; }
.step p { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 0; }

/* Couverture */
.cover { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cover div { background: #fff; padding: 20px; }
.cover h4 { font-size: 13px; margin: 0 0 5px; font-weight: 600; }
.cover p { font-size: 11.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.cover .n { font-family: var(--serif); font-size: 11px; color: var(--gold); letter-spacing: .1em; }

/* Charte */
.charte { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: stretch; }
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sw { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.sw .chip { height: 74px; }
.sw .tx { padding: 9px 12px; }
.sw .tx b { display: block; font-size: 11.5px; font-weight: 600; }
.sw .tx span { font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.note {
  background: var(--brown); color: #FBF3E4; border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 12px; justify-content: center;
}
.note h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 0; }
.note p { font-size: 13px; line-height: 1.6; color: rgba(251,243,228,.72); margin: 0; }
.note .rule { height: 1px; background: rgba(246,231,200,.16); }

/* Pied de page */
.land-foot { background: var(--brown-950); color: rgba(251,243,228,.6); padding: 34px 0; }
.land-foot .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.land-foot .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--cream-100); display: grid; place-items: center; }
.land-foot .mark img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.land-foot b { color: #FBF3E4; font-weight: 500; font-size: 13px; }
.land-foot .sp { flex: 1; }
.land-foot span { font-size: 11.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 42px; padding: 54px 0 64px; }
  .mock { max-width: 520px; }
  .spaces { grid-template-columns: 1fr; }
  .script { grid-template-columns: repeat(3, 1fr); }
  .step { padding-bottom: 22px; }
  .step:nth-child(3n) { border-right: 0; }
  .cover { grid-template-columns: repeat(2, 1fr); }
  .charte { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .land-top nav { display: none; }
  .hero h1 { font-size: 36px; }
  .mock .float { position: static; transform: none; margin-top: 12px; }
  .script { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 18px 0; }
  .cover { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: 1fr 1fr; }
}
