/* =========================================================
   Pages « fiche » (solutions + secteurs) — direction « Fiche technique premium »
   Hero sombre à trame de plan, bandeau de chiffres façon fiche
   technique, coins de cotation sur les visuels, méthode en frise.
   Portée : body.page-fiche (voir monogeste_is_fiche_page), après incorp.css.
   ========================================================= */

.page-fiche {
  --sol-night: #0f1a17;
  --sol-night-2: #15241f;
  --sol-grid: rgba(52, 190, 185, .11);
  --sol-on-dark: rgba(232, 241, 237, .82);
  --sol-ink: var(--inc-ink, #1f2a17);
  --sol-line: var(--inc-line, #e3e9dc);
  --sol-accent: var(--color-primary);
  --sol-accent-text: var(--color-primary-dark); /* turquoise lisible sur fond blanc */
  --sol-ease: cubic-bezier(.16, .68, .43, .99);
}

/* ---------- Hero : nuit + trame de plan technique ---------- */
.page-fiche .page-hero,
.page-fiche .page-hero--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: clamp(36px, 5vw, 64px) 0 clamp(92px, 11vw, 140px);
  border: 0;
  background: var(--sol-night);
  color: #fff;
}
.page-fiche .page-hero--photo {
  background:
    linear-gradient(100deg, rgba(10, 18, 16, .95) 0%, rgba(10, 18, 16, .84) 48%, rgba(10, 18, 16, .5) 100%),
    var(--page-hero-photo) center / cover no-repeat,
    var(--sol-night);
}
.page-fiche .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--sol-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--sol-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(100deg, transparent 15%, #000 70%);
          mask-image: linear-gradient(100deg, transparent 15%, #000 70%);
}
/* Sans bandeau de chiffres à chevaucher : hero moins haut */
.page-fiche .page-hero:not(:has(+ .hero-stats, + .fiche-keys)) { padding-bottom: clamp(48px, 6vw, 80px); }
/* Trait d'accent en pied de hero */
.page-fiche .page-hero::after,
.page-fiche .page-hero--photo::after {
  display: block;
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: min(360px, 42%);
  height: 3px;
  background: var(--sol-accent);
  opacity: 1;
  mix-blend-mode: normal;
}
.page-fiche .page-hero h1,
.page-fiche .page-hero--photo h1 {
  max-width: 940px;
  margin: 22px 0 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.page-fiche .page-hero p,
.page-fiche .page-hero--photo p {
  max-width: 640px !important;
  margin-top: 22px;
  color: var(--sol-on-dark) !important;
  font-size: 1.08rem;
  line-height: 1.65;
}

/* Fil d'Ariane sur fond sombre */
.page-fiche .page-hero .breadcrumb,
.page-fiche .page-hero .breadcrumb span { color: rgba(232, 241, 237, .7); }
.page-fiche .page-hero .breadcrumb .breadcrumb_last { color: #fff; }
.page-fiche .page-hero .breadcrumb .breadcrumb__sep { color: rgba(232, 241, 237, .4); }
.page-fiche .page-hero .breadcrumb a { color: var(--sol-accent); }
.page-fiche .page-hero .breadcrumb a:hover { color: #fff; }

/* Boutons du hero (les gabarits mélangent plusieurs variantes) */
.page-fiche .page-hero .btn--primary,
.page-fiche .page-hero .btn--light,
.page-fiche .page-hero--photo .btn--light {
  background: var(--sol-accent);
  border-color: var(--sol-accent);
  color: var(--sol-night);
}
.page-fiche .page-hero .btn--primary:hover,
.page-fiche .page-hero .btn--light:hover,
.page-fiche .page-hero--photo .btn--light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--sol-night);
}
.page-fiche .page-hero .btn--outline,
.page-fiche .page-hero .btn--white-outline,
.page-fiche .page-hero--photo .btn--white-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.page-fiche .page-hero .btn--outline:hover,
.page-fiche .page-hero .btn--white-outline:hover,
.page-fiche .page-hero--photo .btn--white-outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--sol-night);
}

/* ---------- Chiffres clés : bandeau « fiche technique » qui chevauche le hero ---------- */
.page-fiche .hero-stats {
  position: relative;
  z-index: 3;
  margin-top: clamp(-88px, -7vw, -56px);
  background: transparent;
  border: 0;
}
.page-fiche .hero-stats .container {
  max-width: calc(var(--container) - 2 * var(--gutter));
  width: calc(100% - 2 * var(--gutter));
  padding: 0;
  background: #fff;
  border: 1px solid var(--sol-line);
  border-top: 3px solid var(--sol-accent);
  box-shadow: 0 24px 48px -32px rgba(15, 26, 23, .35);
}
.page-fiche .hero-stats__item,
.page-fiche .hero-stats__item:first-child {
  padding: clamp(22px, 2.6vw, 34px) clamp(18px, 2.4vw, 32px);
  border-left: 1px solid var(--sol-line);
}
.page-fiche .hero-stats__item:first-child { border-left: 0; }
.page-fiche .hero-stats__num,
.page-fiche .hero-stats__num span {
  color: var(--sol-accent-text);
  font-size: clamp(2rem, 3.4vw, 3rem);
}
.page-fiche .hero-stats__label { color: #4d5c46; }
@media (max-width: 860px) {
  .page-fiche .hero-stats__item:nth-child(-n+2) { border-bottom: 1px solid var(--sol-line); }
  .page-fiche .hero-stats__item:nth-child(3) { border-left: 0; }
}
@media (max-width: 560px) {
  .page-fiche .hero-stats__item,
  .page-fiche .hero-stats__item:first-child { border-left: 0; border-top: 1px solid var(--sol-line); border-bottom: 0; }
  .page-fiche .hero-stats__item:first-child { border-top: 0; }
}

/* ---------- Rythme des sections : fond blanc, filets fins, en-têtes numérotés ---------- */
.page-fiche .site-main,
.page-fiche main { counter-reset: solsec; }
.page-fiche .section { padding: clamp(64px, 8vw, 104px) 0; }
.page-fiche .section + .section { border-top: 1px solid var(--sol-line); }
.page-fiche .section--alt { background: #fff; }

.page-fiche .section-head,
.page-fiche .section-head.text-center {
  max-width: 760px;
  margin: 0 0 clamp(32px, 4vw, 52px);
  text-align: left;
}
.page-fiche .section-head::before {
  counter-increment: solsec;
  content: counter(solsec, decimal-leading-zero) " —";
  content: counter(solsec, decimal-leading-zero) " —" / "";
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--sol-accent-text);
}
.page-fiche .section-title {
  color: var(--sol-ink);
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.page-fiche .section-head p { max-width: 620px; color: #4d5c46; font-size: 1.04rem; }
.page-fiche .sol-cta--center { justify-content: flex-start; }

/* ---------- Visuels : coins de cotation ---------- */
.page-fiche .sol-split { gap: clamp(32px, 5vw, 72px); }
.page-fiche .sol-split__media > img,
.page-fiche .media-pair img,
.page-fiche .gallery-item { border-radius: 2px; }
.page-fiche .sol-split__media::before,
.page-fiche .sol-split__media::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  pointer-events: none;
  border: 0 solid var(--sol-accent);
}
.page-fiche .sol-split__media::before { top: -10px; left: -10px; border-top-width: 2px; border-left-width: 2px; }
.page-fiche .sol-split__media::after { right: -10px; bottom: -10px; border-right-width: 2px; border-bottom-width: 2px; }

/* ---------- Cartes bénéfices : à plat, filet d'accent au survol ---------- */
.page-fiche .solution-card {
  position: relative;
  text-align: left;
  padding: 30px 28px 32px;
  border: 1px solid var(--sol-line);
  border-radius: 2px;
  box-shadow: none;
  transition: border-color .3s var(--sol-ease), transform .3s var(--sol-ease);
}
.page-fiche .solution-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 3px;
  background: var(--sol-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--sol-ease);
}
.page-fiche .solution-card:hover {
  transform: translateY(-4px);
  border-color: #cfd9c8;
  box-shadow: none;
}
.page-fiche .solution-card:hover::before { transform: scaleX(1); }
.page-fiche .solution-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 0 22px;
  border: 1px solid var(--sol-line);
  border-radius: 2px;
  background: transparent;
  color: var(--sol-accent-text);
}
.page-fiche .solution-card__icon svg { width: 24px; height: 24px; }
.page-fiche .solution-card h3 { color: var(--sol-ink); font-size: 1.14rem; letter-spacing: -.015em; }

/* ---------- Encart obligation / éligibilité : carte nuit ---------- */
.page-fiche .vmc-elig { gap: clamp(28px, 5vw, 64px); }
.page-fiche .vmc-elig__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 2px;
  border-top: 3px solid var(--sol-accent);
  background: var(--sol-night);
  box-shadow: none;
}
.page-fiche .vmc-elig__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--sol-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--sol-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 75%);
          mask-image: linear-gradient(160deg, #000, transparent 75%);
}
.page-fiche .vmc-elig__card .big {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  letter-spacing: -.06em;
  color: var(--sol-accent);
}
.page-fiche .vmc-elig__card p { color: var(--sol-on-dark); }
.page-fiche .vmc-elig__card .btn--light { background: var(--sol-accent); border-color: var(--sol-accent); color: var(--sol-night); }
.page-fiche .vmc-elig__card .btn--light:hover { background: #fff; border-color: #fff; }
.page-fiche .vmc-elig__list { gap: 0; }
.page-fiche .vmc-elig__list li { padding: 14px 0; border-bottom: 1px solid var(--sol-line); }
.page-fiche .vmc-elig__list li:first-child { border-top: 1px solid var(--sol-line); }
.page-fiche .chk,
.page-fiche .vmc-elig__list .chk {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--sol-accent);
  border-radius: 2px;
  background: transparent;
  color: var(--sol-accent-text);
  font-size: .78rem;
}

