/* ========================================
   APOGENIO — Light Theme Override
   Overrides dark variables from style.css
   ======================================== */

/* Core backgrounds */
body {
  background: var(--cream) !important;
  color: var(--text) !important;
}

/* Sections — but NOT heroes, image-breaks, CTA-app, or footer */
.section--dark:not(.hero):not(.image-break),
.section--surface:not(.hero):not(.image-break),
.section:not(.hero):not(.image-break):not(.site-footer):not([style*="background: url"]) {
  background: var(--cream) !important;
  color: var(--text) !important;
}
.section--surface h2, .section--surface h3, .section--surface h4 {
  color: var(--text) !important;
}
.section--surface p {
  color: var(--text-light) !important;
}
.section--dark:not(.hero):not(.image-break) h2,
.section--dark:not(.hero):not(.image-break) h3,
.section--dark:not(.hero):not(.image-break) h4 {
  color: var(--text) !important;
}
.section--dark:not(.hero):not(.image-break) p {
  color: var(--text-light) !important;
}

/* Hero sections — keep dark */
.hero, .hero--short {
  color: #fff !important;
}
.hero h1, .hero p, .hero span,
.hero--short h1, .hero--short p, .hero--short span,
.hero__content h1, .hero__content p {
  color: inherit !important;
}
.hero__subtitle {
  color: rgba(255,255,255,.7) !important;
}

/* Navbar — transparent so site-header bg fills uniformly (no two-tone) */
.nav {
  background: transparent !important;
}

/* Hero — keep dark gradient */

/* Cards — ensure visible on cream bg */
.card, .wine-card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
  color: var(--text) !important;
}
.card:hover, .wine-card:hover {
  border-color: var(--wine) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08) !important;
}

/* Wine card specifics */
.wine-card__visual {
  background: var(--cream-dark) !important;
}
.wine-card__name {
  color: var(--text) !important;
}
.wine-card__domain, .wine-card__region {
  color: var(--text-muted) !important;
}
.wine-card__price {
  color: var(--text) !important;
}
.wine-card__placeholder {
  background: var(--cream-dark) !important;
}

/* Filter buttons */
.filter-btn {
  background: #fff !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.filter-btn:hover {
  border-color: var(--wine) !important;
  color: var(--wine) !important;
}
.filter-btn.active {
  background: var(--wine) !important;
  color: #fff !important;
  border-color: var(--wine) !important;
}

/* Select dropdowns */
.wine-region-select, select {
  background: #fff !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
/* Open-state options: legacy rule in style.css forced var(--dark-card) bg + var(--dark-text) — unreadable in light theme */
.wine-region-select option, select option {
  background: #fff !important;
  color: var(--text) !important;
}
/* Hover/focus on the closed pill: was color:#fff which becomes white-on-white once light-theme repaints the bg */
.wine-region-select:hover, .wine-region-select:focus {
  color: var(--text) !important;
  border-color: var(--wine) !important;
}

/* Search input */
.wine-search__input {
  background: #fff !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.wine-search__input::placeholder {
  color: var(--text-muted) !important;
}

/* Pagination */
.pagination .filter-btn {
  background: #fff !important;
}
.pagination-dots {
  color: var(--text-muted) !important;
}

/* Wine listing toolbar */
.wine-listing-count {
  color: var(--text) !important;
}

/* Blog cards */
.blog-card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}
.blog-card:hover {
  border-color: var(--wine) !important;
}

/* Feature cards */
.feature-card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}
.feature-card:hover {
  border-color: var(--wine) !important;
}

/* Pricing cards */
.pricing-card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}

/* General text overrides for section--dark context */
.section--dark .text-secondary,
.section--dark .text-muted {
  color: var(--text-muted) !important;
}
.section--dark a:not(.nav__links a):not(.btn):not(.filter-btn):not(.wine-card) {
  color: var(--wine) !important;
}

/* FAQ in articles */
.section--dark details {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}
.section--dark summary {
  color: var(--text) !important;
}

/* Tables in articles */
.section--dark table {
  background: #fff !important;
}
.section--dark th {
  background: var(--cream-dark) !important;
  color: var(--text) !important;
}
.section--dark td {
  color: var(--text) !important;
  border-color: var(--border) !important;
}

/* Image break sections — keep dark */
.image-break {
  background: var(--dark) !important;
}

