/* ==========================================================================
   Le Coin du Cafe — Bridge Pages Affiliation Pinterest
   Design System v3 — Inspire HomeGrounds, SleepFoundation, SafeWise, Tom's Guide
   Mobile-first | Production-ready
   ========================================================================== */

/* ==========================================================================
   0. VARIABLES CSS
   ========================================================================== */
:root {
  /* Fond — tons chauds cafe (contraste renforce) */
  --bg-page: #F0E8DC;
  --bg-section: #E8DDD0;
  --bg-card: #FFFCF7;
  --bg-header-table: #3E2723;
  --bg-badge: #2ECC71;
  --bg-trust: #EDE8E0;

  /* CTA */
  --cta-primary: #E67E22;
  --cta-primary-hover: #D35400;
  --cta-secondary: #1B8A6B;
  --cta-secondary-hover: #158F6B;

  /* Texte */
  --text-primary: #333333;
  --text-heading: #3E2723;
  --text-white: #FFFFFF;
  --text-link: #0066CC;
  --text-muted: #666666;

  /* Accents */
  --accent-stars: #F9A825;
  --accent-check: #28A745;
  --accent-cross: #DC3545;
  --accent-promo: #DC3545;
  --accent-badge-blue: #2B4C7E;

  /* Bordures — tons chauds */
  --border-light: #E0D5C8;
  --border-card: #D4C4B0;

  /* Utilitaires */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 900px;
  --sidebar-width: 280px;
  --transition: 0.2s ease;
  --shadow-card: 0 3px 12px rgba(0, 0, 0, 0.10);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   1. RESET CSS MINIMAL
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--cta-primary);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ==========================================================================
   2. TYPOGRAPHIE — Nunito (preconnect dans le HTML)
   ========================================================================== */

/* Dans le <head> du HTML :
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap" rel="stylesheet">
*/

body {
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', sans-serif;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 28px;
  font-weight: 800;
}

h2 {
  font-size: 22px;
  font-weight: 700;
}

h3 {
  font-size: 18px;
  font-weight: 700;
}

h4 {
  font-size: 16px;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

/* ==========================================================================
   3. LAYOUT — Container + 2 colonnes (contenu + sidebar TOC)
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.layout-main {
  min-width: 0;
}

/* Section alternee creme */
.section-alt {
  background-color: var(--bg-section);
  padding: 2rem 0;
}

.section {
  padding: 1.5rem 0;
}

.content-section {
  margin-bottom: 2rem;
}

/* ==========================================================================
   4. HEADER / NAV
   ========================================================================== */
.site-header {
  background: var(--bg-header-table);
  color: var(--text-white);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-logo .icon {
  font-size: 1.4rem;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-white);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.85;
  transition: opacity var(--transition), color var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  opacity: 1;
  color: var(--accent-stars);
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, #3E2723 0%, #5D4037 100%);
  color: var(--text-white);
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.hero h1 {
  color: var(--text-white);
  font-size: 28px;
  margin-bottom: 0.75rem;
}

.hero .subtitle {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   6. BREADCRUMBS (inspire Tom's Guide)
   ========================================================================== */
.breadcrumbs {
  padding: 0.75rem 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumbs a:hover {
  color: var(--text-link);
}

.breadcrumbs span,
.breadcrumbs .separator {
  margin: 0 0.35rem;
  color: var(--border-light);
}

/* ==========================================================================
   7. AFFILIATE NOTICE (bandeau mention affilie — inspire SleepFoundation)
   ========================================================================== */
.affiliate-notice {
  background: var(--bg-trust);
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  border-bottom: 1px solid var(--border-light);
}

.affiliate-notice a {
  color: var(--text-link);
  font-weight: 600;
  margin-left: 4px;
}

/* Ancien nom (retrocompat) */
.affiliate-disclosure {
  background: var(--bg-trust);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-badge-blue);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   8. TRUST BAR (auteur + badges confiance — inspire HomeGrounds + SleepFoundation)
   ========================================================================== */
.trust-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.trust-bar .author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
}

.trust-bar .author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.trust-bar .author strong {
  color: var(--text-heading);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-trust);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-badge-blue);
}

/* ==========================================================================
   9. QUICK LIST / TOP PICKS (inspire Tom's Guide + SleepFoundation)
   ========================================================================== */
.quick-list {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-top: 3px solid var(--text-heading);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}

.quick-list-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 20px;
  border-bottom: none;
}

.quick-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.quick-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.quick-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 8px auto;
  display: block;
  background: #FFFFFF;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border-card);
}

.quick-card strong {
  font-size: 15px;
  color: var(--text-heading);
}

.quick-card .price {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   10. COMPARISON TABLE (modele HomeGrounds — LE principal)
   ========================================================================== */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
  min-width: 560px;
}

.comparison-table thead {
  background: var(--bg-header-table);
  color: var(--text-white);
}

