/* ============================================================
   AtelierCox — FAQ Page Styles v3
   ============================================================ */

.ac-faq-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Breadcrumb --- */
.ac-faq-breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.ac-faq-breadcrumb a {
  color: #888;
  text-decoration: none;
}

.ac-faq-breadcrumb a:hover {
  color: #6B9113;
}

.ac-faq-breadcrumb span {
  color: #333;
}

/* --- Page Title --- */
.ac-faq-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 0 0 24px 0;
  line-height: 1.3;
}

/* --- Hero Banner --- */
.ac-faq-hero {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3D3325 0%, #6B9113 100%);
}

.ac-faq-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.ac-faq-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.ac-faq-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 560px;
  padding: 0 16px;
}

.ac-faq-search-form {
  display: flex;
  align-items: stretch;
}

.ac-faq-search-input {
  flex: 1;
  padding: 12px 18px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: #333;
}

.ac-faq-search-input::placeholder {
  color: #999;
  font-size: 13px;
}

.ac-faq-search-btn {
  padding: 12px 18px;
  background: #6B9113;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.ac-faq-search-btn:hover {
  background: #517009;
}

.ac-faq-search-btn svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.ac-faq-search-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ac-faq-search-tags span {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
}

.ac-faq-search-tags a {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.ac-faq-search-tags a:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* --- FAQ Main Container --- */
.ac-faq-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 64px;
  min-height: 500px;
}

/* --- Categories Sidebar --- */
.ac-faq-categories {
  border-right: 1px solid #E5E5E5;
  background: #fff;
}

.ac-faq-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #F0F0F0;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  line-height: 1.3;
  border-left: 3px solid transparent;
}

.ac-faq-cat-item:last-child {
  border-bottom: none;
}

.ac-faq-cat-item:hover {
  background: #FAFAFA;
}

.ac-faq-cat-item.is-active {
  background: #f5f9ec;
  color: #4a7a0a;
  font-weight: 600;
  border-left-color: #6B9113;
}

.ac-faq-cat-item.is-active .ac-faq-cat-icon svg {
  color: #6B9113;
}

.ac-faq-cat-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-faq-cat-icon svg {
  width: 20px;
  height: 20px;
  color: #888;
  transition: color 0.15s ease;
}

.ac-faq-cat-label {
  line-height: 1.3;
}

/* --- Questions Panel --- */
.ac-faq-questions {
  background: #fff;
  position: relative;
}

.ac-faq-questions-group {
  display: none;
}

.ac-faq-questions-group.is-active {
  display: block;
}

/* --- Question List View --- */
.ac-faq-question-row {
  display: block;
  padding: 15px 20px;
  border-bottom: 1px solid #F0F0F0;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  text-decoration: none;
}

.ac-faq-question-row:last-child {
  border-bottom: none;
}

.ac-faq-question-row:hover {
  background: #FAFAFA;
  color: #4a7a0a;
}

/* --- Detail View (answer) --- */
.ac-faq-detail {
  display: none;
  padding: 24px;
}

.ac-faq-detail.is-active {
  display: block;
}

.ac-faq-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6B9113;
  text-decoration: none;
  margin-bottom: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.15s ease;
}

.ac-faq-detail-back:hover {
  color: #4a7a0a;
}

.ac-faq-detail-back svg {
  width: auto;
  height: 13px;
}

.ac-faq-detail-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px 0;
  line-height: 1.35;
}

.ac-faq-detail-answer {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
}

.ac-faq-detail-answer p {
  margin: 0 0 12px 0;
}

.ac-faq-detail-answer p:last-child {
  margin-bottom: 0;
}

/* --- Search Results Header --- */
.ac-faq-search-results-header {
  display: none;
  padding: 16px 20px;
  border-bottom: 1px solid #E5E5E5;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.ac-faq-search-results-header.is-active {
  display: block;
}

.ac-faq-search-results-header em {
  color: #6B9113;
  font-style: normal;
}

/* --- Search Results List --- */
.ac-faq-search-results {
  display: none;
}

