/* Site public de BTP Manager — aucune ressource externe (police locale, images locales). */
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f7fd;
  --bg-deep: #e7eefa;
  --surface: #ffffff;
  --ink: #111844;
  --ink-2: #33477a;
  --muted: #5a6a8c;
  --line: #d6dfec;
  --orange: #f7781a;
  --orange-deep: #d95f06;
  --orange-ink: #b34c05;
  --orange-soft: #fff1e4;
  --blue-soft: #e6effc;
  --green: #17794a;
  --green-soft: #e4f6ec;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 24, 68, 0.05), 0 8px 24px rgba(17, 24, 68, 0.07);
  --shadow-lg: 0 2px 4px rgba(17, 24, 68, 0.06), 0 24px 60px rgba(17, 24, 68, 0.16);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code, kbd {
  font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 0.9em; background: var(--blue-soft); border-radius: 6px; padding: 0.1em 0.4em; overflow-wrap: anywhere;
}
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--orange); }
.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 0.98rem; padding: 9px 13px; border-radius: 10px; }
.nav a:hover { background: var(--blue-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--blue-soft); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn:hover { color: #fff; background: var(--orange-deep); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background 0.15s, transform 0.15s, box-shadow 0.15s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(247, 120, 26, 0.32); }
.btn-primary:hover { background: var(--orange-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--blue-soft); color: var(--ink); }
.btn-lg { padding: 16px 28px; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band-deep { background: linear-gradient(180deg, var(--bg-deep), var(--bg)); }
.section-head { margin-bottom: 44px; }

/* Accroche */
.hero { padding: 72px 0 64px; background: radial-gradient(1100px 520px at 85% -10%, #ffe9d6 0%, rgba(255, 233, 214, 0) 60%), radial-gradient(900px 500px at -10% 10%, #dfeafc 0%, rgba(223, 234, 252, 0) 60%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 52px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--orange-deep); }
.hero .lead { margin-bottom: 28px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 0.95rem; }
.hero-notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* Captures d'écran */
.shot { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); cursor: zoom-in; position: relative; }
.shot::before { content: ""; display: block; height: 30px; background: linear-gradient(#f6f8fc, #edf1f8); border-bottom: 1px solid var(--line); background-image: radial-gradient(circle at 18px 15px, #f2b8a2 5px, transparent 6px), radial-gradient(circle at 36px 15px, #f3d9a0 5px, transparent 6px), radial-gradient(circle at 54px 15px, #b5dcc2 5px, transparent 6px), linear-gradient(#f6f8fc, #edf1f8); }
.shot img { width: 100%; }
.shot.plain::before { display: none; }
.shot.small { box-shadow: var(--shadow); }
figure { margin: 0; }
figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }

/* Grilles et cartes */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .more { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-deep); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.icon.blue { background: var(--blue-soft); color: #25509c; }
.icon.green { background: var(--green-soft); color: var(--green); }
ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li { position: relative; padding-left: 30px; margin-bottom: 9px; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2317794a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Parcours */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; counter-reset: flow; }
.flow li { counter-increment: flow; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; position: relative; box-shadow: var(--shadow); }
.flow li::before { content: counter(flow); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.9rem; margin-bottom: 12px; }
.flow strong { display: block; font-size: 1.04rem; margin-bottom: 4px; }
.flow span { font-size: 0.92rem; color: var(--muted); line-height: 1.45; display: block; }

/* Rangées fonction + capture */
.feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 52px; align-items: center; padding: 44px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.reverse > :first-child { order: 2; }
.feature h3 { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; }

.feature.text-only { grid-template-columns: 1fr; padding: 0; }
.feature.text-only ul.ticks { columns: 2; column-gap: 40px; max-width: 900px; }
.feature.text-only ul.ticks li { break-inside: avoid; }
.more-shots { margin-top: 28px; }
a.more-card { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s; }
a.more-card:hover { border-color: var(--orange); transform: translateY(-2px); color: inherit; }
a.more-card h3 { color: var(--ink); }

/* Étapes numérotées */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps > li { counter-increment: step; position: relative; padding: 4px 0 4px 58px; min-height: 42px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--orange); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; }

/* Tarifs */
.price { display: flex; flex-direction: column; }
.price .tag { align-self: flex-start; }
.price .btn { margin-top: auto; }
.after-grid { margin-top: 32px; margin-bottom: 0; }
.price .amount { font-size: 2.1rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0 4px; }
.price .amount small { font-size: 1rem; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.price.featured { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft), var(--shadow); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-ink); }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.blue { background: var(--blue-soft); color: #25509c; }
table.simple { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
table.simple th, table.simple td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple th { font-weight: 650; color: var(--ink-2); background: var(--bg); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.table-scroll table.simple tr:last-child td { border-bottom: 0; }

/* Encadrés */
.note { border: 1px solid var(--line); border-left: 4px solid var(--orange); background: var(--surface); border-radius: var(--radius-sm); padding: 16px 20px; margin: 0 0 1em; }
.note.info { border-left-color: #3b74d6; }
.note p:last-child { margin-bottom: 0; }
.hash { display: block; font-size: 0.82rem; word-break: break-all; padding: 10px 12px; }

/* Aide */
.help-hero { padding: 56px 0 36px; }
.search { position: relative; max-width: 720px; }
.search input { width: 100%; font: inherit; font-size: 1.08rem; padding: 17px 20px 17px 54px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.search input::placeholder { color: #8795b3; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--muted); pointer-events: none; }
.search-status { margin-top: 12px; color: var(--muted); font-size: 0.95rem; min-height: 1.5em; }
.help-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 44px; align-items: start; padding-bottom: 84px; }
.toc { position: sticky; top: 92px; font-size: 0.96rem; max-height: calc(100vh - 110px); overflow: auto; }
.toc ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--orange); }
.toc .count { color: var(--muted); font-size: 0.85em; }
.help-category { margin-bottom: 44px; }
.help-category > h2 { font-size: 1.5rem; margin-bottom: 6px; }
.help-category > p { color: var(--muted); margin-bottom: 18px; }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
details.faq[open] { box-shadow: var(--shadow); border-color: #c3d0e4; }
details.faq > summary { cursor: pointer; list-style: none; padding: 17px 52px 17px 20px; font-weight: 620; position: relative; line-height: 1.4; }
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform 0.15s; }
details.faq[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
details.faq > summary:hover { color: var(--orange-ink); }
.faq-body { padding: 0 20px 20px; color: var(--ink-2); }
.faq-body > :last-child { margin-bottom: 0; }
.faq-body ol, .faq-body ul { padding-left: 1.3em; margin: 0 0 1em; }
.faq-body li { margin-bottom: 6px; }
.faq-body figure { margin: 16px 0; max-width: 720px; }
.faq-link { font-size: 0.85rem; color: var(--muted); text-decoration: none; }
.faq-link:hover { color: var(--orange-ink); text-decoration: underline; }
[hidden] { display: none !important; }
.no-result { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; }

/* Contact et pied de page */
.contact-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; background: var(--ink); color: #fff; border-radius: 22px; padding: 44px; }
.contact-card h2 { color: #fff; }
.contact-card p { color: #c9d3ec; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list a { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; padding: 14px 18px; color: #fff; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.contact-list svg { width: 22px; height: 22px; color: #ffb27a; flex: none; }
.contact-list span small { display: block; font-weight: 450; color: #c9d3ec; font-size: 0.86rem; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 28px; font-size: 0.95rem; color: var(--ink-2); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.site-footer h4 { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 650; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--orange-ink); text-decoration: underline; }
.site-footer .legal { border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }

/* Agrandissement d'une capture */
dialog.zoom { border: 0; padding: 0; background: transparent; max-width: min(1280px, 96vw); max-height: 94vh; width: auto; }
dialog.zoom::backdrop { background: rgba(10, 15, 44, 0.78); }
dialog.zoom img { max-height: 86vh; width: auto; max-width: 100%; border-radius: 12px; background: #fff; }
dialog.zoom p { color: #e4eaf8; text-align: center; margin: 12px 0 0; font-size: 0.95rem; }
dialog.zoom form { text-align: right; margin-bottom: 8px; }
dialog.zoom button { font: inherit; font-weight: 600; background: #fff; color: var(--ink); border: 0; border-radius: 10px; padding: 8px 16px; cursor: pointer; }

/* Sous-navigation de la page Fonctions */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips a { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; color: var(--ink-2); font-weight: 550; font-size: 0.94rem; }
.chips a:hover { border-color: var(--orange); color: var(--ink); }

@media (max-width: 1020px) {
  .hero .wrap, .feature, .contact-card { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse > :first-child { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .help-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; max-height: none; }
  .toc ul { display: flex; flex-wrap: wrap; gap: 6px; border-left: 0; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin: 0; padding: 6px 13px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .hero { padding: 40px 0 44px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 18px; gap: 2px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; font-size: 1.05rem; }
  .nav .btn { margin: 8px 0 0; }
  .grid-2, .grid-3, .grid-4, .flow { grid-template-columns: 1fr; }
  .feature.text-only ul.ticks { columns: 1; }
  .contact-card { padding: 28px 22px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 24px; }
  .btn-row .btn { width: 100%; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@media print {
  .site-header, .site-footer, .search, .toc, .btn-row { display: none; }
  details.faq { break-inside: avoid; }
}
