/* Akwadoc — site vitrine. Feuille unique, sans framework, pour un chargement rapide. */
:root {
  --green-900: #013a25;
  --green-800: #015536; /* vert du logo */
  --green-700: #0a6b45;
  --green-600: #13855a;
  --green-100: #dff3e9;
  --green-50: #f1faf5;
  --orange-500: #fe9104; /* orange du logo */
  --orange-700: #b45f00; /* orange lisible sur fond clair */
  --orange-50: #fff6ea;
  --ink: #10201a;
  --ink-2: #3c4b45;
  --ink-3: #66756f;
  --line: #dde5e1;
  --bg: #ffffff;
  --bg-soft: #f6f8f7;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -20px rgba(1, 58, 37, .28);
  --shadow-sm: 0 2px 10px -4px rgba(1, 58, 37, .18);
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-800); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--green-900); line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--green-50); color: var(--green-800); padding: .1em .35em; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--green-800); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--green-900); color: #d6e7de; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.section--dark .section-head p { color: #b9d2c5; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-700); margin-bottom: 10px; }
.section--dark .eyebrow { color: var(--orange-500); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 620px; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange-500); color: #2a1600; box-shadow: 0 10px 24px -10px rgba(254, 145, 4, .7); }
.btn--primary:hover { background: #ff9f24; color: #2a1600; }
.btn--green { background: var(--green-800); color: #fff; }
.btn--green:hover { background: var(--green-700); color: #fff; }
.btn--ghost { background: #fff; color: var(--green-800); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green-600); color: var(--green-800); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn--light:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn--sm { padding: 9px 15px; font-size: .92rem; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 150px; height: auto; }
.nav { display: none; }
.nav ul { display: flex; gap: 4px; list-style: none; }
.nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-800); background: var(--green-50); }
.header-actions { display: none; gap: 8px; align-items: center; }
.header-actions .link { color: var(--ink-2); font-weight: 600; text-decoration: none; padding: 8px 12px; font-size: .95rem; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--green-900); cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; padding: 12px 16px 20px; }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav a:not(.btn) { display: block; padding: 12px 4px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .btn-row { margin-top: 16px; }
.mobile-nav .btn { flex: 1 1 100%; }
@media (min-width: 960px) {
  .nav, .header-actions { display: flex; }
  .menu-toggle, .mobile-nav, .mobile-nav.is-open { display: none; }
}

/* Hero */
.hero { position: relative; padding: 56px 0 72px; background: radial-gradient(1000px 420px at 85% -10%, var(--orange-50), transparent 70%), radial-gradient(900px 500px at -10% 20%, var(--green-50), transparent 70%); overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 80px 0 96px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero h1 .hl { color: var(--green-700); }
.hero .lead { margin-bottom: 28px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--green-800); margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); }
.checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; color: var(--ink-2); font-size: .93rem; }
.checks li { display: flex; align-items: center; gap: 7px; }
.checks svg { width: 18px; height: 18px; color: var(--green-600); flex-shrink: 0; }

