/* =========================
   FAQ PAGE — ULTRA PREMIUM
   ========================= */

/* Variables locales (sans casser le reste du site) */
:root {
  --faq-text-main: #0f172a;
  --faq-text-muted: #4b5563;
  --faq-surface: #f7f8fc;
  --faq-border-subtle: rgba(15, 23, 42, 0.06);
  --faq-gold: var(--gold, #c9a227);

  /* Pour les cartes / formulaires */
  --ink: #0f172a;
  --border: #e5e7eb;
  --card: #ffffff;
  --brand: var(--gold, #c9a227);
  --accent: #f5f1e4;
}

/* Wrapper page */
.faq-page {
  background: transparent;
  min-height: 100vh;
}

/* Largeur compacte */
.faq-page .page-container {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

/* =========================
   HERO
   ========================= */

.faq-hero {
  padding: 20px 0 20px;
  position: relative;
  overflow: hidden;
}

.faq-hero::before {
  content: "";
  position: absolute;
  inset: -120px -40px auto auto;
  background:
    radial-gradient(circle at 10% 20%, rgba(201, 162, 39, 0.16), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.16), transparent 60%);
  pointer-events: none;
}

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

.faq-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 1000;
  letter-spacing: -0.03em;
  color: var(--faq-text-main);
  margin: 0;
}

/* Apparition douce */
.faq-hero,
.faq-content {
  animation: faqFadeUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(8px);
}

.faq-content {
  animation-delay: 0.08s;
}

/* =========================
   LAYOUT PRINCIPAL
   ========================= */

.faq-content {
  padding: 32px 0 72px;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
  gap: 36px;
  align-items: flex-start;
}

/* =========================
   SIDEBAR (catégories)
   ========================= */

.faq-sidebar {
  position: sticky;
  top: 96px;
  align-self: flex-start;
}

.faq-sidebar-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin-bottom: 10px;
}

.faq-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.9),
      rgba(248, 250, 252, 0.98)
  );
  border: 1px solid rgba(148, 163, 184, 0.20);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.faq-nav-link {
  position: relative;
  font-size: 0.92rem;
  color: #4b5563;
  text-decoration: none;
  padding: 7px 8px 7px 18px;
  border-radius: 999px;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    transform 0.16s ease;
}

.faq-nav-link::before {
  content: "●";
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.55rem;
  color: rgba(148, 163, 184, 0.9);
}

.faq-nav-link:hover {
  color: var(--faq-text-main);
  background: rgba(201, 162, 39, 0.08);
  transform: translateX(2px);
}

.faq-nav-link:focus-visible {
  outline: 2px solid var(--faq-gold);
  outline-offset: 2px;
}

/* =========================
   ACCORDÉON (details/summary)
   ========================= */

.faq-accordion {
  border-radius: 20px;
  background: var(--faq-surface);
  border: 1px solid var(--faq-border-subtle);
  box-shadow:
    0 16px 42px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.85);
  padding: 18px 18px 20px;
}

/* Titres de bloc */

.faq-block-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
  margin: 14px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-block-title::before {
  content: "◎";
  font-size: 0.65rem;
  color: rgba(148, 163, 184, 0.9);
}

.faq-block-title:first-of-type {
  margin-top: 2px;
}

/* Item */

.faq-item {
  border-radius: 14px;
  background: transparent;
  padding: 4px 6px;
  margin-bottom: 2px;
  border: 1px solid transparent;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.16s ease;
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

/* Summary = question */

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--faq-text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px;
}

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

.faq-item > summary::after {
  content: "＋";
  font-size: 1.25rem;
  line-height: 1;
  color: #cbd5f5;
  flex-shrink: 0;
  transition:
    transform 0.22s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}

.faq-item > summary:hover {
  color: #020617;
}