/* Stats / badges */
.hero__badge {
  background: rgba(155, 44, 61, 0.1) !important;
  color: var(--wine) !important;
  border: 1px solid rgba(155, 44, 61, 0.2) !important;
}
.hero__badge-dot {
  background: var(--wine) !important;
}

/* Subtitles */
.hero__subtitle {
  color: var(--text-muted) !important;
}

/* Footer — keep dark */
.site-footer {
  background: var(--dark) !important;
  color: rgba(255,255,255,0.7) !important;
}
.site-footer h4, .site-footer a {
  color: rgba(255,255,255,0.85) !important;
}

/* Float CTA — keep as-is */

/* Blog article content */
.article-content, .blog-content, .content-section {
  color: var(--text) !important;
}
.article-content h2, .article-content h3,
.blog-content h2, .blog-content h3 {
  color: var(--text) !important;
}

/* Blockquotes */
.section--dark blockquote {
  border-left-color: var(--wine) !important;
  background: rgba(155, 44, 61, 0.05) !important;
  color: var(--text-light) !important;
}

/* Code blocks */
.section--dark pre, .section--dark code {
  background: var(--cream-dark) !important;
  color: var(--text) !important;
}

/* Strong / emphasis */
.section--dark strong {
  color: var(--text) !important;
}

/* Lists */
.section--dark ul li, .section--dark ol li {
  color: var(--text-light) !important;
}

/* Horizontal rules */
.section--dark hr {
  border-color: var(--border) !important;
}

/* ===== COMPREHENSIVE LIGHT OVERRIDES ===== */

/* All section types — text colors */
.section--surface:not(.hero):not(.image-break) {
  background: var(--cream) !important;
}
.section--surface:not(.hero) h2,
.section--surface:not(.hero) h3,
.section--surface:not(.hero) h4 {
  color: var(--text) !important;
}
.section--surface:not(.hero) p {
  color: var(--text-light) !important;
}

/* Split sections */
.split__content h2, .split__content h3 {
  color: var(--text) !important;
}
.split__content p, .split__content li {
  color: var(--text-light) !important;
}

/* Feature cards */
.feature-card, .feature-card__icon {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}
.feature-card h3, .feature-card__title {
  color: var(--text) !important;
}
.feature-card p, .feature-card__desc {
  color: var(--text-light) !important;
}

/* Pricing */
.pricing-card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}
.pricing-card h3, .pricing-card .pricing-card__price {
  color: var(--text) !important;
}
.pricing-card p, .pricing-card li {
  color: var(--text-light) !important;
}
.pricing-card--popular {
  border-color: var(--wine) !important;
}

/* Stats / Counters */
.stat__number, .stat__label, .counter__value {
  color: var(--text) !important;
}

/* Testimonials */
.testimonial-card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}
.testimonial-card p {
  color: var(--text-light) !important;
}
.testimonial-card__name {
  color: var(--text) !important;
}

/* Blog cards */
.blog-card__title, .blog-card h3 {
  color: var(--text) !important;
}
.blog-card__excerpt, .blog-card p {
  color: var(--text-light) !important;
}
.blog-card__meta {
  color: var(--text-muted) !important;
}

/* Article breadcrumb */
.breadcrumb {
  background: transparent !important;
  color: var(--text-muted) !important;
  padding: var(--space-sm) 0 !important;
}
.breadcrumb a {
  color: #9b2c3d !important;
}
.breadcrumb a:hover {
  color: #6b1e2a !important;
  text-decoration: underline !important;
}

/* Article metadata */
.article-meta, .post-meta {
  color: var(--text-muted) !important;
}

/* Category badges in blog */
.category-badge {
  color: var(--wine) !important;
}

/* FAQ/Accordion */
details, .faq-item {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}
summary, .faq-question {
  color: var(--text) !important;
}
details p {
  color: var(--text-light) !important;
}

/* CTA sections — keep dark with WHITE text everywhere */
.cta-section, .cta-banner, .cta-banner--image, .cta-app {
  color: #fff !important;
}
.cta-section *, .cta-banner *, .cta-banner--image *, .cta-app * {
  color: #fff !important;
}
.cta-section .btn--wine, .cta-banner .btn--wine, .cta-app .btn--wine,
.cta-section .btn, .cta-banner .btn, .cta-app .btn-app {
  color: #fff !important;
}

/* Icons on light bg */
.feature-card svg, .split__content svg {
  color: var(--wine) !important;
}

/* Badges */
.badge, .tag {
  background: var(--wine-light) !important;
  color: var(--wine) !important;
}

