/* Site public + pages d'authentification */
.pub { background: var(--paper); }
.pub-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 14px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.pub-nav { display: none; gap: 26px; margin-left: 20px; }
.pub-nav a { text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.pub-nav a:hover { color: var(--ink); }
.pub-cta { margin-left: auto; display: flex; gap: 6px; }
@media (min-width: 860px) { .pub-nav { display: flex; } }
@media (max-width: 420px) { .pub-cta .btn-quiet { display: none; } }

/* Héros : texte à gauche, la pile qui entre dans le coffre à droite */
.hero { display: grid; gap: 40px; align-items: center; padding: clamp(32px, 7vw, 96px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 80px); max-width: 1240px; margin: 0 auto; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.6rem); font-weight: 800; letter-spacing: -.045em; line-height: .96; font-stretch: 88%; max-width: 14ch; }
.hero-lede { margin-top: 22px; font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: .9rem; max-width: 46ch; }

.hero-art { position: relative; display: grid; justify-items: center; gap: 0; padding: 12px 0; }
.pile { position: relative; width: min(340px, 86vw); height: 250px; }
.pile-item { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); font-weight: 700; font-size: .95rem; line-height: 1.25; box-shadow: 0 10px 24px -18px rgba(23, 37, 46, .5); }
.pile-item small { font-weight: 400; color: var(--ink-3); font-size: .82rem; }
.pi-photo { width: 44px; height: 44px; border-radius: var(--r-ctl); flex: none; background: linear-gradient(160deg, #9DB7A6 0 45%, #5F7F68 45% 70%, #2F5D50 70%); }
.pi-photo.v { background: linear-gradient(200deg, #E8C27A 0 35%, #B98E52 35% 62%, #4A5C66 62%); }
.pi-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-ctl); flex: none; background: var(--pine-wash); color: var(--pine); }
.p1 { top: 0; transform: rotate(-3deg) translateX(-14px); }
.p2 { top: 58px; transform: rotate(2deg) translateX(18px); }
.p3 { top: 118px; transform: rotate(-1.5deg) translateX(-6px); }
.p4 { top: 178px; transform: rotate(1deg) translateX(10px); }
.vault { position: relative; z-index: 2; width: min(380px, 92vw); margin-top: -14px; padding: 18px 18px 16px; border-radius: var(--r-slab); background: var(--pine); color: var(--on-pine); }
.vault-top { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.vault-mark { width: 26px; height: 26px; color: var(--on-pine); --on-pine: var(--pine); }
.vault-progress { height: 6px; margin: 14px 0 10px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.vault-progress span { display: block; height: 100%; width: 100%; background: var(--on-pine); border-radius: 3px; }
.vault-line { display: flex; justify-content: space-between; align-items: center; font-size: .92rem; opacity: .9; }

/* Un seul moment animé : la pile descend dans le coffre au chargement */
@media (prefers-reduced-motion: no-preference) {
  .pile-item { animation: drop .9s var(--ease) both; }
  .p1 { animation-delay: .15s; } .p2 { animation-delay: .3s; } .p3 { animation-delay: .45s; } .p4 { animation-delay: .6s; }
  .vault-progress span { animation: fill 1.6s .5s var(--ease) both; }
  @keyframes drop { from { opacity: 0; translate: 0 -40px; } }
  @keyframes fill { from { width: 0; } }
}

.band { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); }
.band-title { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; max-width: 20ch; margin-bottom: 32px; }
.band-split { display: grid; gap: 28px; }
@media (min-width: 960px) { .band-split { grid-template-columns: .8fr 1.2fr; gap: 64px; } .band-split .band-title { margin-bottom: 14px; } }

.steps { list-style: none; counter-reset: s; display: grid; gap: 28px; margin: 0; padding: 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { counter-increment: s; display: grid; gap: 8px; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: 1; letter-spacing: -.05em; color: var(--pine); }
.steps p { color: var(--ink-2); max-width: 38ch; }

.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .facts div { grid-template-columns: 180px 1fr; gap: 20px; } }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-2); }

.price-toggle { display: inline-flex; padding: 3px; margin-bottom: 22px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); }
.price-toggle button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 0; border-radius: var(--r-ctl); background: none; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.price-toggle [aria-pressed="true"] { background: var(--ink); color: var(--fog); }
.price-toggle [aria-pressed="true"] .chip { background: var(--pine); color: var(--on-pine); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.price-col { display: grid; align-content: start; gap: 8px; padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.price-col.featured { background: var(--pine-wash); }
.price-col h3 { font-family: var(--font-body); font-size: 1rem; color: var(--ink-2); }
.price-size { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; letter-spacing: -.045em; font-stretch: 85%; }
.price-amt { font-weight: 700; font-size: 1.05rem; }
.price-amt small { font-weight: 400; color: var(--ink-3); }
.price-note { font-size: .86rem; margin-bottom: 8px; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--pine); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 18px; color: var(--ink-2); max-width: 64ch; }

.closing { display: grid; justify-items: start; gap: 22px; max-width: 1240px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px); background: var(--ink); color: var(--fog); }
.closing h2 { font-size: clamp(2rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.045em; font-stretch: 88%; max-width: 16ch; line-height: .98; }
.closing .btn { background: var(--fog); color: var(--ink); }
@media (min-width: 1240px) { .closing { border-radius: var(--r-slab); margin-bottom: 48px; } }
:root[data-theme="dark"] .closing { background: var(--pine-wash); }

.pub-foot { display: grid; gap: 18px; max-width: 1240px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 48px) 48px; font-size: .92rem; }
.pub-foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.pub-foot nav a { text-decoration: none; color: var(--ink-2); font-weight: 700; }

