/*
Theme Name:  Équipement Pilates
Theme URI:   https://equipement-pilates.fr
Author:      Équipement Pilates
Description: Thème WordPress pour site d'affiliation Pilates — Reformers, Cadillac & Accessoires Premium
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: equipement-pilates
Tags:        affiliation, pilates, one-column, custom-colors, custom-menu, featured-images, threaded-comments
*/

/* ===========================
   Variables
   =========================== */
:root {
  --sage:         #6B8F71;
  --sage-light:   #8FAF94;
  --sage-dark:    #4A6B50;
  --off-white:    #FAFAFA;
  --gold:         #C9A84C;
  --gold-light:   #E8D5A3;
  --dark:         #2C2C2C;
  --gray:         #6B6B6B;
  --light-gray:   #EBEBEB;
  --white:        #FFFFFF;
  --shadow:       0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 10px 35px rgba(0,0,0,0.14);
  --transition:   all 0.3s ease;
  --radius:       12px;
}

/* ===========================
   Reset
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Raleway', sans-serif; background: var(--off-white); color: var(--dark); line-height: 1.75; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.3; }
h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); }

/* ===========================
   Container
   =========================== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===========================
   Promo Banner
   =========================== */
.promo-banner {
  background: var(--sage-dark);
  color: var(--white);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}
.promo-banner strong {
  background: var(--gold);
  color: var(--dark);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.9rem;
}
.promo-banner a { color: var(--gold-light); text-decoration: underline; }
.promo-banner a:hover { color: var(--white); }

/* ===========================
   Navbar
   =========================== */
.navbar {
  background: var(--white);
  border-bottom: 2px solid var(--gold-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
.navbar__logo { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; color: var(--sage-dark); }
.navbar__logo span { color: var(--gold); }
.navbar__menu { display: flex; gap: 2rem; align-items: center; }
.navbar__menu a {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--dark); transition: var(--transition); padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.navbar__menu a:hover,
.navbar__menu a.active { color: var(--sage); border-bottom-color: var(--gold); }

.navbar__toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.navbar__toggle span { display: block; width: 25px; height: 2px; background: var(--dark); transition: var(--transition); border-radius: 2px; }
.navbar__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.active span:nth-child(2) { opacity: 0; }
.navbar__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .navbar__toggle { display: flex; }
  .navbar__menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0;
    border-top: 1px solid var(--light-gray); box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  }
  .navbar__menu.open { display: flex; }
  .navbar__menu a { padding: 1rem 1.5rem; border-bottom: 1px solid var(--light-gray); width: 100%; }
}

/* ===========================
   Hero
   =========================== */
