/* Composants éditoriaux de l'accueil et des pages services (v4). */
:root {
  --sp-accent: #cea587;      /* brun clair : sur fond sombre */
  --sp-accent-ink: #9a6f50;  /* brun foncé : sur fond clair */
  --sp-dark: #252323;
  --sp-line: #d8cfc6;
}

/* ---------- Typographie ---------- */
.t-alt {
  font-family: "Playfair Display", Playfairdisplay, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.sp-dark .t-alt, .sp-cta .t-alt { color: var(--sp-accent); }
.u-accent {
  text-decoration: underline;
  text-decoration-color: var(--sp-accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  text-decoration-skip-ink: none;
  font-weight: 700;
}
.about-content_text-paragraph strong, .faq_paragraph strong, .sp-lead strong { font-weight: 600; }

/* ---------- Pilules (étiquettes, non cliquables) ---------- */
.sp-pills { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.sp-pill {
  display: inline-block;
  padding: .45rem .9rem .35rem;
  border: 1px solid var(--sp-accent);
  border-radius: 999px;
  color: var(--sp-accent-ink);
  font-family: Futura LT, Arial, sans-serif;
  font-size: .8125rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.sp-dark .sp-pill, .sp-cta .sp-pill { color: var(--sp-accent); }
.sp-pills--center { justify-content: center; }

/* ---------- Sections ---------- */
.sp-section { scroll-margin-top: 6rem; }
.sp-dark { background: var(--sp-dark); color: #fff; }
.sp-dark h2 { color: #fff; }
.sp-head { max-width: 48rem; margin: 0 auto 3rem; text-align: center; }
.sp-head h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; }
.sp-head .sp-pills { justify-content: center; margin-top: 1.5rem; }
.sp-lead { font-size: 1.125rem; line-height: 1.75; margin-top: 1.25rem; }
.sp-dark .sp-lead { color: #e9e3dd; }

/* ---------- Zoom sur nos chantiers ---------- */
.sp-zoom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sp-figure { margin: 0; }
.sp-figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.sp-figure figcaption { margin-top: 1rem; }
.sp-figure__title { font-family: Playfairdisplay, Georgia, serif; font-weight: 800; font-size: 1.25rem; line-height: 1.3; color: var(--black, #1d1d1d); }
.sp-figure .sp-pills { margin: .6rem 0 .6rem; justify-content: center; }
.sp-figure .sp-pill { font-size: .75rem; padding: .35rem .7rem .28rem; }
.sp-figure p { font-size: 1rem; line-height: 1.6; color: #5c5752; margin: 0; }
.sp-more { text-align: center; margin-top: 2.5rem; }

/* ---------- Méthode (fond sombre) ---------- */
.sp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.sp-steps li { counter-increment: step; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 1.5rem; }
.sp-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: Made Mirage, Arial, sans-serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--sp-accent);
  margin-bottom: 1rem;
}
.sp-steps h3 { color: #fff; font-size: 1.375rem; line-height: 1.2; margin-bottom: .75rem; }
.sp-steps p { color: #d9d2cb; font-size: 1rem; line-height: 1.7; margin: 0; }
.sp-steps strong { color: #fff; font-weight: 600; }

/* ---------- Citation ---------- */
.sp-quote { max-width: 56rem; margin: 0 auto; text-align: center; }
.sp-quote__mark { font-family: "Playfair Display", Georgia, serif; font-size: 6rem; line-height: .6; color: var(--sp-accent); display: block; height: 3rem; }
.sp-quote blockquote { margin: 0; border: 0; padding: 0; }
.sp-quote blockquote p { font-family: "Playfair Display", Playfairdisplay, Georgia, serif; font-style: italic; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.35; color: #1d1d1d; margin: 0; }
.sp-quote cite { display: block; margin-top: 1.25rem; font-style: normal; font-family: Futura LT, Arial, sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: .8125rem; color: var(--sp-accent-ink); }

/* ---------- Appel à l'action final ---------- */
.sp-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--sp-dark);
  color: #fff;
  text-align: center;
  padding: clamp(5rem, 10vw, 8.5rem) 1.25rem;
  scroll-margin-top: 6rem;
}
.sp-cta__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.08);
  filter: saturate(.85);
}
.sp-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(37, 35, 35, .55) 0%, rgba(37, 35, 35, .92) 70%),
    linear-gradient(180deg, rgba(37, 35, 35, .35), rgba(37, 35, 35, .95));
}
/* Motif rayé du logo, en grand et discret */
.sp-cta__motif {
  position: absolute; z-index: -1; width: 26rem; height: 26rem; pointer-events: none; opacity: .14;
  background:
    repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 9px) 0 0 / 50% 50% no-repeat,
    repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 9px) 100% 0 / 50% 50% no-repeat,
    repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 9px) 0 100% / 50% 50% no-repeat,
    repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 9px) 100% 100% / 50% 50% no-repeat;
  -webkit-mask: linear-gradient(#000, #000) 0 0 / calc(50% - 6px) calc(50% - 6px) no-repeat, linear-gradient(#000, #000) 100% 0 / calc(50% - 6px) calc(50% - 6px) no-repeat, linear-gradient(#000, #000) 0 100% / calc(50% - 6px) calc(50% - 6px) no-repeat, linear-gradient(#000, #000) 100% 100% / calc(50% - 6px) calc(50% - 6px) no-repeat;
          mask: linear-gradient(#000, #000) 0 0 / calc(50% - 6px) calc(50% - 6px) no-repeat, linear-gradient(#000, #000) 100% 0 / calc(50% - 6px) calc(50% - 6px) no-repeat, linear-gradient(#000, #000) 0 100% / calc(50% - 6px) calc(50% - 6px) no-repeat, linear-gradient(#000, #000) 100% 100% / calc(50% - 6px) calc(50% - 6px) no-repeat;
}
.sp-cta__motif--a { top: -6rem; right: -6rem; transform: rotate(8deg); animation: sp-drift 18s ease-in-out infinite alternate; }
.sp-cta__motif--b { bottom: -9rem; left: -8rem; width: 20rem; height: 20rem; transform: rotate(-12deg); animation: sp-drift 22s ease-in-out infinite alternate-reverse; }
.sp-cta__inner { max-width: 50rem; margin: 0 auto; }
.sp-cta__title {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1;
  margin: 1.5rem 0 0;
}
.sp-cta__title .t-alt {
  display: inline-block;
  background: linear-gradient(100deg, #cea587 20%, #f3dcc8 40%, #cea587 60%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: sp-shine 5s ease-in-out infinite;
  padding-right: .08em;
}
.sp-cta__text { font-size: 1.1875rem; line-height: 1.7; color: #e9e3dd; margin: 1.5rem auto 0; max-width: 38rem; }
.sp-cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.25rem; }
.sp-cta__buttons .button { margin: 0; display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: .6rem; height: auto; min-height: 3.25rem; padding: .7rem 1.6rem; font-size: 1.0625rem; line-height: 1.2; }
.sp-cta__buttons .sp-btn-wa { background: #fff; color: #1d1d1d; border-color: #fff; box-shadow: 0 0 0 0 rgba(206, 165, 135, .6); animation: sp-pulse 2.6s ease-out infinite; }
.sp-cta__buttons .sp-btn-wa svg { width: 22px; height: 22px; color: #25d366; flex: none; }
.sp-cta__buttons .sp-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); box-shadow: none; }
.sp-cta__buttons .sp-btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.sp-cta__proof { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; margin-top: 2.5rem; font-family: Futura LT, Arial, sans-serif; font-size: .9375rem; color: #cfc8c1; list-style: none; padding: 0; }
.sp-cta__proof li { display: inline-flex; align-items: center; gap: .45rem; }
.sp-cta__proof .sp-check { color: var(--sp-accent); }
.sp-cta__proof a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }
.sp-stars { color: #f5c04e; letter-spacing: 1px; }
@keyframes sp-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes sp-drift { from { translate: 0 0; } to { translate: -2rem 1.5rem; } }
@keyframes sp-pulse { 0% { box-shadow: 0 0 0 0 rgba(206, 165, 135, .55); } 70% { box-shadow: 0 0 0 16px rgba(206, 165, 135, 0); } 100% { box-shadow: 0 0 0 0 rgba(206, 165, 135, 0); } }

/* ---------- Apparition au défilement ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .12s; }
[data-reveal-delay="2"] { transition-delay: .24s; }
[data-reveal-delay="3"] { transition-delay: .36s; }

/* ---------- Jauge de progression (accueil, grands écrans) ---------- */
.sp-gauge { display: none; }
@media screen and (min-width: 1200px) {
  .sp-gauge {
    display: block;
    position: fixed;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    padding: 1rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
    opacity: 0;
    transition: opacity .4s ease;
  }
  .sp-gauge.is-visible { opacity: 1; }
  .sp-gauge ol { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 1.6rem; }
  .sp-gauge__track { position: absolute; left: 50%; top: 1rem; bottom: 1rem; width: 2px; transform: translateX(-50%); background: rgba(29, 29, 29, .15); border-radius: 2px; }
  .sp-gauge__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--sp-accent-ink); border-radius: 2px; transition: height .15s linear; }
  .sp-gauge a { position: relative; display: block; width: 18px; height: 18px; }
  .sp-gauge__dot {
    position: absolute; inset: 3px; border-radius: 50%;
    background: #fff; border: 2px solid rgba(29, 29, 29, .35);
    transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
  }
  .sp-gauge a.is-done .sp-gauge__dot { background: var(--sp-accent-ink); border-color: var(--sp-accent-ink); }
  .sp-gauge a.is-active .sp-gauge__dot { background: #fff; border-color: var(--sp-accent-ink); border-width: 3px; transform: scale(1.35); }
  .sp-gauge a:hover .sp-gauge__dot { transform: scale(1.35); border-color: var(--sp-accent-ink); }
  .sp-gauge__label {
    position: absolute; right: calc(100% + 1rem); top: 50%; transform: translate(6px, -50%);
    white-space: nowrap; padding: .35rem .7rem .28rem; border-radius: 999px;
    background: #fff; color: #1d1d1d; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); font-family: Futura LT, Arial, sans-serif; font-size: .8125rem; letter-spacing: .04em;
    opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .sp-gauge a:hover .sp-gauge__label, .sp-gauge a:focus-visible .sp-gauge__label, .sp-gauge a.is-active .sp-gauge__label { opacity: 1; transform: translate(0, -50%); }
  .sp-gauge a:focus-visible { outline: 2px solid var(--sp-accent-ink); outline-offset: 3px; border-radius: 50%; }
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 991px) {
  .sp-zoom-grid { grid-template-columns: 1fr 1fr; }
  .sp-zoom-grid .sp-figure:last-child { grid-column: span 2; }
  .sp-zoom-grid .sp-figure:last-child img { aspect-ratio: 16 / 9; }
  .sp-steps { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 767px) {
  .sp-zoom-grid { grid-template-columns: 1fr; }
  .sp-zoom-grid .sp-figure:last-child { grid-column: auto; }
  .sp-zoom-grid .sp-figure img, .sp-zoom-grid .sp-figure:last-child img { aspect-ratio: 4 / 3; }
  .sp-steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .sp-steps li::before { font-size: 2.25rem; }
  .sp-cta__buttons .button { width: 100%; }
  .sp-cta__motif--a { width: 16rem; height: 16rem; }
  .sp-cta__motif--b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .sp-cta__motif, .sp-cta__title .t-alt, .sp-cta__buttons .sp-btn-wa { animation: none !important; }
}
img.sp-cta__bg { width: 100%; height: 100%; object-fit: cover; }

/* Le CSS Webflow met toutes les <ul> en colonne flex : on rétablit des lignes pour nos listes */
ul.sp-pills, ul.sp-cta__proof { flex-flow: row wrap; padding-left: 0; margin-bottom: 0; }
ul.sp-pills > li, ul.sp-cta__proof > li { flex: 0 0 auto; width: auto; }
.about-pills { margin: -2.5rem 0 0; }
