/* FAQ — couleurs logo (vert globe + noir texte) + animations */

.faq-page {
  --faq-green: #1a7a4c;
  --faq-green-soft: #e8f5ee;
  --faq-green-mid: #2d9d66;
  --faq-ink: #1a2420;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(26, 122, 76, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(30, 90, 138, 0.08), transparent 50%),
    linear-gradient(180deg, #f7fbf8 0%, #fff 40%, #f3faf6 100%);
}

.faq-page .faq-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 3.5rem;
  margin-top: 72px;
  background: linear-gradient(135deg, #0f5c38 0%, #1a7a4c 45%, #1e5a8a 100%);
  color: #fff;
}

.faq-page .faq-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(45, 157, 102, 0.35), transparent 45%);
  pointer-events: none;
}

.faq-page .faq-hero .container {
  position: relative;
  z-index: 1;
}

.faq-page .faq-hero .section-label {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  animation: faqFloatIn 0.7s ease both;
}

.faq-page .faq-hero h1 {
  color: #fff;
  max-width: 16ch;
  animation: faqFloatIn 0.75s ease 0.08s both;
}

.faq-page .faq-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 42ch;
  animation: faqFloatIn 0.75s ease 0.16s both;
}

.faq-page .faq-hero__glow {
  position: absolute;
  width: 220px;
  height: 220px;
  right: 8%;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
  animation: faqPulse 4s ease-in-out infinite;
  pointer-events: none;
}

.faq-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: -2rem auto 2.5rem;
  position: relative;
  z-index: 2;
  max-width: 960px;
  padding: 0 1rem;
}

.faq-quick__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(26, 122, 76, 0.15);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 92, 56, 0.08);
  text-decoration: none;
  color: var(--faq-ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: faqFloatIn 0.7s ease both;
}

.faq-quick__item:nth-child(1) { animation-delay: 0.2s; }
.faq-quick__item:nth-child(2) { animation-delay: 0.28s; }
.faq-quick__item:nth-child(3) { animation-delay: 0.36s; }

.faq-quick__item:hover {
  transform: translateY(-4px);
  border-color: var(--faq-green);
  box-shadow: 0 14px 32px rgba(26, 122, 76, 0.16);
}

.faq-quick__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--faq-green), #1e5a8a);
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.faq-quick__item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--faq-green);
}

.faq-quick__item span {
  font-size: 0.8rem;
  color: #5a6b63;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(26, 122, 76, 0.14);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 92, 56, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover,
.faq-item.is-open {
  border-color: rgba(26, 122, 76, 0.4);
  box-shadow: 0 12px 28px rgba(26, 122, 76, 0.12);
}

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--faq-ink);
}

.faq-item__btn:focus-visible {
  outline: 2px solid var(--faq-green);
  outline-offset: -2px;
}

.faq-item__q {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
}

.faq-item__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--faq-green), #1e5a8a);
}

.faq-item__chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--faq-green-soft);
  color: var(--faq-green);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-item__chevron {
  transform: rotate(180deg);
  background: var(--faq-green);
  color: #fff;
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
}

.faq-item__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-item__a {
  margin: 0;
  padding: 0 1.25rem 1.25rem 3.35rem;
  color: #4a5c54;
  line-height: 1.7;
  font-size: 0.98rem;
  opacity: 1;
  visibility: visible;
}

/* FAQ toujours lisible (évite opacity 0 si .reveal non observé) */
.faq-page .faq-item.reveal,
.faq-page .faq-tip.reveal,
.faq-page .faq-cta.reveal {
  opacity: 1;
  transform: none;
}

.faq-page .faq-item.is-open .faq-item__a {
  animation: faqAnswerIn 0.35s ease both;
}

@keyframes faqAnswerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-item__a a {
  color: var(--faq-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-cta {
  margin: 3rem auto 0;
  max-width: 760px;
  padding: 2rem 1.75rem;
  border-radius: 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0f5c38 0%, #1a7a4c 50%, #1e5a8a 100%);
  box-shadow: 0 16px 40px rgba(15, 92, 56, 0.22);
  position: relative;
  overflow: hidden;
  animation: faqFloatIn 0.8s ease 0.2s both;
}

.faq-cta::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: faqPulse 5s ease-in-out infinite;
}

.faq-cta p {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.faq-cta .btn {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--faq-green);
  border-color: #fff;
}

.faq-cta .btn:hover {
  background: var(--faq-green-soft);
  color: #0f5c38;
}

.faq-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 760px;
  margin: 2rem auto 0;
}

.faq-tip {
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: var(--faq-green-soft);
  border-left: 4px solid var(--faq-green);
  animation: faqFloatIn 0.7s ease both;
}

.faq-tip strong {
  display: block;
  color: var(--faq-green);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.faq-tip p {
  margin: 0;
  font-size: 0.88rem;
  color: #3d4f47;
  line-height: 1.55;
}

@keyframes faqFloatIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes faqPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 800px) {
  .faq-quick {
    grid-template-columns: 1fr;
    margin-top: -1.5rem;
  }

  .faq-tips {
    grid-template-columns: 1fr;
  }

  .faq-item__a {
    padding-left: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-page .faq-hero .section-label,
  .faq-page .faq-hero h1,
  .faq-page .faq-hero p,
  .faq-quick__item,
  .faq-cta,
  .faq-tip,
  .faq-page .faq-hero__glow,
  .faq-cta::after {
    animation: none !important;
  }

  .faq-item__panel {
    transition: none;
  }
}