.comparison-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.comparison-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.comparison-table tbody tr {
  transition: background var(--transition);
  background: var(--bg-card);
}

.comparison-table tbody tr:nth-child(even) {
  background: #F5EDE3;
}

.comparison-table tbody tr:hover {
  background: #EDE4D6;
}

.comparison-table .product-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-heading);
}

.comparison-table .cta-cell {
  text-align: center;
  white-space: nowrap;
}

.comparison-table .cta-cell img {
  width: 80px;
  margin: 0 auto 8px;
}

.comparison-table td img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: #FFFFFF;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border-card);
}

/* Check list dans le tableau */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding: 3px 0;
  font-size: 14px;
}

.check-list li.check {
  color: var(--accent-check);
  font-weight: 600;
}

.check-list li.cross {
  color: var(--accent-cross);
  font-weight: 600;
}

/* Classes generiques check/cross */
.check {
  color: var(--accent-check);
}

.check::before {
  content: "\2713\0020";
  font-weight: 700;
}

.cross {
  color: var(--accent-cross);
}

.cross::before {
  content: "\2717\0020";
  font-weight: 700;
}

/* ==========================================================================
   11. PRODUCT REVIEW / PRODUCT CARD (fiches detaillees — inspire SleepFoundation)
   ========================================================================== */
.product-review {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition);
}

.product-review:hover {
  box-shadow: var(--shadow-card-hover);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

/* ==========================================================================
   12. PRODUCT HEADER BAR (bandeau categorie + score — inspire SleepFoundation)
   ========================================================================== */
.product-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-header-table);
  color: var(--text-white);
}

.product-header-bar .badge-category {
  margin: 0;
}

.product-header-bar .score {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
}

.product-header-bar .score small {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.7;
}

/* Contenu produit (image + info) */
.product-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}

.product-image {
  flex-shrink: 0;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-image img {
  width: 100%;
  max-width: 220px;
  max-height: 220px;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
}

.product-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.product-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 12px;
}

.promo-text {
  color: var(--accent-promo);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cta-primary);
}

.product-price .currency {
  font-size: 1rem;
  font-weight: 600;
}

/* Placeholder image (quand pas de vraie image) */
.product-image-placeholder {
  background: var(--bg-section);
  border-radius: var(--radius);
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-light);
  font-size: 3rem;
}

.product-card-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cta-primary);
  color: var(--text-white);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ==========================================================================
   13. SPECS GRID (grille specs 4 colonnes — inspire SleepFoundation)
   ========================================================================== */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 24px 24px;
  margin: 0;
}

.spec {
  background: var(--bg-section);
  padding: 12px 16px;
  border-radius: var(--radius);
  text-align: center;
}

.spec .spec-label,
.spec-item .label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.spec strong {
  font-size: 15px;
  color: var(--text-heading);
}

/* Ancien nom (retrocompat) */
.spec-item {
  background: var(--bg-section);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
}

/* ==========================================================================
   14. PROS / CONS (avantages / inconvenients)
   ========================================================================== */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 24px 24px;
  margin: 0;
}

.pros, .cons {
  padding: 16px;
  border-radius: var(--radius);
}

.pros {
  background: #f0faf0;
  border-left: 4px solid var(--accent-check);
}

.cons {
  background: #fdf0f0;
  border-left: 4px solid var(--accent-cross);
}

.pros h4 {
  color: var(--accent-check);
  font-size: 15px;
  margin-bottom: 10px;
}

.cons h4 {
  color: var(--accent-cross);
  font-size: 15px;
  margin-bottom: 10px;
}

.pros-label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-check);
  margin-bottom: 6px;
}

.cons-label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-cross);
  margin-bottom: 6px;
}

.pros ul,
.cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros li,
.cons li {
  position: relative;
  padding: 4px 0 4px 22px;
  font-size: 14px;
  color: var(--text-primary);
}

.pros li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent-check);
}

.cons li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent-cross);
}

/* ==========================================================================
   15. BOUTONS CTA (orange, vert, outline)
   ========================================================================== */
.btn-cta-orange {
  display: inline-block;
  background: var(--cta-primary);
  color: var(--text-white);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
  min-width: 180px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-cta-orange:hover {
  background: var(--cta-primary-hover);
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.35);
}

.btn-cta-green {
  display: inline-block;
  background: var(--cta-secondary);
  color: var(--text-white);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
  min-width: 180px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-cta-green:hover {
  background: var(--cta-secondary-hover);
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 138, 107, 0.35);
}