/* Dividers */
hr, .divider {
  border-color: var(--border) !important;
}

/* Links in content */
.section--dark a:not([class]):not(.nav a),
.section--surface a:not([class]):not(.nav a) {
  color: var(--wine) !important;
}

/* Wine listing inline CTA cards — keep dark */
.inline-cta {
  background: linear-gradient(135deg, #2a1520, #1a0e14) !important;
}
.inline-cta * {
  color: #fff !important;
}

/* Apogee badge in wine cards */
.wine-card__apogee {
  color: var(--text-muted) !important;
}

/* General white text fix — catch-all */
.section--dark:not(.hero):not(.image-break):not(.cta-section):not(.cta-banner):not(.cta-app) *:not(nav *):not(.nav *):not(.inline-cta *) {
  color: inherit;
}

/* ===== HP CONTRAST FIXES ===== */

/* Award badges — white text on white cards */
.award-badge {
  background: var(--cream-dark) !important;
  border: 1px solid var(--border) !important;
}
.award-badge__name, .award-badge span {
  color: var(--text) !important;
}
.award-badge--logo span {
  color: var(--text-light) !important;
}

/* Section headers / overlines — exclude sections with inline background image
   (those use a dark overlay and need white text; their inline color must win). */
section:not([style*="background: url"]) .overline,
section:not([style*="background: url"]) .section__header .overline {
  color: var(--wine) !important;
}
section:not([style*="background: url"]) .section__header h2,
section:not([style*="background: url"]) .section__header p {
  color: var(--text) !important;
}

/* Ghost buttons on light bg */
.btn--ghost:not(.hero .btn--ghost):not(.nav .btn--ghost) {
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.btn--ghost:not(.hero .btn--ghost):hover {
  background: var(--cream-dark) !important;
  border-color: var(--wine) !important;
  color: var(--wine) !important;
}

/* Pricing card badge */
.pricing-card__badge {
  background: var(--wine) !important;
  color: #fff !important;
}

/* Accordion / FAQ on HP */
.accordion__title, .accordion__header {
  color: var(--text) !important;
}
.accordion__content, .accordion__body {
  color: var(--text-light) !important;
}

/* Comparison table */
.comparison-table th, .comparison-table td {
  color: var(--text) !important;
  border-color: var(--border) !important;
}

/* Trust badges */
.trust-badge, .trust-badge span {
  color: var(--text-muted) !important;
}

/* Step cards */
.step-card, .step__card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}
.step-card h3, .step__title {
  color: var(--text) !important;
}
.step-card p, .step__desc {
  color: var(--text-light) !important;
}
.step__number {
  color: var(--wine) !important;
}

/* Screenshot tabs */
.screenshot-tab, .tab-btn {
  color: var(--text-muted) !important;
}
.screenshot-tab.active, .tab-btn.active {
  color: var(--wine) !important;
}

/* Force parent section colors to dark-on-cream, so inherit cascade works correctly.
   Previously: color: inherit !important caused spans to inherit var(--dark-text)
   from style.css .section--surface rule, making them near-white on cream bg. */
html body section.section--surface:not(.hero):not(.image-break),
html body section.section--dark:not(.hero):not(.image-break):not(.cta-section):not(.cta-banner):not(.cta-app) {
  color: var(--text) !important;
}
.section--surface span:not(.nav *):not(.hero *):not(.float-cta *):not(.inline-cta *),
.section--dark:not(.hero):not(.cta-section):not(.cta-banner):not(.cta-app) span:not(.nav *):not(.float-cta *):not(.inline-cta *) {
  color: inherit !important;
}

/* ===== FORCE OVERRIDES — high specificity ===== */
body .award-badge, body .award-badge--logo,
body .award-badge__initials, body .award-badge__name {
  color: var(--text) !important;
}
body .overline {
  color: var(--wine) !important;
}
body .btn--ghost {
  color: var(--text) !important;
  border-color: var(--border) !important;
}

/* ===== SECTIONS WITH BACKGROUND IMAGES — keep dark text white ===== */
section[style*="background: url"],
section[style*="background-image"],
.cta-banner, .cta-banner--image {
  color: #fff !important;
}
section[style*="background: url"] h2,
section[style*="background: url"] p,
section[style*="background: url"] span,
.cta-banner h2, .cta-banner p, .cta-banner span {
  color: #fff !important;
}
section[style*="background: url"] .testimonial-card {
  color: var(--text) !important;
}

/* Blog pagination */
.pagination-link, .pagination a, .blog-pagination a, .blog-pagination span {
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.pagination-link.active, .blog-pagination .active {
  background: var(--wine) !important;
  color: #fff !important;
}
.blog-pagination, .pagination-wrap {
  color: var(--text) !important;
}

/* Blog cards on light bg — need better borders */
.blog-card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
  color: var(--text) !important;
}

/* Feature card images — keep dark */
.feature-card__image {
  border: none !important;
}

/* Feature pages — reduce section spacing */
.section {
  padding-top: var(--space-2xl) !important;
  padding-bottom: var(--space-2xl) !important;
}
.hero, .hero--short {
  padding-top: var(--space-3xl) !important;
  padding-bottom: var(--space-3xl) !important;
}

/* CTA overlay containers — ensure white text */
.cta-overlay + *, .cta-overlay ~ * {
  color: #fff !important;
}
.cta-overlay ~ * h2, .cta-overlay ~ * p, .cta-overlay ~ * a, .cta-overlay ~ * span {
  color: #fff !important;
}
div[style*="background-image"] h2, div[style*="background-image"] p,
div[style*="background-image"] a, div[style*="background-image"] span {
  color: #fff !important;
}

/* ================================================================
   NUCLEAR CONTRAST FIXES — v3 (2026-04-19)
   Specificity boostée par class repetition pour battre la règle
   ".section--surface span:not(.nav *):not(.hero *):not(.float-cta *):not(.inline-cta *)"
   qui a specificity (0,5,1).
   Chaque sélecteur ici a specificity >= (0,6,X).
   ================================================================ */

/* ---- AWARD BADGES : fond blanc, initiales wine, nom muted ---- */
html body .awards-row.awards-row .award-badge.award-badge.award-badge.award-badge,
html body .awards-row.awards-row .award-badge.award-badge--logo.award-badge--logo {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}
html body .awards-row.awards-row .award-badge.award-badge .award-badge__initials.award-badge__initials.award-badge__initials {
  color: var(--wine) !important;
}
html body .awards-row.awards-row .award-badge.award-badge .award-badge__name.award-badge__name.award-badge__name,
html body .awards-row.awards-row .award-badge.award-badge small.award-badge-small {
  color: var(--text-muted) !important;
}

/* ---- HERO FRENCH BADGE ---- white text on wine bg, readable on dark hero */
html body .hero.hero .hero__french-badge.hero__french-badge.hero__french-badge {
  background: rgba(155, 44, 61, 0.55) !important;
  border: 1px solid rgba(232, 160, 168, 0.5) !important;
  color: #fff !important;
  padding: 6px 12px !important;
}
html body .hero.hero .hero__french-badge.hero__french-badge span.hero__french-badge-text,
html body .hero.hero .hero__french-badge.hero__french-badge.hero__french-badge span {
  color: #fff !important;
  font-size: 0.81rem !important;
  font-weight: 700 !important;
}

/* ---- HERO STARS / SOCIAL PROOF ---- */
html body .hero.hero .hero__stars.hero__stars.hero__stars {
  color: var(--amber) !important;
}
html body .hero.hero .hero__social-proof.hero__social-proof.hero__social-proof,
html body .hero.hero .hero__social-proof.hero__social-proof span {
  color: var(--text-muted) !important;
}

/* ---- BTN GHOST dans NAV (fond sombre) → blanc ---- */
html body .nav.nav .btn--ghost.btn--ghost.btn--ghost,
html body .nav.nav a.btn--ghost.btn--ghost {
  color: #fff !important;
  border-color: rgba(255,255,255,0.2) !important;
  background: transparent !important;
}
html body .nav.nav .btn--ghost.btn--ghost:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.4) !important;
}

