/* ============================================================
   Cosy Diary — page d'accueil publique (thème Lettre)
   Papier blanc, encre, une touche de rouge, titres manuscrits
   et messages en stickers, comme dans l'application.
   ============================================================ */
.lp { background: var(--bg); color: var(--ink); }
.lp .skip-link { position: absolute; left: -9999px; top: .5rem; z-index: 10; padding: .5rem .9rem; border-radius: 8px; background: var(--accent-fill); color: #FFFFFF; }
.lp .skip-link:focus { left: .5rem; }

/* Barre du haut */
.lp-nav { display: flex; align-items: center; gap: 1rem; max-width: 1120px; margin: 0 auto; padding: 1rem 1.25rem; }
.lp-nav .brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.lp-links { display: flex; gap: 1.4rem; margin-left: auto; }
.lp-links a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .92rem; }
.lp-links a:hover { color: var(--accent); }
@media (max-width: 720px) { .lp-links { display: none; } .lp-nav .btn { margin-left: auto; } }

.lp-note { max-width: 1120px; margin: .5rem auto 0; padding: .7rem 1rem; border: 1.5px dashed var(--accent); border-radius: 10px; color: var(--ink); width: calc(100% - 2.5rem); }

/* Accroche */
.lp-hero { max-width: 1120px; margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.lp-kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.lp-hero h1 { font-family: var(--font-hand); font-weight: 700; font-size: clamp(3rem, 7.5vw, 5.4rem); line-height: .98; letter-spacing: 0; color: var(--ink); margin: 0 0 1.2rem; }
.lp-scribble { position: relative; display: inline-block; color: var(--accent); }
.lp-scribble svg { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .3em; }
.lp-scribble path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.lp-lead { font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); max-width: 34rem; margin: 0 0 1.6rem; }
.lp-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.lp-small { margin: 1rem 0 0; font-size: .86rem; color: var(--ink-3); }

/* Aperçu de l'application */
.lp-mock { position: relative; }
.lp-paper { position: relative; padding: 1.6rem 1.4rem 2.4rem 3rem; border-radius: 18px; background:
    repeating-linear-gradient(180deg, transparent 0 33px, color-mix(in srgb, var(--accent) 9%, transparent) 33px 34px), var(--card);
    border: 1.5px solid var(--ink); box-shadow: 8px 10px 0 -2px color-mix(in srgb, var(--ink) 10%, transparent); transform: rotate(.8deg); }