.btn-cta-outline {
  display: inline-block;
  background: transparent;
  color: var(--text-link);
  border: 2px solid var(--text-link);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-cta-outline:hover {
  background: var(--text-link);
  color: var(--text-white);
  transform: translateY(-1px);
}

/* Ancien CTA (retrocompat) */
.cta-button {
  display: inline-block;
  background: var(--cta-primary);
  color: var(--text-white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition), transform var(--transition);
}

.cta-button:hover {
  background: var(--cta-primary-hover);
  color: var(--text-white);
  transform: translateY(-1px);
}

.cta-button-secondary {
  background: #5D4037;
}

.cta-button-secondary:hover {
  background: var(--text-heading);
  color: var(--text-white);
}

.cta-section {
  text-align: center;
  margin: 1rem 0;
}

/* ==========================================================================
   16. BADGES CATEGORIE (vert, bleu, orange)
   ========================================================================== */
.badge-category {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-white);
  background: var(--bg-badge);
}

.badge-category.green {
  background: #2ECC71;
}

.badge-category.blue {
  background: var(--accent-badge-blue);
}

.badge-category.orange {
  background: var(--cta-primary);
}

.badge-best {
  display: inline-block;
  background: var(--accent-stars);
  color: var(--text-heading);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   17. DEALS SECTION (promos — inspire SleepFoundation)
   ========================================================================== */
.deals-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--accent-promo);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.deals-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
  border-bottom: none;
}

.deal-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-card);
  font-size: 15px;
}

.deal-item:last-child {
  border-bottom: none;
}

.deal-item a {
  font-weight: 700;
  color: var(--text-heading);
}

.deal-item a:hover {
  color: var(--cta-primary);
}

.deal-item s {
  color: var(--text-muted);
  font-size: 14px;
}