/* ---- BTN GHOST dans HERO (fond sombre) → blanc ---- */
html body .hero.hero .btn--ghost.btn--ghost.btn--ghost,
html body .hero--short.hero--short .btn--ghost.btn--ghost.btn--ghost {
  color: #fff !important;
  border-color: rgba(255,255,255,0.3) !important;
  background: transparent !important;
}
html body .hero.hero .btn--ghost.btn--ghost:hover,
html body .hero--short.hero--short .btn--ghost.btn--ghost:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.5) !important;
  color: #fff !important;
}

/* ---- TITRES/PARAGRAPHES DE SECTION--SURFACE (sans bg image) → sombre sur cream ---- */
html body section.section--surface.section--surface:not([style*="background"]) h2.h2,
html body section.section--surface.section--surface:not([style*="background"]) h2,
html body section.section--surface.section--surface:not([style*="background"]) .section__header.section__header h2,
html body section.section--surface.section--surface:not([style*="background"]) .section__header.section__header h3 {
  color: var(--text) !important;
}
html body section.section--surface.section--surface:not([style*="background"]) p.p,
html body section.section--surface.section--surface:not([style*="background"]) .section__header.section__header p {
  color: var(--text-light) !important;
}

/* ---- FEATURE CARDS (sans image) → fond blanc, texte sombre ---- */
html body .card.feature-card.feature-card:not(.feature-card--image),
html body .feature-card.feature-card.feature-card:not(.feature-card--image) {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}
html body .feature-card.feature-card:not(.feature-card--image) .feature-card__title.feature-card__title.feature-card__title,
html body .feature-card.feature-card:not(.feature-card--image) h3.h3 {
  color: var(--text) !important;
}
html body .feature-card.feature-card:not(.feature-card--image) .feature-card__text.feature-card__text.feature-card__text,
html body .feature-card.feature-card:not(.feature-card--image) p.p {
  color: var(--text-light) !important;
}
/* Feature-card--image : garde overlay sombre, texte blanc par-dessus */
html body .feature-card--image.feature-card--image .feature-card__content.feature-card__content .feature-card__title.feature-card__title,
html body .feature-card--image.feature-card--image .feature-card__content.feature-card__content h3,
html body .feature-card--image.feature-card--image .feature-card__content.feature-card__content .feature-card__text.feature-card__text,
html body .feature-card--image.feature-card--image .feature-card__content.feature-card__content p {
  color: #fff !important;
}