/* ---------- Méthode : frise horizontale numérotée (verticale sur mobile) ---------- */
@media (min-width: 900px) {
  .page-fiche .vmc-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0 28px;
    max-width: none;
    margin: 0;
  }
  .page-fiche .vmc-timeline::before {
    left: 0;
    right: 0;
    top: 23px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: var(--sol-line);
  }
  .page-fiche .vmc-timeline__item,
  .page-fiche .vmc-timeline__item:last-child { padding: 74px 0 0; }
  .page-fiche .vmc-timeline__num { left: 0; top: 0; }
}
.page-fiche .vmc-timeline__num {
  width: 46px;
  height: 46px;
  border: 1px solid var(--sol-accent);
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
  color: var(--sol-accent-text);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .95rem;
  transition: background .3s var(--sol-ease), color .3s var(--sol-ease);
}
.page-fiche .vmc-timeline__item:hover .vmc-timeline__num { background: var(--sol-accent); color: var(--sol-night); }
.page-fiche .vmc-timeline__item h3 { color: var(--sol-ink); font-size: 1.08rem; letter-spacing: -.015em; }
@media (max-width: 899px) {
  .page-fiche .vmc-timeline::before { left: 22px; width: 1px; }
  .page-fiche .vmc-timeline__item { padding-left: 70px; }
}

