/* AvecPro homepage. One stylesheet, no framework. */
@font-face {
  font-family: 'Inter';
  src: url('/assets/inter-latin.f11d729b.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --green-50: #ecfdf5;
  --blue: #2563eb;
  --navy: #0b1f2e;
  --navy-2: #12303f;
  --ink: #0f1f2b;
  --muted: #526270;
  --line: #e3ebe7;
  --soft: #f4f8f6;
  --white: #fff;
  --on-green: #052e22;
  --radius: 24px;
  --shadow: 0 18px 50px -18px rgba(11, 31, 46, .28);
  --max: 1160px;
  --header: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--green); color: var(--on-green); box-shadow: 0 10px 24px -10px rgba(16, 185, 129, .8); }
.btn-primary:hover { background: #0fcf93; transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-dark[aria-disabled='true'] { cursor: default; opacity: .92; }
.btn-dark[aria-disabled='true']:hover { transform: none; background: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn-ghost[aria-disabled='true'] { cursor: default; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .95rem; }

/* ── Header ────────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -16px rgba(11, 31, 46, .3); }
.header-inner { height: var(--header); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.brand .a { color: var(--green-600); }
.brand .p { color: var(--blue); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a.link { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .15s, background-color .15s; }
.nav a.link:hover { color: var(--ink); background: var(--soft); }
.lang { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; margin-left: 6px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.lang:hover { box-shadow: inset 0 0 0 1.5px var(--green); }
.header .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--soft); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn .icon { width: 24px; height: 24px; }
.menu-btn .when-open { display: none; }
.menu-btn[aria-expanded='true'] .when-open { display: block; }
.menu-btn[aria-expanded='true'] .when-closed { display: none; }
.panel { display: none; }

@media (max-width: 920px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .panel { position: absolute; left: 0; right: 0; top: var(--header); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(11, 31, 46, .35); padding: 12px 16px 22px; }
  .panel.is-open { display: block; }
  .panel a.link { display: block; padding: 14px 8px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
  .panel .row { display: flex; gap: 10px; margin-top: 16px; align-items: center; }
  .panel .row .btn { flex: 1; margin: 0; }
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% 8%, rgba(16, 185, 129, .16), transparent 60%),
    radial-gradient(700px 420px at 4% 92%, rgba(37, 99, 235, .09), transparent 60%),
    linear-gradient(180deg, #f6fbf9 0%, #fff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; padding: 56px 0 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--green-700); }
.hero .eyebrow { padding: 8px 14px; background: var(--green-50); border-radius: 999px; }
.hero .eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 { margin-top: 22px; font-size: clamp(2.4rem, 1.2rem + 4.6vw, 4.3rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--green-600); }
.hero .lead { margin-top: 22px; font-size: clamp(1.05rem, .95rem + .5vw, 1.25rem); color: var(--muted); max-width: 33em; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.points { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.points .icon { color: var(--green-600); width: 20px; height: 20px; }

.visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone { position: relative; width: min(300px, 74vw); padding: 10px; border-radius: 46px; background: var(--navy); box-shadow: var(--shadow), 0 0 0 2px #1f4256 inset; }
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 76px; height: 22px; margin-left: -38px; background: var(--navy); border-radius: 14px; z-index: 2; }
.screen { border-radius: 36px; overflow: hidden; background: #fff; aspect-ratio: 390 / 800; padding-top: 30px; }
.screen img { width: 100%; height: auto; }
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 18px; padding: 12px 16px 12px 12px; box-shadow: 0 18px 40px -16px rgba(11, 31, 46, .35), 0 0 0 1px rgba(11, 31, 46, .05);
  animation: float 7s ease-in-out infinite;
}
.chip .ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); flex: none; }
.chip .ico .icon { width: 22px; height: 22px; }
.chip b { display: block; font-size: .92rem; line-height: 1.25; font-weight: 700; }
.chip span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.chip-a { left: -14%; top: -1%; }
.chip-b { right: -15%; top: 45%; animation-delay: -2.4s; }
.chip-b .ico { background: #eff4ff; color: var(--blue); }
.chip-c { left: -16%; bottom: 9%; animation-delay: -4.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; padding: 36px 0 64px; gap: 28px; }
  .visual { padding-top: 8px; }
  .chip-a { left: -3%; }
  .chip-b { right: -3%; }
  .chip-c { left: -2%; }
}
@media (max-width: 600px) {
  .chip-a { display: none; }
  .chip-b { right: -2%; top: 50%; }
  .chip-c { left: -2%; bottom: 5%; }
}
@media (max-width: 480px) {
  .chip { padding: 9px 12px 9px 9px; gap: 9px; }
  .chip .ico { width: 34px; height: 34px; border-radius: 10px; }
  .chip b { font-size: .8rem; }
  .chip span { font-size: .7rem; }
  .actions .btn { width: 100%; }
}

/* ── Sections ──────────────────────────────────────────── */
.section { padding: 96px 0; }
.section.soft { background: var(--soft); }
.head { max-width: 44rem; margin-bottom: 48px; }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { margin-top: 12px; font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3rem); line-height: 1.1; letter-spacing: -.028em; font-weight: 800; }
.head p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }
@media (max-width: 720px) { .section { padding: 64px 0; } .head { margin-bottom: 32px; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service:hover { transform: translateY(-4px); border-color: rgba(16, 185, 129, .55); box-shadow: 0 18px 36px -22px rgba(4, 120, 87, .5); }
.service .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; margin-bottom: 16px; }
.service .ico .icon { width: 26px; height: 26px; }
.service h3 { font-size: 1.05rem; font-weight: 700; }
.service p { margin-top: 4px; font-size: .9rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 1040px) { .services { grid-template-columns: repeat(3, 1fr); } .services li:last-child { grid-column: span 1; } }
@media (max-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); gap: 12px; } .service { padding: 18px 16px; } }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 30px 26px 30px; border: 1px solid var(--line); }
.step .num { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; margin-bottom: 20px; }
.step h3 { font-size: 1.18rem; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; }
.step p { margin-top: 10px; color: var(--muted); font-size: .98rem; }
@media (min-width: 1041px) {
  .step:not(:last-child)::after { content: ''; position: absolute; top: 53px; left: calc(26px + 46px + 12px); right: -20px; height: 2px; background: repeating-linear-gradient(90deg, var(--green) 0 6px, transparent 6px 12px); opacity: .6; z-index: 0; }
}
@media (max-width: 1040px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* Why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: box-shadow .2s, transform .2s; }
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.why-card .ico { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--green), var(--green-700)); margin-bottom: 20px; }
.why-card .ico .icon { width: 27px; height: 27px; }
.why-card h3 { font-size: 1.2rem; font-weight: 750; letter-spacing: -.01em; }
.why-card p { margin-top: 8px; color: var(--muted); }
@media (max-width: 1040px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .why { grid-template-columns: 1fr; } .why-card { padding: 24px 22px; } }