/* ---- BLOG CARDS → fond blanc, texte sombre ---- */
html body .blog-card.blog-card.blog-card,
html body a.blog-card.blog-card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}
html body .blog-card.blog-card .blog-card__title.blog-card__title.blog-card__title,
html body .blog-card.blog-card h3.h3 {
  color: var(--text) !important;
}
html body .blog-card.blog-card .blog-card__excerpt.blog-card__excerpt.blog-card__excerpt,
html body .blog-card.blog-card p.p {
  color: var(--text-light) !important;
}
html body .blog-card.blog-card .blog-card__meta.blog-card__meta.blog-card__meta,
html body .blog-card.blog-card time.time {
  color: var(--text-muted) !important;
}

/* ---- CTA SECTIONS (gardent fond sombre, texte blanc) ---- */
html body section.cta-section.cta-section.cta-section,
html body section.cta-banner.cta-banner.cta-banner,
html body section.cta-app.cta-app.cta-app {
  color: #fff !important;
}
html body section.cta-section.cta-section h2,
html body section.cta-section.cta-section h3,
html body section.cta-section.cta-section p,
html body section.cta-section.cta-section span,
html body section.cta-banner.cta-banner h2,
html body section.cta-banner.cta-banner h3,
html body section.cta-banner.cta-banner p,
html body section.cta-banner.cta-banner span,
html body section.cta-app.cta-app h2,
html body section.cta-app.cta-app h3,
html body section.cta-app.cta-app p,
html body section.cta-app.cta-app span {
  color: #fff !important;
}

/* ---- CATCH-ALL pour h2/h3/p dans sections light (hors hero/cta) ---- */
html body > section.section.section:not(.hero):not(.image-break):not(.cta-section):not(.cta-banner):not(.cta-app) h2.h2,
html body > section.section.section:not(.hero):not(.image-break):not(.cta-section):not(.cta-banner):not(.cta-app) h3.h3 {
  color: var(--text) !important;
}
html body > section.section.section:not(.hero):not(.image-break):not(.cta-section):not(.cta-banner):not(.cta-app) p.p,
html body > section.section.section:not(.hero):not(.image-break):not(.cta-section):not(.cta-banner):not(.cta-app) li.li {
  color: var(--text-light) !important;
}

/* ================================================================
   NUCLEAR CONTRAST FIXES — v4 (2026-04-19 pm)
   CTA banners (bg image) inside section--surface + btn--white
   ================================================================ */

