/* ============================================
   AIXWatch — Custom CSS Overrides
   Complements theme.json + Kadence palette
   ============================================ */

/* --- CSS Custom Properties (fallback) --- */
:root {
  --aix-navy:            #182545;
  --aix-navy-light:      #182545;
  --aix-orange:          #EB491D;
  --aix-orange-hover:    #C94120;
  --aix-green:           #28A745;
  --aix-yellow:          #FFC107;
  --aix-bg-light:        #D0DAF0;
  --aix-border:          #D0DAF0;
  --aix-text:            #182545;
  --aix-text-secondary:  #6C757D;
  --aix-footer:          #182545;
}

/* --- Hide title on static front page but keep hero section for spacing --- */
.home .entry-title,
.home .page-title,
.home .entry-header {
  display: none;
}

.home .content-wrap,
.home .site-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.home .entry-content-wrap,
.home .entry.content-bg {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.home .content-bg {
  background: transparent !important;
  box-shadow: none !important;
}

/* --- Stats bar vertical alignment --- */
.home .wp-block-group.is-horizontal.is-nowrap {
  align-items: flex-start !important;
}

.home .wp-block-group.is-horizontal.is-nowrap > .wp-block-group {
  flex: 1;
  min-width: 0;
}

/* ── HEADER ── */

/* Fond + blur façon v3-final */
.site-header,
#masthead,
#main-header,
.site-header .header-main-container,
.site-header .header-top-container,
.site-header .header-bottom-container,
#masthead .header-main-wrap {
  background: rgba(24, 37, 69, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  height: 68px !important;
}

/* Line 1 — Figma exact color #813731 */
#masthead,
#masthead #main-header,
#masthead .site-header-wrap,
.site-header,
.site-header-inner-wrap,
.site-header-upper-wrap,
.site-header-upper-inner-wrap,
.site-main-header-wrap {
  border-bottom: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* Line 1 : sur le conteneur interne Kadence qui n'est pas clippé par la WP admin bar */
.site-main-header-wrap.site-header-row-container {
  border-bottom: 1px solid #813731 !important;
}

/* Logo texte : /AIX·watch> — monospace orange, pas trop espacé */
.site-header .site-title,
.site-header .site-title a,
.site-branding .site-title,
.site-branding .site-title a,
.site-header .site-title .brand,
.site-header .aix-logo-slash,
.site-header .aix-logo-dot,
.site-header .aix-logo-chevron {
  font-family: 'IBM Plex Mono', monospace !important;
  font-weight: 600 !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.02em !important;
  color: var(--aix-orange) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  word-spacing: 0 !important;
}

/* Supprimer tout espacement entre les spans du logo */
.site-header .site-title a,
.site-header .site-title .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  letter-spacing: 0.02em !important;
}

.site-branding {
  flex: 0 0 auto !important;
}

/* Si logo image : limiter la hauteur */
.site-header .custom-logo {
  max-height: 36px !important;
  width: auto !important;
}

/* Nav centré (main_center dans Kadence) */
.site-header .header-main-inner,
.site-header .header-main-container .header-main-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.site-header .header-center-widget-area {
  flex: 1 !important;
  display: flex !important;
  justify-content: center !important;
}

/* Nav links : monospace, uppercase, muted */
.header-navigation .menu > li > a,
.kadence-navigation .menu > li > a {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #7A90B8 !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
  padding: 0 0.5rem !important;
}

.header-navigation .menu > li > a:hover,
.header-navigation .menu > li.current-menu-item > a,
.kadence-navigation .menu > li > a:hover,
.kadence-navigation .menu > li.current-menu-item > a {
  color: var(--aix-text) !important;
}

/* Supprimer icônes my-account et cart du menu */
.site-header .header-account-button,
.site-header .kadence-woo-header-account,
.site-header .woo-header-account-wrap,
.site-header [class*="account"] svg,
.site-header [class*="account"] .account-icon,
.header-widget-area .woocommerce-account-icon,
#menu-item-107,
#menu-item-108,
.site-header .menu-item:has(a[href*="/my-account/"]:not(.aix-signin-btn)),
.site-header .menu-item:has(a[href*="/cart/"]) {
  display: none !important;
}

/* Bouton Sign In (HTML widget) */
.site-header .aix-signin-btn,
.header-html-inner a.aix-signin-btn {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--aix-orange) !important;
  background: transparent !important;
  border: 1px solid rgba(235, 73, 29, 0.35) !important;
  border-radius: 3px !important;
  padding: 0.5rem 1.3rem !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: background 0.2s, border-color 0.2s !important;
  white-space: nowrap !important;
}

