/* ==========================================================================
   2M/Digital — Prestations (page pilier + pages prestations, mode sombre)
   S'appuie sur style.css (tokens, nav, boutons, tags, .section, .steps, .works, footer).
   ========================================================================== */

.p-breadcrumb,
.p-hero,
.fit,
.pillar-hero,
.pillar-nav,
.pillar-list {
  padding-inline: max(var(--gutter), (100% - var(--max)) / 2 + var(--gutter));
}

/* ---------- Fil d'Ariane ---------- */

.p-breadcrumb { padding-top: 28px; color: var(--muted); }
.p-breadcrumb a:hover { color: var(--yellow); }

/* ---------- Hero + fiche ---------- */

.p-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 56px;
  padding-top: 24px;
  padding-bottom: 56px;
}

.p-hero__text { flex: 1 1 640px; min-width: 0; }

.p-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 5.7vw, 82px);
  line-height: .92;
  text-transform: uppercase;
}

.p-hero__lead { max-width: 620px; margin-top: 28px; font-size: 18px; line-height: 1.55; color: var(--muted); }

.p-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; margin-top: 36px; }

.cible { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; }
.cible__label { color: var(--muted); }

/* Fiche : ticket avant / après */
.fiche {
  flex: 0 0 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.fiche__top { display: flex; justify-content: space-between; align-items: flex-start; color: var(--muted); }
.fiche__title {
  padding-bottom: 16px;
  border-bottom: 2px solid var(--yellow);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.15;
}
.fiche__statut { color: var(--muted); }
.fiche__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fiche__cols h3 { color: var(--muted); }
.fiche__cols ul { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.fiche__cols li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.4; }
.fiche__avant li::before { content: "×"; flex-shrink: 0; color: var(--muted); font-weight: 700; }
.fiche__apres li { color: var(--paper); }
.fiche__apres li::before { content: "✓"; flex-shrink: 0; color: var(--yellow); font-weight: 700; }

/* ---------- Titre + intro générique ---------- */

.p-intro { max-width: 640px; margin-top: 20px; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* ---------- Ce qui est inclus ---------- */

.included__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
  background: var(--line);
}
.included__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 24px;
  background: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}
.included__item::before { content: "✓"; flex-shrink: 0; color: var(--yellow); font-weight: 700; font-size: 15px; }

/* ---------- Fait pour vous / pas fait pour vous ---------- */

.fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-block: 64px;
  border-block: 1px solid var(--line);
}
.fit__col:first-child { border-right: 1px solid var(--line); padding-right: 60px; }
.fit__title { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.fit__col--yes .fit__title { color: var(--yellow); }
.fit__col--no .fit__title { color: var(--muted); }
.fit ul { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.fit li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.4; }
.fit__col--yes li::before { content: "✓"; flex-shrink: 0; color: var(--yellow); font-weight: 700; }
.fit__col--no li { color: var(--muted); }
.fit__col--no li::before { content: "×"; flex-shrink: 0; font-weight: 700; }

/* ---------- Sorti de l'atelier ---------- */

.sorti .works__list { margin-top: 48px; }

/* ---------- Suppléments ---------- */

.supplements__grid { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 2px; margin-top: 56px; background: var(--line); }
.supplements__item { padding: 30px 26px; background: var(--ink); }
.supplements__kicker { color: var(--yellow); }
.supplements__name { margin-top: 16px; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; }
.supplements__item p:last-child { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- FAQ (accordéon natif <details>) ---------- */

.p-faq__list { margin-top: 56px; border-top: 1px solid var(--line); }

.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 0;
  padding-block: 24px;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__num { color: var(--yellow); }
.qa__q {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;
  transition: color .15s ease;
}
.qa summary:hover .qa__q { color: var(--yellow); }

.qa__toggle { position: relative; width: 32px; height: 32px; border: 1px solid var(--line); transition: border-color .15s ease; }
.qa__toggle::before,
.qa__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--paper);
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background-color .15s ease;
}
.qa__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__toggle { border-color: var(--yellow); }
.qa[open] .qa__toggle::before { background: var(--yellow); }
.qa[open] .qa__toggle::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.qa__a { margin-top: -6px; padding: 0 40px 26px 90px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Explorez les autres savoir-faire ---------- */

.explore__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.explore__item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .15s ease;
}
.explore__item:hover { background: var(--surface); }
.explore__top { display: flex; justify-content: space-between; align-items: flex-start; }
.explore__num { color: var(--yellow); }
.explore__arrow { color: var(--muted); transition: transform .15s ease, color .15s ease; }
.explore__item:hover .explore__arrow { color: var(--paper); transform: translate(2px, -2px); }
.explore__name { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.1; }
.explore__tag { color: var(--muted); }

/* ---------- Page pilier /prestations ---------- */

/* Titre du bandeau final : texte libre depuis le back-office, donc autorisé à revenir à la ligne */
.cta-final__title--fluid { white-space: normal; }

.pillar-hero { padding-top: 72px; padding-bottom: 56px; }
.pillar-hero__title {
  max-width: 900px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 92px);
  line-height: .9;
}
.pillar-hero__lead { max-width: 640px; margin-top: 28px; font-size: 18px; line-height: 1.55; color: var(--muted); }

.pillar-nav { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 48px; }
.pillar-nav a.tag { transition: border-color .15s ease, color .15s ease; }
.pillar-nav a.tag:hover,
.pillar-nav a.tag:focus-visible { border-color: var(--yellow); color: var(--paper); }

.pillar-list { border-top: 1px solid var(--line); padding-bottom: 100px; }

.pillar-item { padding-block: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.pillar-item__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pillar-item__title { display: flex; align-items: baseline; gap: 20px; min-width: 0; flex: 1 1 260px; }
.pillar-item__name { min-width: 0; }
.pillar-item__num { font-family: var(--font-display); font-weight: 900; font-size: 32px; color: var(--yellow); }
.pillar-item__name { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; }
.pillar-item__actions { display: flex; align-items: center; gap: 20px; }

.pillar-item__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 28px; }
.pillar-item__grid h3 { color: var(--muted); }
.pillar-item__grid p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--paper); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .p-hero { flex-direction: column; }
  .fiche { flex-basis: auto; width: 100%; max-width: 560px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .included__grid { grid-template-columns: repeat(2, 1fr); }
  .fit { grid-template-columns: 1fr; gap: 40px; }
  .fit__col:first-child { border-right: 0; padding-right: 0; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
  .supplements__grid { grid-template-columns: 1fr; }
  .explore__grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-item__grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 640px) {
  .p-breadcrumb { padding-top: 20px; font-size: 10px; }
  .p-hero { padding-top: 16px; padding-bottom: 40px; }
  .p-hero__lead { font-size: 16px; }
  .fiche { padding: 22px 18px; }
  .fiche__cols { grid-template-columns: 1fr; gap: 24px; }
  .included__grid { grid-template-columns: 1fr; }
  .fit { padding-block: 40px; }
  .explore__grid { grid-template-columns: 1fr; }
  .qa summary { grid-template-columns: minmax(0, 1fr) 32px; row-gap: 8px; }
  .qa__num { grid-column: 1 / -1; }
  .qa__q { font-size: 20px; }
  .qa__a { padding-left: 0; }
  .pillar-item__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pillar-item__title { flex-basis: auto; }
  .pillar-item__name { font-size: 24px; }
  .pillar-item__actions { flex-wrap: wrap; }
}