/* CTA banner avec background image (cave) — ALL texts in WHITE */
html body section.section--surface .cta-banner.cta-banner,
html body section.section--surface .cta-banner--image.cta-banner--image,
html body .cta-banner.cta-banner.cta-banner,
html body .cta-banner--image.cta-banner--image.cta-banner--image {
  color: #fff !important;
}
html body section.section--surface.section--surface .cta-banner.cta-banner.cta-banner h2,
html body section.section--surface.section--surface .cta-banner.cta-banner.cta-banner h3,
html body section.section--surface.section--surface .cta-banner.cta-banner.cta-banner p,
html body section.section--surface.section--surface .cta-banner.cta-banner.cta-banner span,
html body section.section--surface.section--surface .cta-banner.cta-banner.cta-banner li,
html body section.section--surface.section--surface .cta-banner.cta-banner.cta-banner em,
html body section.section--surface.section--surface .cta-banner--image.cta-banner--image.cta-banner--image h2,
html body section.section--surface.section--surface .cta-banner--image.cta-banner--image.cta-banner--image h3,
html body section.section--surface.section--surface .cta-banner--image.cta-banner--image.cta-banner--image p,
html body section.section--surface.section--surface .cta-banner--image.cta-banner--image.cta-banner--image span,
html body section.section--surface.section--surface .cta-banner--image.cta-banner--image.cta-banner--image em,
html body .cta-banner.cta-banner.cta-banner.cta-banner h2,
html body .cta-banner.cta-banner.cta-banner.cta-banner h3,
html body .cta-banner.cta-banner.cta-banner.cta-banner p,
html body .cta-banner.cta-banner.cta-banner.cta-banner span,
html body .cta-banner.cta-banner.cta-banner.cta-banner li {
  color: #fff !important;
}

/* em "idéale" in amber inside CTA banner → keep amber */
html body section.section--surface .cta-banner.cta-banner h2 em,
html body .cta-banner.cta-banner.cta-banner h2 em,
html body .cta-banner--image.cta-banner--image h2 em {
  color: var(--amber) !important;
}

/* btn--white : fond blanc, texte wine (pas blanc sur blanc) */
html body .btn.btn--white.btn--white,
html body a.btn.btn--white.btn--white,
html body button.btn.btn--white.btn--white {
  background: #fff !important;
  color: var(--wine) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
}
html body .btn.btn--white.btn--white:hover,
html body a.btn.btn--white.btn--white:hover {
  background: var(--wine) !important;
  color: #fff !important;
}

/* Float CTA — bouton flottant bottom-right sur toutes les pages */
html body a.float-cta,
html body .float-cta {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 100 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  background: var(--wine) !important;
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 2px 8px rgba(155,44,61,0.3) !important;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease) !important;
  max-width: calc(100vw - 40px) !important;
}
html body a.float-cta:hover,
html body .float-cta:hover {
  transform: translateY(-2px) !important;
  background: var(--wine-dark) !important;
  color: #fff !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 4px 12px rgba(155,44,61,0.4) !important;
}
html body .float-cta .float-cta__icon,
html body .float-cta .float-cta__arrow,
html body .float-cta .float-cta__text {
  color: #fff !important;
}
html body .float-cta .float-cta__icon {
  font-size: 1.1em !important;
}
@media (max-width: 600px) {
  html body a.float-cta,
  html body .float-cta {
    bottom: 14px !important;
    right: 14px !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.75rem !important;
  }
}

/* Hero padding-top : safety margin pour que le badge reste sous la nav */
html body .hero.hero.hero {
  padding-top: clamp(90px, 10vw, 140px) !important;
}

/* Testimonials — quote texte sombre sur carte blanche */
html body .testimonial-card.testimonial-card.testimonial-card,
html body .card.testimonial-card.testimonial-card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}
html body .testimonial-card.testimonial-card .testimonial-card__quote.testimonial-card__quote,
html body .testimonial-card.testimonial-card p.testimonial-card__quote,
html body .testimonial-card.testimonial-card p {
  color: var(--text) !important;
}
html body .testimonial-card.testimonial-card .testimonial-card__name.testimonial-card__name {
  color: var(--text) !important;
}
html body .testimonial-card.testimonial-card .testimonial-card__role.testimonial-card__role {
  color: var(--text-muted) !important;
}
html body .testimonial-card.testimonial-card .testimonial-card__avatar.testimonial-card__avatar {
  background: var(--wine) !important;
  color: #fff !important;
}
html body .testimonial-card.testimonial-card .testimonial-card__stars {
  color: var(--amber) !important;
}