.site-header .aix-signin-btn:hover,
.header-html-inner a.aix-signin-btn:hover {
  background: rgba(235, 73, 29, 0.12) !important;
  border-color: var(--aix-orange) !important;
}

/* Bouton Free Trial (solid) */
.header-button .kb-button,
.site-header .kb-btn {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  background: var(--aix-orange) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 3px !important;
  padding: 0.5rem 1.3rem !important;
  transition: background 0.2s !important;
  white-space: nowrap !important;
}

.header-button .kb-button:hover {
  background: var(--aix-orange-hover) !important;
}

/* Espace entre Sign In et Free Trial */
.site-header .header-right-widget-area {
  display: flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
}

/* Mobile */
@media (max-width: 900px) {
  .site-header .header-navigation,
  .site-header .header-button,
  .site-header .header-html-inner {
    display: none !important;
  }
  #masthead {
    height: auto !important;
    min-height: 68px !important;
  }
}

/* --- Buttons global --- */
.wp-block-button__link,
.wc-block-components-button,
.button,
input[type="submit"] {
  background-color: var(--aix-orange) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-family: 'IBM Plex Sans', sans-serif !important;
  border: none !important;
  transition: background-color 0.2s ease;
}

.wp-block-button__link:hover,
.wc-block-components-button:hover,
.button:hover,
input[type="submit"]:hover {
  background-color: var(--aix-orange-hover) !important;
  color: #fff !important;
}

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--aix-navy) !important;
  border: 2px solid var(--aix-border) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--aix-orange) !important;
  color: var(--aix-orange) !important;
  background: transparent !important;
}

/* --- Links --- */
a {
  color: var(--aix-orange);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--aix-orange-hover);
}

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--aix-navy);
  font-family: 'IBM Plex Sans', sans-serif;
}

/* --- Code blocks (terminal style) --- */
pre,
code,
.wp-block-code code {
  font-family: 'IBM Plex Mono', monospace !important;
}

.wp-block-code,
pre.wp-block-preformatted {
  background: var(--aix-navy) !important;
  color: var(--aix-orange) !important;
  border-radius: 12px !important;
  padding: 24px !important;
  border: none !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  overflow-x: auto;
}

/* --- Sections alternating background --- */
.aix-section-light {
  background-color: var(--aix-bg-light);
}

.aix-section-dark {
  background-color: var(--aix-navy);
  color: #fff;
}

.aix-section-dark h2,
.aix-section-dark h3 {
  color: #fff;
}

.aix-section-dark p {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Cards --- */
.aix-card {
  background: #fff;
  border: 1px solid var(--aix-border);
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow 0.2s ease;
}

.aix-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* --- Pricing cards --- */
.aix-pricing-featured {
  border-color: var(--aix-orange) !important;
  box-shadow: 0 4px 20px rgba(230, 82, 44, 0.15);
}

/* --- Trust badges --- */
.aix-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(230, 82, 44, 0.1);
  color: var(--aix-orange);
}

/* --- Checkmark lists --- */
.aix-checklist {
  list-style: none;
  padding: 0;
}

.aix-checklist li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: var(--aix-text);
  font-size: 15px;
}

.aix-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--aix-green);
  font-weight: 700;
}

/* --- Stats bar --- */
.aix-stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--aix-navy);
}

.aix-stat-number span {
  color: var(--aix-orange);
}

.aix-stat-label {
  font-size: 14px;
  color: var(--aix-text-secondary);
}

/* --- WooCommerce overrides --- */
.woocommerce .price,
.woocommerce-Price-amount {
  color: var(--aix-navy) !important;
  font-weight: 700;
}

.woocommerce .onsale {
  background: var(--aix-orange) !important;
  color: #fff !important;
  border-radius: 6px !important;
}

