/* Site vitrine ProdOS (prod-os.fr). Fond clair, une seule police (Inter) ; Fraunces seulement pour le logo. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 700; font-display: swap; src: url("fonts/fraunces-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #fbfaf7;
  --bg-alt: #f2efe8;
  --white: #ffffff;
  --ink: #16181d;
  --ink-2: #3b3f4a;
  --muted: #676b77;
  --line: #e4e0d6;
  --dark: #0f1116;
  --dark-ink: #ece7dc;
  --dark-muted: #9a978f;
  --amber: #f4a93c;
  --amber-dark: #c97d12;
  --red: #e5483c;
  --radius: 10px;
  --wrap: 1160px;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--ink); font: 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--amber-dark); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* --- En-tête et menu ------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(251 250 247 / 0.96); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo span { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 25px; letter-spacing: -0.01em; color: var(--ink); }
.logo b { color: var(--amber-dark); font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.main-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--amber); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 42px; padding: 0; cursor: pointer; color: var(--ink); }
.menu-toggle svg { display: block; margin: auto; }

@media (max-width: 1000px) {
  .menu-toggle { display: block; }
  .main-nav, .header-actions { display: none; }
  .site-header.open .main-nav,
  .site-header.open .header-actions { display: flex; }
  .site-header.open .header-row { flex-wrap: wrap; height: auto; padding-top: 15px; padding-bottom: 18px; row-gap: 8px; }
  .site-header.open .main-nav { order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 8px 0 0; border-top: 1px solid var(--line); }
  .site-header.open .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-header.open .main-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--amber-dark); }
  .site-header.open .header-actions { order: 4; flex-basis: 100%; padding-top: 8px; }
  .site-header.open .header-actions .btn { flex: 1; }
}

/* --- Boutons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 8px; font: 600 15px/1.2 var(--f-body); text-decoration: none; border: 1px solid transparent; white-space: nowrap; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.btn-primary { background: var(--amber); color: #1b1206; }
.btn-primary:hover { background: #f7b95c; }
.btn-outline { border-color: #cfcabe; color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-text { padding-left: 4px; padding-right: 4px; color: var(--ink-2); }
.btn-text:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.on-dark .btn-outline { border-color: #4a4d56; color: var(--dark-ink); }
.on-dark .btn-outline:hover { border-color: var(--dark-ink); }
.link-arrow { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--amber); padding-bottom: 1px; }
.link-arrow:hover { border-bottom-width: 2px; }

/* --- Sections -------------------------------------------------------------- */
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: var(--dark-ink); }
.section-dark .muted, .section-dark p { color: var(--dark-muted); }
.section-dark h2, .section-dark h3 { color: #fff; }
@media (max-width: 640px) { .section { padding: 60px 0; } .section-tight { padding: 44px 0; } }

.kicker { font-size: 14px; font-weight: 600; color: var(--amber-dark); margin: 0 0 12px; }
.section-dark .kicker { color: var(--amber); }
h1 { font-size: clamp(36px, 5vw, 58px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 640px; }
.muted { color: var(--muted); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 18px; color: var(--ink-2); margin-top: 16px; }
.section-dark .section-head p { color: var(--dark-muted); }

/* --- Bandeau d'ouverture des pages ---------------------------------------- */
.hero { padding: 76px 0 0; }
.hero h1 { max-width: 860px; }
.hero .lead { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-shot { position: relative; margin-top: 56px; }
.hero-shot .screen { border-radius: 12px 12px 0 0; border: 1px solid #1f222b; border-bottom: none; box-shadow: 0 -2px 60px rgb(20 18 12 / 0.12); overflow: hidden; }
.hero-shot .phone { position: absolute; right: 4%; bottom: -40px; width: 23%; max-width: 250px; border-radius: 28px; border: 8px solid #101217; box-shadow: 0 30px 60px rgb(0 0 0 / 0.35); overflow: hidden; background: #101217; }
@media (max-width: 760px) { .hero { padding-top: 48px; } .hero-shot .phone { display: none; } }

.page-hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 20px; }
@media (max-width: 640px) { .page-hero { padding: 48px 0 44px; } }

/* --- Trois colonnes de faits ---------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.fact { border-top: 2px solid var(--ink); padding-top: 20px; }
.fact h3 { font-size: 19px; margin-bottom: 10px; }
.fact p { color: var(--ink-2); font-size: 15.5px; }
.section-dark .fact { border-top-color: var(--amber); }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; gap: 28px; } }

/* --- Lignes texte + capture ------------------------------------------------ */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.reverse .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 16px; }
.feature-text p { color: var(--ink-2); }
.feature-shot { border-radius: 10px; overflow: hidden; border: 1px solid #1f222b; box-shadow: 0 24px 50px rgb(20 18 12 / 0.14); background: var(--dark); }
.feature-shot.paper { border-color: var(--line); background: #f6f0e4; }
.feature-shot.tall { max-height: 560px; }
.feature-shot.tall img { width: 100%; object-fit: cover; object-position: top; }
.ticks { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--amber-dark); border-bottom: 2px solid var(--amber-dark); transform: rotate(-45deg); }
.section-dark .ticks li { color: var(--dark-muted); }
.section-dark .ticks li::before { border-color: var(--amber); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse .feature-text { order: 0; }
  .feature + .feature { margin-top: 64px; }
}

/* --- Étapes d'un projet ---------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); counter-reset: step; }
.steps li { counter-increment: step; padding: 26px 28px 28px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font-size: 14px; font-weight: 700; color: var(--amber-dark); margin-bottom: 10px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 15px; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps li { padding-right: 0; } }

/* --- Cartes de renvoi ------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-decoration: none; transition: border-color 0.15s; }
a.card:hover { border-color: var(--ink); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card .link-arrow { margin-top: auto; align-self: flex-start; padding-top: 18px; border-bottom: none; }
.card .link-arrow span { border-bottom: 1px solid var(--amber); }
@media (max-width: 860px) { .cards, .cards.three { grid-template-columns: 1fr; } }

/* --- Sous-menu des fonctionnalités ---------------------------------------- */
.subnav { position: sticky; top: 72px; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 15px 0; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.subnav a:hover { color: var(--ink); }
@media (max-width: 1000px) { .subnav { top: 72px; } }

.module { padding: 80px 0; border-bottom: 1px solid var(--line); }
.module:last-of-type { border-bottom: none; }
@media (max-width: 640px) { .module { padding: 56px 0; } }

/* --- Listes simples (sécurité, à propos) ----------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
/* Filet entre deux blocs, à la largeur du texte (pas sous les marges de .wrap). */
.split + .split { margin-top: 72px; padding-top: 72px; background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 48px) 1px no-repeat; }
@media (max-width: 640px) { .split + .split { background-size: calc(100% - 32px) 1px; } }
.split h2 { font-size: clamp(24px, 2.6vw, 30px); }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.points h3 { font-size: 17px; margin-bottom: 6px; }
.points p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } .points { grid-template-columns: 1fr; gap: 24px; } }

.quote { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.4; letter-spacing: -0.01em; font-weight: 500; max-width: 860px; }

/* --- Contact --------------------------------------------------------------- */
.contact-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.contact-box h2 { font-size: 26px; margin-bottom: 12px; }
.contact-mail { display: inline-block; font-size: 22px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--amber); margin: 6px 0 16px; overflow-wrap: anywhere; }

/* --- Appel final ----------------------------------------------------------- */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { max-width: 620px; }
.cta p { margin-top: 12px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Pied de page ---------------------------------------------------------- */
.site-footer { background: var(--dark); color: var(--dark-muted); padding: 64px 0 32px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.site-footer .logo span { color: #fff; }
.site-footer .logo b { color: var(--amber); }
.footer-about { margin-top: 16px; max-width: 320px; }
.site-footer h4 { margin: 0 0 14px; color: #fff; font-size: 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid #262a33; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* --- Assistant IA des visiteurs (créé par site.js) ------------------------- */
.pa { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 12px; font-family: var(--f-body); pointer-events: none; }
.pa > * { pointer-events: auto; }
.pa-fab { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border: none; border-radius: 999px; background: var(--ink); color: #fff; font: 600 15px/1 var(--f-body); cursor: pointer; box-shadow: 0 10px 30px rgb(20 18 12 / 0.25); transition: transform 0.15s, background-color 0.15s; }
.pa-fab svg { color: var(--amber); flex: none; }
.pa-fab:hover { background: #262a33; transform: translateY(-1px); }
.pa.is-open .pa-fab span { display: none; }
.pa.is-open .pa-fab { padding: 12px; }
.pa-panel { width: min(390px, calc(100vw - 40px)); height: min(580px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgb(20 18 12 / 0.22); overflow: hidden; }
.pa-panel[hidden] { display: none; }
.pa-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
.pa-head strong { display: block; font-size: 15.5px; color: var(--ink); }
.pa-head span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.pa-close { background: none; border: none; width: 36px; height: 36px; border-radius: 8px; color: var(--ink-2); cursor: pointer; flex: none; }
.pa-close:hover { background: var(--bg-alt); color: var(--ink); }
.pa-close svg { display: block; margin: auto; }
.pa-list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.pa-msg { max-width: 88%; padding: 10px 13px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.pa-msg p { margin: 0 0 0.6em; }
.pa-msg p:last-child { margin-bottom: 0; }
.pa-msg ul, .pa-msg ol { margin: 0.2em 0 0.6em; padding-left: 1.3em; }
.pa-msg ul:last-child, .pa-msg ol:last-child { margin-bottom: 0; }
.pa-msg li + li { margin-top: 3px; }
.pa-msg a { color: var(--amber-dark); font-weight: 600; text-underline-offset: 2px; }
.pa-assistant { align-self: flex-start; background: var(--bg-alt); color: var(--ink); border-bottom-left-radius: 4px; }
.pa-user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.pa-error { background: #fdecea; color: #8a2119; }
.pa-suggest { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 2px; }
.pa-suggest button { background: var(--white); border: 1px solid #d9d4c8; border-radius: 999px; padding: 7px 13px; font: 500 13.5px/1.3 var(--f-body); color: var(--ink-2); cursor: pointer; text-align: left; }
.pa-suggest button:hover { border-color: var(--ink); color: var(--ink); }
.pa-typing { display: flex; gap: 5px; padding: 4px 0; }
.pa-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: 0.4; animation: pa-dot 1.2s infinite ease-in-out; }
.pa-typing span:nth-child(2) { animation-delay: 0.15s; }
.pa-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes pa-dot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 0.9; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .pa-typing span { animation: none; opacity: 0.6; } .pa-fab { transition: none; } }
.pa-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.pa-form textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; padding: 10px 12px; border: 1px solid #d9d4c8; border-radius: 10px; font: 15px/1.4 var(--f-body); color: var(--ink); background: var(--white); }
.pa-form textarea:focus { outline: none; border-color: var(--amber-dark); box-shadow: 0 0 0 3px rgb(244 169 60 / 0.25); }
.pa-send { flex: none; width: 42px; height: 42px; border: none; border-radius: 10px; background: var(--amber); color: #1b1206; cursor: pointer; }
.pa-send:hover { background: #f7b95c; }
.pa-send:disabled { opacity: 0.5; cursor: default; }
.pa-send svg { display: block; margin: auto; }
.pa-note { margin: 0; padding: 0 14px 12px; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.pa-note a { color: var(--muted); }
@media (max-width: 560px) {
  .pa { right: 16px; bottom: 16px; left: 16px; }
  .pa-panel { width: 100%; height: min(560px, calc(100vh - 100px)); }
}