.ac-faq-search-results.is-active {
  display: block;
}

.ac-faq-search-results .ac-faq-question-row {
  display: block;
}

/* --- Pagination Dots --- */
.ac-faq-pagination {
  display: none;
  padding: 16px 20px;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid #F0F0F0;
}

.ac-faq-pagination.is-active {
  display: flex;
}

.ac-faq-pagination-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D4D4D4;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}

.ac-faq-pagination-dot.is-active {
  background: #6B9113;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .ac-faq-container {
    grid-template-columns: 1fr;
  }

  .ac-faq-categories {
    border-right: none;
    border-bottom: 1px solid #E5E5E5;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ac-faq-cat-item {
    flex-shrink: 0;
    white-space: nowrap;
    border-bottom: none;
    border-left: none;
    border-right: 1px solid #F0F0F0;
    padding: 10px 14px;
    font-size: 12px;
  }

  .ac-faq-cat-item.is-active {
    border-left: none;
    border-bottom: 3px solid #6B9113;
  }

  .ac-faq-cat-item:last-child {
    border-right: none;
  }

  .ac-faq-cat-icon {
    width: 20px;
    height: 20px;
  }

  .ac-faq-cat-icon svg {
    width: 16px;
    height: 16px;
  }

  .ac-faq-hero {
    height: 150px;
    border-radius: 0;
  }

  .ac-faq-title {
    font-size: 22px;
  }

  .ac-faq-detail {
    padding: 16px;
  }

  .ac-faq-detail-title {
    font-size: 18px;
  }

  .ac-faq-question-row {
    padding: 12px 16px;
  }
}


/* ============================================================
   Recettage desktop 06.10.2026 — FAQ
   ============================================================ */
body.page-id-2312 .elementor-element-86a25a3 {
  max-width: 972px !important;
}

body.page-id-2312 .ac-faq-wrapper {
  width: 100% !important;
  max-width: 912px !important;
  box-sizing: border-box;
  padding: 0 !important;
  font-family: "niveau-grotesk", Arial, sans-serif;
}

body.page-id-2312 .ac-faq-wrapper .ac-faq-title,
body.page-id-2312 .ac-faq-wrapper h1,
body.page-id-2312 .ac-faq-wrapper h2,
body.page-id-2312 .ac-faq-wrapper h3 {
  font-family: "Syne", Arial, sans-serif;
  color: #524235;
}

body.page-id-2312 .ac-faq-wrapper .ac-faq-hero,
body.page-id-2312 .ac-faq-wrapper .ac-faq-container,
body.page-id-2312 .ac-faq-wrapper input,
body.page-id-2312 .ac-faq-wrapper button,
body.page-id-2312 .ac-faq-wrapper a {
  border-radius: 0 !important;
}

body.page-id-2312 .ac-faq-wrapper .ac-faq-search-btn,
body.page-id-2312 .ac-faq-wrapper .ac-faq-cat-item.is-active {
  background-color: #8fbd46;
}

body.page-id-2312 .ac-faq-wrapper .ac-faq-cat-item.is-active {
  border-left-color: #8fbd46;
  color: #524235;
}

body.page-id-2312 .ac-faq-wrapper .ac-faq-cat-item.is-active .ac-faq-cat-icon svg,
body.page-id-2312 .ac-faq-wrapper .ac-faq-cat-icon svg {
  color: #8fbd46;
}

/* ---- FAQ détail — ajustements typo (maquette) ---- */
h2.ac-faq-detail-title {
    font-size: 30px;
    line-height: 1.2;
}
.ac-faq-detail-answer {
    font-size: 17px;
    line-height: 1.5;
}
a.ac-faq-detail-back {
    font-size: 16px;
    color: #524235;
    font-weight: bold;
}

.ac-faq-detail {
    padding: 25px 0;
}

.ac-faq-container {
    margin-bottom: 0;
}

a.ac-faq-detail-back svg {
    height: 13px;
    width: 16px;
    margin-right: 5px;
}