/* Authentification */
.auth-page { background: var(--fog); }
.auth-wrap { display: grid; justify-items: center; align-content: start; gap: 24px; min-height: 100dvh; padding: clamp(24px, 8vh, 80px) 16px 32px; }
.auth-card { display: grid; gap: 18px; width: min(420px, 100%); padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.auth-card h1 { font-size: 1.7rem; }
.auth-card form { display: grid; gap: 14px; }
.auth-alt { font-size: .95rem; color: var(--ink-2); text-align: center; }
.auth-alt a { color: var(--pine); font-weight: 700; }
.auth-foot { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-2); font-weight: 700; font-size: .85rem; padding: 8px; cursor: pointer; }
.pw-meter { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }

/* Page publique d'un lien partagé */
.share-wrap { max-width: 880px; margin: 0 auto; padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 32px) 64px; min-height: 60vh; }
.share-title { font-size: clamp(1.6rem, 4.4vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; word-break: break-word; }
.share-stage { display: grid; place-items: center; margin-bottom: 22px; border-radius: var(--r-panel); background: var(--ink); overflow: hidden; }
.share-stage img, .share-stage video { max-height: 70vh; width: auto; max-width: 100%; }
.share-stage iframe { width: 100%; height: 75vh; border: 0; background: #fff; }
.share-ico { padding: 60px; color: var(--fog); }
.share-ico .i { width: 64px; height: 64px; stroke-width: 1.2; }

/* Pages légales */
.legal { max-width: 70ch; margin: 0 auto; padding: clamp(28px, 6vw, 64px) 16px 72px; line-height: 1.65; }
.legal h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 6px; }
.legal h2 { margin: 34px 0 10px; font-size: 1.25rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal a { color: var(--pine); font-weight: 700; }
.legal-draft { display: inline-block; margin-bottom: 18px; padding: 6px 12px; border-radius: var(--r-ctl); background: var(--amber-wash); color: var(--ink); font-size: .9rem; font-weight: 700; }
.google-btn { background: #fff; color: #1F1F1F; border-color: #DADCE0; gap: 12px; }
.google-btn:hover { background: #F8F9FA; border-color: #C6CACE; }
.google-btn .g-logo { flex: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: .88rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
