/* ============================================
   PETZANO — CSS Principal v2
   Palette : Cyan #0097B2 + Rose #E8619D
   Mobile-first, overflow fixes inclus
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --cyan:        #0097B2;
  --cyan-light:  #E0F7FC;
  --cyan-mid:    #00B4D8;
  --cyan-dark:   #006E85;
  --rose:        #E8619D;
  --rose-light:  #FDE8F3;
  --rose-mid:    #F07DB5;
  --rose-dark:   #C0407A;
  --fond:        #FDF6FB;
  --fond-alt:    #FFFFFF;
  --border:      #F0DCF0;
  --border-dark: #DEC8E8;
  --text:        #1A1A2E;
  --text-muted:  #6B6B8A;
  --white:       #FFFFFF;
  --amazon:      #FF9900;
  --amazon-dark: #CC7A00;
  --rouge:       #E53E3E;
  --jaune:       #F6AD55;
  --r:           10px;
  --r-lg:        18px;
  --shadow-sm:   0 2px 8px rgba(0,151,178,.08);
  --shadow:      0 8px 32px rgba(26,26,46,.10);
  --shadow-lg:   0 20px 60px rgba(26,26,46,.15);
  --t:           .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* Empêche le scroll horizontal sur mobile */
  overflow-x: hidden;
}
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--fond);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Fix overflow mobile */
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: 'Nunito', sans-serif; line-height: 1.2; font-weight: 800; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  /* Fix overflow */
  width: 100%;
  box-sizing: border-box;
}

/* ── Topbar ── */
.topbar { background: var(--cyan-dark); color: rgba(255,255,255,.95); text-align: center; font-size: 13px; padding: 9px 16px; font-weight: 500; width: 100%; }

/* ── Header ── */
.header { background: var(--white); border-bottom: 1.5px solid var(--border); position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 12px rgba(0,151,178,.08); width: 100%; }
.header-inner { display: flex; align-items: center; height: 70px; gap: 16px; }

/* ── Logo ── */
.logo { font-family: 'Nunito', sans-serif; font-size: 24px; font-weight: 800; color: var(--cyan); display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; }
.logo span { color: var(--rose); }
.logo-img { height: 38px; width: auto; flex-shrink: 0; }
.logo-paw { width: 34px; height: 34px; background: var(--cyan); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }

/* ── Nav ── */
.nav { display: flex; align-items: center; gap: 2px; list-style: none; flex-shrink: 0; }
.nav li a { font-size: 14px; font-weight: 600; color: var(--text-muted); padding: 7px 12px; border-radius: 8px; transition: var(--t); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.nav li a:hover, .nav li a.active { color: var(--cyan); background: var(--cyan-light); }

/* ── Search ── */
.header-search { flex: 1; min-width: 0; max-width: 380px; position: relative; }
.header-search input { width: 100%; background: var(--fond); border: 1.5px solid var(--border-dark); border-radius: 50px; padding: 9px 18px 9px 42px; font-size: 14px; font-family: 'DM Sans', sans-serif; color: var(--text); transition: var(--t); outline: none; }
.header-search input:focus { border-color: var(--cyan); background: var(--white); box-shadow: 0 0 0 3px rgba(0,151,178,.12); }
.header-search .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; pointer-events: none; }
.search-dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); z-index: 300; display: none; overflow: hidden; max-height: 360px; overflow-y: auto; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; transition: var(--t); }
.search-item:hover { background: var(--fond); }

