/*
Theme Name: PRIXASSUR Guide
Theme URI: https://prixassur.fr/nos-conseils
Author: PRIXASSUR Courtage
Author URI: https://prixassur.fr
Description: Thème officiel du centre de ressources et guides d'assurance PRIXASSUR, respectant l'identité visuelle Alan et la charte graphique PRIXASSUR.
Version: 1.0.0
License: Proprietary
Text Domain: prixassur-guide
*/

/* ==========================================================================
   1. Design Tokens & Variables (PRIXASSUR & Alan Design System)
   ========================================================================== */
:root {
  --ardoise: #3C4B62;
  --ardoise-deep: #2A3547;
  --navy: #3C4B62;
  --navy-hover: #2E3B4E;
  --navy-deep: #1F2A3A;
  --menthe: #7FC3A5;
  --menthe-soft: #E6F4ED;
  --menthe-deep: #2E7457;
  --mint: #7FC3A5;
  --mint-deep: #2E7A58;
  --mint-soft: #E4F3EC;
  --cream: #F6EBDD;
  --surface: #FFFFFF;
  --surface-alt: #F7F5F0;
  --line: #DDE4E9;
  --border: #DCE2E8;
  --ink: #3C4B62;
  --ink-muted: #5E6B7E;
  --shadow: 0 18px 50px rgba(60, 75, 98, 0.14);
  --card-shadow: 0 4px 16px rgba(60, 75, 98, 0.06);
  --card-shadow-hover: 0 14px 32px rgba(60, 75, 98, 0.12);
  --font-alan: "AlanSans", "Nunito", -apple-system, sans-serif;
  --font-sans: "Nunito", "AlanSans", "Poppins", system-ui, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   2. Guide Hub Hero Section
   ========================================================================== */
.px-guide-hero {
  background: var(--surface-alt);
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--line);
}

.px-guide-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.px-guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--menthe-soft);
  color: var(--menthe-deep);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.px-guide-hero h1 {
  font-family: var(--font-alan);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--ardoise);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.px-guide-hero p.lead {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 820px;
  margin: 0 0 28px;
}

/* Category Filter Tabs */
.px-guide-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.px-guide-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.2s ease;
}

.px-guide-cat-pill:hover,
.px-guide-cat-pill.active {
  background: var(--ardoise);
  color: #FFFFFF;
  border-color: var(--ardoise);
  box-shadow: 0 4px 12px rgba(60, 75, 98, 0.18);
}

/* ==========================================================================
   3. Articles Grid & Cards
   ========================================================================== */
.px-guide-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.px-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

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

.px-guide-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.px-guide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.px-guide-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt);
}

.px-guide-card-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.px-guide-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.px-guide-card:hover .px-guide-card-media img {
  transform: scale(1.04);
}

.px-guide-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.px-guide-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.px-guide-cat-tag {
  background: var(--menthe-soft);
  color: var(--menthe-deep);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.px-guide-card-title {
  font-family: var(--font-alan);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ardoise);
  margin: 0 0 12px;
}

.px-guide-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.px-guide-card-title a:hover {
  color: var(--mint-deep);
}

.px-guide-card-excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 20px;
  flex-grow: 1;
}

.px-guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 700;
}

.px-guide-read-link {
  color: var(--mint-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  transition: gap 0.2s ease;
}

.px-guide-read-link:hover {
  gap: 9px;
}

/* ==========================================================================
   4. Single Article Layout
   ========================================================================== */
.px-article-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.px-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.px-breadcrumbs a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.px-breadcrumbs a:hover {
  color: var(--ardoise);
  text-decoration: underline;
}

.px-article-header {
  margin-bottom: 32px;
}

.px-article-title {
  font-family: var(--font-alan);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 900;
  color: var(--ardoise);
  line-height: 1.25;
  margin: 16px 0;
  letter-spacing: -0.01em;
}

.px-author-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 24px;
}

.px-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--menthe);
  object-fit: cover;
  flex-shrink: 0;
}

.px-article-featured-image {
  margin: 32px 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.px-article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* AEO Key Takeaways Box */
.px-takeaways-box {
  background: var(--menthe-soft);
  border: 2px solid var(--menthe);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 32px 0;
}

.px-takeaways-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--menthe-deep);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.px-takeaways-list {
  margin: 0;
  padding-left: 20px;
  color: var(--ardoise);
  font-size: 15.5px;
  line-height: 1.7;
}

.px-takeaways-list li {
  margin-bottom: 8px;
}

/* Article Content Body */
.px-article-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ardoise);
}

.px-article-content h2 {
  font-family: var(--font-alan);
  font-size: 26px;
  font-weight: 800;
  color: var(--ardoise);
  margin: 44px 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}

.px-article-content h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ardoise-deep);
  margin: 30px 0 14px;
}

.px-article-content p {
  margin: 0 0 20px;
}

