/* DevPrestaDev v1.9 — site principal www.devprestadev.com : accueil et blog (sans cookie ni police externe). */

:root {
  --ink: #17223b;
  --ink-soft: #2b3753;
  --muted: #5f6d84;
  --line: #e5e9f1;
  --bg: #f5f7fb;
  --tint: #f7f5ff;
  --brand: #6048db;
  --brand-dark: #4932bd;
  --brand-soft: #ede9ff;
  --night: #17123a;
  --radius: 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #ffffff; color: var(--ink); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
h2 { font-size: clamp(27px, 3.2vw, 40px); margin: 10px 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #ffffff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.main-anchor, section[id] { scroll-margin-top: 84px; }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  background: var(--brand); color: #ffffff !important; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid var(--brand);
  transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 10px 24px #6048db33; }
.btn.secondary, .btn-ghost { background: #ffffff; color: var(--brand) !important; border-color: #d9d2ff; }
.btn.secondary:hover, .btn-ghost:hover { background: var(--brand-soft); border-color: var(--brand); box-shadow: none; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-light { background: #ffffff; color: var(--night) !important; border-color: #ffffff; }
.btn-light:hover { background: #f1edff; border-color: #f1edff; color: var(--night) !important; }
.btn-outline-light { background: transparent; color: #ffffff !important; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #ffffff; }
.link-more { font-weight: 800; text-decoration: none; }
.link-more:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.actions-center { justify-content: center; }
.pill { display: inline-block; margin: 0; padding: 7px 13px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; font-weight: 800; }
.eyebrow { margin: 0; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .12em; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid #eef1f6; }
.top-inner { display: flex; align-items: center; gap: 26px; min-height: 72px; }
.brand { display: inline-flex; line-height: 0; margin-right: auto; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 22px; }
.nav a, .top-login { color: #47546e; font-weight: 600; font-size: 15px; text-decoration: none; }
.nav a:hover, .top-login:hover { color: var(--brand); }
.top-actions { display: flex; align-items: center; gap: 18px; }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 15px; background: #ffffff; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile nav { position: absolute; right: 0; top: calc(100% + 8px); width: min(86vw, 320px); display: flex; flex-direction: column; gap: 2px; padding: 10px; background: #ffffff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px #1b254326; }
.nav-mobile nav a { padding: 12px 14px; border-radius: 12px; color: var(--ink); font-weight: 600; text-decoration: none; }
.nav-mobile nav a:hover { background: var(--bg); }
.nav-mobile nav .btn { margin-top: 6px; color: #ffffff; }

/* ---------- Bandeau d'accueil ---------- */
.hero { background: radial-gradient(1100px 520px at 85% -10%, #efeaff, transparent 70%), #ffffff; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero-inner > * { min-width: 0; }
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: -.045em; margin: 20px 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #5a3fd8, #b062d8); color: transparent; -webkit-background-clip: text; background-clip: text; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 610px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.checks li::before { content: "✓"; color: #16a34a; font-weight: 900; margin-right: 7px; }
.hero-visual { position: relative; }
.hero-stage { position: relative; }
.caption { margin: 30px 0 0; font-size: 12.5px; color: var(--muted); text-align: right; }
.notif { position: absolute; display: flex; gap: 11px; align-items: center; background: #ffffff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 15px; box-shadow: 0 18px 44px #1b254324; font-size: 14px; max-width: 290px; line-height: 1.35; }
.notif strong { display: block; color: var(--ink); }
.notif small { color: var(--muted); font-size: 12.5px; }
.notif-icon { flex: 0 0 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 17px; }
.notif-green { background: #e3f7ea; color: #15803d; }
.notif-lead { left: -26px; bottom: -20px; }
.notif-call { right: -14px; top: -18px; }

/* ---------- Aperçus en direct (démonstrations réduites) ---------- */
.live { display: block; border-radius: 18px; overflow: hidden; border: 1px solid #dfe3ec; background: #ffffff; box-shadow: 0 30px 70px #1f2a4a26; text-decoration: none; }
.tpl-browser { display: flex; align-items: center; gap: 5px; padding: 8px 12px; background: #eef0f6; border-bottom: 1px solid #e3e6ef; }
.tpl-browser i { width: 8px; height: 8px; border-radius: 50%; background: #cfd4e0; }
.tpl-url { margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: #ffffff; color: var(--muted); font-size: 11px; }
.tpl-frame { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #f1edff, #f7f8fb); }
/* Cadre 4,8 fois plus grand, réduit d'autant : la démonstration s'affiche comme sur un écran d'ordinateur. */
.tpl-frame iframe { position: absolute; top: 0; left: 0; width: 480%; height: 480%; border: 0; transform: scale(.208333); transform-origin: 0 0; pointer-events: none; }
.tpl-frame.is-large { aspect-ratio: 16 / 11; }
.tpl-frame.is-large iframe { width: 280%; height: 280%; transform: scale(.357143); }

/* ---------- Métiers ---------- */
.trades { padding: 34px 0 40px; border-top: 1px solid #eef1f6; border-bottom: 1px solid #eef1f6; }
.mini { font-size: 14px !important; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); text-align: center; margin: 0 0 16px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips a { display: block; padding: 8px 15px; border-radius: 999px; background: #ffffff; border: 1px solid var(--line); color: var(--ink-soft); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.chips a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-tint { background: var(--tint); }
.head { max-width: 780px; margin: 0 auto 38px; text-align: center; }
.head .muted { font-size: 17px; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { padding: 28px; border-radius: var(--radius); background: var(--bg); }
.why-card p { color: var(--ink-soft); margin: 0; }
.why-num { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 10px; background: var(--brand); color: #ffffff; font-weight: 800; }
.note { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

/* Cartes des modèles */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.tpl-grid > * { min-width: 0; }
.tpl-card { display: flex; flex-direction: column; background: #ffffff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 18px 44px #1b25430f; transition: transform .2s, box-shadow .2s; }
.tpl-card:hover { transform: translateY(-3px); box-shadow: 0 26px 60px #1b25431f; }
.tpl-shot { display: block; border-bottom: 1px solid var(--line); background: #f3f4f9; }
.tpl-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.tpl-body h3 { margin: 0; font-size: 20px; }
.tpl-body p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.tpl-body .tpl-for { color: var(--muted); font-size: 13.5px; }
.tpl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; padding-top: 12px; }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.steps li { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #ffffff; }
.steps p { color: var(--ink-soft); margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; }

/* Fonctionnalités (fond sombre) */
.section-dark { background: radial-gradient(900px 420px at 10% 0%, #3a2a9c66, transparent 70%), var(--night); color: #e8e6f7; }
.section-dark h2, .section-dark h3 { color: #ffffff; }
.section-dark .eyebrow { color: #b9a9ff; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.feature { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.feature p { margin: 0; color: #cfcbe6; font-size: 15px; }
.feature-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: rgba(185, 169, 255, .16); color: #d8ceff; font-size: 19px; }
.link-light { color: #d8ceff; }
.link-light:hover { color: #ffffff; }

/* Histoire */
.story-inner { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start; max-width: 940px; padding: 40px; border-radius: 26px; background: linear-gradient(135deg, #fff8ef, #fdf2ff); }
.story-mark { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 22px; background: #ffffff; color: var(--brand); font-size: 32px; box-shadow: 0 14px 34px #1b25431a; }
.story p { color: var(--ink-soft); }

/* Offres (lues dans la base par index.php) */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; margin-bottom: 18px; }
.plans-fallback { grid-column: 1 / -1; text-align: center; padding: 30px; border-radius: var(--radius); background: #ffffff; border: 1px solid var(--line); }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 20px; background: #ffffff; border: 1px solid var(--line); box-shadow: 0 14px 34px #1b25430d; }
.plan.is-highlighted { border: 2px solid var(--brand); box-shadow: 0 24px 54px #6048db2b; }
.plan-badge { position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--brand); color: #ffffff; font-size: 12.5px; font-weight: 800; }
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan-tagline { color: var(--muted); font-size: 15px; }
.plan-price { margin: 10px 0 2px; font-size: 15px; color: var(--muted); }
.plan-price strong { font-size: 34px; color: var(--ink); letter-spacing: -.02em; margin-right: 4px; }
.plan-yearly { font-size: 14px; color: var(--ink-soft); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: "✓"; color: #16a34a; font-weight: 900; }
.plan .btn { margin-top: auto; }

/* Options (lues dans la base : comprises dans une offre ou vendues à part) */
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.option { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #ffffff; }
.option h3 { margin-bottom: 4px; }
.option p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.option .option-where { margin-top: 10px; display: inline-block; padding: 4px 10px; border-radius: 999px; background: #e9f7ef; color: #15633a; font-size: 13px; font-weight: 700; }
.option-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 20px; }

/* Blog */
.section-tight { padding-top: 34px; }
.page-head { padding: 34px 0 10px; background: radial-gradient(900px 360px at 85% -20%, #efeaff, transparent 70%), #ffffff; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 50px); margin: 10px 0 12px; letter-spacing: -.035em; }
.crumbs { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 10px; }
.cat-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #ffffff; color: var(--ink-soft); font-size: 14px; font-weight: 700; text-decoration: none; }
.cat-nav a:hover, .cat-nav a[aria-current="page"] { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: #ffffff; box-shadow: 0 14px 34px #1b25430d; }
.post-card-cover { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #ede9ff, #f7f5ff); color: var(--brand-dark); font-weight: 800; text-decoration: none; overflow: hidden; }
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-cover.cat-google { background: linear-gradient(135deg, #e3f1ff, #f3f8ff); color: #1d4ed8; }
.post-card-cover.cat-avis { background: linear-gradient(135deg, #fff1d6, #fff8ea); color: #a15c00; }
.post-card-cover.cat-gestion { background: linear-gradient(135deg, #e3f7ea, #f2fbf5); color: #15633a; }
.post-card-body { padding: 18px 20px 22px; }
.post-card-meta { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.post-card h3 { font-size: 19px; margin: 0 0 8px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand); text-decoration: underline; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.article-head { max-width: 860px; padding-top: 34px; }
.article-head h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.03em; margin: 10px 0 12px; }
.article-head .eyebrow a { color: var(--brand); text-decoration: none; }
.article-meta { color: var(--muted); font-size: 14.5px; }
.article-cover { max-width: 1000px; margin: 22px auto 0; }
.article-cover img { display: block; width: 100%; border-radius: 20px; }
.article-layout { max-width: 860px; padding-top: 26px; padding-bottom: 60px; }
.article-layout.has-toc { max-width: 1120px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }
.article-toc { position: sticky; top: 96px; padding: 18px; border-radius: 16px; background: var(--bg); font-size: 14.5px; }
.article-toc p { margin: 0 0 8px; font-weight: 800; }
.article-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.article-toc a { color: var(--ink-soft); text-decoration: none; }
.article-toc a:hover { color: var(--brand); text-decoration: underline; }
.article-body { font-size: 17.5px; line-height: 1.75; color: var(--ink-soft); min-width: 0; }
.article-body h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 38px 0 12px; scroll-margin-top: 90px; }
.article-body h3 { font-size: 21px; margin: 28px 0 8px; scroll-margin-top: 90px; }
.article-body p, .article-body ul, .article-body ol { margin: 0 0 18px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote { margin: 0 0 18px; padding: 14px 20px; border-left: 4px solid var(--brand); background: var(--tint); border-radius: 0 12px 12px 0; }
.article-body blockquote p { margin: 0; }
.article-body a { color: var(--brand); }
.article-cta { margin-top: 40px; padding: 26px; border-radius: 20px; background: var(--night); color: #e8e6f7; font-size: 16px; line-height: 1.6; }
.article-cta-title { color: #ffffff; font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.article-cta .actions { margin-top: 16px; }
.article-cta .btn-ghost { background: transparent; color: #ffffff !important; border-color: rgba(255, 255, 255, .5); }
.message { padding: 90px 0; }
.message h1 { font-size: clamp(30px, 4vw, 44px); }

/* Questions */
.faq { display: grid; gap: 10px; margin-bottom: 22px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #ffffff; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 30px 16px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-bottom: 6px; }

/* Appel final */
.final { padding: 0 0 76px; }
.final-inner { text-align: center; padding: 58px 30px; border-radius: 30px; background: radial-gradient(700px 300px at 50% -20%, #7c5cff, transparent 70%), var(--night); color: #e8e6f7; }
.final h2 { color: #ffffff; margin-top: 0; }
.final p { max-width: 640px; margin: 0 auto; }

/* Pied de page */
.foot { background: #0f1424; color: #c3cad9; padding: 54px 0 28px; font-size: 14.5px; }
.foot a { color: #e5e9f4; text-decoration: none; }
.foot a:hover { color: #ffffff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot-logo { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 12px; }
.foot-title { color: #ffffff; font-weight: 700; margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 36px; padding-top: 20px; border-top: 1px solid #ffffff1f; font-size: 13.5px; }
.foot-legal a { color: #c3cad9; }

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 16px; }
}
@media (max-width: 980px) {
  .nav, .top-actions { display: none; }
  .nav-mobile { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 34px; }
  .why, .steps { grid-template-columns: 1fr; }
  .article-layout.has-toc { grid-template-columns: 1fr; gap: 20px; }
  .article-toc { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .notif-lead { left: 0; } .notif-call { right: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 52px 0; }
  .hero h1 { font-size: 36px; }
  .lead { font-size: 16.5px; }
  .notif { position: static; margin-top: 12px; max-width: none; }
  .caption { text-align: left; margin-top: 10px; }
  .features, .foot-grid, .tpl-grid, .options, .post-cards { grid-template-columns: 1fr; }
  .article-body { font-size: 16.5px; }
  .tpl-frame.is-large iframe { width: 480%; height: 480%; transform: scale(.208333); }
  .story-inner { grid-template-columns: 1fr; padding: 28px; gap: 18px; }
  .final-inner { padding: 42px 20px; border-radius: 24px; }
  .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tpl-card { transition: none; }
  .btn:hover, .tpl-card:hover { transform: none; }
}
