/* Axiome JDC — feuille de style
   Mise en page : colonne éditoriale de 72rem, sections alternées papier / encre,
   repères "axiomes" numérotés uniquement là où l'ordre a un sens. */

@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/public-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap; src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Couleur */
  --paper: #f5f7f2;
  --surface: #ffffff;
  --ink: #28313b;         /* anthracite du logo */
  --muted: #535c63;
  --line: #dbe1d3;
  --accent: #4f7a00;      /* vert du logo, assombri pour le texte */
  --brand: #7fb402;       /* vert du logo Axiome JDC */
  --on-brand: #1c232b;
  --accent-ink: #1c232b;
  --signal: #7fb402;
  --deep: #28313b;        /* bandeaux sombres */
  --deep-fg: #eef2ea;
  --deep-muted: #b4bdb0;
  --focus: #7fb402;
  /* Typo */
  --display: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 3.6rem);
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161c22; --surface: #1e262e; --ink: #e9eee5; --muted: #a8b2a6; --line: #2f3a42;
    --accent: #a5d63a; --brand: #8fc41a; --on-brand: #141a10; --accent-ink: #141a10; --signal: #a5d63a; --deep: #0f1418; --deep-fg: #e9eee5; --deep-muted: #a3ad9f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #161c22; --surface: #1e262e; --ink: #e9eee5; --muted: #a8b2a6; --line: #2f3a42;
    --accent: #a5d63a; --brand: #8fc41a; --on-brand: #141a10; --accent-ink: #141a10; --signal: #a5d63a; --deep: #0f1418; --deep-fg: #e9eee5; --deep-muted: #a3ad9f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--step-0); line-height: 1.65; }
img, svg { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
p + p { margin-top: 0.9em; }
ul { margin: 0; padding-left: 1.2em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section--deep { background: var(--deep); color: var(--deep-fg); }
.section--deep a:not(.btn) { color: var(--signal); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 40rem; line-height: 1.55; }
.section--deep .lead { color: var(--deep-muted); }
.eyebrow { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.section--deep .eyebrow { color: var(--signal); }
.section-head { display: flex; flex-direction: column; gap: 0.75rem; max-width: 46rem; margin-bottom: 2.5rem; }
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.2rem; margin-bottom: 0.8rem; font-size: var(--step-2); }
.prose ul { margin-top: 0.6rem; display: grid; gap: 0.35rem; }

/* En-tête */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--display); font-weight: 500; font-size: 1.45rem; line-height: 1; letter-spacing: 0; }
.brand-name b { font-weight: 600; color: var(--brand); }
.brand-name small { display: block; font-family: var(--display); font-weight: 600; font-size: 0.56rem; color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase; margin-top: 0.35rem; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font: inherit; font-weight: 600; padding: 0.4rem 0.75rem; cursor: pointer; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin-top: 0.8rem; text-align: center; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--body); font-weight: 700; font-size: 1rem; padding: 0.8rem 1.3rem; border-radius: 999px; text-decoration: none; border: 2px solid var(--brand); cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); }
.nav .btn { color: var(--on-brand); padding: 0.55rem 1.1rem; font-size: 0.92rem; }
.section--deep .btn--ghost { color: var(--deep-fg); border-color: var(--deep-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { margin-top: 1.25rem; }
.hero .actions { margin-top: 2rem; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--deep); display: grid; place-items: center; position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait-initials { font-family: var(--display); font-weight: 600; font-size: clamp(3rem, 8vw, 5rem); color: var(--deep-fg); letter-spacing: -0.04em; }
.portrait-initials span { color: var(--signal); }
.hero-card dl { margin: 0; display: grid; gap: 0.6rem; }
.hero-card dl div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: 0.5rem; font-size: 0.95rem; }
.hero-card dt { color: var(--muted); }
.hero-card dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-card { max-width: 26rem; } .portrait { aspect-ratio: 16 / 10; } }

/* Chiffres : trois variantes (bandeau, cartes, références) */
.proof-band { background: var(--deep); color: var(--deep-fg); padding-block: clamp(2rem, 4.5vw, 3.25rem); }
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figs > div { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.25rem 1.5rem; border-left: 1px solid color-mix(in srgb, var(--deep-muted) 30%, transparent); min-width: 0; }
.figs > div:first-child { border-left: 0; padding-left: 0; }
.figs strong { font-family: var(--display); font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem); font-weight: 700; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.figs span { color: var(--deep-fg); font-size: 0.97rem; line-height: 1.45; }
.figs small { color: var(--deep-muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.2rem; }
@media (max-width: 860px) {
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; }
  .figs > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 420px) { .figs > div { padding: 0.25rem 0 0.25rem 1rem; } .figs > div:nth-child(odd) { padding-left: 0; } }