.px-article-content a {
  color: #0b66c3;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.px-article-content a:hover {
  color: var(--menthe-deep, #1a8258);
  text-decoration-color: var(--menthe-deep, #1a8258);
}

.px-article-content ul,
.px-article-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.px-article-content li {
  margin-bottom: 10px;
}

.px-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
}

.px-article-content th,
.px-article-content td {
  padding: 14px 18px;
  border: 1px solid var(--border);
  text-align: left;
}

.px-article-content th {
  background: var(--surface-alt);
  font-weight: 800;
  color: var(--ardoise);
}

.px-article-content tr:nth-child(even) td {
  background: #FAFCFB;
}

/* Inline Article CTA */
.px-article-cta {
  background: linear-gradient(135deg, var(--ardoise) 0%, var(--ardoise-deep) 100%);
  border-radius: 20px;
  padding: 36px 32px;
  color: #FFFFFF;
  margin: 48px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.px-article-cta h3 {
  font-family: var(--font-alan);
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 8px;
  color: #FFFFFF;
}

.px-article-cta p {
  margin: 0;
  font-size: 15px;
  color: #DCE2E8;
}

.px-article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--menthe);
  color: var(--ardoise-deep);
  font-weight: 800;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.px-article-cta-btn:hover {
  background: #93D2B6;
  transform: translateY(-2px);
}

/* Pagination */
.navigation.pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
  background: var(--ardoise);
  color: #FFFFFF;
  border-color: var(--ardoise);
}

/* ==========================================================================
   5. Rich Editorial Components (FAQ, Formulas, Profiles, Callouts)
   ========================================================================== */
.px-callout-box {
  background: var(--surface-alt, #F7F5F0);
  border-left: 4px solid var(--menthe, #7FC3A5);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  margin: 26px 0;
  font-size: 15.5px;
  line-height: 1.65;
}
.px-callout-tip {
  background: #EBF8F2;
  border-left-color: var(--menthe-deep, #2E7457);
}
.px-callout-warning {
  background: #FFF9F0;
  border-left-color: #D97706;
}
.px-callout-danger {
  background: #FEF2F2;
  border-left-color: #DC2626;
}

.px-formula-box {
  background: #1F2A3A;
  color: #FFFFFF;
  border-radius: 16px;
  padding: 22px 26px;
  margin: 28px 0;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 700;
  border-left: 5px solid var(--menthe, #7FC3A5);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
}
.px-formula-box code {
  color: var(--menthe, #7FC3A5);
  font-size: 17px;
  font-weight: 800;
}

.px-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.px-profile-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border, #DCE2E8);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(60, 75, 98, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.px-profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(60, 75, 98, 0.1);
  border-color: var(--menthe, #7FC3A5);
}
.px-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.px-profile-name {
  font-weight: 900;
  font-size: 17px;
  color: var(--ardoise, #3C4B62);
}
.px-profile-badge {
  background: var(--menthe-soft, #E6F4ED);
  color: var(--menthe-deep, #2E7457);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.px-profile-price {
  font-size: 21px;
  font-weight: 900;
  color: var(--menthe-deep, #2E7457);
  margin: 8px 0;
}
.px-profile-details {
  font-size: 14px;
  color: var(--ink-muted, #5E6B7E);
  line-height: 1.5;
}

/* FAQ Accordions */
.px-faq-item {
  background: var(--surface-alt, #F7F5F0);
  border: 1px solid var(--border, #DCE2E8);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.px-faq-item[open] {
  border-color: var(--menthe, #7FC3A5);
  background: #FFFFFF;
  box-shadow: 0 4px 18px rgba(60, 75, 98, 0.08);
}
.px-faq-question {
  padding: 18px 22px;
  font-weight: 800;
  font-size: 16.5px;
  color: var(--ardoise, #3C4B62);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}
.px-faq-question::-webkit-details-marker {
  display: none;
}
.px-faq-question::after {
  content: "+";
  font-size: 22px;
  font-weight: 700;
  color: var(--menthe-deep, #2E7457);
  transition: transform 0.2s ease;
}
.px-faq-item[open] .px-faq-question::after {
  content: "−";
}
.px-faq-answer {
  padding: 0 22px 20px;
  font-size: 15.5px;
  color: var(--ardoise, #3C4B62);
  line-height: 1.7;
}

/* Mobile Header Phone Call Button */
.prixassur-phone-btn {
  white-space: nowrap !important;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .prixassur-header-container {
    padding: 0 14px !important;
    gap: 8px !important;
  }
  .prixassur-header-actions {
    gap: 8px !important;
  }
  .prixassur-phone-btn {
    display: inline-flex !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1.5px solid var(--line, #E6EAF0) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  }
  .prixassur-phone-btn:hover,
  .prixassur-phone-btn:active {
    background: var(--menthe-soft, #e6f6ee) !important;
    border-color: var(--menthe-deep, #1a8258) !important;
    color: var(--menthe-deep, #1a8258) !important;
    transform: scale(0.96);
  }
  .prixassur-phone-btn span,
  .prixassur-phone-btn .prixassur-phone-text {
    display: none !important;
  }
  .prixassur-phone-btn svg,
  .prixassur-phone-btn .prixassur-phone-icon {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    color: var(--ardoise, #3C4B62) !important;
  }
  .prixassur-phone-btn:hover svg,
  .prixassur-phone-btn:active svg {
    color: var(--menthe-deep, #1a8258) !important;
  }
  .prixassur-cta-btn {
    padding: 8px 14px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }
}
@media (max-width: 380px) {
  .prixassur-header-container {
    padding: 0 10px !important;
    gap: 6px !important;
  }
  .prixassur-header-actions {
    gap: 6px !important;
  }
  .prixassur-cta-btn {
    padding: 7px 11px !important;
    font-size: 12px !important;
  }
}