.badge-promo {
  display: inline-block;
  background: var(--accent-promo);
  color: var(--text-white);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* ==========================================================================
   18. TOC SIDEBAR (table of contents sticky — inspire Tom's Guide + HomeGrounds)
   ========================================================================== */
.toc-sidebar {
  display: none; /* masque sur mobile, affiche en desktop */
}

.toc {
  position: sticky;
  top: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-left: 3px solid var(--cta-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.toc h3 {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-heading);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.toc ol {
  list-style: decimal;
  padding-left: 1.2rem;
  margin: 0;
}

.toc ol li {
}

.toc ol li a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}

.toc ol li a:hover,
.toc ol li a.active {
  color: var(--cta-secondary);
  border-left-color: var(--cta-secondary);
}

/* ==========================================================================
   19. FAQ SECTION (accordeon details/summary — inspire SafeWise)
   ========================================================================== */
.faq-section {
  margin: 2rem 0;
}

.faq-section h2 {
  margin-bottom: 20px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-card);
}

/* details/summary natif */
.faq-item summary {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

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

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: var(--bg-section);
}

.faq-item p,
.faq-item .faq-answer {
  padding: 0 20px 16px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Ancien systeme JS (retrocompat) */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

/* Ancien systeme JS desactive — on utilise details/summary natif */
.faq-answer {
  padding: 0 20px 16px;
  font-size: 15px;
  color: var(--text-muted);
}

details.faq-item .faq-answer {
  display: block;
}

/* ==========================================================================
   20. PIN IMAGE WRAPPER (image + bouton Pinterest)
   ========================================================================== */
.pin-image-wrapper {
  position: relative;
  display: inline-block;
  margin: 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.pin-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.pin-button {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #E60023;
  border-radius: 50%;
  color: var(--text-white);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pin-button svg {
  width: 20px;
  height: 20px;
  fill: var(--text-white);
}

.pin-image-wrapper:hover .pin-button {
  opacity: 1;
  transform: scale(1.05);
}

/* ==========================================================================
   21. STARS (etoiles dorees)
   ========================================================================== */
.stars {
  color: var(--accent-stars);
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}

.rating-value {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   22. VERDICT SECTION
   ========================================================================== */
.verdict-section {
  background: linear-gradient(135deg, #5D4037, #3E2723);
  color: var(--text-white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  text-align: center;
}

.verdict-section h2 {
  color: var(--text-white);
  border-bottom: none;
  margin-bottom: 1rem;
}

.verdict-section p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.25rem;
}

.verdict-section .cta-button,
.verdict-section .btn-cta-orange {
  background: var(--accent-stars);
  color: var(--text-heading);
  width: auto;
  padding: 14px 36px;
}

.verdict-section .cta-button:hover,
.verdict-section .btn-cta-orange:hover {
  background: #FBC02D;
  color: var(--text-heading);
}

/* ==========================================================================
   23. ARTICLES GRID (homepage cards)
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 1.5rem 0;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.article-card-image {
  background: var(--bg-section);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-light);
  font-size: 2.5rem;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-body {
  padding: 16px 20px;
}

.article-card-body .tag {
  display: inline-block;
  background: var(--bg-section);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.article-card-body h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.article-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.article-card-body .read-more {
  font-weight: 700;
  font-size: 14px;
  color: var(--cta-primary);
}

/* ==========================================================================
   24. INTRO TEXT
   ========================================================================== */
.intro-text {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* ==========================================================================
   25. FEATURES ACCORDION (dans product-review)
   ========================================================================== */
.features-accordion {
  border-top: 1px solid var(--border-card);
  margin: 0 24px 24px;
}

.features-accordion summary {
  padding: 14px 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-link);
  cursor: pointer;
  list-style: none;
}

.features-accordion summary::-webkit-details-marker {
  display: none;
}

.features-accordion summary::after {
  content: " \25BC";
  font-size: 12px;
}

.features-accordion[open] summary::after {
  content: " \25B2";
}

.features-content {
  padding-bottom: 16px;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.7;
}

/* ==========================================================================
   26. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-header-table);
  color: #A1887F;
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
  font-size: 14px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: #A1887F;
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-copy {
  opacity: 0.6;
  font-size: 13px;
}

.footer-affiliate {
  font-size: 12px;
  opacity: 0.5;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ==========================================================================
   27. ANIMATIONS SUBTILES (hover sur cards et CTA)
   ========================================================================== */

/* Focus accessible */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn-cta-orange:focus-visible,
.btn-cta-green:focus-visible,
.btn-cta-outline:focus-visible {
  outline: 3px solid var(--cta-primary);
  outline-offset: 2px;
}

/* Smooth apparition au scroll (si JS ajoute .animate-in) */
.animate-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse CTA attention */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(230, 126, 34, 0); }
}

.btn-cta-orange.pulse {
  animation: pulse-glow 2s infinite;
}

/* ==========================================================================
   27b. RESPONSIVE — Mobile fixes (max-width: 599px)
   ========================================================================== */
@media (max-width: 599px) {
  /* Nav empilee si trop petite */
  .site-header .container {
    flex-direction: column;
    text-align: center;
  }

  .site-nav {
    gap: 0.6rem;
    justify-content: center;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  /* Titres plus petits */
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }

  /* Tableau comparatif scrollable horizontalement */
  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table table {
    min-width: 600px;
  }

  /* Quick list en 1 colonne */
  .quick-list-grid {
    grid-template-columns: 1fr;
  }

  /* Specs en 2 colonnes */
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Pros/cons empiles */
  .pros-cons {
    grid-template-columns: 1fr;
  }

  /* CTA pleine largeur sur mobile */
  .btn-cta-orange,
  .btn-cta-green,
  .btn-cta-outline,
  .cta-button {
    display: block;
    width: 100%;
    text-align: center;
  }

  /* Product content empile */
  .product-content {
    flex-direction: column;
  }

  .product-image {
    max-width: 100%;
    margin: 0 auto;
  }

  /* Breadcrumbs petits */
  .breadcrumbs {
    font-size: 0.7rem;
  }

  /* Trust bar empilee */
  .trust-bar {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Product reco grid en 1 colonne */
  .product-reco-grid {
    grid-template-columns: 1fr;
  }

  /* Featured grid 2 colonnes */
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* FAQ summary plus grand pour le touch */
  .faq-item summary,
  details summary {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   28. RESPONSIVE — Tablet (min-width: 600px)
   ========================================================================== */
@media (min-width: 600px) {
  /* Typographie */
  body {
    font-size: 18px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 22px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  /* Layout */
  .container {
    padding: 0 24px;
  }

  /* Quick list 2 colonnes */
  .quick-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Product content horizontal */
  .product-content {
    flex-direction: row;
    gap: 24px;
  }

  .product-image {
    width: 280px;
    flex-shrink: 0;
  }

  .product-card-header {
    flex-direction: row;
    align-items: flex-start;
  }

  .product-image-placeholder {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
  }

  /* Pros/cons 2 colonnes */
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }

  /* Specs 3 colonnes */
  .specs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Articles 2 colonnes */
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTA pas full-width */
  .cta-button {
    width: auto;
  }
}

/* ==========================================================================
   29. RESPONSIVE — Desktop (min-width: 900px)
   ========================================================================== */
@media (min-width: 900px) {
  /* Typographie */
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  /* Layout 2 colonnes (contenu + sidebar TOC) */
  .layout {
    grid-template-columns: 1fr var(--sidebar-width);
  }

  /* Afficher sidebar TOC */
  .toc-sidebar {
    display: block;
  }

  /* Quick list 3 colonnes */
  .quick-list-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Specs 4 colonnes */
  .specs-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Articles 3 colonnes */
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer horizontal */
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* ==========================================================================
   30. PRINT
   ========================================================================== */
@media print {
  .site-header,
  .site-footer,
  .toc-sidebar,
  .affiliate-notice,
  .btn-cta-orange,
  .btn-cta-green,
  .btn-cta-outline,
  .pin-button,
  .deals-section {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #FFFDF9;
  }

  .product-review,
  .product-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}