/* Hero badge : rose clair (visible sur hero sombre), pas wine-sur-wine */
html body .hero.hero .hero__badge.hero__badge.hero__badge {
  background: rgba(155, 44, 61, 0.25) !important;
  color: #f0c0c5 !important;
  border: 1px solid rgba(232, 160, 168, 0.4) !important;
}
html body .hero.hero .hero__badge.hero__badge.hero__badge .hero__badge-dot {
  background: #e8a0a8 !important;
  box-shadow: 0 0 8px rgba(232, 160, 168, 0.6) !important;
}

/* cta-overlay darken pour assurer contraste texte blanc sur image */
html body .cta-banner--image.cta-banner--image .cta-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.65) 100%) !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  z-index: 0 !important;
}
html body .cta-banner--image.cta-banner--image > * {
  position: relative !important;
  z-index: 1 !important;
}

/* ================================================================
   PAGINATION FIXES — v5 (2026-04-19 pm)
   ================================================================ */

/* /vins/ hub: filter-btn.active white-on-white bug (bg override too greedy) */
html body .pagination .filter-btn.active.active,
html body .pagination .filter-btn.active,
html body .pagination span.filter-btn.active {
  background: var(--wine) !important;
  color: #fff !important;
  border-color: var(--wine) !important;
}

/* Hover state — keep wine subtle */
html body .pagination .filter-btn:not(.active):hover {
  border-color: var(--wine) !important;
  color: var(--wine) !important;
}

/* /blog/ pagination: layout flex + active state clear */
html body .pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.5rem !important;
  justify-content: center !important;
  margin: var(--space-xl) 0 !important;
}
html body .pagination .pag-btn,
html body .pagination .pag-btn:not(.pag-btn--active) {
  background: #fff !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  min-width: 38px !important;
  transition: all 0.2s var(--ease) !important;
}
html body .pagination .pag-btn:hover {
  border-color: var(--wine) !important;
  color: var(--wine) !important;
}
html body .pagination .pag-btn.pag-btn--active,
html body .pagination .pag-btn--active {
  background: var(--wine) !important;
  color: #fff !important;
  border-color: var(--wine) !important;
  cursor: default !important;
}
html body .pagination .pag-info {
  color: var(--text-muted) !important;
  font-size: 0.813rem !important;
  margin-left: auto !important;
  padding-left: var(--space-md) !important;
  padding-right: 0 !important;
  white-space: nowrap !important;
  width: auto !important;
  height: auto !important;
  border: none !important;
  background: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  font-weight: 500 !important;
}
@media (max-width: 600px) {
  html body .pagination .pag-info {
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: var(--space-sm) !important;
  }
}

/* Stats bar /vins/ — nuclear overrides (class repetition to beat .section--surface span rules) */
html body .vins-stats.vins-stats .vins-stats__num.vins-stats__num {
  color: #1a1612 !important;
}
html body .vins-stats.vins-stats .vins-stats__num--amber.vins-stats__num--amber {
  color: #a66d1c !important;
}
html body .vins-stats.vins-stats .vins-stats__num--wine.vins-stats__num--wine {
  color: #9b2c3d !important;
}
html body .vins-stats.vins-stats .vins-stats__label.vins-stats__label {
  color: #6b6560 !important;
}
html body .vins-stats.vins-stats .vins-stats__cell.vins-stats__cell {
  background: rgba(0, 0, 0, 0.04) !important;
}
html body .vins-stats.vins-stats .vins-stats__cell--promo.vins-stats__cell--promo {
  background: rgba(155, 44, 61, 0.08) !important;
}