.faq-item > summary:focus-visible {
  outline: 2px solid var(--faq-gold);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Panel = réponse */

.faq-panel {
  padding: 0 2px 2px;
  font-size: 0.94rem;
  color: var(--faq-text-muted);
  line-height: 1.6;
  animation: faqPanelIn 0.24s ease-out;
}

.faq-panel p {
  margin: 0 0 10px;
}

.faq-panel a {
  color: var(--faq-gold);
  text-decoration: none;
  font-weight: 500;
}

.faq-panel a:hover {
  text-decoration: underline;
}

/* État ouvert : icône */

.faq-item[open] > summary::after {
  transform: rotate(45deg);
  color: #94a3b8;
  opacity: 0.9;
}

/* =========================
   FORMULAIRE DE CONTACT
   ========================= */

.faq-contact {
  padding: 0 0 64px;
}

.faq-contact .page-container {
  width: 90%;
  max-width: 720px;
  margin: 0 auto;
}

.faq-contact-card {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 24px 22px 26px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.faq-contact-card h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: var(--ink);
}

.faq-contact-card p {
  margin: 0 0 14px;
  font-size: 0.94rem;
  color: var(--faq-text-muted);
}

/* Champ */

.faq-contact-card .field {
  width: 100%;
}

.faq-contact-card .field label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.faq-page form input:not([type="submit"]),
.faq-page form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 0.88rem;
  font-family: inherit;
  padding: 0.7em 1em;
  border-radius: 10px;
  margin-bottom: 0.9em;
  box-sizing: border-box;
  background: #fff;
  border: 1.5px solid var(--border);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
  color: var(--ink);
  outline: none;
  appearance: none;
  display: block;
}

.faq-page form textarea {
  min-height: 6em;
  resize: vertical;
}

.faq-page form input:focus,
.faq-page form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35);
  background-color: #fffdf6;
}

/* Actions */

.faq-contact-card .actions {
  margin-top: 8px;
}

.faq-contact-card .btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(201, 162, 39, 0.45);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
}

.faq-contact-card .btn.primary:hover {
  background: #e3c56a;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(201, 162, 39, 0.55);
}

.faq-contact-card .btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

.faq-contact-card .btn.primary:focus-visible {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

/* Petit texte sous le formulaire */

.faq-contact-card .small {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Gras spéciaux */

.gold {
  color: #c9a227;
  font-weight: 900;
  font-size: 1.3em;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 0.55px 0 #c9a227;
}

.gras {
  color: #0e0e48;
  font-weight: 900;
  font-size: 1.1em;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 0.55px 0 #0e0e48;
}

.gras2 {
  color: #c9a227;
  font-weight: 900;
  font-size: 1em;
  -webkit-font-smoothing: antialiased;
}

/* =========================
   ANIMATIONS & ACCESSIBILITÉ
   ========================= */

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

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

@media (prefers-reduced-motion: reduce) {
  .faq-hero,
  .faq-content {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .faq-panel {
    animation: none !important;
  }
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1024px) {
  .faq-content {
    padding-bottom: 64px;
  }
}

@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-sidebar {
    position: static;
  }

  .faq-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 8px;
  }

  .faq-nav-link {
    padding: 6px 10px 6px 18px;
    font-size: 0.9rem;
  }

  .faq-page .page-container {
    width: 92%;
  }
}

@media (max-width: 640px) {
  .faq-hero {
    padding: 32px 0 18px;
  }

  .faq-hero h1 {
    font-size: 1.6rem;
  }

  .faq-content {
    padding: 24px 0 40px;
  }

  .faq-grid {
    gap: 18px;
  }

  .faq-page .page-container {
    width: 94%;
  }

  .faq-accordion {
    border-radius: 16px;
    padding: 10px 10px 12px;
    box-shadow:
      0 12px 26px rgba(15, 23, 42, 0.08),
      0 0 0 1px rgba(255, 255, 255, 0.9);
  }

  .faq-block-title {
    font-size: 0.88rem;
    letter-spacing: 0.15em;
    margin: 10px 0 4px;
  }

  .faq-item > summary {
    font-size: 0.95rem;
    padding: 7px 2px;
  }

  .faq-panel {
    font-size: 0.9rem;
  }

  .faq-contact .page-container {
    width: 94%;
    max-width: 640px;
  }

  .faq-contact-card {
    padding: 20px 18px 22px;
  }
}