/* Illustration du parcours (hero) */
.flow { position: relative; display: grid; gap: 14px; }
.flow-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.flow-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.flow-card .tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.flow-card .pill { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--green-100); color: var(--green-800); }
.flow-card .pill--orange { background: var(--orange-50); color: var(--orange-700); }
.docx { font-family: Georgia, "Times New Roman", serif; font-size: .9rem; color: #333; line-height: 1.7; }
.docx .var { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; background: var(--orange-50); color: var(--orange-700); border: 1px dashed #f4c58a; padding: 1px 5px; border-radius: 5px; white-space: nowrap; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { font-size: .78rem; color: var(--ink-3); }
.field span { display: block; margin-top: 3px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: .86rem; color: var(--ink); background: var(--bg-soft); }
.field span.ok { border-color: #9fd6bb; background: var(--green-50); }
.out { display: flex; gap: 10px; flex-wrap: wrap; }
.file { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .85rem; font-weight: 600; color: var(--ink); background: #fff; }
.file i { font-style: normal; font-size: .68rem; font-weight: 800; color: #fff; background: #c2410c; border-radius: 4px; padding: 2px 5px; }
.file i.w { background: #1d4ed8; }
.flow-arrow { display: flex; justify-content: center; color: var(--green-600); }
.flow-arrow svg { width: 22px; height: 22px; }
@media (min-width: 960px) { .flow { padding-left: 24px; } .flow-card:nth-of-type(2) { margin-left: -36px; margin-right: 36px; } }

/* Grilles et cartes */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: #b8dcc9; box-shadow: var(--shadow-sm); }
.card p { color: var(--ink-2); margin-bottom: 0; }
.card ul { margin-top: 12px; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--green-50); color: var(--green-700); margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.icon--orange { background: var(--orange-50); color: var(--orange-700); }
.section--dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.section--dark .card p { color: #b9d2c5; }
.section--dark .icon { background: rgba(254,145,4,.14); color: var(--orange-500); }
.list { list-style: none; display: grid; gap: 9px; }
.list li { position: relative; padding-left: 26px; color: var(--ink-2); }
.list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--green-600); border-bottom: 2.5px solid var(--green-600); transform: rotate(-45deg); }

/* Étapes */
.steps { list-style: none; counter-reset: s; display: grid; gap: 20px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; }
.steps li::before { content: "0" counter(s); font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--orange-500); display: block; margin-bottom: 8px; line-height: 1; }
.steps p { color: var(--ink-2); margin: 0; font-size: .96rem; }

/* Blocs fonctionnalité détaillés */
.feature { display: grid; gap: 32px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 960px) { .feature { grid-template-columns: 1fr 1fr; gap: 64px; } .feature--rev > :first-child { order: 2; } }
.feature .lead { margin-bottom: 18px; }
.panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.panel pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; line-height: 1.7; color: var(--ink); }
.panel pre .k { color: var(--orange-700); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { font-size: .85rem; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; font-size: .84rem; font-weight: 600; }
.status-line li { padding: 6px 11px; border-radius: 9px; background: #fff; border: 1px solid var(--line); }
.status-line li.sep { border: 0; background: none; padding: 0; color: var(--ink-3); }
.status-line li.done { background: var(--green-800); color: #fff; border-color: var(--green-800); }

/* Tableau */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); font-family: var(--font-display); color: var(--green-900); font-size: .92rem; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--ink); }
td.yes { color: var(--green-700); font-weight: 700; }
td.no { color: var(--ink-3); }

/* Tarifs */
.billing-toggle { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); margin: 0 auto 36px; }
.billing-toggle button { border: 0; background: none; padding: 9px 16px; border-radius: 9px; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: #fff; color: var(--green-800); box-shadow: var(--shadow-sm); }
.billing-toggle .save { color: var(--orange-700); font-size: .8rem; margin-left: 4px; }
.plans { display: grid; gap: 20px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; }
.plan--featured { border: 2px solid var(--green-700); box-shadow: var(--shadow); }
.plan .ribbon { position: absolute; top: -13px; left: 24px; background: var(--orange-500); color: #2a1600; font-size: .75rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan .tagline { color: var(--ink-3); font-size: .93rem; min-height: 3em; }
.price { margin: 14px 0 4px; font-family: var(--font-display); color: var(--green-900); }
.price strong { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.price span { color: var(--ink-3); font-size: .92rem; font-weight: 500; }
.price-note { font-size: .85rem; color: var(--ink-3); min-height: 1.5em; margin-bottom: 18px; }
.plan .list { margin: 18px 0 24px; font-size: .94rem; }
.plan .btn { margin-top: auto; width: 100%; }
[data-period="yearly"] .p-monthly, [data-period="monthly"] .p-yearly { display: none; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative; font-family: var(--font-display); font-weight: 700; color: var(--green-900); font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--green-700); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 18px; color: var(--ink-2); }
.faq details > div p:last-child { margin: 0; }

/* Bandeau final */
.cta { background: linear-gradient(135deg, var(--green-800), var(--green-900)); color: #d6e7de; border-radius: var(--radius-lg); padding: 48px 28px; text-align: center; position: relative; overflow: hidden; }
@media (min-width: 900px) { .cta { padding: 64px; } }
.cta::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(254,145,4,.35), transparent 70%); pointer-events: none; }
.cta h2 { color: #fff; max-width: 720px; margin-left: auto; margin-right: auto; }
.cta p { max-width: 620px; margin: 0 auto 26px; color: #c4dccf; }
.cta .btn-row { justify-content: center; position: relative; z-index: 1; }

/* Fil d'Ariane et en-tête de page */
.page-hero { padding: 48px 0 56px; background: radial-gradient(900px 380px at 90% -20%, var(--orange-50), transparent 70%), var(--green-50); border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-bottom: 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .88rem; color: var(--ink-3); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #b5c2bc; }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-700); text-decoration: underline; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 24px; }
.toc a { display: inline-block; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--green-800); }
.toc a:hover { border-color: var(--green-600); }
[id] { scroll-margin-top: 84px; }

/* Pied de page */
.site-footer { background: var(--green-900); color: #a9c4b6; padding: 64px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand img { width: 150px; background: #fff; border-radius: 10px; padding: 8px 10px; margin-bottom: 14px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-family: var(--font); font-weight: 700; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #cfe2d8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: .85rem; }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.plan h2.h3 { font-size: 1.3rem; margin-bottom: 4px; }
.not-found { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.not-found .btn-row { justify-content: center; }
/* Empêche tout débordement horizontal sur mobile. */
.hero-grid > *, .feature > *, .grid > *, .footer-grid > * { min-width: 0; }
.docx .var { white-space: normal; overflow-wrap: anywhere; }
.flow-card header { flex-wrap: wrap; }
@media (max-width: 420px) { .fields { grid-template-columns: 1fr; } }
