/* ==========================================================================
   Page FAQ — reprend les codes de la home (labels espacés, numérotation 01, vert Leaf)
   ========================================================================== */

.faq {
  padding-bottom: 6rem;
}

.faq-intro {
  max-width: 60ch;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7) !important;
  margin-bottom: 3.5rem;
}

.faq-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4.5rem;
  align-items: start;
}

/* ---- Colonne gauche ---- */
.faq-aside {
  position: sticky;
  top: 120px;
}

.faq-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #258c5d;
  margin-bottom: 0.9rem;
}

.faq-toc {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-toc li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-toc a {
  display: flex;
  gap: 0.9rem;
  padding: 0.6rem 0;
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.faq-toc a:hover {
  color: #258c5d;
}

.faq-toc-num {
  font-variant-numeric: tabular-nums;
  color: rgba(58, 175, 120, 0.55);
}

.faq-photo {
  margin: 0 0 2.5rem;
}

.faq-photo img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 3px;
}

.faq-photo figcaption {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.55);
}

.faq-contact {
  padding-left: 1rem;
  border-left: 2px solid #258c5d;
}

.faq-contact p {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
}

.faq-contact .faq-contact-title {
  color: #212529 !important;
  font-weight: 600;
}

.faq-contact a {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: #258c5d;
  text-underline-offset: 3px;
}

.faq-contact a:hover {
  color: #1d6f49;
}

/* ---- Questions ---- */
.faq-cat {
  margin-bottom: 4rem;
  scroll-margin-top: 110px;
}

.faq-cat-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.faq-cat-num {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: rgba(58, 175, 120, 0.4);
}

.faq-cat-head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.faq-q {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  scroll-margin-top: 110px;
}

.faq-q summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
}

.faq-q summary::-webkit-details-marker {
  display: none;
}

.faq-q summary h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.88) !important;
  transition: color 0.2s;
}

.faq-q summary:hover h3,
.faq-q[open] summary h3 {
  color: #258c5d !important;
}

.faq-q summary:focus-visible {
  outline: 2px solid #258c5d;
  outline-offset: 4px;
}

/* Plus / moins dessiné en CSS */
.faq-plus {
  position: relative;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  background: #258c5d;
  transition: transform 0.25s;
}

.faq-plus::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-plus::after {
  left: 50%;
  top: 0;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-q[open] .faq-plus::after {
  transform: translateX(-50%) scaleY(0);
}

.faq-a {
  padding: 0 2.5rem 1.4rem 0;
}

.faq-a p {
  max-width: 64ch;
  margin: 0;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.7) !important;
}

.faq-a a {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #258c5d;
  text-underline-offset: 3px;
}

.faq-a a:hover {
  color: #1d6f49;
}

/* ---- Tablette / mobile : sommaire en haut, contact en bas, pas de photo ---- */
@media (max-width: 991px) {
  .faq-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .faq-aside {
    display: contents;
  }

  .faq-aside nav {
    order: 1;
    width: 100%;
  }

  .faq-content {
    order: 2;
    width: 100%;
  }

  .faq-contact {
    order: 3;
  }

  .faq-photo {
    display: none;
  }

  .faq-toc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
    margin-bottom: 3rem;
  }
}

@media (max-width: 576px) {
  .faq-intro {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }

  .faq-cat-head h2 {
    font-size: 1.2rem;
  }

  .faq-cat-num {
    font-size: 1.4rem;
  }

  .faq-q summary h3 {
    font-size: 0.98rem;
  }

  .faq-a {
    padding-right: 0;
  }
}
