/* ═══════════════════════════════════════════════════════
   V6 Archive Project — Guide des Pierres
   Template: archive-project.php
   Classes: .gp-*
   Design System: V6 France Minéraux
   Updated: 2026-03-29
   ═══════════════════════════════════════════════════════ */

/* ══════ GLOBAL TEXT-TRANSFORM RESET ══════ */
/* MyDecor parent theme forces uppercase on many elements — reset for this template */
body.archive-project h1,
body.archive-project h2,
body.archive-project h3,
body.archive-project h4,
body.archive-project button,
body.archive-project .gp-faq-question,
body.archive-project .gp-trust-card h3,
body.archive-project .gp-seo-content h2,
body.archive-project .gp-seo-content h3,
body.archive-project .gp-cards-header h2 {
  text-transform: none !important;
}

/* ══════ HERO ══════ */
.gp-hero {
  position: relative;
  padding: 80px 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.gp-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(60,42,60,.9) 0%, rgba(74,51,74,.85) 100%),
    url('https://www.france-mineraux.fr/wp-content/uploads/2026/03/pexels-photo-3610752.jpg') center/cover no-repeat;
  z-index: 0;
}
.gp-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(196,162,101,.08) 0%, transparent 70%);
  z-index: 1;
}
.gp-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.gp-hero .eyebrow {
  font-family: 'Raleway', sans-serif;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #C4A265;
}
.gp-hero-sep {
  width: 40px;
  height: 1px;
  background: #C4A265;
  margin: 12px auto 16px;
}
.gp-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.2;
}
.gp-hero-content > p {
  color: rgba(255,255,255,.9);
  font-family: 'Raleway', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0;
}

/* Stats */
.gp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(196,162,101,.3);
}
.gp-stat { text-align: center; }
.gp-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: #C4A265;
  display: block;
}
.gp-stat-label {
  font-family: 'Raleway', sans-serif;
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ══════ ALPHABET NAV ══════ */
.gp-alphabet {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #F0E6D0;
  padding: 12px 0;
}
.gp-alphabet .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 48px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.gp-alphabet-pills {
  display: flex;
  gap: 8px;
  white-space: nowrap;
  padding: 8px 0;
  justify-content: center;
}
.gp-alpha-pill {
  padding: 6px 12px;
  border-radius: 20px;
  background: #F5EDE0;
  border: 1px solid #E8D9BE;
  color: #2D1B2D;
  font-family: 'Raleway', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none;
  display: inline-block;
}
.gp-alpha-pill:hover,
.gp-alpha-pill.active {
  background: #C4A265 !important;
  color: #fff !important;
  border-color: #C4A265 !important;
}
a.gp-alpha-pill.active,
body.archive-project .gp-alpha-pill.active {
  color: #fff !important;
}

/* ══════ SEARCH ══════ */
.gp-search {
  padding: 28px 0;
  background: #FAF7F2;
}
.gp-search .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 48px;
}
.gp-search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.gp-search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid #E8D9BE;
  border-radius: 6px;
  font-family: 'Raleway', sans-serif;
  font-size: .95rem;
  color: #2D1B2D;
  background: #fff;
  transition: all .3s ease;
}
.gp-search-input:focus {
  outline: none;
  border-color: #C4A265;
  box-shadow: 0 0 0 3px rgba(196,162,101,.1);
}
.gp-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  width: 20px;
  height: 20px;
  line-height: 1;
}
.gp-search-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}
.gp-search-wrapper {
  z-index: 1;
  overflow: hidden;
}

