:root {
  --bg: #f7f5f0;
  --bg2: #efece4;
  --ink: #14231f;
  --muted: #55645f;
  --line: rgba(20, 35, 31, .12);
  --card: #ffffff;
  --accent: #2b8a74;
  --accent-d: #1f6f5c;
  --on-accent: #ffffff;
  --shadow: 0 18px 50px -18px rgba(20, 35, 31, .35);
  --radius: 20px;
  --max: 1120px;
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, -apple-system, "Inter", "Hiragino Sans", "Noto Sans JP", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1715; --bg2: #141f1c; --ink: #eaf2ef; --muted: #9fb2ac; --line: rgba(234, 242, 239, .14);
    --card: #172421; --accent: #46b79d; --accent-d: #5fd0b5; --on-accent: #06211a; --shadow: 0 18px 50px -18px rgba(0, 0, 0, .7);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-d); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 300; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 400; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 40em; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; color: var(--accent-d); font-weight: 600; margin-bottom: 1rem; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 99; border-radius: 8px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(1.4); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: .02em; color: var(--ink); text-decoration: none; font-size: 1.15rem; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: .8em 1.4em; border-radius: 999px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600; border: 0; font-size: 1rem; transition: transform .15s, background .15s, box-shadow .15s; box-shadow: 0 8px 24px -10px var(--accent); }
.btn:hover { background: var(--accent-d); color: var(--on-accent); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: inherit; border: 1px solid currentColor; box-shadow: none; opacity: .9; }
.btn.ghost:hover { background: rgba(255,255,255,.12); color: inherit; }
.nav .btn { padding: .55em 1.1em; font-size: .9rem; color: var(--on-accent); }
.menu-toggle { display: none; }

/* hero */
.hero { position: relative; color: #fff; text-align: center; padding: 96px 0 0; background: #24433d center / cover no-repeat; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 24, 22, .55), rgba(8, 24, 22, .25) 45%, rgba(8, 24, 22, .6)); z-index: -1; }
.hero .eyebrow { color: #cfeee6; }
.hero h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, .35); max-width: 14em; margin-inline: auto; }
.hero .lead { color: rgba(255, 255, 255, .88); margin-inline: auto; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 28px 0 14px; }
.hero .btn.ghost { color: #fff; }
.fineprint { font-size: .88rem; opacity: .8; }
.frame { margin: 56px auto -90px; width: min(1000px, 100% - 32px); border-radius: 16px; overflow: hidden; background: #0c1513; box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.14); }
.frame .bar { display: flex; gap: 7px; padding: 11px 14px; background: rgba(255, 255, 255, .08); }
.frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.28); }
.frame video, .frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-space { height: 90px; }

/* trust */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 64px 0 24px; color: var(--muted); font-size: .98rem; }
.trust span::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }

section { padding: 84px 0; }
.alt { background: var(--bg2); }
.head { text-align: center; margin-bottom: 48px; }
.head .lead { margin-inline: auto; }

/* styles */
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.style-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.style-card img { aspect-ratio: 8 / 5; object-fit: cover; width: 100%; }
.style-card div { padding: 20px 22px 24px; }
.style-card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.features.cols3 { grid-template-columns: repeat(3, 1fr); }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-d); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }

/* split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 1fr 1.05fr; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg) scale(.9); }

/* wallpapers */
.walls { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.walls img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: 12px; }

/* why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why > div { border-top: 2px solid var(--accent); padding-top: 18px; }
.why p { color: var(--muted); }

/* faq */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent-d); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* final cta */
.final { color: #fff; text-align: center; background: #24433d center / cover; position: relative; isolation: isolate; padding: 110px 0; }
.final::before { content: ""; position: absolute; inset: 0; background: rgba(8, 24, 22, .5); z-index: -1; }
.final .lead { color: rgba(255,255,255,.88); margin-inline: auto; }

/* footer */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .94rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 12px; color: var(--ink); font-size: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; } .site-footer a:hover { color: var(--ink); }
.site-footer .legal { margin-top: 36px; font-size: .85rem; }

/* blog + prose */
.page-head { padding: 72px 0 24px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 80px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card div { padding: 20px 22px 24px; }
.post-card small { color: var(--accent-d); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; }
.post-card h3 { margin: 6px 0 8px; font-size: 1.2rem; }
.post-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.post-hero { aspect-ratio: 21 / 9; object-fit: cover; width: min(var(--max), 100% - 40px); margin: 28px auto 0; border-radius: var(--radius); }
.prose { padding: 40px 0 72px; font-size: 1.08rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2em; } .prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .5em; }
.prose img { border-radius: 14px; margin: 1.6em 0; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.4em 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); font-size: 1.15rem; }
.meta { color: var(--muted); font-size: .92rem; }
.callout { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 2.2em 0; text-align: center; }
.callout h3 { margin-top: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; } .crumbs a { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .btn { transition: none; } }

@media (max-width: 920px) {
  .styles, .why, .cards { grid-template-columns: 1fr; }
  .features, .features.cols3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.rev { grid-template-columns: 1fr; gap: 32px; }
  .walls { grid-template-columns: repeat(3, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .nav > a:not(.btn) { display: none; }
  .trust { padding-top: 56px; }
  .hero { padding-top: 64px; }
}
@media (max-width: 520px) {
  .features, .features.cols3 { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}

/* language menu */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--ink); }
.lang svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.lang ul { position: absolute; right: 0; top: 140%; margin: 0; padding: 8px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 150px; z-index: 30; }
.lang li a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.lang li a:hover { background: var(--bg2); }
.lang li a[aria-current] { color: var(--accent-d); font-weight: 600; }
@media (max-width: 920px) { .nav .lang { display: block; } }
html:lang(ja) body, html:lang(zh-Hans) body { line-height: 1.8; }
html:lang(ja) h1, html:lang(zh-Hans) h1 { letter-spacing: 0; font-weight: 400; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3, html:lang(ja) .lead, html:lang(zh-Hans) h1, html:lang(zh-Hans) h2, html:lang(zh-Hans) h3 { word-break: auto-phrase; text-wrap: balance; line-break: strict; }
html:lang(ja) h1 { font-size: clamp(2rem, 5vw, 3.8rem); }

/* tableaux de comparaison : défilement horizontal dans le tableau, jamais sur la page */
.prose table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose th, .prose td { min-width: 7rem; }
.prose th:first-child, .prose td:first-child { min-width: 3rem; }

/* en-tête sur mobile : pas de retour à la ligne dans le bouton ni le sélecteur de langue ; menu de langue visible */
.nav .btn, .lang summary { white-space: nowrap; }
@media (max-width: 920px) {
  .site-header .wrap { gap: 12px; }
  .nav { gap: 14px; }
  .lang { position: static; }
  .lang ul { position: fixed; right: 16px; top: 66px; max-height: 70vh; overflow: auto; }
}
@media (max-width: 520px) {
  .lang summary { font-size: 0; gap: 0; }
  .lang summary svg { width: 20px; height: 20px; }
  .nav .btn { padding: .5em .9em; font-size: .85rem; }
  .brand { font-size: 1.05rem; }
}