/* ---------- Galerie : légendes façon cartouche ---------- */
.page-fiche .gallery-grid { gap: 12px; }
.page-fiche .gallery-item__cap {
  padding: 40px 18px 16px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(10, 18, 16, .9));
}

/* ---------- FAQ : en-tête à gauche, questions à droite ---------- */
@media (min-width: 900px) {
  .page-fiche .container:has(> .section-head + .faq) {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
  }
  .page-fiche .container:has(> .section-head + .faq) > .section-head {
    position: sticky;
    top: 120px;
    margin: 0;
  }
}
.page-fiche .faq { gap: 0; max-width: none; margin: 0; }
.page-fiche .faq-item {
  border: 0;
  border-bottom: 1px solid var(--sol-line);
  border-radius: 0;
  background: transparent;
}
.page-fiche .faq-item:first-child { border-top: 1px solid var(--sol-line); }
.page-fiche .faq-item summary {
  padding: 22px 0;
  color: var(--sol-ink);
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: -.01em;
}
.page-fiche .faq-item summary::after {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--sol-accent-text);
}
.page-fiche .faq-item summary:hover { color: var(--sol-accent-text); }
.page-fiche .faq-item .faq-answer { padding: 0 0 24px; max-width: 680px; color: #4d5c46; line-height: 1.7; }

/* ---------- Apparition au défilement (classe .reveal posée par main.js) ---------- */
.page-fiche .vmc-timeline__item.reveal:nth-child(2) { transition-delay: .08s; }
.page-fiche .vmc-timeline__item.reveal:nth-child(3) { transition-delay: .16s; }
.page-fiche .vmc-timeline__item.reveal:nth-child(4) { transition-delay: .24s; }
.page-fiche .vmc-timeline__item.reveal:nth-child(5) { transition-delay: .32s; }
.page-fiche .gallery-item.reveal:nth-child(2) { transition-delay: .1s; }
.page-fiche .gallery-item.reveal:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  .page-fiche .solution-card,
  .page-fiche .solution-card::before,
  .page-fiche .vmc-timeline__num { transition: none; }
  .page-fiche .solution-card:hover { transform: none; }
}

