/*
Theme Name: Toutparé (Astra Child)
Theme URI: https://toutpare.com
Description: Child theme Astra pour Toutparé — comparatifs & avis produits (Maison & Cuisine, Tech & Électronique, Sport & Fitness). Design bleu premium, épuré.
Author: Toutparé
Template: astra
Version: 1.0.0
Text Domain: toutpare-child
*/

/* ===========================================================
   1. DESIGN TOKENS
   =========================================================== */
:root{
  --tp-primary:#2271b1;
  --tp-primary-dark:#1a5a8a;
  --tp-accent:#e8f1fb;
  --tp-text:#1a1a2e;
  --tp-bg:#f8faff;
  --tp-white:#ffffff;
  --tp-amazon:#FF9900;
  --tp-green:#2e8b57;
  --tp-red:#c0392b;
  --tp-border:#e2e8f5;
  --tp-radius:14px;
  --tp-radius-sm:8px;
  --tp-shadow:0 4px 20px rgba(26,26,46,0.06);
  --tp-shadow-hover:0 12px 30px rgba(34,113,177,0.15);
  --tp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --tp-container: 1180px;
}

/* ===========================================================
   2. BASE / RESET
   =========================================================== */
body{
  font-family:var(--tp-font);
  color:var(--tp-text);
  background:var(--tp-bg);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block;}
a{color:var(--tp-primary);text-decoration:none;transition:color .2s ease;}
a:hover{color:var(--tp-primary-dark);}
.tp-container{max-width:var(--tp-container);margin:0 auto;padding:0 24px;}
*{box-sizing:border-box;}

/* ===========================================================
   3. HEADER
   =========================================================== */
.tp-header{
  position:sticky;top:0;z-index:999;
  background:var(--tp-white);
  box-shadow:0 2px 12px rgba(26,26,46,0.06);
}
.tp-header-inner{
  max-width:var(--tp-container);margin:0 auto;padding:16px 24px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.tp-logo{
  font-family:var(--tp-font);font-weight:800;font-size:1.5rem;
  color:var(--tp-primary);letter-spacing:-0.02em;
}
.tp-logo:hover{color:var(--tp-primary-dark);}
.tp-nav ul{
  display:flex;align-items:center;gap:32px;list-style:none;margin:0;padding:0;
}
.tp-nav a{
  font-weight:600;font-size:0.95rem;color:var(--tp-text);
}
.tp-nav a:hover{color:var(--tp-primary);}
.tp-nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:8px;}
.tp-nav-toggle span{display:block;width:26px;height:3px;background:var(--tp-primary);margin:5px 0;border-radius:2px;}

@media (max-width:781px){
  .tp-nav-toggle{display:block;}
  .tp-nav{
    position:absolute;top:100%;left:0;right:0;background:var(--tp-white);
    box-shadow:0 8px 20px rgba(26,26,46,0.08);
    max-height:0;overflow:hidden;transition:max-height .3s ease;
  }
  .tp-nav.is-open{max-height:400px;}
  .tp-nav ul{flex-direction:column;align-items:flex-start;gap:0;padding:8px 24px 16px;}
  .tp-nav ul li{width:100%;border-top:1px solid var(--tp-border);}
  .tp-nav ul li a{display:block;padding:14px 0;}
}

/* ===========================================================
   4. HERO
   =========================================================== */
.tp-hero{
  background:linear-gradient(135deg,var(--tp-primary) 0%,var(--tp-primary-dark) 100%);
  color:var(--tp-white);padding:88px 24px 96px;text-align:center;
}
.tp-hero h1{
  font-size:clamp(2rem,4.5vw,3.2rem);font-weight:800;line-height:1.15;
  max-width:820px;margin:0 auto 20px;letter-spacing:-0.02em;
}
.tp-hero p.tp-subtitle{
  font-size:1.15rem;color:rgba(255,255,255,0.9);max-width:620px;margin:0 auto 32px;line-height:1.6;
}
.tp-hero-badges{
  display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-bottom:36px;
}
.tp-hero-badges span{
  background:rgba(255,255,255,0.15);border:1px solid rgba(255,255,255,0.3);
  padding:8px 18px;border-radius:100px;font-size:0.9rem;font-weight:600;
  backdrop-filter:blur(4px);
}
.tp-btn-cta{
  display:inline-block;background:var(--tp-white);color:var(--tp-primary);
  font-weight:700;padding:16px 36px;border-radius:100px;font-size:1.05rem;
  box-shadow:0 8px 24px rgba(0,0,0,0.15);transition:transform .2s ease, box-shadow .2s ease;
}
.tp-btn-cta:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(0,0,0,0.2);color:var(--tp-primary-dark);}

/* ===========================================================
   5. TRUST BAR
   =========================================================== */