.lp-counter { position: relative; display: flex; flex-direction: column; align-items: center; margin-bottom: 1.2rem; }
.lp-counter strong { font-size: 2.1rem; font-weight: 900; letter-spacing: -.02em; }
.lp-counter svg { width: 150px; height: 12px; margin-top: -4px; }
.lp-counter path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.lp-hand { font-family: var(--font-hand); font-weight: 700; font-size: 1.25rem; color: var(--ink-2); }
.lp-st { width: fit-content; max-width: 80%; margin: .15rem 0; padding: .45rem .75rem; border-radius: 13px; border: 1.5px solid var(--stk-edge, #FFFFFF);
    box-shadow: 0 0 0 .5px var(--stk-line, rgba(17, 17, 17, .07)), var(--stk-shadow, 0 3px 8px -5px rgba(60, 20, 30, .28)); transform: rotate(var(--r, 0deg)); font-size: .98rem; }
.lp-st.them { background: var(--stk-them, #FFFFFF); color: var(--ink); }
.lp-st.me { margin-left: auto; background: var(--stk-me, #FDF1F4); color: var(--accent); font-weight: 700; }
.lp-st + .lp-st.me { margin-top: -3px; }
.lp-mood { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: .8rem 0; }
.lp-mood .lp-hand { color: var(--accent); }
.lp-face { width: 26px; height: 26px; border-radius: 50%; background: #F7B7C6; position: relative; }
.lp-face::before, .lp-face::after { content: ""; position: absolute; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: #6E0B27; }
.lp-face::before { left: 7px; } .lp-face::after { right: 7px; }
.lp-arrow { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lp-arrow path { stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.lp-polaroid { position: absolute; right: -22px; bottom: -40px; width: 118px; padding: 8px 8px 6px; background: #FFFFFF; border-radius: 4px;
    box-shadow: 0 8px 18px -8px rgba(40, 20, 25, .45); transform: rotate(var(--r)); text-align: center; }
.lp-polaroid span { display: block; height: 86px; border-radius: 2px; background: linear-gradient(160deg, #F4C5A8 0%, #E89A7E 45%, #A4133C 100%); }
.lp-polaroid em { display: block; margin-top: 4px; font-style: normal; font-size: 1.05rem; color: #3D3D3D; }

/* Sections */
.lp-section { max-width: 1120px; margin: 0 auto; padding: 3.5rem 1.25rem; }
.lp-title { font-family: var(--font-hand); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.05; color: var(--ink); margin: 0 0 .4rem; }
.lp-sub { color: var(--ink-2); font-size: 1.05rem; margin: 0 0 2rem; max-width: 40rem; }
.lp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.lp-card { padding: 1.2rem 1.1rem; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); transition: transform .2s var(--ease), border-color .2s; }
.lp-card:nth-child(odd) { transform: rotate(-.4deg); }
.lp-card:nth-child(even) { transform: rotate(.4deg); }
.lp-card:hover { transform: rotate(0) translateY(-2px); border-color: var(--accent); }
.lp-card h3 { font-size: 1.05rem; font-weight: 800; margin: .7rem 0 .35rem; }
.lp-card p { font-size: .92rem; line-height: 1.55; color: var(--ink-2); margin: 0; }
.lp-ic { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px dashed var(--accent); color: var(--accent); }
.lp-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.lp-private { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.5rem; align-items: start; }
.lp-promises { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.lp-promises li { position: relative; padding: .2rem 0 .2rem 2rem; line-height: 1.55; color: var(--ink-2); }
.lp-promises li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 16px; height: 9px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.lp-promises strong { color: var(--ink); }

.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: none; }
.lp-steps li { position: relative; padding: 1.2rem 1.1rem; border-top: 1.5px solid var(--ink); }
.lp-num { font-family: var(--font-hand); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--accent); }
.lp-steps h3 { font-size: 1.08rem; font-weight: 800; margin: .3rem 0 .3rem; }
.lp-steps p { margin: 0; color: var(--ink-2); line-height: 1.55; }

.lp-install-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.lp-install-card { padding: 1.1rem; border-radius: 14px; border: 1.5px dashed var(--line-strong, var(--line)); }
.lp-install-card h3 { margin: 0 0 .4rem; font-size: 1.02rem; font-weight: 800; }
.lp-install-card p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: .94rem; }

.lp-faq { display: grid; gap: .6rem; max-width: 46rem; }
.lp-faq details { border-bottom: 1px solid var(--line); padding: .4rem 0 .8rem; }
.lp-faq summary { cursor: pointer; font-weight: 800; font-size: 1.02rem; list-style: none; display: flex; align-items: center; gap: .6rem; padding: .4rem 0; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::before { content: "+"; display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-weight: 800; flex-shrink: 0; transition: transform .2s; }
.lp-faq details[open] summary::before { transform: rotate(45deg); }
.lp-faq p { margin: .2rem 0 0 2rem; color: var(--ink-2); line-height: 1.6; }

.lp-final { max-width: 1120px; margin: 0 auto; padding: 3rem 1.25rem 4rem; text-align: center; }
.lp-hand-title { font-family: var(--font-hand); font-weight: 700; font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 1.2rem; }
.lp-final .lp-cta { justify-content: center; }

.lp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; max-width: 1120px; margin: 0 auto; padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); border-top: 1.5px solid var(--ink); color: var(--ink-3); font-size: .88rem; }

/* Tablettes et téléphones */
@media (max-width: 980px) {
    .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-private { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 820px) {
    .lp-hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 1.5rem; }
    .lp-mock { max-width: 420px; margin: 0 auto 1.5rem; width: 100%; }
    .lp-steps, .lp-install-grid { grid-template-columns: 1fr; }
    .lp-polaroid { right: -8px; width: 96px; }
    .lp-polaroid span { height: 70px; }
}
@media (max-width: 520px) {
    .lp-grid { grid-template-columns: 1fr; }
    .lp-section { padding: 2.5rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .lp-card { transition: none; } }

/* Pages légales */
.lp-links a[aria-current="page"] { color: var(--accent); }
.legal { max-width: 760px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.legal-date { color: var(--ink-3); font-size: .88rem; margin: 0 0 1.6rem; }
.legal-lead { font-size: 1.08rem; line-height: 1.65; color: var(--ink-2); margin: 0 0 1.5rem; }
.legal section { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.legal h2 { font-size: 1.15rem; font-weight: 800; margin: 0 0 .6rem; }
.legal p, .legal li { line-height: 1.65; color: var(--ink-2); }
.legal p { margin: 0 0 .7rem; }
.legal ul { margin: 0 0 .7rem; padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal strong { color: var(--ink); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal code { font-size: .9em; padding: .05rem .35rem; border-radius: 5px; background: var(--card-2); }
.lp-foot-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.lp-foot-links a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.lp-foot-links a:hover { color: var(--accent); }
