/* ==========================================================================
   M Rénova 95 — Pages de services, FAQ, zone d’intervention, cookies
   ========================================================================== */

/* ---------- Hero des pages de services ---------- */
.hero--page { min-height: clamp(600px, 82svh, 860px); }
.hero--page .hero__title { font-size: clamp(2.1rem, 4vw, 3.5rem); max-width: 15ch; }
.hero--page .hero__lead { max-width: 52ch; }
.crumbs { margin-bottom: clamp(18px, 2.4vw, 28px); font-size: 0.8125rem; color: rgba(242, 238, 231, 0.72); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: ""; width: 14px; height: 1px; background: currentColor; opacity: 0.6; }
.crumbs a { text-decoration: underline; text-decoration-color: rgba(242, 238, 231, 0.35); text-underline-offset: 3px; }
.crumbs a:hover { color: #fff; text-decoration-color: currentColor; }
.crumbs [aria-current] { color: var(--c-on-dark); }
.js .crumbs { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js.is-ready .crumbs { opacity: 1; transform: none; }

/* Badge du haut des pages de services (classe historique .rge) */
.rge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border: 1px solid rgba(198, 168, 120, 0.55);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.rge .icon { width: 18px; height: 18px; color: #c6a878; }
.rge--dark { border-color: var(--c-line); color: var(--c-ink); }
.rge--dark .icon { color: var(--c-accent-deep); }

/* ---------- Introduction ---------- */
.svc-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.svc-intro__text { display: grid; gap: 22px; justify-items: start; }
.svc-intro__text .eyebrow { margin-bottom: 0; }
.svc-intro__text .body-text { max-width: 60ch; }
.svc-box {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  padding: clamp(28px, 3vw, 44px);
  background: var(--c-paper);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -48px rgba(20, 21, 23, 0.4);
}
.svc-box__title { font-family: var(--f-display); font-size: 1.75rem; line-height: 1.1; margin-bottom: 20px; }
.checks { display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--c-ink-3); }
.checks .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--c-accent-deep); }
.svc-box__foot { display: grid; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--c-line-soft); }
@media (max-width: 899px) {
  .svc-intro { grid-template-columns: 1fr; }
  .svc-box { position: static; }
}

/* ---------- Prestations détaillées ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  border-top: 1px solid var(--c-line);
  border-left: 1px solid var(--c-line);
}
.svc-item {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(26px, 2.8vw, 40px);
  border-right: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  transition: background 0.5s var(--ease-out);
}
.svc-item:hover { background: var(--c-paper); }
.svc-item__num { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; color: var(--c-accent-deep); }
.section--stone .svc-item__num, .section--stone .dept__name b { color: #735731; } /* contraste AA sur fond pierre */
.svc-item__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.3rem, 1.6vw, 1.55rem); line-height: 1.1; }
.svc-item p { color: var(--c-muted); }
.section--stone .svc-item:hover { background: rgba(251, 250, 247, 0.6); }

/* ---------- Aides (rénovation énergétique) — plus utilisé sur M Rénova, conservé pour réutilisation ---------- */
.aids { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.aids__intro { display: grid; gap: 22px; justify-items: start; }
.aids__intro .eyebrow { margin-bottom: 0; }
.aids__list { display: grid; gap: 0; border-top: 1px solid var(--c-on-dark-line); }
.aids__item { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--c-on-dark-line); }
.aids__name { font-family: var(--f-display); font-size: 1.55rem; line-height: 1.15; color: var(--c-on-dark); }
.aids__item p { color: var(--c-on-dark-muted); }
.aids__note { margin-top: 24px; font-size: 0.8125rem; color: var(--c-on-dark-muted); max-width: 70ch; }
@media (max-width: 899px) {
  .aids { grid-template-columns: 1fr; }
  .aids__item { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Étapes (version claire) ---------- */
.svc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); counter-reset: step; }
.svc-step { position: relative; padding-top: 28px; border-top: 1px solid var(--c-line); }
.svc-step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: -12px; left: 0;
  padding-right: 12px;
  background: var(--c-ivory);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; color: var(--c-accent-deep);
}
.section--stone .svc-step::before { background: var(--c-stone); }
.svc-step__title { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; margin-bottom: 10px; }
.svc-step p { color: var(--c-muted); font-size: 0.975rem; }
@media (max-width: 1023px) { .svc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; } }
@media (max-width: 559px) { .svc-steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 22px; justify-items: start; }
.faq__intro .eyebrow { margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--c-line); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.2;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  justify-self: end;
  width: 40px; height: 40px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform 0.5s var(--ease-out), background-color 0.4s, color 0.4s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background-color: var(--c-ink); color: var(--c-ivory); border-color: var(--c-ink); }
