/* WanFunds, page vitrine. Palette du thème Editorial de l'app :
   ivoire, cuivre #B78657, brun #2B241C. Polices servies par le site
   (aucune requête vers un tiers). */

@font-face { font-family: "Young Serif"; src: url("/fonts/young-serif-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light dark;
  --fond: #f7f1e8;
  --fond-alt: #efe7d6;
  --surface: #fbf6ec;
  --texte: #2b241c;
  --doux: #6b5c48;
  --bordure: #e0d5bd;
  --cuivre: #b78657;
  --cuivre-texte: #8a5f36;
  --brun: #2b241c;
  --brun-texte: #f3e9da;
  --brun-doux: #c9b596;
  --bouton-fond: #2b241c;
  --bouton-texte: #f7f1e8;
  --ombre: 0 24px 60px -28px rgba(43, 36, 28, .45);
  --c-liquidites: #8b7a63;
  --c-bourse: #b78657;
  --c-crypto: #a8433a;
  --c-immo: #3c6b4b;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --largeur: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #1b1714;
    --fond-alt: #231e19;
    --surface: #25201a;
    --texte: #efe6d8;
    --doux: #b8a990;
    --bordure: #3a3128;
    --cuivre-texte: #d4a273;
    --brun: #120f0c;
    --bouton-fond: #b78657;
    --bouton-texte: #1b1714;
    --ombre: 0 24px 60px -28px rgba(0, 0, 0, .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
.sprite { position: absolute; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }
p { margin: 0 0 1rem; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 1.25rem; }
.conteneur--etroit { max-width: 46rem; }
section { padding: clamp(4rem, 9vw, 7rem) 0; }

.surtitre {
  font: 600 .78rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cuivre-texte);
  margin-bottom: 1rem;
}
.surtitre--clair { color: var(--cuivre); }

/* Logo : même tracé et mêmes proportions que BrandLogo dans l'app. */
.logo {
  display: inline-flex; align-items: baseline;
  font: 400 1.6rem/1 var(--serif);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--texte);
}
.logo__w { width: 1.01em; height: .75em; margin-right: .14em; color: var(--cuivre); }

/* Boutons et liens */
.bouton {
  display: inline-block;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  background: var(--bouton-fond);
  color: var(--bouton-texte);
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bouton:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(43, 36, 28, .6); }
.bouton--petit { padding: .55rem 1.05rem; font-size: .95rem; }
.lien-discret { text-decoration: none; font-weight: 500; color: var(--doux); }
.lien-discret:hover { color: var(--texte); }
.lien-fleche { font-weight: 600; text-decoration: none; color: var(--cuivre-texte); }
.lien-fleche::after { content: " →"; }
.lien-fleche:hover { text-decoration: underline; text-underline-offset: 3px; }
.lien-fleche--clair { color: var(--cuivre); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--cuivre); outline-offset: 3px; border-radius: 4px; }
.mention { font-size: .9rem; color: var(--doux); margin-top: 1rem; }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--bordure);
}
.entete__barre { display: flex; align-items: center; gap: 2rem; height: 4.25rem; }
.entete__nav { display: flex; gap: 1.75rem; margin-right: auto; }
.entete__nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--doux); }
.entete__nav a:hover { color: var(--texte); }
.entete__actions { display: flex; align-items: center; gap: 1.25rem; }
@media (max-width: 860px) {
  .entete__nav { display: none; }
  .entete__actions { margin-left: auto; }
}
@media (max-width: 420px) {
  .entete__actions .lien-discret { display: none; }
}

/* Hero */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3.5rem; align-items: center; }
.chapo { font-size: 1.2rem; color: var(--doux); margin: 1.5rem 0 2rem; max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.capture { margin: 0; }
.capture img {
  border-radius: 14px;
  border: 1px solid var(--bordure);
  box-shadow: var(--ombre);
  background: var(--surface);
}
.capture--hero { margin-right: -12rem; }
@media (max-width: 960px) {
  .hero__grille { grid-template-columns: minmax(0, 1fr); }
  .capture--hero { margin-right: 0; }
}

/* Univers */
.univers { background: var(--fond-alt); }
.univers__grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.carte {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
}
.carte p { color: var(--doux); font-size: .98rem; margin: 0; }
.carte__pastille { display: block; width: 2.25rem; height: .35rem; border-radius: 999px; margin-bottom: 1.25rem; }
.carte__pastille--liquidites { background: var(--c-liquidites); }
.carte__pastille--bourse { background: var(--c-bourse); }
.carte__pastille--crypto { background: var(--c-crypto); }
.carte__pastille--immo { background: var(--c-immo); }
@media (max-width: 960px) { .univers__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .univers__grille { grid-template-columns: minmax(0, 1fr); } }

/* Zooms */
.zoom__grille, .foyer__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: center; }
.zoom--inverse .zoom__texte { order: 2; }
.zoom--inverse .zoom__grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.zoom__texte > p { color: var(--doux); }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { position: relative; padding-left: 1.6rem; margin-bottom: 1rem; color: var(--doux); }
.liste li strong { color: var(--texte); font-weight: 600; }
.liste li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--cuivre);
}
.foyer { background: var(--fond-alt); }
.foyer__grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 960px) {
  .zoom__grille, .zoom--inverse .zoom__grille, .foyer__grille { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .zoom--inverse .zoom__texte { order: 0; }
  .foyer__grille .capture { order: 2; }
}

/* Confidentialité (bandeau brun) */
.confiance { background: var(--brun); color: var(--brun-texte); }
.confiance h2 { color: var(--brun-texte); }
.confiance__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin: 2.5rem 0; }
.confiance__grille h3 { color: var(--cuivre); }
.confiance__grille p { color: var(--brun-doux); margin: 0; }
@media (max-width: 860px) { .confiance__grille { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; } }

/* Étapes */
.etapes__liste { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.etapes__liste p { color: var(--doux); margin: 0; }
.etapes__num {
  display: inline-grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1px solid var(--cuivre); color: var(--cuivre-texte);
  font: 400 1.15rem/1 var(--serif);
  margin-bottom: 1.1rem;
}
@media (max-width: 760px) { .etapes__liste { grid-template-columns: minmax(0, 1fr); } }

/* Questions */
.questions { background: var(--fond-alt); }
details { border-bottom: 1px solid var(--bordure); }
details:first-of-type { border-top: 1px solid var(--bordure); }
summary {
  cursor: pointer; list-style: none;
  padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%;
  transform: translateY(-50%);
  font: 400 1.5rem/1 var(--serif); color: var(--cuivre-texte);
}
details[open] summary::after { content: "−"; }
details p { color: var(--doux); padding-bottom: 1.2rem; margin: 0; }

/* Appel final */
.appel__boite { text-align: center; }
.appel__boite h2 { margin-bottom: 2rem; }

/* Pied de page */
.pied { border-top: 1px solid var(--bordure); padding: 2.5rem 0 3rem; }
.pied__barre { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.logo--pied { font-size: 1.35rem; }
.pied__liens { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-right: auto; }
.pied__liens a { text-decoration: none; color: var(--doux); font-size: .95rem; }
.pied__liens a:hover { color: var(--texte); }
.pied__note { width: 100%; font-size: .85rem; color: var(--doux); margin: 0; }
.introuvable { min-height: 100vh; display: grid; place-items: center; padding: 3rem 0; }