/* =========================================================
   Pages secteur (et page solution générique : article + barre latérale)
   ========================================================= */

/* Surtitre du hero (« Nos secteurs ») sur fond sombre */
.page-fiche .page-hero .eyebrow { display: block; margin: 22px 0 0; color: var(--sol-accent); }
.page-fiche .page-hero .eyebrow + h1 { margin-top: 12px; }

/* ---------- L'essentiel : bandeau numéroté qui chevauche le hero ---------- */
.page-fiche .fiche-keys {
  position: relative;
  z-index: 3;
  margin-top: clamp(-88px, -7vw, -56px);
}
.page-fiche .fiche-keys .container {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  max-width: calc(var(--container) - 2 * var(--gutter));
  width: calc(100% - 2 * var(--gutter));
  padding: 0;
  background: #fff;
  border: 1px solid var(--sol-line);
  border-top: 3px solid var(--sol-accent);
  box-shadow: 0 24px 48px -32px rgba(15, 26, 23, .35);
}
.page-fiche .fiche-keys__title {
  margin: 0;
  padding: clamp(22px, 2.6vw, 32px) clamp(18px, 2.4vw, 28px);
  border-right: 1px solid var(--sol-line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sol-ink);
}
.page-fiche .fiche-keys__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-fiche .fiche-keys__list li {
  padding: clamp(22px, 2.6vw, 32px) clamp(18px, 2.4vw, 28px);
  border-left: 1px solid var(--sol-line);
  color: var(--sol-ink);
  font-size: .98rem;
  line-height: 1.5;
}
.page-fiche .fiche-keys__list li:first-child { border-left: 0; }
.page-fiche .fiche-keys__num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -.06em;
  line-height: 1;
  color: var(--sol-accent-text);
}
@media (max-width: 860px) {
  .page-fiche .fiche-keys .container { grid-template-columns: 1fr; }
  .page-fiche .fiche-keys__title { border-right: 0; border-bottom: 1px solid var(--sol-line); padding-bottom: 14px; }
  .page-fiche .fiche-keys__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-fiche .fiche-keys__list li:nth-child(odd) { border-left: 0; }
  .page-fiche .fiche-keys__list li:nth-child(n+3) { border-top: 1px solid var(--sol-line); }
}
@media (max-width: 520px) {
  .page-fiche .fiche-keys__list { grid-template-columns: 1fr; }
  .page-fiche .fiche-keys__list li { border-left: 0; }
  .page-fiche .fiche-keys__list li + li { border-top: 1px solid var(--sol-line); }
}

/* ---------- Colonne de contenu : intertitres numérotés ---------- */
.page-fiche .content-area { padding-top: clamp(48px, 6vw, 80px); }
.page-fiche .content-wrap { gap: clamp(40px, 5vw, 72px); }
.page-fiche .content-main { counter-reset: fichesec; }
.page-fiche .content-main h2[id] {
  margin-top: clamp(2.4em, 5vw, 3.2em);
  padding-top: 28px;
  border-top: 1px solid var(--sol-line);
  color: var(--sol-ink);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
  scroll-margin-top: 120px;
}
.page-fiche .content-main h2[id]::before {
  counter-increment: fichesec;
  content: counter(fichesec, decimal-leading-zero) " —";
  content: counter(fichesec, decimal-leading-zero) " —" / "";
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--sol-accent-text);
}