.woocommerce .add_to_cart_button,
.woocommerce .single_add_to_cart_button {
  background-color: var(--aix-orange) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.woocommerce .add_to_cart_button:hover,
.woocommerce .single_add_to_cart_button:hover {
  background-color: var(--aix-orange-hover) !important;
}

.woocommerce-message {
  border-top-color: var(--aix-green) !important;
}

.woocommerce-info {
  border-top-color: var(--aix-navy) !important;
}

/* --- Footer (custom) --- */
/* ── FOOTER ── */

/* Masquer le footer Kadence par défaut */
.site-footer,
#colophon,
.site-footer .site-footer-wrap,
.site-footer .footer-widget-area {
  background-color: var(--aix-navy) !important;
}
.site-footer .site-footer-wrap,
.site-footer .footer-widget-area {
  display: none !important;
}

/* Footer custom — fidèle à v3-final */
.aixwatch-footer {
  background: var(--aix-navy);
  border-top: 1px solid rgba(235, 73, 29, 0.18);
  color: var(--aix-bg-light); /* #D0DAF0 */
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  line-height: 1.65;
}

.aixwatch-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 3rem 0;
}

/* Grid 4 colonnes comme la référence */
.aixwatch-footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 900px) {
  .aixwatch-footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .aixwatch-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .aixwatch-footer-columns {
    grid-template-columns: 1fr;
  }
}

/* Brand column : logo + tagline + social */
.aixwatch-footer-logo {
  margin-bottom: 0.8rem;
}

.aixwatch-footer-sitename {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--aix-orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

/* Logo spans — même style header */
.aix-logo-slash,
.aix-logo-dot,
.aix-logo-chevron {
  color: var(--aix-orange);
  font-family: 'IBM Plex Mono', monospace;
}

.aix-logo-chevron {
  animation: aix-blink 1.2s step-end infinite;
}

@keyframes aix-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.aixwatch-footer-tagline {
  font-size: 0.85rem;
  color: var(--aix-bg-light);
  margin: 0.8rem 0 0;
  line-height: 1.65;
  max-width: 240px;
}

/* Social icons */
.aixwatch-footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.aixwatch-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7A90B8 !important;
  transition: color 0.2s;
  text-decoration: none !important;
}

.aixwatch-footer-social a:hover {
  color: var(--aix-text) !important;
}

/* Colonnes liens */
.aixwatch-footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aix-orange) !important;
  margin: 0 0 1.2rem;
}

.aixwatch-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.aixwatch-footer-col ul li {
  margin: 0;
}

.aixwatch-footer-col ul li a {
  font-size: 0.85rem;
  color: var(--aix-bg-light) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.aixwatch-footer-col ul li a:hover {
  color: var(--aix-text) !important;
}

/* Divider */
.aixwatch-footer-divider {
  height: 0;
  border: none;
  border-top: 1px solid rgba(235, 73, 29, 0.18);
  margin: 2rem 0 0;
}

/* Disclaimer */
.aixwatch-footer-disclaimer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 3rem 0;
}

.aixwatch-footer-disclaimer p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #7A90B8 !important;
  line-height: 1.7;
  margin: 0;
}

/* Bottom bar */
.aixwatch-footer-bottom {
  border-top: 1px solid rgba(235, 73, 29, 0.18);
  max-width: 1400px;
  margin: 2rem auto 0;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.aixwatch-footer-copyright {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #7A90B8 !important;
  margin: 0;
}

.aixwatch-footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aixwatch-footer-legal a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #7A90B8 !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.aixwatch-footer-legal a:hover {
  color: var(--aix-text) !important;
}

.aixwatch-footer-legal .sep {
  color: #7A90B8;
  font-size: 0.72rem;
}

@media (max-width: 600px) {
  .aixwatch-footer-inner,
  .aixwatch-footer-disclaimer,
  .aixwatch-footer-bottom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .aixwatch-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Utility: Hero section --- */
.aix-hero {
  background: linear-gradient(135deg, #182545 0%, #182545 50%, #182545 100%);
  padding: 100px 60px 80px;
  text-align: center;
}

.aix-hero h1 {
  color: #fff !important;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
}

.aix-hero h1 span {
  color: var(--aix-orange);
}

.aix-hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 20px;
  font-weight: 300;
}

/* Fix header HTML widget alignment — remove <p> margin, align items inline */
.header-html-inner p {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.header-html-inner {
  display: flex !important;
  align-items: center !important;
}