.faq__item summary:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }
.faq__answer { padding: 0 60px 26px 0; color: var(--c-muted); display: grid; gap: 12px; }
.faq__answer a { text-decoration: underline; text-underline-offset: 3px; color: var(--c-ink); }
@media (max-width: 899px) {
  .faq { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
  .faq__answer { padding-right: 0; }
}

/* ---------- Zone d’intervention ---------- */
.zone { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.zone__intro { display: grid; gap: 22px; justify-items: start; }
.zone__intro .eyebrow { margin-bottom: 0; }
.zone__group + .zone__group { margin-top: 32px; }
.zone__label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 14px; }
.section--dark .zone__label { color: var(--c-on-dark-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  background: var(--c-paper);
}
.chip a { display: inline-flex; align-items: baseline; gap: 8px; color: inherit; }
.chip { transition: border-color 0.3s, background-color 0.3s; }
.chip:has(a):hover { border-color: var(--c-accent); }
.chip b { font-weight: 700; font-size: 0.8rem; color: var(--c-accent-deep); letter-spacing: 0.06em; }
.section--dark .chip { background: transparent; border-color: var(--c-on-dark-line); color: var(--c-on-dark); }
.section--dark .chip b { color: #c6a878; }
@media (max-width: 899px) { .zone { grid-template-columns: 1fr; } }

.depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0; border-top: 1px solid var(--c-line); }
.dept { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--c-line); }
.dept__name { font-family: var(--f-display); font-size: 1.7rem; line-height: 1.1; margin-bottom: 8px; }
.dept__name b { font-family: var(--f-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: var(--c-accent-deep); margin-left: 8px; vertical-align: middle; }
.dept p { color: var(--c-muted); font-size: 0.9375rem; }

/* ---------- Services associés ---------- */
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-paper);
  font-family: var(--f-display);
  font-size: 1.45rem;
  line-height: 1.15;
  transition: background 0.5s var(--ease-out), color 0.5s, border-color 0.5s;
}
.related a .icon { width: 18px; height: 18px; transition: transform 0.5s var(--ease-out); }
.related a:hover { background: var(--c-ink); color: var(--c-ivory); border-color: var(--c-ink); }
.related a:hover .icon { transform: translateX(4px); }

/* ---------- Contact en bas de page de service ---------- */
.svc-contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.svc-contact__info { display: grid; gap: 26px; justify-items: start; }
.svc-contact__info .eyebrow { margin-bottom: 0; }
.svc-contact__info .contact__cards { width: 100%; }
@media (max-width: 899px) { .svc-contact { grid-template-columns: 1fr; } }

