/* Zamilist Cadeaux V15 — accessible standalone landing and gift draft editor. */
:root{
 --navy:#202f60;--forest:#185947;--mint:#e2f2e9;--cream:#faf8f2;
 --orange:#f3b96e;--clay:#b45a37;--ink:#1d2b39;--muted:#5c6d67;
 --line:#e8e7df;--card:#fff;--soft:#f5f3ed;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--ink);line-height:1.55}
a{color:inherit}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default}
:focus-visible{outline:3px solid #faac4d;outline-offset:3px}
/* Header: shared with the main app (brand-layout/logo/navigation.css). */
header{display:flex;align-items:center;gap:18px;padding:20px 0 19px;border-bottom:1px solid #e6ded370}
/* Same warm background as the main app. */
body{background:radial-gradient(circle at 2% 10%,#f6e0cd77,transparent 28%),linear-gradient(180deg,#fcf7ef 0%,#f8f2e9 74%,#f6f0e7 100%)}
.hero{display:grid;grid-template-columns:1fr .95fr;gap:65px;align-items:center;padding:55px 0 78px;min-height:475px}
.eyebrow{display:inline-block;font-size:12px;font-weight:850;letter-spacing:.055em;color:#824b22;background:#ffe8c6;border-radius:90px;padding:7px 13px}
.hero h1{color:var(--navy);font-weight:900;font-size:clamp(35px,4.25vw,57px);line-height:1.11;letter-spacing:-.052em;margin:20px 0}
.hero p{color:#53645c;font-size:17px;max-width:520px;margin:0 0 27px}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.cta,.outline-cta{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:0;text-decoration:none;border-radius:11px;font-size:15px;font-weight:800;padding:14px 20px;min-height:48px}
.cta{color:#fff;background:var(--forest);box-shadow:0 2px 0 #0a4434}
.cta:hover{background:#0f4738}
.outline-cta{color:var(--forest);border:1px solid #b4d2c2;background:#fff}
.micro{font-size:12px;color:#6c7770}
.preview-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:23px;box-shadow:0 18px 36px #17334413}
.preview-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.preview-gift{display:grid;place-items:center;background:#ffebd5;border-radius:12px;width:42px;height:42px;font-size:22px}
.preview-head strong{display:block;color:var(--navy);line-height:1.25}
.preview-head small{display:block;color:#68776f;font-size:12px}
.demo-switch{display:flex;gap:7px;padding:4px;background:#f2f4f1;border-radius:12px;margin:12px 0}
.demo-switch button{border:0;background:transparent;flex:1;padding:7px 6px;border-radius:9px;color:#547268;font-size:12px;font-weight:800}
.demo-switch button[aria-pressed="true"]{background:var(--forest);color:white}
.gift-row{display:flex;align-items:center;gap:12px;border:1px solid #edece6;border-radius:12px;padding:12px 11px;margin:7px 0;min-height:66px}
.gift-info{flex:1;min-width:0}
.gift-info strong{display:block;color:#2b473b;font-size:13px}
.gift-info small{display:block;color:#77817a;font-size:11px}
.gift-info small a{color:#50745f}
.gift-choose{white-space:nowrap;border:0;border-radius:8px;background:var(--forest);color:#fff;padding:10px 11px;font-size:11px;font-weight:800}
.gift-choose.chosen{background:#e5f5eb;color:#26674f}
.gift-row.mine{background:#fff8ed;border-color:var(--orange)}
.gift-row.mine .gift-choose{background:#efb86b;color:#433218}
.gift-row.claimed .gift-info strong{text-decoration:line-through;color:#7b8881}
.gift-row[data-demo-status="claimed"] .gift-choose{background:#ebf5ef;color:#286e50}
.gift-row[data-demo-status="claimed"] .gift-choose[disabled]{opacity:1}
.demo-warning{margin-top:10px;text-align:center;color:#718078;font-size:11px}
.section{padding:62px 0}
.white{background:#fff}
.section h2{color:var(--navy);font-size:clamp(28px,3vw,36px);letter-spacing:-.035em;line-height:1.17;margin:0 0 30px}
.section-lead{max-width:730px;color:var(--muted);margin:-12px 0 27px}
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.step{background:var(--cream);padding:23px;border-radius:18px}
.step-no{display:grid;place-items:center;width:35px;height:35px;background:var(--navy);color:white;font-weight:800;border-radius:10px;margin-bottom:22px}
.step h3{margin:0 0 7px;color:var(--navy);font-size:17px}
.step p{margin:0;color:#687771;font-size:14px}
.two-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.callout{border-radius:18px;padding:28px}
.callout.owner{background:var(--navy);color:white}
.callout.guest{background:var(--mint);color:#195443}
.callout h3{display:flex;align-items:center;gap:9px;font-size:18px;margin:0 0 12px}
.callout p{font-size:14px;margin:0 0 13px;opacity:.87}
.callout p:last-child{margin-bottom:0}
.occasions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.occasion{border:1px solid #e8e8e0;padding:24px;background:#fff;border-radius:15px;font-size:18px;font-weight:850;color:var(--navy)}
.occasion span{display:block;font-size:32px;margin-bottom:10px}
.faq{width:min(760px,100%);margin:0 auto}
.faq h2{text-align:center}
.faq details{border:1px solid #e5e6db;background:var(--cream);border-radius:13px;padding:0 19px;margin:9px 0}
.faq summary{list-style:none;cursor:pointer;font-weight:800;color:var(--navy);padding:18px 0}
.faq summary::before{content:'▸ ';display:inline;color:var(--navy)}
.faq details[open] summary::before{content:'▾ '}
.faq summary::-webkit-details-marker{display:none}
.faq details p{margin:0 0 17px;color:var(--muted);font-size:14px}
.final-banner{background:var(--forest);color:white;display:flex;align-items:center;justify-content:space-between;gap:30px;border-radius:22px;padding:34px;margin:58px 0 24px}
.final-banner h2{margin:0 0 6px;color:white;font-size:30px}
.final-banner p{margin:0;color:#dceee4}
.cta.gold{background:var(--orange);color:#37250f;box-shadow:none;white-space:nowrap}
.cta.gold:hover{background:#f8c885}
footer{padding:18px 0 45px;color:#738078;text-align:center;font-size:12px}
footer a{margin-left:12px}
.draft-title{color:var(--navy);font-size:clamp(30px,4vw,44px);letter-spacing:-.04em;line-height:1.17;margin:25px 0 10px}
.draft-help{max-width:720px;color:var(--muted);margin-bottom:25px}
.draft-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(270px,.85fr);gap:20px;align-items:start}
.draft-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px}
.draft-panel h2{color:var(--navy);margin:0 0 14px;font-size:21px}
.draft-form{display:grid;gap:12px}
.field{display:grid;gap:5px}
.field label{font-size:13px;font-weight:800;color:#345e50}
.field input{padding:13px 14px;border:1px solid #cbd5ce;border-radius:9px;width:100%;min-width:0;color:var(--ink);background:#fff}
.field small{font-size:12px;color:var(--muted)}
.draft-item{border-bottom:1px solid #e9ece7;padding:13px 0;display:flex;gap:10px;align-items:start}
.draft-item:last-child{border-bottom:0}
.draft-item strong{font-size:15px;display:block}
.draft-item small{display:block;color:#627971;overflow-wrap:anywhere}
.draft-item button{background:#fff3f0;color:#8b3528;border:1px solid #efc9be;border-radius:9px;font-size:12px;font-weight:800;padding:7px 10px;margin-left:auto}
.notice{background:#e8f4ee;padding:16px 18px;border-radius:12px;font-size:14px;color:#245844;margin-top:18px}
.notice.warn{background:#fff3df;color:#6a4c2c}
.draft-status{font-size:13px;min-height:20px;color:#365c51}
@media(max-width:950px){
 .hero{grid-template-columns:1fr 1fr;gap:25px}
 .draft-layout{grid-template-columns:1fr}
}
@media(max-width:700px){
 .hero{grid-template-columns:1fr;gap:23px;padding:25px 0 45px;min-height:auto}
 .hero p{font-size:15px}
 .hero h1{font-size:clamp(36px,9.5vw,52px)}
 .steps,.two-cards,.occasions{grid-template-columns:1fr}
 .section{padding:45px 0}
 .callout{padding:22px}
 .final-banner{flex-direction:column;align-items:stretch;margin-top:35px;padding:24px}
 .final-banner h2{font-size:26px}
 .final-banner .cta{width:100%}
 .preview-card{padding:16px}
 .draft-panel{padding:18px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* V15 — sharing, sign-in dialog and shared gift list page. */
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.link-button{background:none;border:0;padding:8px 0;color:var(--forest);font-weight:700;font-size:13px;text-decoration:underline;min-height:44px}
.cta.small,.outline-cta.small{min-height:44px;padding:9px 14px;font-size:13px}
.danger-button{background:#fff3f0;color:#8b3528;border:1px solid #efc9be;border-radius:9px;font-size:13px;font-weight:800;padding:9px 12px;min-height:44px}
.gift-dialog{border:0;border-radius:18px;padding:26px;width:min(440px,calc(100% - 32px));box-shadow:0 24px 60px #1d2b3933;color:var(--ink)}
.gift-dialog::backdrop{background:#1d2b3966}
.gift-dialog h2{color:var(--navy);margin:0 0 8px;font-size:22px}
.gift-dialog-why{color:var(--muted);margin:0 0 16px;font-size:14px}
.gift-dialog-close{width:100%;margin-top:6px}
.notice-action{margin-left:auto;min-height:44px;padding:9px 16px}
#visitorNotice{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 18px}
#visitorNotice[hidden]{display:none}
.share-panel{margin-bottom:20px}
.share-row{display:flex;flex-wrap:wrap;gap:9px}
.share-row input{flex:1 1 260px;min-width:0;padding:12px 13px;border:1px solid #cbd5ce;border-radius:9px;background:var(--soft);color:var(--ink);font-size:14px}
/* Copy confirmation is adjacent to the share button (rather than buried
   under the ideas panel), readable on phones and by screen readers. */
.share-feedback{display:block;margin:11px 0 3px;padding:10px 13px;border-radius:10px;border:1px solid #e7c5ab;background:#fff7ec;color:#6d4b2e;font-size:14px;font-weight:750;overflow-wrap:anywhere}
.share-feedback.is-success{border-color:#a1d9bc;background:#e9f7ee;color:#185947}
.share-feedback[hidden]{display:none!important}
#copyShare.is-copied{background:#266e52;border-color:#266e52;color:white}
#copyShare:disabled,#makeShared:disabled{opacity:.77;cursor:progress}

.gift-item{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #e9ece7;padding:13px 0}
.gift-item:last-child{border-bottom:0}
.gift-item-info strong{font-size:15px;display:block}
.gift-item-info small{display:block;color:#627971;overflow-wrap:anywhere}
.gift-item-info{flex:1 1 200px;min-width:0}
.gift-item-info small a{color:#3f6f5c;font-weight:700}
.gift-item-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto}
.gift-item.mine{background:#fff8ed;border-radius:12px;padding-left:12px;padding-right:12px}
.gift-item.claimed .gift-item-info strong{text-decoration:line-through;color:#7b8881}
.status-badge{display:inline-flex;align-items:center;min-height:32px;padding:5px 12px;border-radius:30px;font-size:13px;font-weight:800}
.status-badge.taken{background:#ebf5ef;color:#286e50}
.status-badge.mine{background:var(--orange);color:#3d2408}
.shared-list-link{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid #e9ece7;text-decoration:none;color:var(--navy);min-height:44px}
.shared-list-link:last-child{border-bottom:0}
.shared-list-link small{color:var(--muted);white-space:nowrap}
.gift-dialog [hidden]{display:none!important}
.my-lists{margin-bottom:20px}
.list-state{display:inline-block;padding:2px 9px;border-radius:20px;font-size:12px;font-weight:800}
.list-state.shared{background:#e5f3eb;color:#205c47}
.list-state.private{background:#eef0f4;color:#3c4a66}
#privateState[hidden],#shareRow[hidden]{display:none}
.back-link{display:inline-flex;align-items:center;min-height:44px;padding:9px 16px;margin-top:14px;border-radius:30px;background:var(--mint);color:var(--forest);font-weight:800;font-size:14px;text-decoration:none}
.back-link:hover{background:#d1eadf}
.back-link[hidden]{display:none}
.my-lists-banner{margin:4px 0 0}
#sharedListsPanel{scroll-margin-top:16px}
.list-settings{margin-top:26px;padding-top:20px;border-top:1px solid #e9ece7}
.list-settings h2{font-size:17px}
.delete-list{width:100%;margin-top:14px}
.subscribe-box{display:grid;gap:4px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 16px;margin:0 0 18px}
.subscribe-box[hidden]{display:none}
.subscribe-box label{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:700;color:#245844;cursor:pointer}
.subscribe-box input{width:22px;height:22px;accent-color:#185947;flex:0 0 auto}
.subscribe-box small{color:var(--muted);font-size:12px}
.test-tools{margin:14px 0 0;padding-top:12px;border-top:1px dashed #d9dccf}.test-tools[hidden]{display:none}
/* V15 idea details: note, favourite, introduction, event date, opt-in count */
.field textarea{padding:12px 14px;border:1px solid #cbd5ce;border-radius:9px;width:100%;min-width:0;color:var(--ink);background:#fff;font:inherit;font-size:15px;resize:vertical;min-height:70px}
.check-field{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;font-weight:700;color:#245844;cursor:pointer}
.check-field input{width:22px;height:22px;accent-color:#185947;flex:0 0 auto}
.check-field small{display:block;font-weight:400;color:var(--muted);font-size:12px}
.gift-note{display:block;margin-top:3px;color:#4b5b55;font-size:13px;white-space:pre-line;overflow-wrap:anywhere}
.favorite-badge{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:20px;background:#fff1dc;color:#7a4b12;font-size:11px;font-weight:800;vertical-align:2px;white-space:nowrap}
.gift-item.favorite{box-shadow:inset 3px 0 0 var(--orange);padding-left:12px}
.list-intro{max-width:720px;margin:-12px 0 18px;padding:14px 16px;background:#fff;border:1px solid var(--line);border-radius:14px;white-space:pre-line;overflow-wrap:anywhere}
.list-intro[hidden],.event-date[hidden],.reserved-count[hidden]{display:none}
.event-date{display:inline-flex;align-items:center;gap:6px;margin:-14px 0 18px;padding:6px 13px;border-radius:30px;background:var(--mint);color:var(--forest);font-weight:800;font-size:14px}
.reserved-count{margin:12px 0 0;padding:10px 13px;border-radius:10px;background:#eef0f4;color:#2c3a58;font-weight:800;font-size:14px}
.settings-form{margin-top:14px}
.count-warning{margin:-4px 0 0 32px;color:#7a4b12;font-size:12px}
.test-result{margin:10px 0 0;padding:10px 13px;border-radius:10px;border:1px solid #e7c5ab;background:#fff7ec;color:#6d4b2e;font-size:14px;font-weight:700}
.test-result.is-success{border-color:#a1d9bc;background:#e9f7ee;color:#185947}
.test-result[hidden]{display:none}
/* "Mes listes de cadeaux": created and received lists */
.my-lists-sub{font-size:14px;letter-spacing:.02em;text-transform:uppercase;color:#6a7a73;margin:16px 0 2px}
.my-lists-sub[hidden]{display:none}
.received-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e9ece7}
.received-row:last-child{border-bottom:0}
.received-row .shared-list-link{flex:1;min-width:0;border-bottom:0;flex-wrap:wrap}
.received-row .shared-list-link small{white-space:normal}
.received-remove{flex:0 0 auto;color:#8b3528}
/* Zamilist Plus: autofill from a product link, and product photos */
.autofill{display:grid;gap:7px;margin-top:8px;justify-items:start}
.autofill-button{border:1px dashed #9cc3ae;background:#f2f8f4;color:#185947;border-radius:10px;padding:8px 12px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.autofill-button:hover{background:#e7f3ec}
.autofill-button:disabled{opacity:.6;cursor:progress}
.autofill-status{color:#55657a;font-size:12.5px;line-height:1.45}
.autofill-status:empty{display:none}
.autofill-status a{color:#185947;font-weight:800}
.autofill-photo{display:flex;align-items:center;gap:10px}
.autofill-photo[hidden]{display:none}
.autofill-photo img{width:64px;height:64px;object-fit:contain;border-radius:10px;border:1px solid #e3e8e3;background:#fff}
.gift-thumb{width:56px;height:56px;flex:0 0 56px;object-fit:contain;border-radius:10px;border:1px solid #e3e8e3;background:#fff;align-self:flex-start}
.affiliate-notice{margin-top:14px;color:#6b7a86;font-size:12px}