.proof-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; }
.proof-cards > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.proof-cards strong { font-family: var(--display); font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); font-weight: 700; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.proof-cards span { color: var(--ink); font-size: 0.95rem; line-height: 1.45; }
.proof-cards small { margin-top: auto; padding-top: 0.6rem; color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 860px) { .proof-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.proof-refs { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--line); display: grid; gap: 0.9rem; }
.proof-refs ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0; }
.proof-refs li { font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.45rem); color: var(--muted); letter-spacing: -0.01em; }
.proof-refs li:not(:last-child)::after { content: ""; display: inline-block; width: 0.38rem; height: 0.38rem; border-radius: 50%; background: var(--brand); margin: 0 1.1rem; vertical-align: middle; }

/* Grilles de cartes */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.section--surface .card { background: var(--paper); }
.card p, .card li { color: var(--muted); }
.card ul { display: grid; gap: 0.3rem; font-size: 0.97rem; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.tag { align-self: flex-start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

/* Situations */
.pains { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.pains li { padding: 1rem 0 1rem 2rem; border-top: 1px solid var(--line); position: relative; }
.pains li::before { content: "?"; position: absolute; left: 0; top: 1rem; font-family: var(--display); font-weight: 700; color: var(--accent); }
@media (max-width: 700px) { .pains { grid-template-columns: minmax(0, 1fr); } }

/* Axiomes (méthode) */
.axioms { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: ax; }
.axioms li { counter-increment: ax; border-top: 2px solid var(--signal); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.axioms li::before { content: "Axiome " counter(ax); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal); }
.axioms p { color: var(--deep-muted); font-size: 0.97rem; }
@media (max-width: 900px) { .axioms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .axioms { grid-template-columns: minmax(0, 1fr); } }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(st, decimal-leading-zero); font-family: var(--display); font-weight: 700; font-size: var(--step-2); color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.steps p { color: var(--muted); margin-top: 0.3rem; }

/* Parcours */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.5rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.timeline .when { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.timeline h3 { margin-bottom: 0.15rem; }
.timeline .org { color: var(--accent); font-weight: 600; font-size: 0.97rem; }
.timeline p, .timeline ul { color: var(--muted); margin-top: 0.5rem; }
@media (max-width: 640px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; } }

/* Zone Sarthe */
.zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .zone { grid-template-columns: minmax(0, 1fr); } }
.towns { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.towns th, .towns td { text-align: left; padding: 0.55rem 0.25rem; border-bottom: 1px solid var(--line); }
.towns th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.towns td:last-child, .towns th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 50rem; }
.faq details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: var(--step-1); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { margin-top: 0.75rem; color: var(--muted); max-width: 44rem; }

/* CTA */
.cta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (max-width: 760px) { .cta { grid-template-columns: minmax(0, 1fr); } }
.phone { font-family: var(--display); font-weight: 700; font-size: var(--step-3); color: inherit; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Formulaire */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem 0.8rem; width: 100%; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .legal { font-size: 0.85rem; color: var(--muted); }
.form .hp { position: absolute; left: -5000px; }
.form-status { font-weight: 600; }
.form-status.is-error { color: #b3261e; }
.aside-box { display: grid; gap: 1.5rem; }
.aside-box h2 { font-size: var(--step-2); }
.aside-box .muted { color: var(--muted); }

/* Pied de page */
.site-footer { background: var(--deep); color: var(--deep-muted); padding-block: 3rem 2rem; font-size: 0.95rem; }
.site-footer a { color: var(--deep-fg); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--deep-fg); margin-bottom: 0.7rem; font-family: var(--body); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.site-footer .brand-name { color: var(--deep-fg); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--deep-muted) 30%, transparent); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.85rem; }

/* Barre d'appel mobile */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
  .mobile-cta .btn { padding: 0.65rem 0.5rem; font-size: 0.95rem; }
  body { padding-bottom: 4.5rem; }
}

.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head .lead { margin-top: 1rem; }
.breadcrumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.todo { background: color-mix(in srgb, var(--signal) 25%, transparent); padding: 0 0.3em; border-radius: 3px; }

/* Bandeau cookies */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; justify-content: center; }
.consent-inner { max-width: 40rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.4rem; box-shadow: 0 10px 40px rgb(0 0 0 / 0.18); display: grid; gap: 0.6rem; font-size: 0.95rem; }
.consent-inner p { margin: 0; color: var(--muted); }
.consent-inner p strong { color: var(--ink); }
.consent .actions { justify-content: flex-end; }
.consent .btn { padding: 0.55rem 1.1rem; font-size: 0.92rem; }
@media (max-width: 700px) { .consent { bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); } }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--deep-fg); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* Barre d'appel mobile : masquée sur la page contact et pendant la saisie (évite qu'elle recouvre le formulaire au-dessus du clavier) */
.page-contact .mobile-cta, .page-merci .mobile-cta { display: none; }
@media (max-width: 700px) { .page-contact, .page-merci { padding-bottom: 0; } }
body:has(input:focus, select:focus, textarea:focus) .mobile-cta { display: none; }
#formulaire { scroll-margin-top: 5.5rem; }