/* ── Boutons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 50px; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 15px; cursor: pointer; transition: var(--t); border: 2px solid transparent; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--cyan); color: white; border-color: var(--cyan); }
.btn-primary:hover { background: var(--cyan-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,151,178,.3); }
.btn-secondary { background: transparent; color: var(--cyan); border-color: var(--cyan); }
.btn-secondary:hover { background: var(--cyan-light); }
.btn-rose { background: var(--rose); color: white; border-color: var(--rose); }
.btn-rose:hover { background: var(--rose-dark); transform: translateY(-1px); }
.btn-amazon { background: var(--amazon); color: #0F0F0F; border-color: var(--amazon); font-size: 16px; padding: 14px 32px; }
.btn-amazon:hover { background: var(--amazon-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,153,0,.35); }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ── Hero ── */
.hero { background: linear-gradient(140deg, #005F73 0%, var(--cyan) 50%, #00B4D8 75%, #E8619D 100%); color: white; padding: 70px 0 60px; position: relative; overflow: hidden; width: 100%; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 30%, rgba(255,102,196,.15) 0%, transparent 60%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); border-radius: 50px; padding: 6px 16px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(28px, 4vw, 54px); color: white; margin-bottom: 16px; line-height: 1.1; }
.hero h1 em { font-style: italic; color: #FFE0F5; }
.hero p { font-size: 16px; color: rgba(255,255,255,.9); margin-bottom: 28px; }
.hero-search { display: flex; max-width: 100%; margin-bottom: 20px; border-radius: 50px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.2); }
.hero-search input { flex: 1; min-width: 0; padding: 14px 20px; border: none; font-size: 15px; font-family: 'DM Sans', sans-serif; outline: none; color: var(--text); }
.hero-search button { background: var(--rose); color: white; border: none; padding: 14px 20px; font-weight: 700; font-size: 14px; cursor: pointer; transition: var(--t); white-space: nowrap; flex-shrink: 0; }
.hero-search button:hover { background: var(--rose-dark); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tag { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); border-radius: 50px; padding: 6px 14px; font-size: 13px; color: white; cursor: pointer; transition: var(--t); display: inline-block; }
.hero-tag:hover { background: rgba(255,255,255,.28); }
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-card { background: rgba(255,255,255,.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-lg); padding: 20px 16px; text-align: center; transition: var(--t); cursor: pointer; }
.hero-card:hover { background: rgba(255,255,255,.22); transform: translateY(-3px); }
.hero-card .emoji { font-size: 30px; display: block; margin-bottom: 10px; }
.hero-card h3 { color: white; font-size: 14px; font-family: 'DM Sans', sans-serif; font-weight: 700; margin-bottom: 4px; }
.hero-card p { font-size: 12px; color: rgba(255,255,255,.75); }

/* ── Sections ── */
.section { padding: 60px 0; }
.section-alt { background: var(--white); }
.section-header { text-align: center; margin-bottom: 44px; }
.section-header .label { display: inline-block; background: var(--cyan-light); color: var(--cyan-dark); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 50px; margin-bottom: 12px; }
.section-header h2 { font-size: clamp(24px, 3.5vw, 38px); margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 16px; max-width: 580px; margin: 0 auto; }

/* ── Catégories ── */
.categories-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 24px 12px; text-align: center; transition: var(--t); cursor: pointer; display: block; }
.cat-card:hover { border-color: var(--cyan); transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card .icon { font-size: 34px; display: block; margin-bottom: 10px; }
.cat-card h3 { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cat-card p { font-size: 12px; color: var(--text-muted); }

/* ── Grille produits ── */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.products-grid.cols4 { grid-template-columns: repeat(4, 1fr); }

/* ── Carte produit ── */
.product-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: var(--t); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(0,151,178,.3); }
.product-img-wrap { position: relative; background: var(--fond); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img-wrap img { max-height: 200px; object-fit: contain; transition: transform .4s ease; padding: 16px; }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.badge-prime { position: absolute; top: 10px; left: 10px; background: var(--cyan); color: white; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 50px; }
.badge-promo { position: absolute; top: 10px; right: 10px; background: var(--rouge); color: white; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 50px; }
.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 11px; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; line-height: 1.4; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.stars { color: var(--jaune); font-size: 14px; letter-spacing: 1px; }
.rating-count { font-size: 12px; color: var(--text-muted); }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.price-current { font-size: 22px; font-weight: 800; color: var(--cyan-dark); font-family: 'Nunito', sans-serif; }
.price-old { font-size: 14px; color: var(--text-muted); text-decoration: line-through; }
.price-na { font-size: 14px; color: var(--text-muted); font-style: italic; }
.product-cta { display: flex; gap: 8px; margin-top: auto; }
.btn-card-amazon { flex: 1; background: var(--amazon); color: #0F0F0F; border: none; padding: 10px 12px; border-radius: 50px; font-weight: 700; font-size: 13px; cursor: pointer; transition: var(--t); text-align: center; display: flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.btn-card-amazon:hover { background: var(--amazon-dark); transform: translateY(-1px); }
.btn-card-compare { background: var(--fond); border: 1.5px solid var(--border-dark); border-radius: 50px; padding: 10px 12px; cursor: pointer; transition: var(--t); font-size: 15px; flex-shrink: 0; }
.btn-card-compare:hover { border-color: var(--cyan); background: var(--cyan-light); }

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: var(--t); display: block; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-img { aspect-ratio: 16/9; background: var(--fond); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .article-img img { transform: scale(1.04); }
.article-body { padding: 18px; }
.article-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; flex-wrap: wrap; }
.article-cat { background: var(--rose-light); color: var(--rose-dark); padding: 3px 10px; border-radius: 50px; font-weight: 700; }
.article-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); }
.article-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.article-read { font-size: 14px; font-weight: 700; color: var(--cyan); }

/* ── Fiche produit ── */
.product-page { padding: 40px 0 72px; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.product-gallery { position: sticky; top: 90px; }
.gallery-main { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-lg); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; overflow: hidden; }
.gallery-main img { max-height: 420px; object-fit: contain; padding: 20px; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb { width: 68px; height: 68px; background: var(--white); border: 2px solid var(--border); border-radius: var(--r); overflow: hidden; cursor: pointer; transition: var(--t); display: flex; align-items: center; justify-content: center; }
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--cyan); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.product-info h1 { font-size: clamp(20px, 3vw, 28px); margin-bottom: 12px; }
.product-meta-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.stars-big { font-size: 18px; color: var(--jaune); }
.badge-availability { display: inline-flex; align-items: center; gap: 5px; background: var(--cyan-light); color: var(--cyan-dark); font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 50px; }
.price-box { background: var(--fond); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 22px; margin-bottom: 22px; }
.price-main { font-size: 36px; font-weight: 800; color: var(--cyan-dark); font-family: 'Nunito', sans-serif; margin-bottom: 4px; }
.price-was { font-size: 15px; color: var(--text-muted); text-decoration: line-through; margin-bottom: 8px; }
.prime-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--cyan); color: white; font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 50px; margin-bottom: 16px; }
.cta-stack { display: flex; flex-direction: column; gap: 10px; }
.features-list { list-style: none; margin-bottom: 22px; }
.features-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.features-list li::before { content: '✓'; color: var(--cyan); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.product-tabs { margin-top: 52px; border-bottom: 2px solid var(--border); display: flex; gap: 0; }
.product-tab { padding: 13px 22px; font-weight: 700; font-size: 15px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; color: var(--text-muted); transition: var(--t); background: none; border-top: none; border-left: none; border-right: none; font-family: 'DM Sans', sans-serif; }
.product-tab.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.tab-content { display: none; padding: 28px 0; }
.tab-content.active { display: block; }

/* ── Comparateur ── */
.compare-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.compare-table th { background: var(--fond); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.compare-table td:first-child { font-weight: 700; color: var(--text-muted); font-size: 13px; }
.compare-table tr:last-child td { border-bottom: none; }
.check-yes { color: var(--cyan); font-weight: 700; }
.check-no { color: var(--rouge); }
.winner { background: rgba(0,151,178,.05); }

/* ── Admin ── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 70px); }
.admin-sidebar { background: var(--cyan-dark); color: white; padding: 24px 0; }
.admin-sidebar .logo-area { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,.15); margin-bottom: 16px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 20px; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 600; transition: var(--t); border-left: 3px solid transparent; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.12); color: white; border-left-color: var(--rose); }
.admin-main { padding: 28px; background: var(--fond); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--r-lg); padding: 22px; border: 1px solid var(--border); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.stat-value { font-size: 30px; font-weight: 800; font-family: 'Nunito', sans-serif; color: var(--cyan); }
.admin-card { background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; margin-bottom: 22px; }
.admin-card-header { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-card-header h3 { font-size: 15px; }
.admin-card-body { padding: 22px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border-dark); border-radius: var(--r); font-size: 14px; font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); outline: none; transition: var(--t); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,151,178,.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { padding: 11px 14px; text-align: left; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--fond); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 12px; font-weight: 700; }
.badge-green { background: var(--cyan-light); color: var(--cyan-dark); }
.badge-red { background: #fde8e8; color: var(--rouge); }
.badge-gray { background: var(--fond); color: var(--text-muted); }
.import-box { background: var(--fond); border: 2px dashed var(--border-dark); border-radius: var(--r-lg); padding: 28px; text-align: center; transition: var(--t); }
.import-box:hover { border-color: var(--cyan); background: var(--cyan-light); }
.alert { padding: 13px 16px; border-radius: var(--r); margin-bottom: 14px; font-size: 14px; border: 1px solid; }
.alert-success { background: var(--cyan-light); border-color: var(--cyan-mid); color: var(--cyan-dark); }
.alert-error { background: #fde8e8; border-color: #e0a0a0; color: var(--rouge); }

/* ── Breadcrumb ── */
.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--cyan); }

