/* =========================================================
   NEY INGÉNIERIE — feuille de style
   Bichromie du logo : bleu #024AA5 et noir, sur blanc et gris
   neutres. Le losange du symbole sert de motif récurrent.
   ========================================================= */

:root {
  /* Bleu du logo, relevé sur le fichier fourni */
  --brand: #024AA5;
  --brand-dark: #01397F;   /* survol, texte d'accent sur fond clair */
  --brand-light: #6AA6EC;  /* accents sur fond sombre (contraste AA) */
  --brand-soft: #E7F0FB;   /* fonds teintés discrets */

  --black: #000000;        /* titres et traits, comme le logotype */
  --carbon: #101215;       /* grands aplats sombres */
  --carbon-2: #1B1E22;     /* cartes posées sur fond sombre */

  --paper: #FFFFFF;
  --smoke: #F3F4F6;        /* sections claires */
  --smoke-2: #E4E6EA;

  --ink: #15171A;          /* texte courant */
  --muted: #5C636D;
  --on-dark: #C7CBD1;      /* texte courant sur fond sombre */
  --on-dark-dim: #8D949E;

  --line: #E3E5E9;
  --line-dark: rgba(255, 255, 255, .18);
  --alert: #C62828;

  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shell: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 8vw, 7rem);
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; color: var(--black); }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--brand); color: #fff; padding: .65rem 1.1rem;
  border-radius: var(--radius); text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:where(a, button, input, select, textarea, summary, details):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.shell {
  width: 100%; max-width: var(--shell);
  margin-inline: auto; padding-inline: var(--gutter);
}

.accent { color: var(--brand); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.75rem;
  font-size: .95rem; font-weight: 600; line-height: 1.3;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-invert { background: var(--paper); border-color: var(--paper); color: var(--black); }
.btn-invert:hover { background: var(--smoke-2); border-color: var(--smoke-2); }
.btn-outline { background: transparent; border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: #fff; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 2px 20px rgba(0, 0, 0, .12); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--brand); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-size: 1.5rem; font-weight: 700; letter-spacing: .12em; color: var(--black);
}
/* « INGENIERIE » est espacé pour venir à la largeur de « NEY », et repris
   sans accent comme sur le logo — la graphie exacte est donc écrite dans le
   HTML, sans passer par text-transform. */
.brand-text span {
  font-size: .55rem; font-weight: 400; letter-spacing: .2em;
  color: var(--black); margin-top: .35rem;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  position: relative; padding: .3rem 0;
  font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta)[aria-current="page"]::after { transform: scaleX(1); }
.nav a:not(.nav-cta)[aria-current="page"] { color: var(--black); font-weight: 600; }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: .7rem 1.25rem !important; border-radius: var(--radius); font-weight: 600;
  transition: background-color .18s var(--ease);
}
.nav-cta:hover { background: var(--brand-dark); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 42px; cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
}
.nav-toggle-bars { display: grid; gap: 4px; width: 20px; }
.nav-toggle-bars i { display: block; height: 2px; background: var(--black); transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Motif de fond en losange ---------- */
.hero, .page-hero { position: relative; overflow: hidden; background: var(--smoke); }
.hero::after, .page-hero::after {
  content: ""; position: absolute; z-index: 0;
  width: 46vw; height: 46vw; max-width: 560px; max-height: 560px;
  right: -14vw; top: -16vw;
  background: var(--brand); opacity: .12;
  transform: rotate(45deg);
  pointer-events: none;
}

/* ---------- Hero d'accueil ---------- */
.hero { padding-block: clamp(3.5rem, 7vw, 6rem); }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}
.hero-copy { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand-dark); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 1.8rem; height: 3px; background: var(--brand); }

.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); letter-spacing: -.02em; }
.lede {
  margin-top: 1.4rem; max-width: 56ch;
  font-size: clamp(1rem, 1.5vw, 1.13rem); color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.hero-partners {
  margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--smoke-2);
  font-size: .87rem; color: var(--muted); max-width: 46ch;
}
.hero-partners strong { color: var(--black); }