/* Artisans */
.pros { position: relative; overflow: hidden; color: #fff; background: radial-gradient(800px 420px at 90% 0%, rgba(16, 185, 129, .28), transparent 62%), linear-gradient(160deg, var(--navy) 0%, #0d2a3a 100%); }
.pros-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pros .eyebrow { color: #6ee7b7; }
.pros h2 { margin-top: 12px; font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3rem); line-height: 1.1; letter-spacing: -.028em; font-weight: 800; }
.pros .lead { margin-top: 16px; color: #b8cbd6; font-size: 1.1rem; max-width: 34em; }
.pros-points { margin-top: 28px; display: grid; gap: 14px; }
.pros-points li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.pros-points .ico { width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .1); color: #6ee7b7; display: grid; place-items: center; flex: none; }
.pros-points .ico .icon { width: 21px; height: 21px; }
.pros h3 { margin-top: 34px; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #8fa8b6; font-weight: 800; }
.pros-steps { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
.pros-steps li { counter-increment: s; background: rgba(255, 255, 255, .07); border-radius: 18px; padding: 16px; font-size: .92rem; color: #dbe7ee; line-height: 1.4; }
.pros-steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--on-green); font-weight: 800; font-size: .85rem; margin-bottom: 10px; }
.pros .actions { margin-top: 30px; }
.pro-card { position: relative; border-radius: 36px; min-height: 440px; background: linear-gradient(160deg, var(--green) 0%, var(--green-700) 100%); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6); }
.pro-card img { width: min(300px, 78%); height: auto; }
.pro-card .chip { animation-duration: 8s; color: var(--ink); }
.pro-card .chip-r { left: 6%; top: 8%; }
.pro-card .chip-o { right: 5%; top: 30%; animation-delay: -3s; }
.toggle { margin-left: 6px; width: 40px; height: 24px; border-radius: 999px; background: var(--green); position: relative; flex: none; }
.toggle::after { content: ''; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
@media (max-width: 920px) { .pros-grid { grid-template-columns: 1fr; gap: 36px; } .pro-card { min-height: 400px; } .pros-steps { grid-template-columns: 1fr; } }

/* About + contact */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about-text p { font-size: 1.12rem; color: var(--muted); }
.about-text p + p { margin-top: 16px; }
.contact-card { background: var(--soft); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { font-size: 1.15rem; font-weight: 750; margin-bottom: 16px; }
.contact-card li + li { margin-top: 10px; }
.contact-card a, .contact-card .row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border-radius: 16px; text-decoration: none; border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.contact-card a:hover { border-color: var(--green); transform: translateX(3px); }
.contact-card .ico { width: 42px; height: 42px; border-radius: 13px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; flex: none; }
.contact-card small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; line-height: 1.2; }
.contact-card strong { display: block; font-weight: 700; line-height: 1.35; word-break: break-word; }
@media (max-width: 920px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 0 24px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: rgba(16, 185, 129, .6); box-shadow: 0 14px 34px -24px rgba(4, 120, 87, .5); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--green-700); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 46em; }
.faq details p a { color: var(--green-700); font-weight: 600; }

/* Final call to action */
.cta { padding: 0 0 96px; }
.cta-box { border-radius: 40px; padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px); text-align: center; color: #fff; background: radial-gradient(600px 300px at 85% 0%, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(140deg, var(--green) 0%, var(--green-700) 100%); }
.cta-box h2 { font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3rem); line-height: 1.1; letter-spacing: -.028em; font-weight: 800; color: var(--on-green); }
.cta-box p { margin-top: 12px; font-size: 1.15rem; color: #063d2c; }
.cta-box .actions { justify-content: center; }
@media (max-width: 720px) { .cta { padding-bottom: 64px; } .cta-box { border-radius: 30px; } }

/* Footer */
.footer { background: var(--navy); color: #b8cbd6; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; }
.footer .brand .a { color: #34d399; }
.footer .brand .p { color: #7aa2ff; }
.footer p { margin-top: 14px; max-width: 26em; font-size: .95rem; }
.footer h4 { margin: 0 0 14px; color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.footer li + li { margin-top: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .88rem; color: #8fa8b6; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Scroll reveal (only when JS is on and motion is welcome) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .service, .why-card { transition: none; }
}
@media print { .header, .chip { display: none; } }

/* Language suggestion bar (French page, English browsers) */
.langbar { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 44px 10px 16px; position: relative; background: var(--navy); color: #dbe7ee; font-size: .92rem; text-align: center; flex-wrap: wrap; }
.langbar[hidden] { display: none; }
.langbar a { color: #6ee7b7; font-weight: 700; }
.langbar button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: #b8cbd6; cursor: pointer; display: grid; place-items: center; }
.langbar button:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* Typographic polish */
h1, h2, h3 { text-wrap: balance; }
.lead, .head p, .step p, .why-card p, .about-text p { text-wrap: pretty; }
.head .eyebrow { margin-top: 0; font-size: .78rem; color: var(--green-700); }
.pros .eyebrow { color: #6ee7b7; }