/* ── Footer ── */
.footer { background: var(--text); color: rgba(255,255,255,.8); padding: 60px 0 28px; width: 100%; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { font-family: 'Nunito', sans-serif; font-size: 16px; color: white; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 14px; color: rgba(255,255,255,.6); transition: var(--t); }
.footer ul li a:hover { color: white; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.55); margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: var(--t); }
.footer-social a:hover { background: var(--rose); }
.newsletter-form { display: flex; border-radius: 50px; overflow: hidden; border: 1.5px solid rgba(255,255,255,.2); }
.newsletter-form input { flex: 1; min-width: 0; background: transparent; border: none; padding: 10px 16px; color: white; font-size: 14px; font-family: 'DM Sans', sans-serif; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form button { background: var(--rose); color: white; border: none; padding: 10px 18px; font-weight: 700; font-size: 14px; cursor: pointer; transition: var(--t); white-space: nowrap; flex-shrink: 0; }
.newsletter-form button:hover { background: var(--rose-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; font-size: 13px; color: rgba(255,255,255,.35); }

/* ── Pagination ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.page-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; border: 1.5px solid var(--border-dark); background: var(--white); cursor: pointer; transition: var(--t); color: var(--text-muted); text-decoration: none; }
.page-btn:hover, .page-btn.active { background: var(--cyan); border-color: var(--cyan); color: white; }

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE FIXES COMPLETS
   ══════════════════════════════════════ */

/* Tablette */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid.cols4 { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 32px; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Fix overflow horizontal — LE FIX PRINCIPAL */
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  .container { padding: 0 16px; }

  /* Hero */
  .hero { padding: 48px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-cards { display: none; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .hero-search input { font-size: 14px; padding: 12px 16px; }
  .hero-search button { padding: 12px 16px; font-size: 13px; }

  /* Navigation cachée sur mobile */
  .nav { display: none; }
  .header-search { max-width: 100%; flex: 1; }
  .header-inner { gap: 10px; }

  /* Grilles */
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-card { padding: 16px 8px; }
  .cat-card .icon { font-size: 26px; }
  .cat-card h3 { font-size: 12px; }
  .cat-card p { display: none; }

  .products-grid, .products-grid.cols4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .blog-grid { grid-template-columns: 1fr; }

  /* Fiche produit */
  .product-layout { grid-template-columns: 1fr; gap: 28px; }
  .product-gallery { position: relative; top: 0; }
  .product-info h1 { font-size: 20px; }
  .price-main { font-size: 28px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer { padding: 40px 0 20px; }

  /* Admin */
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Comparateur */
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 10px 10px; }
}

/* Petit mobile */
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .products-grid, .products-grid.cols4 { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-tags { gap: 6px; }
  .hero-tag { font-size: 12px; padding: 5px 11px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .section { padding: 40px 0; }
  .section-header { margin-bottom: 28px; }
  .btn { padding: 10px 20px; font-size: 14px; }
  .btn-amazon { font-size: 14px; padding: 12px 22px; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Bouton Amazon sur fiches */
  .btn-card-amazon { font-size: 12px; padding: 9px 10px; }
  .product-price { gap: 6px; }
  .price-current { font-size: 20px; }
}

/* ══════════════════════════════════════
   CORRECTIONS VISUELLES
   ══════════════════════════════════════ */

/* 1. Titres blancs dans le hero — forcer la couleur */
.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero p,
.hero .hero-badge,
.hero .hero-card h3,
.hero .hero-card p { color: white !important; }
.hero h1 em { color: #FFE0F5 !important; }

/* 2. Titres sur fond clair — forcer couleur sombre */
.section-header h2,
.section-header p { color: var(--text) !important; }
.section-alt .section-header h2 { color: var(--text) !important; }

/* Tous les h1/h2/h3 hors hero → couleur sombre */
h1:not(.hero h1),
h2:not(.hero h2),
h3:not(.hero h3) { color: var(--text); }

/* 3. Bouton comparer — style avec texte */
.btn-card-compare {
  background: var(--fond);
  border: 1.5px solid var(--border-dark);
  border-radius: 50px;
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--t);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-dark);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.btn-card-compare:hover {
  border-color: var(--cyan);
  background: var(--cyan-light);
  color: var(--cyan-dark);
}

/* 4. Logo image dans le header */
.logo-img {
  height: 42px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.logo { gap: 0; }

/* 5. Fix produits-grid — boutons ne débordent pas */
.product-cta {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: nowrap;
  align-items: center;
}

/* Sur petit mobile, empiler les boutons */
@media (max-width: 380px) {
  .product-cta { flex-wrap: wrap; }
  .btn-card-compare { width: 100%; justify-content: center; }
}

/* ── Icônes réseaux sociaux ── */
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Couleur par défaut — sombre */
.social-btn { background: rgba(255,255,255,.12); color: rgba(255,255,255,.7); }
.social-btn:hover { transform: translateY(-3px); color: white; }

/* Couleurs de marque au hover (overlay) */
.social-facebook:hover  { background: #1877F2; }
.social-instagram:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-tiktok:hover    { background: #000000; box-shadow: 0 0 0 2px #ff0050, 0 0 0 4px #00f2ea; }
.social-pinterest:hover { background: #E60023; }
.social-youtube:hover   { background: #FF0000; }

/* Animation pulse au hover */
.social-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .25s ease;
}
.social-btn:hover::after { opacity: 1; }

/* ══════════════════════════════════════
   ADMIN — Styles spécifiques
   ══════════════════════════════════════ */

/* Override admin sidebar avec nouvelle palette */
.sb, .admin-sidebar, .sidebar { background: var(--cyan-dark) !important; }
.sb-logo, .sidebar-logo, .admin-sidebar .logo-area { border-bottom-color: rgba(255,255,255,.15) !important; }
.sb a:hover, .sb a.on,
.admin-nav a:hover, .admin-nav a.active,
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,.12) !important;
  border-left-color: var(--rose) !important;
  color: white !important;
}
.sb-ft, .sidebar-footer { background: #004A5C !important; }

/* Boutons admin */
.btn-g, .bg { background: var(--cyan) !important; }
.btn-g:hover, .bg:hover { background: var(--cyan-dark) !important; }
.btn-g:disabled, .bg:disabled { background: #7DD4E8 !important; }
.btn-amz, .ba { background: var(--amazon) !important; }
.btn-o, .bo { color: var(--cyan) !important; border-color: var(--cyan) !important; }
.btn-o:hover, .bo:hover { background: var(--cyan-light) !important; }

/* Stats admin */
.stat-val, .sv { color: var(--cyan) !important; }
.ok, .ok-box, .success-box { background: var(--cyan-light) !important; border-color: var(--cyan-mid) !important; color: var(--cyan-dark) !important; }

/* Tabs admin */
.tab-btn.on, .tb2.on { color: var(--cyan) !important; border-bottom-color: var(--cyan) !important; }

/* Focus inputs admin */
.inp:focus, .ip:focus { border-color: var(--cyan) !important; box-shadow: 0 0 0 3px rgba(0,151,178,.1) !important; }

/* Animal buttons blog generator */
.animal-btn.active { background: var(--cyan) !important; border-color: var(--cyan) !important; color: white !important; }
.animal-btn:hover:not(.active) { border-color: var(--cyan) !important; background: var(--cyan-light) !important; }
.stat-badge { background: var(--cyan-light) !important; color: var(--cyan-dark) !important; }

/* ══════════════════════════════════════
   PAGES MANQUANTES — Styles communs
   ══════════════════════════════════════ */

/* Page hero générique */
.page-hero {
  background: linear-gradient(135deg, var(--cyan-dark), var(--cyan));
  color: white;
  padding: 48px 0 40px;
}
.page-hero h1 { color: white !important; font-size: clamp(24px, 4vw, 40px); margin-bottom: 10px; }
.page-hero p  { color: rgba(255,255,255,.85); font-size: 16px; }

/* Conteneur page standard */
.page-content {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 40px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.page-content h2 { font-size: 20px; margin-bottom: 12px; color: var(--text); }
.page-content p  { font-size: 15px; line-height: 1.8; color: var(--text-muted); margin-bottom: 20px; }

/* 404 */
.error-404 { text-align: center; padding: 80px 0; }

/* Politique confidentialité & mentions */
.legal-content h2 { color: var(--cyan-dark) !important; border-left: 4px solid var(--cyan); padding-left: 14px; }

/* ══════════════════════════════════════
   BLOG GENERATOR — Styles palette
   ══════════════════════════════════════ */

.palette-preview .pal-recommended,
.pal-tag { border-radius: 50px !important; }

/* Seo preview */
.seo-title  { color: var(--cyan-dark) !important; }
.seo-url    { color: #006E85 !important; }

/* ══════════════════════════════════════
   CORRECTIONS GLOBALES FINALES
   ══════════════════════════════════════ */

/* Liens partout */
a:hover { color: var(--cyan); }

/* Focus visible accessible */
*:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scrollbar stylisée */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--fond); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* Selection couleur */
::selection { background: var(--cyan-light); color: var(--cyan-dark); }

/* Code inline */
code {
  background: var(--cyan-light);
  color: var(--cyan-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
  font-family: monospace;
}

/* Tables responsive */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Images responsive dans contenu article */
.article-content img { max-width: 100%; border-radius: var(--r); margin: 16px 0; }
.article-content h2  { color: var(--cyan-dark); margin: 28px 0 12px; }
.article-content h3  { margin: 20px 0 8px; }
.article-content a   { color: var(--cyan); font-weight: 600; }
.article-content ul, .article-content ol { padding-left: 24px; margin: 12px 0; }
.article-content li  { margin-bottom: 6px; line-height: 1.7; }
.article-content p   { margin-bottom: 16px; line-height: 1.85; }

/* ══════════════════════════════════════
   MOBILE FINAL — Tous les écrans
   ══════════════════════════════════════ */

@media (max-width: 768px) {
  /* Admin mobile */
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .al, .admin-layout { grid-template-columns: 1fr !important; }
  .sb, .admin-sidebar { display: none !important; }
  .g2, .g3, .grid2, .grid3 { grid-template-columns: 1fr !important; }

  /* Blog generator mobile */
  .animals-row { gap: 6px; }
  .animal-btn { font-size: 13px; padding: 8px 12px; }

  /* Comparateur mobile */
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 8px; }

  /* Pages légales mobile */
  .page-content { padding: 24px 16px; }

  /* Footer mobile */
  .footer-social { gap: 8px; }
  .social-btn { width: 36px; height: 36px; }
}

@media (max-width: 480px) {
  /* Topbar plus petit */
  .topbar { font-size: 11px; padding: 7px 12px; }

  /* Header compact */
  .logo-img { height: 32px; }
  .header-inner { height: 60px; }

  /* Hero */
  .hero { padding: 36px 0 32px; }
  .hero-search { flex-direction: column; border-radius: var(--r-lg); }
  .hero-search input { border-radius: var(--r-lg) !important; margin-bottom: 8px; }
  .hero-search button { border-radius: var(--r-lg) !important; width: 100%; }

  /* Produits */
  .product-body { padding: 12px; }
  .price-current { font-size: 18px; }
  .btn-card-amazon { font-size: 12px; padding: 8px 10px; }
  .btn-card-compare { padding: 8px 10px; font-size: 12px; }

  /* Article page */
  .product-tabs { overflow-x: auto; }
  .product-tab { font-size: 13px; padding: 10px 14px; white-space: nowrap; }
}

/* ══════════════════════════════════════
   BURGER MENU MOBILE
   ══════════════════════════════════════ */

/* Bouton burger — caché sur desktop */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--r);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  transition: var(--t);
}
.burger-btn:hover { border-color: var(--cyan); background: var(--cyan-light); }
.burger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s ease;
  transform-origin: center;
}

/* Animation burger → croix */
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1.5px solid var(--border);
  box-shadow: 0 8px 24px rgba(26,26,46,.12);
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.mobile-menu.open {
  display: block;
  max-height: 600px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: var(--t);
  text-decoration: none;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: var(--cyan-light); color: var(--cyan-dark); padding-left: 30px; }

/* Séparateur catégories animaux */
.mobile-nav a[href*="animal"] {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding-left: 36px;
  background: var(--fond);
}
.mobile-nav a[href*="animal"]:hover {
  background: var(--cyan-light);
  color: var(--cyan-dark);
  padding-left: 40px;
}

/* Afficher burger sur mobile */
@media (max-width: 768px) {
  .burger-btn { display: flex; }
  .nav { display: none !important; }
  .header-search { max-width: 100%; }
}

/* ── Logo plus grand sans search ── */
.logo-img { height: 52px; max-width: 180px; }
.header-inner { height: 74px; }
.header-search { display: none !important; }

/* ── Section réassurance ── */
.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.reassurance-item {
  text-align: center;
  padding: 8px;
}
.reassurance-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.reassurance-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.reassurance-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .reassurance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 480px) {
  .reassurance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .reassurance-icon { width: 52px; height: 52px; }
  .reassurance-item h3 { font-size: 14px; }
  .reassurance-item p { font-size: 13px; }
}