/* « L'essentiel » resté dans l'article (page solution générique) */
.page-fiche .essential {
  border: 1px solid var(--sol-line);
  border-top: 3px solid var(--sol-accent);
  border-radius: 2px;
  background: #fff;
}
.page-fiche .essential__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.page-fiche .essential__title::before { content: none; }
.page-fiche .essential li::before { content: "—"; color: var(--sol-accent-text); font-weight: 400; }

/* Sommaire : liste mono à filets */
.page-fiche .toc { padding: 0; border: 0; border-radius: 0; background: transparent; }
.page-fiche .toc__title {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--sol-ink);
}
.page-fiche .toc ol { gap: 0; }
.page-fiche .toc li { border-top: 1px solid var(--sol-line); }
.page-fiche .toc li:last-child { border-bottom: 1px solid var(--sol-line); }
.page-fiche .toc a {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  color: var(--sol-ink);
  transition: color .2s var(--sol-ease), padding .3s var(--sol-ease);
}
.page-fiche .toc a::before { font-family: var(--font-mono); color: var(--sol-accent-text); }
.page-fiche .toc a:hover { color: var(--sol-accent-text); padding-left: 6px; }

/* Numéro des cartes problématiques */
.page-fiche .solution-card__num {
  position: absolute;
  top: 26px;
  right: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: #8a9382;
}

/* Bénéfices : tableau à filets */
.page-fiche .about__list--grid { gap: 0 32px; max-width: none; margin: 0; }
.page-fiche .about__list--grid li { padding: 18px 0; border-bottom: 1px solid var(--sol-line); color: #4d5c46; }
.page-fiche .about__list--grid li strong { display: block; margin-bottom: 2px; color: var(--sol-ink); }
.page-fiche .about__list .check {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--sol-accent);
  border-radius: 2px;
  background: transparent;
  color: var(--sol-accent-text);
  font-size: .78rem;
}

/* Réglementation : références façon renvoi de plan */
.page-fiche .sol-longform ul { list-style: none; padding: 0; margin: 1em 0 1.4em; }
.page-fiche .sol-longform ul li {
  position: relative;
  margin: 0;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--sol-line);
}
.page-fiche .sol-longform ul li:first-child { border-top: 1px solid var(--sol-line); }
.page-fiche .sol-longform ul li::before {
  content: "§";
  position: absolute;
  left: 4px;
  top: 14px;
  font-family: var(--font-mono);
  color: var(--sol-accent-text);
}