.tp-trust{
  background:var(--tp-primary-dark);color:var(--tp-white);padding:36px 24px;
}
.tp-trust-grid{
  max-width:var(--tp-container);margin:0 auto;display:grid;
  grid-template-columns:repeat(4,1fr);gap:24px;text-align:center;
}
.tp-trust-grid strong{display:block;font-size:1.8rem;font-weight:800;margin-bottom:4px;}
.tp-trust-grid span{font-size:0.9rem;color:rgba(255,255,255,0.8);}
@media (max-width:781px){
  .tp-trust-grid{grid-template-columns:repeat(2,1fr);}
}

/* ===========================================================
   6. SECTION TITLES
   =========================================================== */
.tp-section{padding:80px 24px;}
.tp-section-head{text-align:center;max-width:640px;margin:0 auto 48px;}
.tp-section-head h2{font-size:2.1rem;font-weight:800;margin:0 0 12px;letter-spacing:-0.02em;}
.tp-section-head p{color:#57607a;font-size:1.05rem;}

/* ===========================================================
   7. CATEGORIES
   =========================================================== */
.tp-cat-grid{
  max-width:var(--tp-container);margin:0 auto;display:grid;
  grid-template-columns:repeat(3,1fr);gap:28px;
}
.tp-cat-card{
  background:var(--tp-white);border:1px solid var(--tp-border);border-radius:var(--tp-radius);
  padding:36px 28px;text-align:center;transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tp-cat-card:hover{transform:translateY(-6px);box-shadow:var(--tp-shadow-hover);border-color:var(--tp-primary);}
.tp-cat-icon{
  width:64px;height:64px;display:flex;align-items:center;justify-content:center;
  font-size:2rem;background:var(--tp-accent);border-radius:50%;margin:0 auto 20px;
}
.tp-cat-card h3{font-size:1.25rem;font-weight:700;margin:0 0 10px;}
.tp-cat-card p{color:#57607a;font-size:0.95rem;line-height:1.6;margin:0 0 18px;}
.tp-cat-card a.tp-cat-link{font-weight:700;color:var(--tp-primary);}
@media (max-width:781px){.tp-cat-grid{grid-template-columns:1fr;}}

/* ===========================================================
   8. ARTICLE CARDS / GRID
   =========================================================== */
.tp-posts-grid{
  max-width:var(--tp-container);margin:0 auto;display:grid;
  grid-template-columns:repeat(3,1fr);gap:28px;
}
.tp-card{
  background:var(--tp-white);border:1px solid var(--tp-border);border-radius:var(--tp-radius);
  overflow:hidden;display:flex;flex-direction:column;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tp-card:hover{transform:translateY(-6px);box-shadow:var(--tp-shadow-hover);border-color:var(--tp-primary);}
.tp-card-img{width:100%;height:220px;overflow:hidden;background:var(--tp-accent);}
.tp-card-img img{width:100%;height:100%;object-fit:cover;}
.tp-card-body{padding:22px;display:flex;flex-direction:column;flex:1;}
.tp-badge{
  display:inline-block;align-self:flex-start;background:var(--tp-accent);color:var(--tp-primary);
  font-size:0.75rem;font-weight:700;padding:5px 12px;border-radius:100px;margin-bottom:12px;
  text-transform:uppercase;letter-spacing:0.03em;
}
.tp-card-date{font-size:0.8rem;color:#8892ab;margin-bottom:6px;}
.tp-card h3{font-size:1.15rem;font-weight:700;line-height:1.35;margin:0 0 10px;}
.tp-card h3 a{color:var(--tp-text);}
.tp-card h3 a:hover{color:var(--tp-primary);}
.tp-card-excerpt{
  color:#57607a;font-size:0.92rem;line-height:1.6;margin:0 0 16px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.tp-card-link{font-weight:700;color:var(--tp-primary);margin-top:auto;font-size:0.92rem;}
@media (max-width:1024px){.tp-posts-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:781px){.tp-posts-grid{grid-template-columns:1fr;}}

/* ===========================================================
   9. AFFILIATE DISCLOSURE BANNER
   =========================================================== */
.tp-affiliate-banner{
  background:var(--tp-accent);padding:56px 24px;
}
.tp-affiliate-inner{
  max-width:800px;margin:0 auto;text-align:center;
}
.tp-affiliate-inner h3{font-size:1.4rem;font-weight:800;margin:0 0 14px;color:var(--tp-primary-dark);}
.tp-affiliate-inner p{color:#3a4560;line-height:1.7;font-size:0.98rem;margin:0;}

/* ===========================================================
   10. FOOTER
   =========================================================== */
.tp-footer{background:#12182b;color:#b8c0d9;padding:56px 24px 28px;}
.tp-footer-inner{max-width:var(--tp-container);margin:0 auto;}
.tp-footer-top{
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:32px;padding-bottom:32px;
  border-bottom:1px solid rgba(255,255,255,0.08);margin-bottom:24px;
}
.tp-footer-brand{max-width:360px;}
.tp-footer-brand .tp-logo{color:var(--tp-white);}
.tp-footer-brand p{font-size:0.9rem;line-height:1.7;margin-top:12px;color:#8b93ad;}
.tp-footer-links{display:flex;gap:64px;flex-wrap:wrap;}
.tp-footer-col h4{color:var(--tp-white);font-size:0.85rem;text-transform:uppercase;letter-spacing:0.05em;margin:0 0 16px;}
.tp-footer-col ul{list-style:none;margin:0;padding:0;}
.tp-footer-col li{margin-bottom:10px;}
.tp-footer-col a{color:#b8c0d9;font-size:0.9rem;}
.tp-footer-col a:hover{color:var(--tp-white);}
.tp-footer-bottom{
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;
  font-size:0.82rem;color:#7982a0;
}

/* ===========================================================
   11. BREADCRUMBS
   =========================================================== */
.tp-breadcrumbs{font-size:0.85rem;color:#8892ab;margin:0 0 20px;}
.tp-breadcrumbs a{color:#8892ab;font-weight:500;}
.tp-breadcrumbs a:hover{color:var(--tp-primary);}
.tp-breadcrumbs .sep{margin:0 6px;}

/* ===========================================================
   12. SINGLE ARTICLE
   =========================================================== */
.tp-article-header{max-width:820px;margin:0 auto;padding:8px 24px 0;}
.tp-article-header h1{font-size:clamp(1.8rem,3.6vw,2.6rem);font-weight:800;line-height:1.2;margin:0 0 16px;letter-spacing:-0.02em;}
.tp-article-meta{display:flex;gap:16px;flex-wrap:wrap;color:#57607a;font-size:0.9rem;margin-bottom:28px;}
.tp-article-thumb{width:100%;max-height:480px;overflow:hidden;border-radius:var(--tp-radius);margin-bottom:36px;}
.tp-article-thumb img{width:100%;height:100%;object-fit:cover;}

.tp-content-layout{
  max-width:var(--tp-container);margin:0 auto;padding:0 24px 80px;
  display:grid;grid-template-columns:1fr 320px;gap:56px;align-items:start;
}
.tp-content{font-size:1.05rem;line-height:1.85;color:var(--tp-text);}
.tp-content p{margin:0 0 22px;}
.tp-content h2{
  font-size:1.6rem;font-weight:800;margin:44px 0 20px;padding-left:16px;
  border-left:4px solid var(--tp-primary);letter-spacing:-0.01em;
}
.tp-content h3{font-size:1.25rem;font-weight:700;color:var(--tp-primary);margin:32px 0 14px;}
.tp-content ul,.tp-content ol{margin:0 0 22px;padding-left:22px;}
.tp-content li{margin-bottom:8px;}
.tp-content img{border-radius:var(--tp-radius-sm);margin:24px 0;}
.tp-content blockquote{
  border-left:4px solid var(--tp-accent);margin:24px 0;padding:12px 24px;
  color:#57607a;font-style:italic;background:var(--tp-bg);
}

@media (max-width:1024px){
  .tp-content-layout{grid-template-columns:1fr;}
}

/* ===========================================================
   13. TABLEAUX COMPARATIFS
   =========================================================== */
.tp-table-wrap{overflow-x:auto;margin:28px 0;border-radius:var(--tp-radius-sm);border:1px solid var(--tp-border);}
table.tp-table{width:100%;border-collapse:collapse;font-size:0.92rem;min-width:520px;}
table.tp-table thead th{
  background:var(--tp-primary);color:var(--tp-white);font-weight:700;
  padding:14px 16px;text-align:left;white-space:nowrap;
}
table.tp-table tbody td{padding:14px 16px;border-bottom:1px solid var(--tp-border);}
table.tp-table tbody tr:nth-child(even){background:var(--tp-accent);}
table.tp-table tbody tr:hover{background:#dcebfa;}

/* ===========================================================
   14. VERDICT / PROS-CONS / BADGES
   =========================================================== */
.tp-verdict{
  background:var(--tp-white);border:1px solid var(--tp-border);border-left:4px solid var(--tp-green);
  border-radius:var(--tp-radius-sm);padding:22px 24px;margin:28px 0;
}
.tp-verdict h4{margin:0 0 10px;font-size:1.05rem;font-weight:800;color:var(--tp-green);}
.tp-verdict p{margin:0;color:#3a4560;line-height:1.7;}

.tp-pros-cons{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:28px 0;}
.tp-pros,.tp-cons{border-radius:var(--tp-radius-sm);padding:20px 22px;}
.tp-pros{background:#eef8f1;border:1px solid #cdeadb;}
.tp-cons{background:#fbeeec;border:1px solid #f3d2cc;}
.tp-pros h4{color:var(--tp-green);margin:0 0 12px;font-size:0.95rem;}
.tp-cons h4{color:var(--tp-red);margin:0 0 12px;font-size:0.95rem;}
.tp-pros ul,.tp-cons ul{list-style:none;margin:0;padding:0;}
.tp-pros li,.tp-cons li{padding-left:22px;position:relative;margin-bottom:8px;font-size:0.92rem;line-height:1.5;}
.tp-pros li::before{content:"✓";position:absolute;left:0;color:var(--tp-green);font-weight:800;}
.tp-cons li::before{content:"✕";position:absolute;left:0;color:var(--tp-red);font-weight:800;}
@media (max-width:640px){.tp-pros-cons{grid-template-columns:1fr;}}

.tp-badge-top{
  display:inline-flex;align-items:center;gap:6px;background:var(--tp-amazon);color:#1a1a2e;
  font-weight:800;font-size:0.78rem;padding:6px 14px;border-radius:100px;text-transform:uppercase;
  letter-spacing:0.03em;margin-bottom:12px;
}

/* ===========================================================
   15. BOUTON AMAZON
   =========================================================== */
.tp-amazon-btn{
  display:inline-block;background:var(--tp-amazon);color:#1a1a2e;font-weight:800;
  padding:14px 32px;border-radius:100px;font-size:1rem;margin:12px 0;
  box-shadow:0 6px 18px rgba(255,153,0,0.35);transition:transform .2s ease, box-shadow .2s ease;
}
.tp-amazon-btn:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(255,153,0,0.45);color:#1a1a2e;}

.tp-sticky-amazon{
  display:none;position:fixed;bottom:0;left:0;right:0;z-index:998;
  background:var(--tp-white);padding:12px 16px;box-shadow:0 -6px 20px rgba(0,0,0,0.1);
}
.tp-sticky-amazon a{
  display:block;text-align:center;background:var(--tp-amazon);color:#1a1a2e;
  font-weight:800;padding:14px;border-radius:100px;font-size:1rem;
}
@media (max-width:781px){
  .tp-sticky-amazon.has-link{display:block;}
  .tp-content-layout{padding-bottom:100px;}
}

/* ===========================================================
   16. SIDEBAR
   =========================================================== */
.tp-sidebar{display:flex;flex-direction:column;gap:28px;position:sticky;top:96px;}
.tp-sidebar-box{
  background:var(--tp-white);border:1px solid var(--tp-border);border-radius:var(--tp-radius);
  padding:22px;
}
.tp-sidebar-box h4{margin:0 0 16px;font-size:1rem;font-weight:800;}
.tp-related-item{display:flex;gap:12px;margin-bottom:16px;}
.tp-related-item:last-child{margin-bottom:0;}
.tp-related-thumb{width:64px;height:64px;border-radius:var(--tp-radius-sm);overflow:hidden;flex-shrink:0;background:var(--tp-accent);}
.tp-related-thumb img{width:100%;height:100%;object-fit:cover;}
.tp-related-title{font-size:0.88rem;font-weight:700;line-height:1.4;}
.tp-related-title a{color:var(--tp-text);}
.tp-related-title a:hover{color:var(--tp-primary);}
@media (max-width:1024px){.tp-sidebar{position:static;}}

/* ===========================================================
   17. ARCHIVE / CATEGORY BANNER
   =========================================================== */
.tp-archive-banner{
  background:linear-gradient(135deg,var(--tp-primary) 0%,var(--tp-primary-dark) 100%);
  color:var(--tp-white);padding:64px 24px;text-align:center;
}
.tp-archive-icon{font-size:2.8rem;margin-bottom:16px;}
.tp-archive-banner h1{font-size:clamp(1.8rem,3.5vw,2.4rem);font-weight:800;margin:0 0 12px;}
.tp-archive-banner p{max-width:620px;margin:0 auto;color:rgba(255,255,255,0.9);font-size:1.05rem;line-height:1.6;}
.tp-archive-grid-wrap{max-width:var(--tp-container);margin:0 auto;padding:64px 24px;}

.tp-pagination{display:flex;justify-content:center;gap:8px;margin-top:48px;flex-wrap:wrap;}
.tp-pagination a,.tp-pagination span{
  display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;
  border-radius:var(--tp-radius-sm);border:1px solid var(--tp-border);color:var(--tp-text);
  font-weight:600;font-size:0.9rem;padding:0 12px;
}
.tp-pagination a:hover{border-color:var(--tp-primary);color:var(--tp-primary);}
.tp-pagination span.current{background:var(--tp-primary);color:var(--tp-white);border-color:var(--tp-primary);}

/* ===========================================================
   18. UTILITIES / A11Y
   =========================================================== */
.screen-reader-text{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
