/* ==========================================================================
   Prittio · page Savoir-faire (26/10/2026)
   Cartes empilées (même principe que les Projets de l'accueil) avec une vraie
   zone de texte : titre, promesse, explication, livrables en générique de fin.
   Versions précédentes : savoir-faire-version-classique.html, savoir-faire-v19-cinemascope.html
   ========================================================================== */

/* ---------- En-tête : sommaire en pastilles ---------- */
.sf-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.sf-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 243, 230, .28); color: var(--cream);
  font-size: 13px; font-weight: 600;
  transition: background .3s, border-color .3s, color .3s;
}
.sf-pill b { color: var(--orange); font-weight: 700; transition: color .3s; }
.sf-pill:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.sf-pill:hover b { color: #fff; }

/* ---------- Cartes empilées ---------- */
.sfcards-sec .stack__inner { max-width: 1440px; margin: 0 auto; padding-top: calc(var(--radius-xl) + 40px); }
.sfcards { margin-top: 0; gap: 6vh; padding-bottom: 4vh; }
.sfcard {
  --step: 18px;                                               /* décalage entre les cartes empilées */
  top: calc(var(--nav-h) + var(--ab, 0px) + 12px + var(--i, 0) * var(--step)); /* ADB: --ab = height of the WordPress toolbar when it shows */
  height: calc(100vh - var(--nav-h) - var(--ab, 0px) - 40px - 4 * var(--step));
  min-height: 520px;
  display: flex; flex-direction: column;
  background: var(--teal-900);
}
.sfcard .pcard__head { flex: none; grid-template-columns: auto 1fr; }
.sfcard .pcard__num { color: var(--orange); }
.sfcard .pcard__head h3 { font-size: 12.5px; color: var(--peach); }

.sfcard .pcard__grid {
  flex: 1; min-height: 0; height: auto; margin-top: 12px;
  grid-template-columns: 1.75fr 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}
.sfcard .pcard__grid figure { min-height: 0; }

/* La zone de texte */
/* La carte de texte prend la place de la grande image */
.sfcard__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 3vh 3.4vw; border-radius: 20px; background: var(--teal-950);
  border: 1px solid rgba(255, 243, 230, .1);
  overflow: hidden; min-height: 0;
}
.sfcard__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: min(4.6vw, 8.4vh); line-height: .92; text-wrap: balance;
}
.sfcard__title em { font-style: normal; color: var(--orange); }
.sfcard__acc { max-width: 52ch; margin-top: 2.2vh; font-size: clamp(14px, 1.1vw, 16.5px); font-weight: 600; line-height: 1.45; }
.sfcard__p { max-width: 60ch; margin-top: 1vh; font-size: 13.5px; line-height: 1.6; color: rgba(255, 243, 230, .68); }

/* Livrables en générique de fin : « Étape ........ ce que nous livrons » */
.sfcard__credits { max-width: 560px; list-style: none; margin: 2.6vh 0 0; padding: 0; display: grid; gap: 7px; }
.sfcard__credits li { display: flex; align-items: baseline; gap: 12px; font-size: 13px; }
.sfcard__credits span { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 243, 230, .5); white-space: nowrap; }
.sfcard__credits i { flex: 1; min-width: 20px; border-bottom: 1px dotted rgba(255, 243, 230, .3); }
.sfcard__credits b { font-weight: 500; text-align: right; }

.sfcard__link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 2.8vh;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange);
  border-bottom: 1.5px solid currentColor; padding-bottom: 3px;
}
.sfcard__link svg { width: 14px; height: 14px; transition: transform .4s var(--ease-out); }
.sfcard__link:hover svg { transform: rotate(45deg); }


/* ---------- Mobile et tablette : cartes les unes sous les autres ---------- */
@media (max-width: 900px) {
  .sfcard { position: relative; top: auto; height: auto; min-height: 0; }
  .sfcard .pcard__grid { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .sfcard .pcard__grid figure { display: block; height: 34vh; }
  .sfcard__text { padding: 24px 20px; }
  .sfcard__title { font-size: 40px; }
}

/* ---------- Sommaire des savoir-faire en ligne de texte (28/10) ---------- */
.sf-index {
  position: relative; z-index: 2; max-width: 1400px; margin: 7vh auto 0; padding-top: 22px;
  border-top: 1px solid rgba(255, 243, 230, .16);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cream);
}
.sf-index a { position: relative; padding: 8px 18px; opacity: .75; transition: opacity .3s, color .3s; }
.sf-index a + a::before {
  content: ""; position: absolute; left: -2px; top: 50%; width: 4px; height: 4px; border-radius: 50%;
  background: var(--orange); transform: translateY(-50%);
}
.sf-index a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-expo);
}
.sf-index sup { margin-right: 6px; font-size: 9.5px; letter-spacing: .04em; color: var(--orange); }
.sf-index a:hover, .sf-index a.is-on { opacity: 1; }
.sf-index a:hover::after, .sf-index a.is-on::after { transform: scaleX(1); }
@media (max-width: 900px) {
  .sf-index { justify-content: flex-start; font-size: 11px; }
  .sf-index a { padding: 7px 12px; }
}
@media (min-width: 901px) {
  .sf-index { flex-wrap: nowrap; justify-content: space-between; font-size: clamp(10px, .82vw, 12px); letter-spacing: .1em; }
  .sf-index a { padding: 8px 1vw; white-space: nowrap; }
  .sf-index a::after { left: 1vw; right: 1vw; }
}
@media (min-width: 901px) {
  .sf-index { font-size: clamp(9.5px, .74vw, 11.5px); letter-spacing: .08em; }
  .sf-index a { padding: 8px .75vw; }
  .sf-index a::after { left: .75vw; right: .75vw; }
}
/* points de séparation centrés entre les catégories */
.sf-index a + a::before, .sf-index .sf-sep + a::before { content: none; }
.sf-sep { flex: 1 1 0; min-width: 10px; display: flex; align-items: center; justify-content: center; }
.sf-sep::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
@media (min-width: 901px) { .sf-index { justify-content: center; } }
@media (max-width: 900px) { .sf-sep { flex: 0 0 8px; } }

/* FAQ sur fond beige (28/10) : textes et filets sombres, comme sur la page Projets */
.faq.bg-cream .faq__list { border-top-color: rgba(6, 42, 51, .16); }
.faq.bg-cream .faq__item { border-bottom-color: rgba(6, 42, 51, .16); }
.faq.bg-cream .faq__item summary:hover h3 { color: var(--orange); }
.faq.bg-cream .faq__item p { color: rgba(6, 42, 51, .75); }
