/* Orion Acquisition — feuille de style
   Plan de chantier : grille 12 colonnes, cotations en marge, bandes anthracite pour les temps forts.
   Identité volontairement unique (clair + bandes anthracite), indépendante du thème système. */
:root {
  --ink: #18191B;          /* anthracite : texte, bandes sombres */
  --ink-2: #26282C;        /* anthracite clair : surfaces sur bande sombre */
  --paper: #FFFFFF;        /* fond principal */
  --stone: #F2F2EF;        /* fond de section secondaire */
  --line: #DAD9D3;         /* filets */
  --field: #8E8D87;        /* bordures de champs (3:1 sur blanc) */
  --muted: #55575C;        /* texte secondaire sur clair */
  --on-dark: #F2F1EC;      /* texte sur anthracite */
  --muted-dark: #B3B2AC;   /* texte secondaire sur anthracite */
  --yellow: #F5B700;       /* jaune chantier : la bulle, les accents */
  --yellow-deep: #DDA400;  /* survol des boutons jaunes */

  --f-display: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.35rem + 2.2vw, 2.7rem);
  --step-4: clamp(2.35rem, 1.5rem + 3.8vw, 4.3rem);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--paper);
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; }

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-stretch: 104%; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
p { margin: 0; max-width: 62ch; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--muted); }
.mark { background: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 90%, transparent 90%); }

/* Bandes */
.section { padding-block: clamp(64px, 8vw, 112px); }
.stone { background: var(--stone); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark .eyebrow, .dark .lead { color: var(--muted-dark); }
.dark .accent { color: var(--yellow); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 780px; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 4px;
  border: 2px solid transparent;
  font: 600 1rem/1.2 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-deep); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.light-btn.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* En-tête */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 58px; height: 29px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: 'Jost', var(--f-body); font-weight: 500; letter-spacing: 0.2em; font-size: 1.28rem; }
.brand-name small { font-size: 0.56rem; letter-spacing: 0.56em; margin-top: 5px; }
.header-right { display: flex; align-items: center; gap: 28px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.98rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--yellow); }
.header-cta { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }

.menu { display: none; }
.menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding-block: 8px 24px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.menu-panel a:not(.btn) { padding-block: 14px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.menu-panel .btn { margin-top: 18px; }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; }
  .header-right { gap: 12px; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
}

/* Héros */
.hero { padding-block: clamp(56px, 7vw, 100px) clamp(64px, 8vw, 116px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-level { min-width: 0; display: grid; gap: 14px; justify-items: center; }
.hero-level svg { width: 100%; height: auto; }
.level-caption { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--muted-dark); }
.cote {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
  margin-top: 12px;
}
.cote::before, .cote::after { content: ""; flex: 1; min-width: 16px; height: 1px; background: currentColor; opacity: .55; }
.cote span { text-align: center; white-space: nowrap; }
@media (max-width: 480px) { .cote span { white-space: normal; } }
.bubble { animation: settle 1.7s cubic-bezier(.2, .9, .25, 1.12) .25s both; transform-box: fill-box; transform-origin: center; }
@keyframes settle { from { transform: translateX(-30px); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } .btn { transition: none; } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-level { max-width: 380px; justify-self: start; }
}

/* En-tête de page intérieure */
.page-hero { padding-block: clamp(48px, 6vw, 84px); }
.page-hero .wrap { display: grid; gap: 20px; }
.page-hero h1 { max-width: 18ch; }

/* Grilles de contenu */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 48px; }
.plan-item { display: grid; gap: 12px; align-content: start; border-top: 3px solid var(--ink); padding-top: 22px; min-width: 0; }
.dark .plan-item { border-top-color: var(--yellow); }
.plan-item .eyebrow { margin-bottom: 2px; }
.plan-item p { color: var(--muted); }
.dark .plan-item p { color: var(--muted-dark); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 0 40px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding-block: 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.dark .checks li { border-bottom-color: #3A3C40; }
.tick { flex: none; width: 24px; height: 24px; margin-top: 2px; background: var(--yellow); border-radius: 3px; display: grid; place-items: center; }
.tick svg { width: 14px; height: 14px; }
.checks strong { display: block; font-weight: 600; }
.checks span.sub { display: block; color: var(--muted); font-size: 0.97rem; }
.dark .checks span.sub { color: var(--muted-dark); }

/* Étapes : une vraie séquence */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: etape; }
.steps > li {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px;
  padding-block: 30px;
  border-top: 1px solid var(--line);
}
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before {
  content: counter(etape, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}
.steps .step-body { display: grid; gap: 10px; min-width: 0; }
.steps .step-body p { color: var(--muted); }
.steps .deliverable { font-family: var(--f-mono); font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink); }
.steps .deliverable::before { content: "→ "; }

.steps-compact { list-style: none; margin: 0; padding: 0; counter-reset: etape; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; }
.steps-compact li { counter-increment: etape; display: grid; gap: 8px; align-content: start; padding: 22px 20px 22px 0; border-top: 3px solid var(--yellow); }
.steps-compact li::before { content: counter(etape, decimal-leading-zero); font-family: var(--f-mono); font-size: 0.85rem; color: var(--muted-dark); }
.steps-compact b { font-family: var(--f-display); font-stretch: 104%; font-weight: 700; font-size: 1.08rem; line-height: 1.25; }

/* Zone */
.communes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 32px; }
.communes li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.communes li.main { font-weight: 600; }
.communes .cp { font-family: var(--f-mono); font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 22px;
  font-weight: 600;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.4rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 22px; color: var(--muted); }

/* Bande d'appel */
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { max-width: 20ch; }
.cta-band .cta-copy { display: grid; gap: 14px; min-width: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside { display: grid; gap: 28px; min-width: 0; }
.form { display: grid; gap: 22px; min-width: 0; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.98rem; }
.field .hint { font-size: 0.88rem; color: var(--muted); }
.req { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: 400 1rem/1.4 var(--f-body);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--field);
  border-radius: 4px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--ink); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.form-note { padding: 16px 18px; border-left: 4px solid var(--yellow); background: var(--stone); font-size: 0.95rem; }

/* Texte long (mentions) */
.prose { display: grid; gap: 18px; max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 22px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.todo { background: #FFF3CC; color: var(--ink); padding: 0 4px; font-family: var(--f-mono); font-size: 0.9em; }

/* Pied de page */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: 56px 32px; }
.site-footer .wrap { display: grid; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-top .brand { color: var(--on-dark); }
.footer-top p { color: var(--muted-dark); margin-top: 14px; max-width: 40ch; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 10px 48px; align-content: start; }
.footer-nav a { text-decoration: none; color: var(--on-dark); }
.footer-nav a:hover { color: var(--yellow); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid #3A3C40; font-size: 0.88rem; color: var(--muted-dark); }
.footer-bottom a { color: var(--muted-dark); }

/* Bloc téléphone (page Contact) */
.phone-block { display: grid; gap: 8px; padding: 24px; background: var(--ink); color: var(--on-dark); border-radius: 4px; }
.phone-block .eyebrow { color: var(--muted-dark); }
.phone-block p:last-child { color: var(--muted-dark); }
.phone { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: var(--step-3); line-height: 1.1; color: var(--yellow); text-decoration: none; font-variant-numeric: tabular-nums; }
.phone:hover { text-decoration: underline; text-underline-offset: 6px; }