/* ══════ FILTER BAR (WooCommerce style dropdowns) ══════ */
.filter-bar {
  padding: 24px 0 20px;
  background: #fff;
  border-bottom: 1px solid #F0E6D0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .3s ease;
}
.filter-bar.has-shadow {
  box-shadow: 0 4px 20px rgba(60,42,60,.06);
}
.filter-bar .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-bar-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #3C2A3C;
  margin-right: 4px;
  white-space: nowrap;
}
/* Dropdown wrapper */
.filter-dropdown {
  position: relative;
}
.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #C4AFC4;
  border-radius: 100px;
  background: #FAF7F2;
  font-family: 'Raleway', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  color: #6A5A6A;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
  text-transform: none !important;
  letter-spacing: 0;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: #C4A265;
  color: #3C2A3C;
  background: rgba(196,162,101,.08);
}
.filter-btn svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2;
  transition: transform .25s ease;
}
.filter-dropdown.open .filter-btn svg {
  transform: rotate(180deg);
}
.filter-dropdown.open .filter-btn {
  border-color: #C4A265;
  color: #3C2A3C;
  background: rgba(196,162,101,.08);
}
/* Panel */
.filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid #F0E6D0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(60,42,60,.10);
  padding: 16px;
  display: none;
  z-index: 200;
}
.filter-dropdown.open .filter-panel {
  display: block;
}
.filter-panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: .9rem;
  font-weight: 600;
  color: #3C2A3C;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F0E6D0;
  text-transform: none !important;
}
/* Tags inside panel */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
}
.filter-tags::-webkit-scrollbar { width: 4px; }
.filter-tags::-webkit-scrollbar-thumb { background: #C4A265; border-radius: 4px; }
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 500;
  color: #6A5A6A;
  background: #FAF7F2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  text-transform: none !important;
}
.filter-tag:hover,
.filter-tag.active {
  background: rgba(196,162,101,.08);
  border-color: #C4A265;
  color: #3C2A3C;
}
/* Color dot */
.color-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.08);
}
/* Count & Reset */
.filter-count {
  margin-left: auto;
  font-size: .75rem;
  color: #8A7A8A;
  white-space: nowrap;
}
.filter-reset {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 500;
  color: #8A7A8A;
  background: transparent;
  border: 1px dashed #C4AFC4;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  text-transform: none !important;
}
.filter-reset:hover {
  color: #3C2A3C;
  border-color: #7A5A7A;
}

/* ══════ CARDS SECTION ══════ */
.gp-cards-section {
  padding: 60px 0;
  background: #FAF7F2;
}
.gp-cards-section .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 48px;
}
.gp-cards-header {
  text-align: center;
  margin-bottom: 40px;
}
.gp-cards-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: #3C2A3C;
}
.gp-cards-page {
  font-family: 'Raleway', sans-serif;
  font-size: .85rem;
  color: #8A7A8A;
  margin-top: 8px;
}

/* Card grid — reuses archive-content classes */
.gp-cards-section .cpt-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.gp-cards-section .cpt-archive-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(60,42,60,.04);
  transition: all .3s ease;
}
.gp-cards-section .cpt-archive-card:hover {
  box-shadow: 0 8px 30px rgba(60,42,60,.08);
  transform: translateY(-4px);
}
.gp-cards-section .cpt-archive-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #F5EDE0;
}
.gp-cards-section .cpt-archive-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gp-cards-section .cpt-archive-card:hover .cpt-archive-card-image img {
  transform: scale(1.05);
}
.gp-cards-section .cpt-archive-card-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gp-cards-section .cpt-archive-card-body {
  padding: 20px 16px;
}
.gp-cards-section .cpt-archive-card-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #3C2A3C;
  margin-bottom: 8px;
  line-height: 1.3;
  text-align: left;
  border: none;
  padding: 0;
}
.gp-cards-section .cpt-archive-card-body h2 a {
  color: inherit;
  text-decoration: none;
}
.gp-cards-section .cpt-archive-card-body h2 a:hover {
  color: #C4A265;
}
.gp-cards-section .cpt-archive-card-body p {
  font-family: 'Raleway', sans-serif;
  font-size: .82rem;
  color: #5A4A5A;
  line-height: 1.7;
  margin-bottom: 12px;
}
.gp-cards-section .cpt-archive-card-link {
  font-family: 'Raleway', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #C4A265;
  text-decoration: none;
  transition: color .3s ease;
}
.gp-cards-section .cpt-archive-card-link:hover {
  color: #3C2A3C;
}
.gp-cards-section .cpt-archive-card-link span {
  transition: transform .3s ease;
  display: inline-block;
}
.gp-cards-section .cpt-archive-card:hover .cpt-archive-card-link span {
  transform: translateX(4px);
}

/* ══════ PAGINATION ══════ */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0 60px;
  background: #FAF7F2;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  font-family: 'Raleway', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  color: #3C2A3C;
  background: #fff;
  border: 1px solid #E8D9BE;
  text-decoration: none;
  transition: all .3s ease;
}
.page-numbers:hover {
  border-color: #C4A265;
  color: #C4A265;
}
.page-numbers.current {
  background: #C4A265;
  border-color: #C4A265;
  color: #fff;
}
.page-numbers.dots {
  border: none;
  background: none;
}

/* ══════ TRUST ══════ */
.gp-trust {
  padding: 80px 0;
  background: #fff;
  border-top: 1px solid #F5EDE0;
}
.gp-trust .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 48px;
}
.gp-trust-header {
  text-align: center;
  margin-bottom: 40px;
}
.gp-trust-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: #3C2A3C;
}
.gp-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.gp-trust-card {
  text-align: center;
  padding: 32px;
  background: #F8F2E8;
  border-radius: 8px;
  transition: all .3s ease;
}
.gp-trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(60,42,60,.08);
}
.gp-trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #3C2A3C;
}
.gp-trust-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #3C2A3C;
  margin-bottom: 12px;
}
.gp-trust-card p {
  font-family: 'Raleway', sans-serif;
  font-size: .85rem;
  color: #5A4A5A;
  line-height: 1.7;
}

