/* RPDEV. Thème clair unique. Accent : bleu profond. Rayons : boutons et champs 10px, blocs 18px. */
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f7f8fa;
  --bg-tint: #eef1f6;
  --surface: #ffffff;
  --text: #0e2240;
  --muted: #4d5870;
  --line: #dde2ea;
  --accent: #123f9f;
  --accent-hover: #0d3180;
  --accent-ink: #ffffff;
  --accent-soft: #e6ecf8;
  --shadow: 0 1px 2px rgb(15 27 51 / .05), 0 16px 40px -18px rgb(15 27 51 / .22);
  --r-ctl: 10px;
  --r-box: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { 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: 400 17px/1.6 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--r-ctl); z-index: 30; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.ic { width: 1.25em; height: 1.25em; flex: none; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 24px; border-radius: var(--r-ctl);
  font: 500 16px/1 "Geist", system-ui, sans-serif; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary .ic { transition: transform .25s var(--ease); }
.btn-primary:hover .ic { transform: translateX(3px); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* Navigation (couche 20) */
.nav { position: sticky; top: 0; z-index: 20; background: rgb(247 248 250 / .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { height: 46px; width: auto; }
.foot .brand img { height: 34px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; font: 600 15px/1 "Geist Mono", monospace; letter-spacing: -.04em; }
.brand-name { font-weight: 600; letter-spacing: .03em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 16px; min-height: 50px; }
}

/* Accroche */
.hero { padding: 56px 0 96px; }

/* Fond global fixe (couche -1) : l'image reste en place, les sections défilent par-dessus */
body { background: var(--bg); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(247 248 250 / .94) 0%, rgb(247 248 250 / .82) 40%, rgb(247 248 250 / .3) 62%, rgb(247 248 250 / .1) 100%),
    url("/img/fond-hero.webp") right bottom / cover no-repeat; }
@media (max-width: 960px) {
  body::before { background:
    linear-gradient(180deg, rgb(247 248 250 / .9) 0%, rgb(247 248 250 / .7) 50%, rgb(247 248 250 / .25) 100%),
    url("/img/fond-hero-sm.webp") 65% bottom / cover no-repeat; }
}
.hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.eyebrow { font: 500 13px/1 "Geist Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.06; letter-spacing: -.035em; max-width: 16ch; }
h1 em { font-style: italic; color: var(--accent); padding-bottom: .06em; }
.lead { margin-top: 24px; font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 42ch; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { margin: 0; border-radius: var(--r-box); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; background: var(--bg-tint); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) {
  .hero { padding: 32px 0 72px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
}

/* Sections */
.section { padding: 104px 0; }
.section-tint { background: transparent; }
.h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -.03em; max-width: 24ch; }
.sub { margin-top: 16px; color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
@media (max-width: 640px) { .section { padding: 72px 0; } }

/* Enjeux */
.pains { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pain { background: var(--surface); border-radius: var(--r-box); padding: 28px 28px 30px; border: 1px solid var(--line); }
.pain .ic { width: 28px; height: 28px; color: var(--accent); }
.pain h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.pain p { color: var(--muted); }
.bridge { margin-top: 40px; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 500; letter-spacing: -.015em; max-width: 34ch; padding-left: 20px; border-left: 3px solid var(--accent); }
@media (max-width: 640px) { .pains { grid-template-columns: 1fr; } }

/* Développements : [A A B][C D D][E F F], A et D avec photo */
.bento6 { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blk { position: relative; border-radius: var(--r-box); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.blk-body { padding: 28px; }
.blk-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.blk-ic .ic { width: 22px; height: 22px; }
.blk h3 { font-size: 1.22rem; margin: 18px 0 8px; }
.blk p { color: var(--muted); }
.b-wide { grid-column: span 2; }
.b-photo { display: grid; grid-template-columns: 1fr 1fr; }
.blk-media { position: relative; min-height: 260px; background: var(--bg-tint); }
.blk-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-photo .blk-body { align-self: center; }
.bento6 .blk:nth-child(4) .blk-media { order: 2; }
.b-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.b-accent p { color: rgb(255 255 255 / .82); }
.b-accent .blk-ic { background: rgb(255 255 255 / .14); color: #fff; }
.b-tint { background: var(--accent-soft); border-color: transparent; }
.b-tint .blk-ic { background: var(--surface); }
.bento6 .blk:last-child { grid-column: span 2; }
@media (max-width: 960px) {
  .bento6 { grid-template-columns: 1fr 1fr; }
  .b-wide, .bento6 .blk:last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento6 { grid-template-columns: 1fr; }
  .b-wide, .bento6 .blk:last-child { grid-column: auto; }
  .b-photo { display: flex; flex-direction: column; }
  .blk-media { min-height: 0; aspect-ratio: 3 / 2; }
  .bento6 .blk:nth-child(4) .blk-media { order: 0; }
  .blk-body { padding: 24px; }
}

/* Assistance IA : bandeau bleu */
.ai-sec { background: var(--accent); color: #fff; padding: 104px 0; }
.ai { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.ai .h2 { color: #fff; }
.ai .sub { color: rgb(255 255 255 / .85); }
.ai-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .14); font-weight: 600; font-size: 15px; margin-bottom: 22px; }
.ai-badge .ic { width: 18px; height: 18px; }
.btn-light { margin-top: 32px; background: #fff; color: var(--accent); }
.btn-light:hover { background: var(--accent-soft); }
.ai-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ai-list li { padding: 26px; border-radius: var(--r-box); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); }
.ai-list .ic { width: 28px; height: 28px; color: #fff; }
.ai-list h3 { font-size: 1.15rem; margin: 16px 0 6px; color: #fff; }
.ai-list p { color: rgb(255 255 255 / .82); font-size: 16px; }
@media (max-width: 960px) { .ai { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 640px) { .ai-sec { padding: 72px 0; } .ai-list { grid-template-columns: 1fr; } }

/* Méthode */
.method { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.method-head { position: sticky; top: 120px; }
.method-head .btn { margin-top: 32px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 32px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font: 500 15px/1 "Geist Mono", monospace; color: var(--accent); }
.step h3 { font-size: 1.3rem; margin: 8px 0 8px; }
.step p { color: var(--muted); max-width: 52ch; }
@media (max-width: 960px) { .method { grid-template-columns: 1fr; gap: 48px; } .method-head { position: static; } }

/* À propos */
.about { display: grid; grid-template-columns: auto 1fr; gap: 72px; align-items: start; }
.year { font: 600 clamp(5rem, 13vw, 11rem)/.85 "Geist", sans-serif; letter-spacing: -.06em; color: var(--accent); }
.facts { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; }
.facts li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.facts .ic { color: var(--accent); width: 24px; height: 24px; }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; gap: 24px; } }

/* RGPD */
.gdpr { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.gdpr-badge { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: #fff; margin-bottom: 24px; }
.gdpr-badge .ic { width: 28px; height: 28px; }
.gdpr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gdpr-list li { display: grid; grid-template-columns: 28px 1fr; gap: 18px; padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); }
.gdpr-list .ic { width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.gdpr-list h3 { font-size: 1.15rem; margin-bottom: 6px; }
.gdpr-list p { color: var(--muted); }
@media (max-width: 960px) { .gdpr { grid-template-columns: 1fr; gap: 36px; } }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { margin-top: 40px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; font-size: 1.12rem; font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic { color: var(--muted); transition: transform .3s var(--ease); }
.qa[open] summary .ic { transform: rotate(45deg); color: var(--accent); }
.qa p { padding: 0 48px 26px 0; color: var(--muted); max-width: 68ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.mail { margin-top: 32px; display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.mail:hover { border-color: var(--accent); }
.mail .ic { color: var(--accent); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); padding: 32px; display: grid; gap: 20px; box-shadow: var(--shadow); }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid #b9c1ce; border-radius: var(--r-ctl); padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(18 63 159 / .2); }
.field [aria-invalid="true"] { border-color: #b3321f; }
.help { font-size: 14px; color: var(--muted); }
.err { font-size: 14px; color: #b3321f; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--accent); font-weight: 500; }
.form-status.is-err { color: #b3321f; }
.form.is-sending .btn { opacity: .7; pointer-events: none; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 640px) { .form { padding: 22px; } }

/* Pied de page */
.foot { padding: 48px 0; border-top: 1px solid var(--line); background: var(--surface); }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 40px; align-items: center; color: var(--muted); font-size: 15px; }
.foot-links { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.foot .copy { grid-column: 3; grid-row: 1; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr; } .foot-links { grid-row: auto; } .foot .copy { grid-column: auto; grid-row: auto; } }

/* Pages ciblées */
.page-hero { padding: 40px 0 72px; }
.page-hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 22ch; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--accent); text-decoration: none; }
.prose-sec { padding-top: 24px; }
.prose > * { max-width: 780px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -.025em; margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); font-size: 1.08rem; margin-bottom: 14px; max-width: 68ch; }
.prose ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.prose li { position: relative; padding: 14px 18px 14px 46px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 1.02rem; }
.prose li::before { content: ""; position: absolute; left: 18px; top: 22px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.cta-sec { padding: 0 0 96px; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; background: var(--accent); color: #fff; border-radius: var(--r-box); padding: 44px 48px; max-width: 1152px; }
.cta-box .h2 { color: #fff; }
.cta-box .sub { color: rgb(255 255 255 / .85); }
.cta-box .btn-light { margin-top: 0; }
.related-sec { padding-top: 0; }
.related { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); text-decoration: none; font-weight: 600; transition: border-color .2s; }
.related a:hover { border-color: var(--accent); }
.related .ic { color: var(--accent); }
a.inline { color: var(--accent); font-weight: 500; }
.ai-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.ai-cta .btn-light { margin-top: 0; }
.ai-more { color: #fff; font-weight: 500; text-underline-offset: 4px; }
@media (max-width: 960px) { .page-hero-in { grid-template-columns: 1fr; gap: 36px; } .cta-box { padding: 32px 24px; } }

/* Pages simples */
.page { padding: 72px 0 104px; }
.page .wrap { max-width: 800px; }
.page h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: none; margin-bottom: 32px; }
.page h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.page p { color: var(--muted); margin-bottom: 12px; }

/* Apparition au défilement (activée par JS seulement) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