/* Region SEO block on /vins/{region}/ — nuclear overrides */
html body .region-section__title.region-section__title { color: #1a1612 !important; }
html body .region-top-card.region-top-card { background: rgba(0,0,0,0.04) !important; border-color: rgba(0,0,0,0.08) !important; }
html body .region-top-card .region-top-card__name.region-top-card__name { color: #1a1612 !important; }
html body .region-top-card .region-top-card__reward.region-top-card__reward { color: #6b6560 !important; }
html body .region-top-card .region-top-card__rating.region-top-card__rating { color: #a66d1c !important; }
html body .region-price-ranges.region-price-ranges { color: #4a4640 !important; }
html body .region-chip.region-chip { background: rgba(0,0,0,0.05) !important; border-color: rgba(0,0,0,0.1) !important; color: #4a4640 !important; }
html body .region-chip--link.region-chip--link { background: rgba(155,44,61,0.1) !important; border-color: rgba(155,44,61,0.22) !important; color: #9b2c3d !important; }

/* /vins/{region}/ — catch-all for remaining inline dark-theme styles inside .section--dark */
html body .section--dark [style*="color:var(--dark-text)"],
html body .section--dark [style*="color: var(--dark-text)"] {
  color: #1a1612 !important;
}
html body .section--dark [style*="color:rgba(255,255,255"],
html body .section--dark [style*="color: rgba(255, 255, 255"] {
  color: #4a4640 !important;
}
html body .section--dark [style*="background:rgba(255,255,255"],
html body .section--dark [style*="background: rgba(255, 255, 255"] {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
html body .section--dark [style*="background:rgba(155,44,61"] {
  background: rgba(155, 44, 61, 0.1) !important;
  border-color: rgba(155, 44, 61, 0.22) !important;
}


/* AUDIT FIX — force dark text on paragraphs not in hero/dark sections/CTA-banners/comp-cta/vert-cta */
html body section:not(.hero):not([class*="dark"]):not(.comp-hero):not(.vert-hero):not(.hub-hero):not(.price-dist-section):not([style*="background: #1"]):not([style*="background:#1"]):not([style*="background: url"]) :not(.cta-banner):not(.cta-banner--image):not(.comp-cta):not(.vert-cta):not(.comp-cta *):not(.vert-cta *):not(.cta-banner *):not(.cta-banner--image *) > p:not(.cta-banner p):not(.cta-banner--image p):not(.comp-cta p):not(.vert-cta p),
html body section:not(.hero):not([class*="dark"]):not(.comp-hero):not(.vert-hero):not(.hub-hero):not(.price-dist-section):not([style*="background: #1"]):not([style*="background:#1"]):not([style*="background: url"]) :not(.cta-banner):not(.cta-banner--image):not(.comp-cta):not(.vert-cta) > li:not(.cta-banner li):not(.cta-banner--image li):not(.comp-cta li):not(.vert-cta li) {
  color: #3a3530 !important;
}
/* Text inside CTA banners / comp-cta / vert-cta with image bg stays white */
html body .cta-banner--image p, html body .cta-banner--image h2, html body .cta-banner--image h3,
html body .cta-banner p:not(.cta-banner--image p), html body .cta-banner h2:not(.cta-banner--image h2),
html body section .comp-cta.comp-cta h2, html body section .comp-cta.comp-cta h3,
html body section .comp-cta.comp-cta p, html body section .comp-cta.comp-cta li, html body section .comp-cta.comp-cta span,
html body section .vert-cta.vert-cta h2, html body section .vert-cta.vert-cta h3,
html body section .vert-cta.vert-cta p, html body section .vert-cta.vert-cta li, html body section .vert-cta.vert-cta span {
  color: #fff !important;
  opacity: 1;
}
html body section .comp-cta.comp-cta.comp-cta p,
html body section .vert-cta.vert-cta.vert-cta p {
  color: rgba(255, 255, 255, 0.92) !important;
}


/* AUDIT FIX — prevent double primary CTAs (hide float-CTA on pages with their own strong CTA) */
body[data-page-type="wine-fiche"] .float-cta,
body[data-page-type="vertical"] .float-cta,
body[data-page-type="comparatif"] .float-cta,
body[data-page-type="listing"] .float-cta {
  display: none !important;
}


/* AUDIT FIX FINAL — CTA banner text + overlay + comp-cta readability */
html body .cta-banner--image.cta-banner--image.cta-banner--image.cta-banner--image p,
html body .cta-banner--image.cta-banner--image.cta-banner--image.cta-banner--image h2,
html body .cta-banner--image.cta-banner--image.cta-banner--image.cta-banner--image h3 {
  color: #fff !important;
  opacity: 1 !important;
}
html body .cta-banner.cta-banner.cta-banner.cta-banner p,
html body .cta-banner.cta-banner.cta-banner.cta-banner h2,
html body .cta-banner.cta-banner.cta-banner.cta-banner h3 {
  color: #fff !important;
  opacity: 1 !important;
}
html body .cta-overlay.cta-overlay.cta-overlay {
  background: rgba(12, 10, 9, 0.65) !important;
  z-index: 0 !important;
}
/* comp-cta (comparatif pages) is already handled via inline styles + class repetition, but reinforce here */
html body .comp-cta.comp-cta.comp-cta.comp-cta p,
html body .comp-cta.comp-cta.comp-cta.comp-cta span,
html body .comp-cta.comp-cta.comp-cta.comp-cta li {
  color: rgba(255, 255, 255, 0.92) !important;
}