.hero {
  background: linear-gradient(140deg, var(--sage-dark) 0%, var(--sage) 55%, var(--sage-light) 100%);
  color: var(--white); padding: 7rem 1.5rem 6rem; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(201,168,76,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero__badge {
  display: inline-block; background: rgba(201,168,76,0.2); border: 1px solid rgba(232,213,163,0.6);
  color: var(--gold-light); font-size: 0.75rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; padding: 0.45rem 1.1rem; border-radius: 50px; margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero__sub { font-size: 1.1rem; opacity: 0.88; margin-bottom: 2.5rem; font-weight: 300; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ===========================
   Page Hero (category pages)
   =========================== */
.page-hero { background: linear-gradient(140deg, var(--sage-dark), var(--sage)); color: var(--white); padding: 4rem 1.5rem; text-align: center; }
.page-hero h1  { color: var(--white); margin-bottom: 0.8rem; }
.page-hero p   { opacity: 0.9; font-size: 1.05rem; max-width: 620px; margin: 0 auto; }
.breadcrumb    { font-size: 0.82rem; opacity: 0.75; margin-bottom: 0.9rem; }
.breadcrumb a  { color: var(--gold-light); }
.breadcrumb a:hover { color: var(--gold); }

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-block; padding: 0.85rem 2rem; border-radius: 50px;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; transition: var(--transition); border: 2px solid transparent;
}
.btn--primary { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.btn--primary:hover { background: transparent; color: var(--gold-light); border-color: var(--gold-light); }
.btn--outline { background: transparent; color: var(--sage); border-color: var(--sage); font-size: 0.8rem; }
.btn--outline:hover { background: var(--sage); color: var(--white); }
.btn--affiliate {
  background: var(--sage); color: var(--white); border-color: var(--sage);
  width: 100%; text-align: center; padding: 0.7rem 1rem; border-radius: 8px; font-size: 0.82rem;
}
.btn--affiliate:hover { background: var(--sage-dark); border-color: var(--sage-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(74,107,80,0.3); }
.btn--amazon { background: #FF9900; color: #111; border-color: #FF9900; width: 100%; text-align: center; padding: 0.7rem 1rem; border-radius: 8px; font-size: 0.82rem; }
.btn--amazon:hover { background: #e68a00; border-color: #e68a00; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,153,0,0.4); }

/* ===========================
   Sections
   =========================== */
.section        { padding: 5rem 1.5rem; }
.section--light { background: var(--white); }
.section--sage  { background: linear-gradient(160deg, #f2f6f3 0%, #e8f0e9 100%); }
.section__header          { text-align: center; margin-bottom: 3rem; }
.section__header h2       { color: var(--sage-dark); margin-bottom: 0.6rem; }
.section__header p        { color: var(--gray); max-width: 560px; margin: 0 auto; font-size: 0.95rem; }
.section__divider         { width: 48px; height: 3px; background: var(--gold); margin: 0.7rem auto 0.9rem; border-radius: 2px; }

/* ===========================
   Category Cards
   =========================== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.category-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); text-align: center; cursor: pointer; }
.category-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-hover); }
.category-card__img { height: 210px; overflow: hidden; background: linear-gradient(135deg, var(--sage), var(--sage-light)); display: flex; align-items: center; justify-content: center; font-size: 3.8rem; }
.category-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.category-card:hover .category-card__img img { transform: scale(1.05); }
.category-card__body { padding: 1.6rem 1.4rem; }
.category-card__body h3 { color: var(--sage-dark); margin-bottom: 0.5rem; }
.category-card__body p  { color: var(--gray); font-size: 0.88rem; margin-bottom: 1.3rem; }

/* ===========================
   Product Cards
   =========================== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.8rem; max-width: 1200px; margin: 0 auto; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.product-card__img { height: 185px; background: linear-gradient(135deg, #eaf2eb, #d5e7d8); display: flex; align-items: center; justify-content: center; font-size: 2.8rem; position: relative; overflow: hidden; }
.product-card__img::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--sage), var(--gold)); }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: 100%; }
.product-card__img--cadillac   { background: linear-gradient(135deg, #f2ede8, #e8ddd3); }
.product-card__img--accessoire { background: linear-gradient(135deg, #eaf0f2, #d5e2e8); }
.product-card__body { padding: 1.15rem 1.2rem; flex: 1; display: flex; flex-direction: column; gap: 0.45rem; }
.product-card__name  { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--dark); line-height: 1.35; }
.product-card__desc  { font-size: 0.83rem; color: var(--gray); flex: 1; }
.product-card__price { font-size: 1.2rem; font-weight: 700; color: var(--sage-dark); }
.product-card__price .price-label { display: block; font-size: 0.72rem; font-weight: 500; color: var(--gray); }
.product-card__footer { padding: 0.9rem 1.2rem; border-top: 1px solid #f0f0f0; }

/* ===========================
   Badge
   =========================== */
.badge { display: inline-block; background: var(--gold-light); color: #5a4a1a; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px; padding: 0.2rem 0.65rem; border-radius: 4px; text-transform: uppercase; }
.badge--amazon { background: #FF9900; color: #111; }

/* ===========================
   SEO Block
   =========================== */
.seo-block { background: var(--white); border-left: 4px solid var(--sage); border-radius: 0 var(--radius) var(--radius) 0; padding: 2rem 2.5rem; max-width: 900px; margin: 0 auto; }
.seo-block h2 { color: var(--sage-dark); margin-bottom: 1rem; font-size: 1.35rem; }
.seo-block p  { color: var(--gray); margin-bottom: 1rem; font-size: 0.93rem; }
.seo-block p:last-child { margin-bottom: 0; }

/* ===========================
   Blog Archive
   =========================== */
.blog-hero { background: linear-gradient(140deg, var(--sage-dark), var(--sage)); color: var(--white); padding: 4rem 1.5rem; text-align: center; }
.blog-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.blog-hero p  { opacity: 0.9; }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.post-card__img { height: 200px; overflow: hidden; background: linear-gradient(135deg, var(--sage), var(--sage-light)); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.post-card__meta { font-size: 0.78rem; color: var(--gray); display: flex; gap: 1rem; flex-wrap: wrap; }
.post-card__meta span { display: flex; align-items: center; gap: 0.3rem; }
.post-card__title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--dark); line-height: 1.4; }
.post-card__title:hover { color: var(--sage); }
.post-card__excerpt { font-size: 0.85rem; color: var(--gray); flex: 1; }
.post-card__footer { padding: 0.8rem 1.3rem; border-top: 1px solid #f0f0f0; }
.post-card__link { font-size: 0.82rem; font-weight: 700; color: var(--sage); letter-spacing: 0.5px; text-transform: uppercase; }
.post-card__link:hover { color: var(--sage-dark); }

.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; border: 2px solid var(--light-gray); color: var(--dark); transition: var(--transition); }
.pagination a:hover, .pagination .current { background: var(--sage); color: var(--white); border-color: var(--sage); }

/* ===========================
   Single Article
   =========================== */
.article-hero { background: var(--sage-dark); color: var(--white); padding: 4rem 1.5rem; }
.article-hero h1 { color: var(--white); max-width: 860px; margin: 0.8rem 0; }
.article-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.85rem; opacity: 0.85; margin-top: 0.5rem; }
.article-meta a { color: var(--gold-light); }

.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; max-width: 1200px; margin: 3rem auto; padding: 0 1.5rem; align-items: start; }
.article-content { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }
.article-content .featured-image { width: 100%; height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 2rem; }
.article-content h2 { color: var(--sage-dark); margin: 2rem 0 0.8rem; font-size: 1.5rem; }
.article-content h3 { color: var(--dark); margin: 1.5rem 0 0.6rem; }
.article-content p  { color: var(--gray); margin-bottom: 1.2rem; line-height: 1.85; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; color: var(--gray); }
.article-content li { margin-bottom: 0.4rem; line-height: 1.7; }
.article-content a  { color: var(--sage); text-decoration: underline; }
.article-content img { border-radius: 8px; margin: 1.5rem 0; }

.article-tags { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--light-gray); display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.article-tags span { font-size: 0.82rem; color: var(--gray); font-weight: 600; }
.tag-pill { background: var(--off-white); border: 1px solid var(--light-gray); color: var(--gray); font-size: 0.78rem; padding: 0.25rem 0.7rem; border-radius: 50px; transition: var(--transition); }
.tag-pill:hover { background: var(--sage); color: var(--white); border-color: var(--sage); }

/* Affiliate encart in articles */
.affiliate-encart {
  background: linear-gradient(135deg, #f2f6f3, #e8f0e9);
  border: 2px solid var(--sage-light);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-top: 2.5rem;
  text-align: center;
}
.affiliate-encart__badge { display: inline-block; background: var(--sage); color: var(--white); font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 0.3rem 0.8rem; border-radius: 4px; margin-bottom: 0.8rem; }
.affiliate-encart h3 { color: var(--sage-dark); margin-bottom: 0.5rem; font-size: 1.2rem; }
.affiliate-encart p  { color: var(--gray); font-size: 0.9rem; margin-bottom: 1.2rem; }
.affiliate-encart__price { font-size: 1.4rem; font-weight: 700; color: var(--sage-dark); margin-bottom: 1.2rem; }

/* Article sidebar */
.article-sidebar { position: sticky; top: 100px; }
.sidebar-widget { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.sidebar-widget h4 { font-family: 'Playfair Display', serif; color: var(--sage-dark); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold-light); }
.sidebar-recent li { padding: 0.6rem 0; border-bottom: 1px solid var(--light-gray); font-size: 0.88rem; }
.sidebar-recent li:last-child { border-bottom: none; }
.sidebar-recent a { color: var(--dark); transition: var(--transition); }
.sidebar-recent a:hover { color: var(--sage); }
.sidebar-promo { background: linear-gradient(135deg, var(--sage-dark), var(--sage)); color: var(--white); text-align: center; }
.sidebar-promo h4 { color: var(--white); border-bottom-color: rgba(255,255,255,0.2); }
.sidebar-promo p { font-size: 0.88rem; opacity: 0.9; margin-bottom: 0.8rem; }
.sidebar-promo .code { background: var(--gold); color: var(--dark); font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 4px; font-size: 0.95rem; display: inline-block; margin-bottom: 1rem; }

/* ===========================
   Footer
   =========================== */
.footer { background: var(--dark); color: rgba(255,255,255,0.78); padding: 4rem 1.5rem 2rem; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 3rem; max-width: 1200px; margin: 0 auto 3rem; }
.footer__brand h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--white); margin-bottom: 0.7rem; }
.footer__brand h3 span { color: var(--gold); }
.footer__brand p { font-size: 0.88rem; line-height: 1.8; }
.footer__col h4 { font-size: 0.8rem; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer__col ul li { margin-bottom: 0.5rem; }
.footer__col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer__col ul li a:hover { color: var(--white); }
.footer__disclaimer { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; max-width: 1200px; margin: 0 auto; }
.footer__disclaimer p { font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.85; margin-bottom: 0.5rem; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; max-width: 1200px; margin: 1.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.77rem; color: rgba(255,255,255,0.35); }

/* ===========================
   Back to Top
   =========================== */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; background: var(--sage); color: var(--white); width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: var(--transition); opacity: 0; pointer-events: none; border: none; font-size: 1.2rem; z-index: 999; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--sage-dark); transform: translateY(-3px); }

/* ===========================
   Fade-in animation
   =========================== */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 768px) {
  .section { padding: 3rem 1.2rem; }
  .hero { padding: 4.5rem 1.2rem 3.5rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .footer__bottom { flex-direction: column; text-align: center; }
  .seo-block { padding: 1.5rem 1.3rem; }
  .article-content { padding: 1.5rem; }
  .article-content .featured-image { height: 250px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
}

/* ===========================
   WordPress Core Overrides
   =========================== */
.aligncenter { display: block; margin: 1.5rem auto; }
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--gray); text-align: center; margin-top: 0.4rem; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }
