/* Pages de services A² Agency — pages statiques, même univers que l'accueil */
@font-face { font-family: "Inter Var"; src: url("/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #060912; --navy: #0b1628; --panel: #0f1c31; --line: rgba(194, 231, 255, .14);
  --text: #f2f7fb; --muted: #9fb2c6; --accent: #c2e7ff; --accent2: #7fc0ea; --ink: #08111f;
  --font: "Inter Var", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* barre du haut */
.top { position: sticky; top: 0; z-index: 10; background: rgba(6, 9, 18, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.top img { height: 40px; width: auto; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
.top nav a.btn-primary, .top nav a.btn-primary:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
@media (max-width: 760px) { .top nav .hide-sm { display: none; } }

/* héro */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; left: -300px; top: -420px; border-radius: 50%; background: #1f4d70; filter: blur(140px); opacity: .55; z-index: -1; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.crumbs a { color: var(--muted); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 20px; max-width: 16ch; text-wrap: balance; }
h1 span { color: var(--accent); }
.lead { font-size: clamp(17px, 2vw, 20px); color: #c9d6e3; max-width: 62ch; margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
section.block { padding: 64px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 12px; text-wrap: balance; }
.intro { color: var(--muted); max-width: 64ch; margin: 0 0 32px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; min-width: 0; }
.card h3 { font-size: 18px; margin: 0 0 8px; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: " →"; color: var(--accent); }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; color: #c2cfdc; font-size: 15.5px; }
.works { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.works figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.works img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; }
.works.tall { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.works.tall img { aspect-ratio: 4 / 5; object-position: center; }
.works figcaption { padding: 14px 18px; font-size: 15px; color: #c2cfdc; }
.works figcaption b { color: var(--text); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--accent2); padding-top: 14px; min-width: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-weight: 800; color: var(--accent); font-size: 14px; margin-bottom: 6px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: #c2cfdc; margin: 12px 0 0; max-width: 70ch; }
.cta { padding: 72px 0; background: var(--navy); border-top: 1px solid var(--line); text-align: center; }
.cta p { color: var(--muted); max-width: 56ch; margin: 0 auto 26px; }
.cta .actions { justify-content: center; }

/* pied de page */
footer { padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Études de cas */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; margin: 34px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.facts div { background: var(--bg); padding: 16px 18px; }
.facts dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.facts dd { margin: 0; font-weight: 600; font-size: 15px; }
.grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid.g2 { grid-template-columns: minmax(0, 1fr); } }
.prose p { max-width: 68ch; color: var(--muted); margin: 0 0 14px; }
.banner-shot { margin: 0 0 18px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.banner-shot img { width: 100%; height: auto; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.result { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 760px) { .result { grid-template-columns: minmax(0, 1fr); } }
.stat b { display: block; font-size: clamp(3rem, 8vw, 4.5rem); line-height: 1; letter-spacing: -.03em; color: var(--accent); }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }
.result blockquote { margin: 18px 0 0; padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 14px 14px 0; font-size: 18px; }
.result blockquote cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--muted); }
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.case-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); text-decoration: none; color: var(--text); transition: border-color .2s ease, transform .2s ease; }
.case-card:hover { border-color: rgba(194, 231, 255, .4); transform: translateY(-2px); }
.case-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-card div { padding: 16px 18px 20px; display: grid; gap: 6px; }
.case-card small { color: var(--muted); font-size: 13px; }
.case-card b { font-size: 19px; }
.case-card p { margin: 0; color: var(--muted); font-size: 15px; }
.case-card em { font-style: normal; color: var(--accent); font-size: 14px; font-weight: 600; }

/* Blog */
.post { max-width: 760px; }
.post .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.post .meta b { color: var(--text); font-weight: 600; }
.cover { margin: 0 auto; max-width: 1120px; padding: 0 20px; }
.cover img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); }
.cover figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin: 36px 0; }
.toc p { margin: 0 0 8px; font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.toc ol { margin: 0; padding-left: 20px; color: #c9d6e3; }
.toc li { margin: 4px 0; }
.toc a { color: #c9d6e3; text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }
.post .body { font-size: 18px; line-height: 1.7; color: #d6e1eb; }
.post .body h2 { margin: 48px 0 14px; scroll-margin-top: 90px; }
.post .body h2 .n { color: var(--accent); margin-right: 6px; }
.post .body p { margin: 0 0 18px; }
.post .body ul { margin: 0 0 18px; padding-left: 22px; }
.post .body li { margin: 6px 0; }
.post .body strong { color: var(--text); }
.tip { border-left: 3px solid var(--accent2); background: rgba(127, 192, 234, .08); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 22px 0; font-size: 16.5px; }
.tip b { color: var(--accent); }
.bio { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; background: #0b1628; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; white-space: pre-line; color: #e6eef6; margin: 0 0 18px; }
.cap { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.post .case { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 40px 0; }
.post .case .kicker { margin-bottom: 8px; }
.post .case h3 { margin: 0 0 10px; font-size: 22px; }
.post .case p { margin: 0 0 12px; font-size: 16.5px; }
.author { display: flex; gap: 18px; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 48px; }
.author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; }
.author p { margin: 0; font-size: 15.5px; color: var(--muted); }
.author b { color: var(--text); display: block; font-size: 17px; }
.posts { display: grid; gap: 14px; max-width: 760px; }
.post-card { display: grid; gap: 8px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--text); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.post-card:hover { border-color: rgba(194, 231, 255, .4); transform: translateY(-2px); }
.post-card small { color: var(--muted); font-size: 13px; }
.post-card small span { color: var(--accent); font-weight: 600; }
.post-card b { font-size: 21px; line-height: 1.3; letter-spacing: -.01em; }
.post-card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.post-card em { font-style: normal; color: var(--accent); font-size: 14px; font-weight: 600; }
@media (max-width: 560px) { .post .body { font-size: 17px; } .post-card { padding: 18px; } .post-card b { font-size: 19px; } }

/* Blog 2 */
.tip.warn { border-left-color: #f0b35a; background: rgba(240, 179, 90, .08); }
.tip.warn b { color: #f5c983; }

/* Blog 3 : articles côte à côte */
.posts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); max-width: none; gap: 16px; }
.post-card { grid-template-rows: auto auto 1fr auto; align-content: start; }
.post-card em { margin-top: 6px; }
.posts.single { max-width: 640px; }

/* Menu commun : bouton « Menu » en haut à droite + petit menu déroulant (comme l'accueil) */
.menu-btn {
  position: relative; display: inline-flex; align-items: center; gap: .5rem; height: 36px; padding: 0 .9rem;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .03);
  color: var(--text); font: inherit; font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s;
}
.menu-btn:hover { border-color: rgba(194, 231, 255, .45); background: rgba(194, 231, 255, .06); }
.menu-dot { position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #060912; }
.menu-dot[hidden], .nav-new[hidden], .drop-menu[hidden], .drop-backdrop[hidden] { display: none; }
.drop-backdrop { position: fixed; inset: 0; z-index: 19; }
.drop-menu {
  position: fixed; top: 64px; right: max(20px, calc((100vw - 1120px) / 2 + 20px)); z-index: 20; width: 230px;
  display: flex; flex-direction: column; padding: .45rem;
  background: #0b1222; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  animation: drop-in .18s ease-out;
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.drop-menu a:not(.btn) { display: flex; align-items: center; padding: .55rem .75rem; border-radius: 9px; font-size: 15px; color: var(--text); text-decoration: none; }
.drop-menu a:not(.btn):hover, .drop-menu a:not(.btn):focus-visible { background: rgba(194, 231, 255, .08); }
.drop-menu a[aria-current="page"] { color: var(--accent); }
.drop-menu .drop-cta { margin: .4rem .2rem .2rem; padding: 10px 16px; font-size: 14px; justify-content: center; }
.nav-new { display: inline-block; margin-left: .5rem; padding: .05rem .45rem; border-radius: 999px; background: var(--accent); color: #06101e; font-size: 10.5px; font-weight: 700; }
@media (max-width: 560px) {
  .menu-btn-label { display: none; }
  .menu-btn { width: 40px; padding: 0; justify-content: center; }
  .drop-menu { left: 20px; right: 20px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .drop-menu { animation: none; } }
.audit-offer { margin: 0 auto 18px; max-width: 560px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(194, 231, 255, .06); font-size: 15px; }
.audit-offer b { color: var(--accent); }
