/* Cerberos — site vitrine et guide. Palette de l’icône (bleu, rouge PDF, jaune BD) sur papier, thèmes clair (défaut) et sombre. */

:root {
  --bg: #fbf7ee;
  --bg-soft: #f2ecdd;
  --bg-card: #fffdf8;
  --ink: #17171c;
  --line: #17171c;
  --hair: #ddd4c0;
  --text: #17171c;
  --muted: #55524a;
  --blue: #1f6fe5;
  --red: #e5322d;
  --yellow: #ffd23f;
  --accent: var(--blue);
  --accent-ink: #fff;
  --link: #1557bd;
  --dots: rgba(23, 23, 28, .07);
  --pop: 5px 5px 0 var(--ink);
  --pop-sm: 3px 3px 0 var(--ink);
  --display: "Avenir Next Condensed", "Arial Narrow", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #121522;
  --bg-soft: #191d2e;
  --bg-card: #1e2336;
  --ink: #05060b;
  --line: #e9e4d6;
  --hair: #333a55;
  --text: #f1ede2;
  --muted: #b2b0aa;
  --link: #7fb0ff;
  --accent: #4f8ff5;
  --dots: rgba(255, 255, 255, .05);
  --pop: 5px 5px 0 #000;
  --pop-sm: 3px 3px 0 #000;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #121522;
    --bg-soft: #191d2e;
    --bg-card: #1e2336;
    --ink: #05060b;
    --line: #e9e4d6;
    --hair: #333a55;
    --text: #f1ede2;
    --muted: #b2b0aa;
    --link: #7fb0ff;
    --accent: #4f8ff5;
    --dots: rgba(255, 255, 255, .05);
    --pop: 5px 5px 0 #000;
    --pop-sm: 3px 3px 0 #000;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: .9em; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #17171c; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
svg { width: 1.15em; height: 1.15em; flex: none; }
.halftone { background-image: radial-gradient(var(--dots) 1.4px, transparent 1.6px); background-size: 14px 14px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .78em 1.3em; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid var(--line); font-size: 1rem; cursor: pointer; transition: transform .12s, box-shadow .12s; color: var(--text); background: var(--bg-card); box-shadow: var(--pop-sm); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
:root[data-theme="dark"] .btn:hover, :root[data-theme="dark"] .btn:active { box-shadow: 4px 4px 0 #000; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--ink); }
.btn-small { padding: .45em .9em; font-size: .9rem; box-shadow: 2px 2px 0 var(--ink); }
.btn-store { background: #17171c; color: #fff; border-color: #17171c; padding: .55em 1.2em; }
.btn-store small { display: block; font-size: .7rem; font-weight: 500; line-height: 1.1; opacity: .85; }
.btn-store b { display: block; font-size: 1.15rem; line-height: 1.1; }
.btn-store svg { width: 1.7em; height: 1.7em; }
:root[data-theme="dark"] .btn-store { border-color: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .btn-store { border-color: var(--line); } }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
:root[data-theme="dark"] .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .i-moon { display: block; }
  :root:not([data-theme]) .i-sun { display: none; }
}

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 2px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.3rem var(--display); text-transform: uppercase; color: var(--text); text-decoration: none; letter-spacing: .01em; }
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-link { color: var(--muted); font-size: .9rem; text-decoration: none; font-weight: 600; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 2px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 1.05rem; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .header-actions .btn span { display: none; }
}

/* Sections */
section { padding: 96px 0; }
.section-soft { background-color: var(--bg-soft); border-block: 2px solid var(--line); }
.section-blue { background-color: var(--blue); color: #fff; border-block: 2px solid var(--ink); --text: #fff; --muted: #dce8ff; --link: #fff; --dots: rgba(255, 255, 255, .12); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 0; }
.fine { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 28px; }

/* Héros */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); line-height: .98; }
.hero h1 em { font-style: normal; color: var(--red); display: inline-block; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; color: var(--text); background: var(--yellow); border: 2px solid var(--line); border-radius: 99px; padding: 5px 14px; margin-bottom: 22px; box-shadow: var(--pop-sm); color: #17171c; }
.lead { font-size: 1.22rem; color: var(--muted); margin: 0 0 30px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.note { color: var(--muted); font-size: .9rem; margin-top: 20px; }
.formats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.formats li { font: 700 .85rem var(--mono); border: 2px solid var(--line); border-radius: 8px; padding: 3px 10px; background: var(--bg-card); }
.formats li.out { background: var(--red); color: #fff; border-color: var(--ink); }
.formats li.arrow { border: 0; background: none; padding: 3px 2px; color: var(--muted); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  section { padding: 72px 0; }
}

/* Appareils (captures iPhone / iPad) */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 520px; }
.phone { width: min(280px, 46%); border: 3px solid var(--ink); border-radius: 38px; overflow: hidden; box-shadow: var(--pop); background: #000; }
.phone img { display: block; width: 100%; }
.phones .phone + .phone { margin-left: -64px; transform: rotate(5deg) translateY(-34px); }
.phones .phone:first-child { transform: rotate(-3deg); position: relative; z-index: 1; }
.tablet { border: 3px solid var(--ink); border-radius: 26px; overflow: hidden; box-shadow: var(--pop); background: #000; }
.tablet img { display: block; width: 100%; }
.burst { position: absolute; z-index: 2; top: 2%; right: 4%; width: 132px; height: 132px; display: grid; place-content: center; text-align: center; color: #17171c; font: 800 1.9rem/0.95 var(--display); text-transform: uppercase; transform: rotate(10deg); }
.burst::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); border: 0; clip-path: polygon(50% 0, 61% 18%, 82% 7%, 80% 30%, 100% 34%, 86% 50%, 100% 66%, 80% 70%, 82% 93%, 61% 82%, 50% 100%, 39% 82%, 18% 93%, 20% 70%, 0 66%, 14% 50%, 0 34%, 20% 30%, 18% 7%, 39% 18%); filter: drop-shadow(3px 3px 0 #17171c); }
.burst small { display: block; font: 700 .72rem var(--sans); text-transform: none; margin-top: 4px; }
@media (max-width: 560px) { .phones { min-height: 0; } .burst { width: 104px; height: 104px; font-size: 1.5rem; right: 0; } }

/* Chiffres */
.proof { border-bottom: 2px solid var(--line); padding: 28px 0; background: var(--bg-card); }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.proof strong { display: block; font: 800 2.5rem/1.1 var(--display); color: var(--blue); }
.proof li:nth-child(2) strong { color: var(--red); }
.proof span { color: var(--muted); font-size: .92rem; }
@media (max-width: 700px) { .proof ul { grid-template-columns: repeat(2, 1fr); } }

/* Fonctionnalités */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 40px 0; }
.feature:nth-child(odd of .feature) > :first-child { order: 2; }
.feature h3 { font: 800 clamp(1.7rem, 3.2vw, 2.4rem)/1.08 var(--display); text-transform: uppercase; }
.feature p { color: var(--muted); font-size: 1.08rem; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.checks { list-style: none; padding: 0; margin: 20px 0; }
.checks li { position: relative; padding-left: 30px; margin: 9px 0; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--line); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { width: min(300px, 78%); }
@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature > :first-child { order: 0 !important; }
}

/* Planche dessinée : conversion avant / après */
.panel { background: var(--bg-card); border: 3px solid var(--line); border-radius: 6px; box-shadow: var(--pop); padding: 26px; width: 100%; max-width: 520px; }
.convert { display: grid; gap: 18px; }
.convert-files { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 700 .85rem var(--mono); border: 2px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--bg); }
.chip svg { width: 16px; height: 16px; }
.chip.warn { border-style: dashed; color: var(--muted); text-decoration: line-through; }
.convert-arrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: .9rem; }
.convert-arrow::before, .convert-arrow::after { content: ""; flex: 1; border-top: 2px dashed var(--hair); }
.convert-out { display: flex; align-items: center; gap: 14px; }
.pdf-badge { flex: none; display: grid; place-items: center; width: 58px; height: 72px; background: var(--red); color: #fff; font: 800 1rem var(--display); border: 2px solid var(--ink); border-radius: 6px; box-shadow: var(--pop-sm); }
.convert-out strong { display: block; }
.convert-out small { color: var(--muted); }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 74px 1fr 64px; align-items: center; gap: 10px; font-size: .85rem; }
.bar span:first-child { color: var(--muted); }
.bar i { display: block; height: 14px; border: 2px solid var(--line); border-radius: 4px; background: var(--hair); }
.bar.after i { width: 23%; background: var(--blue); }
.bar b { text-align: right; font-family: var(--mono); font-size: .82rem; }

/* Tableau des profils */
.profiles { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bg-card); border: 3px solid var(--line); border-radius: 8px; box-shadow: var(--pop); overflow: hidden; font-size: .95rem; }
.profiles th, .profiles td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--hair); }
.profiles tr:last-child th, .profiles tr:last-child td { border-bottom: 0; }
.profiles thead th { background: var(--ink); color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
:root[data-theme="dark"] .profiles thead th { background: #05060b; }
.profiles tbody th { font-weight: 700; }
.profiles .num { font-family: var(--mono); font-size: .86rem; white-space: nowrap; }
.kind { display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 99px; padding: 1px 10px; border: 1.5px solid var(--line); white-space: nowrap; }
.kind-gray { background: #e9e6df; color: #17171c; }
.kind-color { background: var(--yellow); color: #17171c; }
.kind-tablet { background: var(--blue); color: #fff; border-color: var(--ink); }
.table-wrap { overflow-x: auto; padding: 0 8px 8px 0; }

/* Cartes */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--bg-card); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--pop-sm); }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.tile { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--yellow); color: #17171c; border: 2px solid var(--line); margin-bottom: 14px; }
.tile svg { width: 24px; height: 24px; }
.card:nth-child(3n+2) .tile { background: var(--blue); color: #fff; }
.card:nth-child(3n) .tile { background: var(--red); color: #fff; }
.section-blue .card { color: #17171c; --muted: #55524a; }
:root[data-theme="dark"] .section-blue .card, :root[data-theme="dark"] .section-blue .card h3 { color: var(--text); }

/* Offre */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 900px; margin: 0 auto; }
.plan { background: var(--bg-card); color: #17171c; border: 3px solid var(--ink); border-radius: 10px; padding: 30px; box-shadow: 6px 6px 0 var(--ink); }
.plan h3 { font: 800 1.7rem var(--display); text-transform: uppercase; margin-bottom: 4px; }
.plan .price { color: #55524a; margin: 0 0 14px; font-weight: 600; }
.plan.premium { background: var(--yellow); }
.plan .checks li::before { background: #fff; border-color: #17171c; }
.plan.premium .checks li::before { background: var(--red); }
:root[data-theme="dark"] .plan:not(.premium) { color: var(--text); }
:root[data-theme="dark"] .plan:not(.premium) .price { color: var(--muted); }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* Histoire, FAQ, appel final */
.story { max-width: 780px; }
.story h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.story p { color: var(--muted); font-size: 1.1rem; }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 2px solid var(--hair); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 1.3em/1 var(--display); color: var(--red); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 12px 0 0; }
.final { text-align: center; }
.final img { border-radius: 24px; margin-bottom: 18px; border: 3px solid var(--ink); box-shadow: var(--pop); }
.final h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.final p { color: var(--muted); font-size: 1.12rem; }
.final .cta-row { justify-content: center; margin-top: 26px; }

/* Pied de page */
.site-footer { border-top: 2px solid var(--line); padding: 36px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-footer small { color: var(--muted); display: block; margin-top: 6px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.site-footer nav a:hover { color: var(--text); }

/* Apparition */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.js .reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .btn { transition: none; } }

/* Guide */
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; width: min(1180px, 100% - 40px); margin: 0 auto; padding: 40px 0 80px; }
.guide-toc { position: sticky; top: 92px; align-self: start; font-size: .93rem; }
.guide-toc h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.guide-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--hair); }
.guide-toc a { display: block; padding: 4px 14px; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.guide-toc a:hover { color: var(--text); }
.guide-toc a.active { color: var(--text); border-left-color: var(--red); font-weight: 600; }
.guide { min-width: 0; max-width: 780px; }
.guide h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.guide > p.lead { margin-bottom: 8px; }
.guide h2 { font-size: 1.9rem; margin-top: 2.2em; padding-top: .2em; }
.guide h3 { font-size: 1.15rem; margin-top: 1.6em; }
.guide p, .guide li { color: var(--text); }
.guide li { margin: 5px 0; }
.guide .table-wrap { margin: 1.2em 0; }
.guide .profiles { font-size: .92rem; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 2px 0 14px 50px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; background: var(--yellow); color: #17171c; border: 2px solid var(--line); border-radius: 50%; font: 800 1.05rem var(--display); }
.options { display: grid; gap: 0; margin: 1em 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-card); }
.options div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--hair); }
.options div:last-child { border-bottom: 0; }
.options dt { font-weight: 700; }
.options dt small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.options dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .options div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.tip { margin: 1.4em 0; padding: 14px 18px; border: 2px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--yellow) 30%, var(--bg-card)); box-shadow: var(--pop-sm); }
.tip strong:first-child { display: block; margin-bottom: 2px; }
.recipes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.2em 0; }
.recipes .card h3 { margin-bottom: 6px; }
@media (max-width: 640px) { .recipes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .guide-toc { position: static; }
  .guide-toc ul { display: flex; flex-wrap: wrap; border: 0; gap: 6px; }
  .guide-toc a { border: 2px solid var(--hair); border-radius: 99px; padding: 3px 12px; margin: 0; }
}

/* Pages simples */
.not-found { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 10px; padding: 40px 20px; }
.not-found img { margin: 0 auto; border-radius: 22px; border: 3px solid var(--ink); }
.not-found .btn { margin: 4px; }