/* Financement et CTA intercalé : cartes nuit à trame */
.page-fiche .callout--tip,
.page-fiche .section-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-top: 3px solid var(--sol-accent);
  border-radius: 2px;
  background: var(--sol-night);
  color: #fff;
}
.page-fiche .callout--tip::before,
.page-fiche .section-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--sol-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--sol-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000);
          mask-image: linear-gradient(100deg, transparent 30%, #000);
}
.page-fiche .callout--tip { padding: clamp(22px, 3vw, 32px); }
.page-fiche .callout--tip p { margin: 0; color: var(--sol-on-dark); font-size: 1.02rem; line-height: 1.7; }
.page-fiche .section-cta { padding: clamp(24px, 3vw, 34px); }
.page-fiche .section-cta__text strong { color: #fff; letter-spacing: -.015em; }
.page-fiche .section-cta__text span { color: var(--sol-on-dark); }
.page-fiche .section-cta .btn--light { background: var(--sol-accent); border-color: var(--sol-accent); color: var(--sol-night); }
.page-fiche .section-cta .btn--light:hover { background: #fff; border-color: #fff; }

/* ---------- Barre latérale : collante, sobre ---------- */
@media (min-width: 1024px) {
  .page-fiche .content-wrap > .sidebar { position: sticky; top: 110px; align-self: start; }
}
.page-fiche .sidebar .widget { padding: 24px; border: 1px solid var(--sol-line); border-radius: 2px; }
.page-fiche .sidebar .widget-title {
  padding-bottom: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sol-ink);
}
.page-fiche .sidebar .widget-title::after { content: none; }
.page-fiche .widget-nav-list { counter-reset: fichenav; }
.page-fiche .widget-nav-list li { counter-increment: fichenav; padding: 0; border-bottom: 1px solid var(--sol-line); }
.page-fiche .widget-nav-list a {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  color: var(--sol-ink);
  transition: color .2s var(--sol-ease), padding .3s var(--sol-ease);
}
.page-fiche .widget-nav-list a::before {
  content: counter(fichenav, decimal-leading-zero);
  content: counter(fichenav, decimal-leading-zero) / "";
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  color: #8a9382;
}
.page-fiche .widget-nav-list a:hover { color: var(--sol-accent-text); padding-left: 6px; }
.page-fiche .widget-nav-list .is-current a { padding-left: 0; border-radius: 0; background: transparent; color: var(--sol-accent-text); font-weight: 600; }
.page-fiche .widget-nav-list .is-current a::before { color: var(--sol-accent-text); }
.page-fiche .sidebar .widget-cta {
  border: 0;
  border-top: 3px solid var(--sol-accent);
  background: var(--sol-night);
  text-align: left;
}
.page-fiche .sidebar .widget-cta .widget-title { color: var(--sol-accent); }
.page-fiche .sidebar .widget-cta p { color: var(--sol-on-dark); }
.page-fiche .sidebar .widget-cta .btn--light { background: var(--sol-accent); border-color: var(--sol-accent); color: var(--sol-night); }
.page-fiche .sidebar .widget-cta .btn--light:hover { background: #fff; border-color: #fff; }

/* =========================================================
   Autres pages internes : listes, filtres, onglets, contact,
   plan du site, mentions, articles, pagination, réassurance
   ========================================================= */

/* Article de blog : méta en mono sur fond sombre */
.page-fiche .page-hero--article h1 { max-width: 880px; }
.page-fiche .page-hero--article .article-meta {
  margin-top: 22px;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(232, 241, 237, .7) !important;
}
.page-fiche .entry-thumb img { border-radius: 2px; }

/* Index (secteurs, réglementations) : lignes numérotées à filets */
.page-fiche .reg-list { gap: 0; max-width: none; counter-reset: regidx; }
.page-fiche .reg-list__item { counter-increment: regidx; border-bottom: 1px solid var(--sol-line); }
.page-fiche .reg-list__item:first-child { border-top: 1px solid var(--sol-line); }
.page-fiche .reg-list__item > a {
  position: relative;
  gap: clamp(16px, 2.4vw, 32px);
  padding: clamp(20px, 2.6vw, 30px) 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background .3s var(--sol-ease), padding .3s var(--sol-ease);
}
.page-fiche .reg-list__item > a::before {
  content: counter(regidx, decimal-leading-zero);
  content: counter(regidx, decimal-leading-zero) / "";
  flex: none;
  width: 2.2em;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: #8a9382;
}
.page-fiche .reg-list__item > a:hover {
  padding-left: 20px;
  background: #f6f9f5;
  box-shadow: none;
  transform: none;
}
.page-fiche .reg-list__icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--sol-line);
  border-radius: 2px;
  background: #fff;
  color: var(--sol-accent-text);
}
.page-fiche .reg-list__title { color: var(--sol-ink); font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: -.02em; }
.page-fiche .reg-list__desc { color: #4d5c46; }
.page-fiche .reg-list__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--sol-line);
  border-radius: 2px;
  color: var(--sol-ink);
  font-weight: 400;
  transition: background .3s var(--sol-ease), color .3s var(--sol-ease), border-color .3s var(--sol-ease);
}
.page-fiche .reg-list__item > a:hover .reg-list__arrow {
  transform: none;
  border-color: var(--sol-accent);
  background: var(--sol-accent);
  color: var(--sol-night);
}