/* ══════ FAQ ══════ */
.gp-faq {
  padding: 80px 0;
  background: #FAF7F2;
  border-top: 1px solid #F5EDE0;
}
.gp-faq .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 48px;
}
.gp-faq .eyebrow {
  font-family: 'Raleway', sans-serif;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #C4A265;
}
.gp-faq h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: #3C2A3C;
  text-transform: none !important;
}
.gp-faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.gp-faq-item {
  border-bottom: 1px solid #F5EDE0;
}
.gp-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #3C2A3C;
  text-align: left;
  text-transform: none !important;
  transition: color .3s ease;
}
.gp-faq-question:hover { color: #C4A265; }
.gp-faq-toggle {
  font-size: 1.4rem;
  color: #C4A265;
  transition: transform .3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.gp-faq-item.open .gp-faq-toggle { transform: rotate(45deg); }
.gp-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}
.gp-faq-item.open .gp-faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}
.gp-faq-answer p {
  font-family: 'Raleway', sans-serif;
  font-size: .85rem;
  line-height: 1.8;
  color: #5A4A5A;
}

/* ══════ SEO BLOCK ══════ */
.gp-seo {
  padding: 80px 0;
  background: #fff;
  border-top: 1px solid #F5EDE0;
}
.gp-seo .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 48px;
}
.gp-seo-content {
  max-width: 860px;
  margin: 0 auto;
}
.gp-seo-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: #3C2A3C;
}
.gp-seo-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin: 28px 0 12px;
  color: #4A334A;
}
.gp-seo-content p {
  font-family: 'Raleway', sans-serif;
  color: #5A4A5A;
  line-height: 1.9;
  margin-bottom: 16px;
  font-size: .88rem;
}
.gp-seo-content strong { color: #2D1B2D; }

/* ══════ RESPONSIVE — 1024px ══════ */
@media (max-width: 1024px) {
  .gp-hero { padding: 64px 0; }
  .gp-stats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .gp-cards-section .cpt-archive-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .gp-trust-grid { gap: 24px; }
  .gp-alphabet .container,
  .gp-search .container,
  .filter-bar .container,
  .gp-cards-section .container,
  .gp-trust .container,
  .gp-faq .container,
  .gp-seo .container { padding: 0 40px; }
}

/* ══════ RESPONSIVE — 768px ══════ */
@media (max-width: 768px) {
  .gp-hero { padding: 56px 0; }
  .gp-hero h1 { font-size: 2rem; }
  .gp-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .gp-cards-section .cpt-archive-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .gp-trust-grid { grid-template-columns: 1fr; gap: 20px; }
  .gp-alphabet .container,
  .gp-search .container,
  .filter-bar .container,
  .gp-cards-section .container,
  .gp-trust .container,
  .gp-faq .container,
  .gp-seo .container { padding: 0 24px; }
  .gp-alphabet-pills { justify-content: flex-start; }
  /* Filter bar mobile */
  .filter-bar { position: static !important; overflow: visible !important; }
  .filter-bar .container { gap: 8px; overflow: visible !important; }
  .filter-bar-label { width: 100%; margin-bottom: 2px; }
  .filter-btn { padding: 6px 12px; font-size: .72rem; }
  .filter-dropdown { position: static !important; }
  .filter-dropdown.open .filter-panel {
    position: fixed !important;
    top: auto !important; left: 0 !important;
    right: 0 !important; bottom: 0 !important;
    min-width: unset !important; width: 100% !important;
    max-height: 60vh !important; overflow-y: auto !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -4px 24px rgba(60,42,60,.2) !important;
    z-index: 99999 !important;
    padding: 20px 24px !important;
  }
  .filter-count { display: none; }
}

/* ══════ RESPONSIVE — 480px ══════ */
@media (max-width: 480px) {
  .gp-hero { padding: 40px 0; }
  .gp-hero h1 { font-size: 1.7rem; }
  .gp-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; padding-top: 24px; margin-top: 32px; }
  .gp-stat-num { font-size: 1.8rem; }
  .gp-cards-section .cpt-archive-grid { grid-template-columns: 1fr; gap: 16px; }
  .gp-alphabet .container,
  .gp-search .container,
  .filter-bar .container,
  .gp-cards-section .container,
  .gp-trust .container,
  .gp-faq .container,
  .gp-seo .container { padding: 0 16px; }
}