.hero-panel {
  position: relative; z-index: 1;
  background: var(--carbon); color: #fff; border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .55);
}
.panel-title {
  font-size: .74rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand);
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--line-dark);
}
.gain-list li { padding: 1.35rem 0; border-bottom: 1px solid var(--line-dark); }
.gain-num {
  display: block; font-size: 2.5rem; font-weight: 700; line-height: 1; color: #fff;
}
.gain-num b { font-weight: 700; font-variant-numeric: tabular-nums; }
.gain-label { display: block; margin-top: .5rem; font-size: .9rem; color: var(--on-dark); }
.gain-label a { color: var(--brand); text-decoration-color: rgba(106, 166, 236, .5); }
.gain-label a:hover { color: #fff; }
.panel-note { margin-top: 1.25rem; font-size: .76rem; color: var(--on-dark-dim); line-height: 1.6; }

/* ---------- Fil d'Ariane ---------- */
.fil { background: var(--smoke); border-bottom: 1px solid var(--line); }
.fil ol {
  display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 auto;
  max-width: var(--shell); padding: .7rem var(--gutter);
  font-size: .82rem; color: var(--muted);
}
.fil li + li::before { content: "›"; margin-right: .4rem; color: var(--muted); }
.fil a { color: var(--muted); text-decoration: none; }
.fil a:hover { color: var(--brand); text-decoration: underline; }
.fil [aria-current] { color: var(--black); font-weight: 500; }

/* ---------- Hero de page intérieure ---------- */
.page-hero { padding-block: clamp(3rem, 6vw, 4.5rem); }
.page-hero > .shell { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -.02em; }
.page-hero-slim { padding-block: clamp(2.5rem, 4vw, 3.5rem); }

.anchor-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.anchor-nav a {
  padding: .5rem 1rem; font-size: .85rem; font-weight: 500;
  text-decoration: none; color: var(--black);
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.anchor-nav a:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-light { background: var(--smoke); }
.section-dark { background: var(--carbon); color: var(--on-dark); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .section-lede { color: var(--on-dark); }

.section-head { max-width: 60ch; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head-center { max-width: 60ch; margin-inline: auto; text-align: center; }
.section-head h2, .split h2, .solution-head h2, .cta-inner h2, .contact-side h2, .prose h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -.015em;
}
.section-lede { margin-top: 1rem; color: var(--muted); font-size: 1.03rem; }

/* ---------- Cartes ---------- */
.cards-2, .cards-3, .cards-4 { display: grid; gap: 1.5rem; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  position: relative; display: block;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  transition: border-color .22s var(--ease), transform .22s var(--ease),
              box-shadow .22s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--brand); border-radius: var(--radius) 0 0 0;
  transition: width .3s var(--ease);
}
.card:hover::before { width: 100%; }
.card h3, .card h4 { font-size: 1.2rem; }
.card p { margin-top: .75rem; color: var(--muted); font-size: .94rem; }
.card-num {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  color: var(--brand); margin-bottom: .85rem;
}
.card-tag {
  display: inline-block; margin-bottom: .8rem;
  padding: .25rem .65rem; border-radius: 100px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -24px rgba(0, 0, 0, .35); }
.card-kpi {
  display: inline-block; margin-top: 1.25rem;
  font-weight: 600; font-size: .92rem; color: var(--black);
  border-top: 2px solid var(--brand); padding-top: .7rem;
}
.card-dark { background: var(--carbon-2); border-color: rgba(255,255,255,.14); }
.card-dark p { color: var(--on-dark); }
.card-dark strong { color: #fff; }
.card-equip .equip-spec {
  margin-top: .35rem; font-size: .85rem; font-weight: 600; color: var(--brand-dark);
}

/* ---------- Étapes en losange ---------- */
.diamond-steps {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.diamond-steps li { display: flex; align-items: center; gap: 1.1rem; }
.diamond-steps p { font-size: .98rem; color: var(--on-dark); }
.diamond-steps strong { color: #fff; }
/* Le losange est dessiné par un pseudo-élément pivoté, afin que le chiffre
   reste droit à l'intérieur. */
.diamond {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  font-size: .95rem; font-weight: 700; line-height: 1; color: var(--brand);
}
.diamond::before {
  content: ""; position: absolute; inset: 5px;
  border: 2px solid var(--brand); transform: rotate(45deg);
}

.center-action { margin-top: clamp(2.25rem, 4vw, 3rem); text-align: center; }
.center-action-left { text-align: left; }

/* ---------- Blocs en deux colonnes ---------- */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem); align-items: start;
}
.split-wide { align-items: start; }

.reasons { display: grid; gap: 1.4rem; }
.reasons li { padding-left: 1.5rem; border-left: 3px solid var(--brand); }
.reasons h3 { font-size: 1.1rem; }
.reasons p { margin-top: .4rem; color: var(--muted); font-size: .94rem; }

/* ---------- Texte long ---------- */
.prose { max-width: 68ch; }
.prose-wide { max-width: 78ch; }
.prose h2 { margin-bottom: 1.1rem; }
.prose h3 {
  margin-top: 2.25rem; margin-bottom: .85rem; font-size: 1.15rem;
  padding-bottom: .55rem; border-bottom: 2px solid var(--brand);
  display: inline-block;
}
.prose h3:first-child { margin-top: 0; }
.prose p + p { margin-top: 1rem; }
.prose p { color: var(--muted); }
.prose strong { color: var(--black); font-weight: 600; }

.plain-list { display: grid; gap: .85rem; margin-top: 1.1rem; }
.plain-list li {
  position: relative; padding-left: 1.4rem; color: var(--muted); font-size: .95rem;
}
.plain-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; background: var(--brand); transform: rotate(45deg);
}
.plain-list b { color: var(--black); }
.plain-list-tight { gap: .65rem; font-size: .9rem; }

/* ---------- Circuit CEE ---------- */
.flow { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.flow li { background: #fff; padding: clamp(1.4rem, 2.5vw, 1.9rem) clamp(1.4rem, 2.5vw, 2rem); }
.flow-step {
  display: inline-block; margin-bottom: .6rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand);
}
.flow h3 { font-size: 1.15rem; }
.flow p { margin-top: .5rem; color: var(--muted); font-size: .95rem; max-width: 78ch; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.faq details { background: #fff; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem clamp(1rem, 2vw, 1.5rem);
  font-weight: 600; color: var(--black); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq p {
  padding: 0 clamp(1rem, 2vw, 1.5rem) 1.5rem;
  color: var(--muted); font-size: .95rem; max-width: 80ch;
}

/* ---------- Pages solutions ---------- */
.solution-head {
  padding-bottom: 1.5rem; margin-bottom: clamp(2rem, 3.5vw, 3rem);
  border-bottom: 2px solid var(--black);
}
.solution-index {
  font-size: .76rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .6rem;
}
.solution-kpi { margin-top: .9rem; font-size: 1.05rem; color: var(--muted); }
/* Référence officielle de l'opération : c'est le code que cherchent les
   acheteurs techniques, il doit être visible et sélectionnable. */
.solution-fiche {
  margin-top: .6rem; font-size: .88rem; color: var(--muted);
  padding-left: 1rem; border-left: 2px solid var(--brand);
}
.solution-fiche b { color: var(--black); font-weight: 600; }
.solution-kpi b { color: var(--black); font-size: 1.35rem; }

.benefit-box {
  background: var(--black); color: #fff; border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.25rem);
}
.benefit-box h3 { font-size: 1.2rem; margin-bottom: 1.25rem; }
.benefit-list { display: grid; gap: 1.35rem; }
.benefit-list li { padding-left: 1.5rem; position: relative; }
.benefit-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; background: var(--brand); transform: rotate(45deg);
}
.benefit-list b { display: block; color: #fff; font-size: .97rem; }
.benefit-list span { display: block; margin-top: .3rem; color: var(--on-dark); font-size: .88rem; line-height: 1.65; }

.equipment { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.equipment > h3 {
  font-size: 1.3rem; margin-bottom: 1.5rem;
  padding-bottom: .6rem; border-bottom: 2px solid var(--brand); display: inline-block;
}
.equipment-inline { margin-top: 0; display: grid; gap: 1.25rem; align-content: start; }
.equip-intro { color: var(--muted); font-size: .94rem; }

.kpi-grid {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-block: clamp(2rem, 3.5vw, 3rem);
}
.kpi { background: #fff; padding: clamp(1.4rem, 2.5vw, 1.9rem); }
.kpi b {
  display: block; font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--brand); line-height: 1.1;
}
.kpi span { display: block; margin-top: .6rem; font-size: .89rem; color: var(--muted); }

/* ---------- Photos de matériel ----------
   Vues produit détourées sur blanc : on les contient dans leur cadre au
   lieu de les recadrer, pour ne jamais rogner un appareil. */
.equip-photo {
  margin: 0 0 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .75rem;
}
.equip-photo img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: contain;
}

/* ---------- Barèmes des fiches CEE ---------- */
.bareme {
  margin: 1.75rem 0; overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.bareme figcaption {
  padding: .9rem 1.1rem; font-weight: 600; color: var(--black);
  border-bottom: 1px solid var(--line); background: var(--smoke);
}
.bareme table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.bareme th, .bareme td { padding: .75rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
.bareme thead th {
  font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.bareme tbody th { font-weight: 600; color: var(--black); }
.bareme td { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--brand); }
.bareme tbody tr:last-child th, .bareme tbody tr:last-child td { border-bottom: 0; }
/* Tableau comparatif : cellules de texte, seule la colonne de résultat
   garde l'accent des barèmes. */
.bareme-texte table { min-width: 640px; }
.bareme-texte td { font-weight: 400; color: var(--muted); font-size: .9rem; }
.bareme-texte tbody th { font-size: .9rem; }
.bareme-texte td.valeur { font-weight: 600; color: var(--brand); white-space: nowrap; }
.bareme-texte a, .bareme-texte td.calcul { white-space: nowrap; }

/* ---------- Glossaire ---------- */
.glossaire { display: grid; gap: 0; margin-top: 1.25rem; }
.glossaire > div { padding: 1.1rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 6rem; }
.glossaire > div:first-child { padding-top: 0; }
.glossaire dt { font-weight: 600; color: var(--black); margin-bottom: .35rem; }
.glossaire dd { margin: 0; color: var(--muted); }

.bareme-unite { margin: 0; padding: .7rem 1.1rem; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); }

.formule {
  margin: 1.5rem 0 2rem; padding: 1.75rem 1.5rem; text-align: center;
  background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: var(--radius);
}
.formule-expr { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--black); }
.formule figcaption { margin-top: .4rem; font-size: .85rem; color: var(--muted); }

/* Barème posé sur une section sombre : fond et textes inversés, l'accent
   bascule déjà sur la variante éclaircie via le contexte sombre. */
.bareme-sombre { background: var(--carbon-2); border-color: var(--line-dark); }
.bareme-sombre figcaption { background: rgba(255, 255, 255, .04); color: #fff; border-color: var(--line-dark); }
.bareme-sombre th, .bareme-sombre td { border-color: var(--line-dark); }
.bareme-sombre thead th { color: var(--on-dark-dim); }
.bareme-sombre tbody th { color: #fff; }

/* ---------- Secteurs ---------- */
.secteur-fiches {
  padding: .7rem 1rem; background: var(--brand-soft);
  border-left: 3px solid var(--brand); font-size: .9rem;
}
.secteur-fiches b { color: var(--black); }
.sector-grid {
  display: grid; gap: clamp(1.75rem, 3vw, 2.75rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.sector { text-align: center; }
.sector-icon {
  display: grid; place-items: center; margin: 0 auto 1.25rem;
  width: 86px; height: 86px;
  background: #fff; transform: rotate(45deg);
}
.sector-icon svg { width: 40px; height: 40px; color: var(--brand-dark); transform: rotate(-45deg); }
.sector h2 { font-size: 1.2rem; }
.sector p { margin-top: .7rem; font-size: .92rem; color: var(--on-dark); }

/* ---------- Accompagnement détaillé ---------- */
.steps-detail { display: grid; gap: clamp(2rem, 3.5vw, 3rem); counter-reset: none; }
.steps-detail > li { border-top: 1px solid var(--line); padding-top: clamp(1.5rem, 2.5vw, 2rem); }
.steps-detail > li:first-child { border-top: 0; padding-top: 0; }
.step-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.1rem; }
.step-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.steps-detail .diamond { color: var(--black); }
.steps-detail .diamond::before { border-color: var(--black); }
.step-body { max-width: 78ch; padding-left: calc(48px + 1.25rem); }
.step-body p { color: var(--muted); }
.step-body p + p { margin-top: .9rem; }
.step-out {
  margin-top: 1.1rem !important; padding: .9rem 1.1rem;
  background: var(--brand-soft); border-left: 3px solid var(--brand);
  color: var(--ink) !important; font-size: .92rem;
}
.step-out b { color: var(--black); }

/* ---------- Carte d'identité ---------- */
.id-card {
  background: var(--smoke); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.id-card h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.id-card dl { display: grid; gap: 0; }
.id-card dl > div { padding: .85rem 0; border-bottom: 1px solid var(--smoke-2); }
.id-card dl > div:last-child { border-bottom: 0; }
.id-card dt {
  font-size: .7rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.id-card dd { margin: .3rem 0 0; font-size: .95rem; color: var(--black); font-weight: 500; }
.id-card dd a { text-decoration-color: rgba(14,53,87,.35); }

/* ---------- Encarts ---------- */
.note-block {
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  padding: 1.25rem 1.5rem;
  background: var(--brand-soft); border-left: 4px solid var(--brand);
  font-size: .95rem; color: var(--ink); max-width: 80ch;
}
.note-block strong { color: var(--black); }
.note-block-dark {
  background: rgba(106, 166, 236, .14); color: var(--on-dark);
  border-left-color: var(--brand);
}

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-band {
  background: var(--carbon); color: #fff;
  padding-block: clamp(3rem, 5vw, 4.5rem);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; left: -5vw; bottom: -12vw;
  width: 30vw; height: 30vw; max-width: 340px; max-height: 340px;
  background: var(--brand); opacity: .14; transform: rotate(45deg);
}
.cta-inner {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.cta-inner h2 { color: #fff; }
.cta-inner p { margin-top: .8rem; color: var(--on-dark); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 0 !important; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 4vw, 4rem); align-items: start;
}
.contact-side h2 { margin-bottom: 1.5rem; }
.contact-info { border-top: 1px solid var(--line); }
.contact-info li {
  display: grid; gap: .2rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.contact-info span {
  font-size: .7rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.contact-info a, .contact-info address, .contact-info p { font-size: 1rem; color: var(--black); font-weight: 500; }

.side-box {
  margin-top: 2rem; padding: 1.35rem 1.5rem;
  background: var(--smoke); border-radius: var(--radius);
}
.side-box h3 { font-size: 1rem; margin-bottom: .8rem; }
.side-box p { font-size: .9rem; color: var(--muted); }
.side-box-alert { background: #FCF0EF; border-left: 4px solid var(--alert); }
.side-box-alert h3 { color: var(--alert); }

.check-list { display: grid; gap: .6rem; }
.check-list li {
  position: relative; padding-left: 1.6rem; font-size: .9rem; color: var(--muted);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 6px; height: 11px; border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand); transform: rotate(45deg);
}

/* ---------- Formulaire ---------- */
.form {
  display: grid; gap: 1.4rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 50px -40px rgba(0, 0, 0, .35);
}
.form h2 { font-size: 1.4rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.4rem; }
.field { display: grid; gap: .45rem; }
/* .field est en grid : sans cette règle, l'attribut hidden des champs
   conditionnels resterait sans effet. */
.field[hidden] { display: none; }
.field > label, .fieldset legend {
  font-size: .74rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.req { color: var(--brand-dark); }

.field input, .field select, .field textarea {
  width: 100%; padding: .85rem .95rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .95rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(2, 74, 165, .18);
}
.field input::placeholder, .field textarea::placeholder { color: #9AA0A8; }
.field [aria-invalid="true"] { border-color: var(--alert); }

.fieldset { gap: .7rem; }
.fieldset legend { margin-bottom: .4rem; }

.input-suffix { position: relative; }
.input-suffix span {
  position: absolute; right: .95rem; top: 50%; transform: translateY(-50%);
  font-size: .85rem; color: var(--muted); pointer-events: none;
}
.input-suffix input { padding-right: 3.4rem; }

.check { display: flex; align-items: flex-start; gap: .7rem; cursor: pointer; }
.check input { flex: none; margin-top: .25rem; width: 1.05rem; height: 1.05rem; accent-color: var(--brand); }
.check span { font-size: .92rem; color: var(--ink); line-height: 1.55; }
.check-rgpd span { font-size: .87rem; color: var(--muted); }

/* Le leurre anti-robots est sorti de l'écran plutôt que masqué par
   display:none, que certains robots savent détecter. */
.leurre {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

.error { font-size: .82rem; color: var(--alert); font-weight: 500; }
.form-note { font-size: .85rem; color: var(--muted); text-align: center; }
.form-note.is-success { color: var(--brand-dark); font-weight: 600; }
.form-note.is-error { color: var(--alert); font-weight: 600; }

/* ---------- Pages légales ---------- */
.legal h2 {
  margin-top: 2.5rem; margin-bottom: .9rem; font-size: 1.3rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--brand); display: inline-block;
}
.legal h2:first-child { margin-top: 0; }
.legal ul { display: grid; gap: .6rem; margin-top: 1rem; }
.legal ul li {
  position: relative; padding-left: 1.4rem; color: var(--muted); font-size: .95rem;
}
.legal ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; background: var(--brand); transform: rotate(45deg);
}
.todo {
  background: #FFF4DE; color: #8A5A00; padding: 0 .35rem;
  border-radius: 2px; font-weight: 500;
}
.legal-updated { margin-top: 2.5rem; font-size: .85rem; color: var(--muted); }
.note-inline { margin-top: .8rem !important; font-size: .88rem; font-style: italic; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--carbon-2); color: var(--on-dark);
  padding-block: clamp(3rem, 5vw, 4rem) 1.75rem; font-size: .9rem;
}
.footer-grid {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr));
}
.footer-col h2 {
  font-size: .74rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { color: var(--on-dark); text-decoration: none; }
.footer-col a:hover { color: var(--brand); }
.footer-lockup { display: inline-flex; align-items: center; gap: .75rem; }
.footer-brand .brand-mark { width: 34px; height: 34px; color: var(--brand); }
/* Le logotype est noir sur fond clair ; sur l'aplat sombre du pied de page,
   il passe en blanc. */
.site-footer .brand-text strong,
.site-footer .brand-text span { color: var(--paper); }
.footer-tag { margin-top: 1rem; font-size: 1rem; line-height: 1.6; color: var(--on-dark); max-width: 30ch; }
.footer-tag strong { color: var(--brand); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: clamp(2.5rem, 4vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: .8rem; color: var(--on-dark-dim);
}

/* ---------- Contexte sombre ----------
   Le bleu du logo est trop foncé pour rester lisible sur un aplat noir.
   En redéfinissant le jeton dans ces zones, chaque accent — losanges,
   filets, sur-titres, liens — bascule sur la variante éclaircie sans
   qu'il faille dupliquer les règles. */
.section-dark,
.hero-panel,
.benefit-box,
.cta-band,
.site-footer {
  --brand: var(--brand-light);
  --brand-dark: var(--brand-light);
}

/* ---------- Apparition au défilement ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .35);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .95rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 1.1rem; text-align: center; border-bottom: 0 !important; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .step-body { padding-left: 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .anchor-nav { gap: .45rem; }
}

/* ---------- Accessibilité et impression ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .cta-band, .form, .anchor-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .section-dark, .hero-panel, .benefit-box { background: #fff !important; color: #000 !important; }
  .section-dark h2, .section-dark h3, .benefit-list b { color: #000 !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