/* Filtres : recherche, boutons et puces à angles vifs */
.page-fiche .filter-bar { gap: 12px 20px; padding-bottom: 22px; border-bottom: 1px solid var(--sol-line); }
.page-fiche .filter-search input { border-radius: 2px; }
.page-fiche .filter-search input:focus { border-color: var(--sol-accent); box-shadow: 0 0 0 3px rgba(52, 190, 185, .18); }
.page-fiche .filter-btn,
.page-fiche .filter-chip {
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.page-fiche .filter-btn:hover,
.page-fiche .filter-chip:hover { border-color: var(--sol-ink); color: var(--sol-ink); }
.page-fiche .filter-btn.is-active,
.page-fiche .filter-chip.is-active { background: var(--sol-night); border-color: var(--sol-night); color: #fff; }
.page-fiche .filter-cats__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.page-fiche .filter-empty { font-family: var(--font-mono); font-size: 13px; }

/* Onglets Réalisations : soulignement au lieu de la pilule */
.page-fiche .rea-tabs {
  gap: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--sol-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.page-fiche .rea-tab {
  position: relative;
  padding: 14px 24px;
  border-radius: 0;
  color: #4d5c46;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.page-fiche .rea-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--sol-accent);
  transform: scaleX(0);
  transition: transform .35s var(--sol-ease);
}
.page-fiche .rea-tab:hover { color: var(--sol-ink); }
.page-fiche .rea-tab.is-active { background: transparent; box-shadow: none; color: var(--sol-ink); }
.page-fiche .rea-tab.is-active::after { transform: scaleX(1); }
.page-fiche .rea-tab__count,
.page-fiche .rea-tab.is-active .rea-tab__count { border-radius: 2px; background: #eef3ec; color: var(--sol-accent-text); }

/* Grille de solutions (archive) : cartes à plat */
.page-fiche .solution-card--gallery,
.page-fiche .solution-card--shot { padding: 0; }
.page-fiche .solution-card__thumb { border-bottom: 1px solid var(--sol-line); }
.page-fiche .solution-card__icon--sm { width: 40px; height: 40px; }

/* Bloc contact / formulaire */
.page-fiche .contact__grid { gap: clamp(32px, 5vw, 72px); }
.page-fiche .contact__grid--form-first .contact__info {
  padding: clamp(24px, 3vw, 36px);
  border: 0;
  border-top: 3px solid var(--sol-accent);
  border-radius: 2px;
  background: var(--sol-night);
  color: var(--sol-on-dark);
}
.page-fiche .contact__grid--form-first .contact__info .eyebrow { color: var(--sol-accent); }
.page-fiche .contact__grid--form-first .contact__info .section-title { color: #fff; }
.page-fiche .contact__grid--form-first .contact__info .lead { color: var(--sol-on-dark); }
.page-fiche .contact__grid--form-first .contact__info-item strong { color: #fff; }
.page-fiche .contact__grid--form-first .contact__info-item a { color: var(--sol-on-dark); }
.page-fiche .contact__grid--form-first .contact__info-item a:hover,
.page-fiche .contact__grid--form-first .contact__info-item a.contact-phone { color: var(--sol-accent); }
.page-fiche .contact__grid--form-first .contact__info-item .ico {
  border: 1px solid rgba(52, 190, 185, .35);
  background: transparent;
  color: var(--sol-accent);
}
.page-fiche .contact__info-item .ico { border-radius: 2px; }
.page-fiche .form-field input,
.page-fiche .form-field textarea,
.page-fiche .form-field select { border-radius: 2px; }
.page-fiche .form-field input:focus,
.page-fiche .form-field textarea:focus,
.page-fiche .form-field select:focus { border-color: var(--sol-accent); box-shadow: 0 0 0 3px rgba(52, 190, 185, .18); }
.page-fiche .form-field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sol-ink);
}

/* Navigation précédent / suivant entre solutions */
.page-fiche .solution-pager { padding: clamp(28px, 4vw, 44px) 0; }
.page-fiche .solution-pager__dir {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--sol-accent-text);
}
.page-fiche .solution-pager__title { color: var(--sol-ink); font-size: clamp(1.05rem, 1.6vw, 1.3rem); letter-spacing: -.02em; }
.page-fiche a.solution-pager__link:hover .solution-pager__title { color: var(--sol-accent-text); }
.page-fiche .solution-pager__all {
  padding: 12px 20px;
  border: 1px solid var(--sol-line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sol-ink);
}
.page-fiche .solution-pager__all:hover { border-color: var(--sol-ink); color: var(--sol-ink); }

/* Réassurance : rangée à filets, sans cartes */
.page-fiche .reassurance-section { padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--sol-line); }
.page-fiche .reassurance-grid { gap: 0; border-top: 1px solid var(--sol-line); border-bottom: 1px solid var(--sol-line); }
.page-fiche .reassurance-card {
  padding: 26px 22px;
  border: 0;
  border-left: 1px solid var(--sol-line);
  border-radius: 0;
  background: transparent;
}
.page-fiche .reassurance-card:first-child { border-left: 0; }
.page-fiche .reassurance-card__icon {
  border: 1px solid var(--sol-line);
  border-radius: 2px;
  background: transparent;
  color: var(--sol-accent-text);
}
.page-fiche .reassurance-card strong { color: var(--sol-ink); }
@media (max-width: 860px) {
  .page-fiche .reassurance-card { border-left: 0; border-top: 1px solid var(--sol-line); }
  .page-fiche .reassurance-card:nth-child(-n+2) { border-top: 0; }
  .page-fiche .reassurance-card:nth-child(even) { border-left: 1px solid var(--sol-line); }
}
@media (max-width: 560px) {
  .page-fiche .reassurance-card,
  .page-fiche .reassurance-card:nth-child(even) { border-left: 0; }
  .page-fiche .reassurance-card:nth-child(2) { border-top: 1px solid var(--sol-line); }
}

/* Plan du site : colonnes à filets */
.page-fiche .sitemap-col { padding: 0; border: 0; border-top: 3px solid var(--sol-accent); border-radius: 0; background: transparent; }
.page-fiche .sitemap-title {
  display: block;
  margin: 0;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--sol-line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sol-ink);
}
.page-fiche .sitemap-list li,
.page-fiche .sitemap-list li:last-child { padding: 10px 0; border-bottom: 1px solid var(--sol-line); }
.page-fiche .sitemap-list a { color: var(--sol-ink); }
.page-fiche .sitemap-list a:hover { color: var(--sol-accent-text); }

/* Mentions légales / confidentialité / pages simples : colonne de lecture */
.page-fiche .legal-content { max-width: 760px; font-size: 1rem; line-height: 1.75; }
.page-fiche .legal-content h2 {
  margin-top: 2.4em;
  padding: 24px 0 0;
  border-top: 1px solid var(--sol-line);
  border-bottom: 0;
  color: var(--sol-ink);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: -.02em;
}
.page-fiche .legal-content a:not(.btn),
.page-fiche .entry-content a:not(.btn) { color: var(--sol-accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.page-fiche .entry-content blockquote { border-left: 3px solid var(--sol-accent); border-radius: 0; background: #f6f9f5; }

/* Pagination : cases carrées, page courante en nuit */
.page-fiche .pagination .page-numbers {
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.page-fiche .pagination .page-numbers.current { background: var(--sol-night); border-color: var(--sol-night); color: #fff; }
.page-fiche .pagination a.page-numbers:hover { border-color: var(--sol-accent); color: var(--sol-accent-text); }

/* 404 : grand code mono */
.error404.page-fiche .page-hero h1::before {
  content: "404";
  content: "404" / "";
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.08em;
  color: var(--sol-accent);
}

@media (prefers-reduced-motion: reduce) {
  .page-fiche .reg-list__item > a,
  .page-fiche .rea-tab::after { transition: none; }
  .page-fiche .reg-list__item > a:hover { padding-left: 8px; }
  .page-fiche .toc a,
  .page-fiche .widget-nav-list a { transition: none; }
  .page-fiche .toc a:hover,
  .page-fiche .widget-nav-list a:hover { padding-left: 0; }
}