/* ---------- Liens de services dans les cartes « Expertises » (accueil) ---------- */
.exp-card__list a { position: relative; z-index: 2; text-decoration: underline; text-decoration-color: rgba(242, 238, 231, 0.3); text-underline-offset: 3px; }
.exp-card__list a:hover { color: #fff; text-decoration-color: currentColor; }
.drawer__services strong a { text-decoration: underline; text-decoration-color: var(--c-line); text-underline-offset: 3px; }
.drawer__services strong a:hover { text-decoration-color: currentColor; }

/* ---------- Pied de page : tous les services ---------- */
.footer__services { padding: 28px 0; border-top: 1px solid var(--c-on-dark-line); display: grid; gap: 14px; }
.footer__zones { border-top: 0; padding-top: 0; }
.footer__services ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__services a { color: var(--c-on-dark-muted); font-size: 0.9rem; transition: color 0.3s; }
.footer__services a:hover { color: var(--c-on-dark); }

/* ---------- Bandeau de consentement (cookies) ---------- */
.cookie-banner {
  position: fixed;
  left: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 900;
  width: min(440px, calc(100vw - 24px));
  padding: 24px;
  background: var(--c-ink);
  color: var(--c-on-dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
  display: grid;
  gap: 16px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__title { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; }
.cookie-banner__text { font-size: 0.875rem; color: var(--c-on-dark-muted); }
.cookie-banner__text a { color: var(--c-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__options { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--c-on-dark-line); border-bottom: 1px solid var(--c-on-dark-line); }
.cookie-banner__options[hidden] { display: none; }
.cookie-banner__opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 0.875rem; }
.cookie-banner__opt small { display: block; color: var(--c-on-dark-muted); font-size: 0.78rem; }
.cookie-banner__opt input { width: 20px; height: 20px; accent-color: #c6a878; }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-banner__actions .btn { min-height: 46px; padding: 0 14px; font-size: 0.85rem; }
.cookie-banner__more { grid-column: 1 / -1; justify-self: center; background: none; border: 0; color: var(--c-on-dark-muted); font: inherit; font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px; }
.cookie-banner__more:hover { color: var(--c-on-dark); }
.footer__legal button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.footer__legal button:hover { text-decoration: underline; }
@media (max-width: 1023px) { .cookie-banner { bottom: 84px; } }
/* Petits écrans : bandeau compact pour ne pas masquer le contenu ni les liens du pied de page */
@media (max-width: 599px) {
  .cookie-banner { padding: 16px; gap: 10px; bottom: 12px; left: 12px; width: calc(100vw - 24px); max-height: 70svh; overflow-y: auto; }
  .cookie-banner__title { font-size: 1.2rem; }
  .cookie-banner__text { font-size: 0.8125rem; line-height: 1.45; }
  .cookie-banner__actions { gap: 8px; }
  .cookie-banner__actions .btn { min-height: 42px; }
}
.svc-item__title a { text-decoration: underline; text-decoration-color: var(--c-line); text-underline-offset: 4px; transition: text-decoration-color 0.3s; }
.svc-item__title a:hover { text-decoration-color: currentColor; }
.aids__note a { color: var(--c-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.exp-card__list { position: relative; z-index: 2; }
.drawer__page { margin-top: 8px; justify-self: start; }

/* ---------- Projets types : mention « illustration » ---------- */
.works__note { margin-top: 18px; font-size: 0.875rem; color: var(--c-muted); max-width: 52ch; }
.lightbox__note { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #c6a878; margin: -6px 0 6px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Réalisations professionnelles (page Locaux professionnels) ---------- */
.pro-refs { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(14px, 1.6vw, 24px); }
.pro-ref { display: grid; gap: 14px; align-content: start; }
.pro-ref img { width: 100%; height: clamp(300px, 34vw, 520px); object-fit: cover; border-radius: var(--radius-lg); background: var(--c-line); }
.pro-ref figcaption { display: grid; gap: 4px; }
.pro-ref__title { font-family: var(--f-display); font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.1; }
.pro-ref__text { color: var(--c-muted); font-size: 0.9375rem; max-width: 52ch; }
@media (max-width: 767px) { .pro-refs { grid-template-columns: 1fr; } }

/* ---------- Mention « Photo d'illustration » (images de banque d'images) ---------- */
.media-note {
  position: absolute;
  top: calc(var(--header-h) + 12px);
  right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  z-index: 3;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(14, 15, 17, 0.45);
  color: rgba(242, 238, 231, 0.82);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  pointer-events: none;
}
.media-note--on-image { top: auto; bottom: 12px; right: 12px; }

/* Note d'information sous une grille de prestations */
.svc-note { max-width: 76ch; margin-top: clamp(24px, 3vw, 36px); padding-left: 16px; border-left: 2px solid var(--c-accent); color: var(--c-muted); font-size: 0.9rem; }
