/*
Theme Name: ADEMOVA Theme
Theme URI: https://ademova.fr
Description: Thème WordPress sur-mesure ultra-performant pour la landing page ADEMOVA.
Version: 1.0
Author: ADEMOVA
Author URI: https://ademova.fr
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-menu, full-width-template
*/

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

:root {
  /* Colors */
  --primary: #2563eb;
  --primary-rgb: 37, 99, 235;
  --primary-hover: #1d4ed8;

  --success: #10b981;
  --success-rgb: 16, 185, 129;
  --success-hover: #059669;

  --accent: #4f46e5;
  --accent-rgb: 79, 70, 229;
  --accent-hover: #4338ca;

  --dark: #0f172a;
  --text: #334155;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --white: #ffffff;
  --border: #e2e8f0;
  --border-light: rgba(226, 232, 240, 0.6);

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------
   Reset & Base Styles
   ---------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

ul {
  list-style: none;
}

/* ----------------------------------
   Layout Utilities
   ---------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-bg {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-badge.success-badge {
  background-color: rgba(16, 185, 129, 0.08);
  color: var(--success);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-light);
}

/* ----------------------------------
   Buttons & Inputs
   ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-success {
  background-color: var(--success);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
  background-color: var(--success-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg-light);
  border-color: var(--text-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background-color: rgba(15, 23, 42, 0.04);
}

.input,
.editor-styles-wrapper .input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: var(--transition);
}

.editor-styles-wrapper .contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ----------------------------------
   Header / Floating Glass Navbar
   ---------------------------------- */
.header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  transition: var(--transition);
}

.nav-wrapper {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: var(--radius-full);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--white);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.logo-sub {
  font-size: 8px;
  color: var(--text-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu li {
  margin: 0;
  padding: 0;
}

.nav-link,
.nav-menu li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

.nav-link:hover,
.nav-menu li a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--dark);
}

/* ----------------------------------
   Hero Section
   ---------------------------------- */
.hero {
  padding: 160px 0 96px;
  background: var(--hero-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  color: var(--dark);
  line-height: 1.15;
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto 20px;
  letter-spacing: -0.02em;
}

.hero h1 span.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 17px;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.siret-search-container {
  max-width: 520px;
  margin: 0 auto 40px;
  background: var(--bg-white);
  padding: 8px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.siret-search-row {
  display: flex;
  gap: 8px;
}

.siret-search-row input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 16px;
  outline: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: transparent;
}

.siret-search-row input::placeholder {
  color: var(--text-light);
  letter-spacing: normal;
}

.siret-search-row button {
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
}

.siret-hint {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.stat-icon {
  font-size: 24px;
}

.stat-text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.3;
}

.stat-text strong {
  display: block;
  font-size: 18px;
  color: var(--dark);
  font-weight: 700;
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 48px;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: var(--transition);
}

.partner-logos:hover {
  opacity: 0.8;
  filter: grayscale(0%);
}

.partner-logo {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ----------------------------------
   Solutions Section
   ---------------------------------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 16px;
}

.solutions-grid:has(> .wp-block-group__inner-container) {
  display: block !important;
}

.solutions-grid>.wp-block-group__inner-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
}

.solution-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.15);
}

.solution-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl), 0 10px 30px rgba(37, 99, 235, 0.05);
}

.solution-card.featured::before {
  content: 'Populaire';
  position: absolute;
  top: 14px;
  right: -28px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 28px;
  transform: rotate(45deg);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.solution-card.vsme-card:hover {
  border-color: rgba(16, 185, 129, 0.25);
}

.solution-card.csrd-card:hover {
  border-color: rgba(79, 70, 229, 0.25);
}

.sol-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 0 24px 0 !important;
}

.duerp-icon {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

.vsme-icon {
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
}

.csrd-icon {
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent);
}

.sol-name:not([class*="has-"]) {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.sol-tagline:not([class*="has-"]) {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
  min-height: 48px;
  line-height: 1.5;
}

.sol-price-box {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  margin-bottom: 24px;
}

.sol-price-label:not([class*="has-"]) {
  font-size: 12px;
  color: var(--text-light);
  display: block;
}

.sol-price:not([class*="has-"]) {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.sol-price span:not([class*="has-"]) {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}

.sol-price-desc:not([class*="has-"]) {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.4;
}

.sol-features {
  margin-bottom: 32px;
  flex: 1;
  list-style: none !important;
  padding-left: 0 !important;
}

.sol-features li:not([class*="has-"]) {
  font-size: 13px;
  margin-bottom: 12px;
  position: relative;
  padding-left: 28px !important;
  color: var(--text);
  line-height: 1.4;
}

.sol-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background-color: var(--primary);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z' clip-rule='evenodd'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z' clip-rule='evenodd'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.vsme-card .sol-features li::before {
  background-color: var(--success);
}

.csrd-card .sol-features li::before {
  background-color: var(--accent);
}

.sol-features li span.feature-link {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.solutions-grid .wp-block-buttons {
  margin-top: auto;
}

.solution-card > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.solution-card > .wp-block-group__inner-container > .wp-block-buttons {
  margin-top: auto;
}

.solutions-grid .wp-block-button {
  width: 100%;
}

.solutions-grid .wp-block-button__link {
  width: 100%;
  text-align: center;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 24px !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none !important;
  border: 1px solid transparent !important;
}

/* DUERP Button */
.duerp-card .wp-block-button__link {
  background-color: var(--primary) !important;
  color: var(--white) !important;
}

.duerp-card .wp-block-button__link:hover {
  background-color: var(--primary-hover) !important;
  color: var(--white) !important;
}

/* VSME Button - Green */
.vsme-card .wp-block-button__link {
  background-color: var(--success) !important;
  color: var(--white) !important;
}

.vsme-card .wp-block-button__link:hover {
  background-color: var(--success-hover) !important;
  color: var(--white) !important;
}

/* CSRD Button - Outlined */
.csrd-card .wp-block-button__link {
  background-color: transparent !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.csrd-card .wp-block-button__link:hover {
  background-color: var(--primary) !important;
  color: var(--white) !important;
}

/* ----------------------------------
   How it Works Section
   ---------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  width: 100%;
}

.wp-block-group.steps-grid {
  display: block;
}

.steps-grid>.wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
  max-width: 100% !important;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  /* Centered exactly at half of 56px height */
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--success) 50%, var(--accent) 100%);
  z-index: 0;
  opacity: 0.15;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--bg-white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 auto 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  line-height: 1;
  /* Reset line-height to center numbers vertically */
}

.step-card:hover .step-number {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
  transform: scale(1.1);
}

.step-card:nth-child(2):hover .step-number {
  border-color: var(--success);
  background: var(--success);
  color: var(--white);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.step-card:nth-child(3):hover .step-number {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.3);
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-light);
  max-width: 280px;
  margin: 0 auto;
}

/* ----------------------------------
   Platform Advantages (Why Us)
   ---------------------------------- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.advantages-grid:has(> .wp-block-group__inner-container) {
  display: block !important;
}

.advantages-grid>.wp-block-group__inner-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
}

.advantage-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.advantage-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.adv-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  margin: 0 !important;
}

.adv-content {
  flex: 1;
}

.adv-title:not([class*="has-"]) {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.adv-desc:not([class*="has-"]) {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ----------------------------------
   Blog Section
   ---------------------------------- */
.blog-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}

.filter-btn:hover {
  background: var(--bg-light);
  border-color: var(--text-light);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.15);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.1);
}

.blog-img-placeholder {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
  overflow: hidden;
}

.blog-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.03));
  pointer-events: none;
}

.blog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.blog-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-read-time {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
}

.blog-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 10px;
  min-height: 44px;
}

.blog-excerpt {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.blog-date {
  font-size: 11px;
  color: var(--text-light);
}

.blog-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ----------------------------------
   FAQ Section
   ---------------------------------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 16px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

/* Gutenberg Editor Overrides to keep answers visible while editing */
.editor-styles-wrapper .faq-content,
.block-editor-block-list__block .faq-content {
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.editor-styles-wrapper .faq-inner,
.block-editor-block-list__block .faq-inner {
  padding: 12px 24px 20px;
}

.faq-item:hover {
  border-color: var(--text-light);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
  color: var(--dark);
  font-size: 15px;
  gap: 16px;
}

.faq-icon {
  font-size: 18px;
  color: var(--text-light);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-light);
  line-height: 0;
  /* Fix centering for the plus character */
  padding-bottom: 5px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
}

.faq-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* ----------------------------------
   Contact Section
   ---------------------------------- */
.contact-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

/* Gutenberg Grid Alignment for Contact */
.editor-styles-wrapper .contact-wrapper {
  display: block !important;
}

.contact-wrapper:not(:has(> .wp-block-group__inner-container)),
.contact-wrapper > .wp-block-group__inner-container,
.contact-wrapper > .block-editor-inner-blocks > .block-editor-block-list__layout {
  display: grid !important;
  grid-template-columns: 5fr 7fr !important;
  gap: 48px !important;
}

@media (max-width: 768px) {
  .contact-wrapper:not(:has(> .wp-block-group__inner-container)),
  .contact-wrapper > .wp-block-group__inner-container,
  .contact-wrapper > .block-editor-inner-blocks > .block-editor-block-list__layout {
    grid-template-columns: 1fr !important;
  }
}

.contact-info {
  background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
  color: var(--white);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.contact-info::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.contact-info-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-info-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  line-height: 1.5;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  font-size: 20px;
  margin-top: 2px;
}

.contact-detail-content h4 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-detail-content p {
  font-size: 14px;
  font-weight: 500;
}

.contact-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 40px;
  line-height: 1.4;
}

.contact-form-container {
  padding: 48px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* ----------------------------------
   Contact Form 7 Overrides
   ---------------------------------- */
#cf7-submit {
  width: 100%;
}
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.wpcf7-spinner {
  display: none;
}
.wpcf7-response-output {
  border-radius: var(--radius-md) !important;
  margin: 20px 0 0 0 !important;
  font-size: 14px;
}

/* ----------------------------------
   Footer
   ---------------------------------- */
.footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .logo-name {
  color: var(--white);
}

.footer-brand .logo-sub {
  color: rgba(255, 255, 255, 0.4);
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-title {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 13px;
}

.footer-link:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-link:hover {
  color: var(--white);
}

/* ----------------------------------
   Modals
   ---------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.modal-container {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal.open .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-white);
  z-index: 10;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-light);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg-light);
  color: var(--dark);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

/* Specific SIRET Modal styles */
.siret-loader-view {
  text-align: center;
  padding: 40px 0;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

.siret-results-view {
  display: none;
}

.company-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.company-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.company-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.company-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.company-detail-item {
  font-size: 13px;
}

.company-detail-item span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
}

.company-detail-item strong {
  color: var(--dark);
}

.diagnostic-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.diagnostic-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.diag-icon {
  font-size: 18px;
  margin-top: 1px;
}

.diag-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.diag-info p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
}

.diag-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 6px;
}

.badge-warning {
  background: #fef3c7;
  color: #d97706;
}

.badge-info {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

.siret-modal-footer {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.siret-modal-footer button {
  flex: 1;
}

/* Specific Blog Article Modal styles */
.modal-blog-article {
  max-width: 800px;
}

.article-header {
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
  margin: 12px 0;
}

.article-cat-tag {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
}

.article-title-large {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
}

.article-rich-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.article-rich-text p {
  margin-bottom: 16px;
}

.article-rich-text h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 28px 0 12px;
}

.article-rich-text ul,
.article-rich-text ol {
  margin: 0 0 20px 20px;
}

.article-rich-text li {
  margin-bottom: 8px;
}

.article-rich-text blockquote {
  border-left: 4px solid var(--primary);
  background: var(--bg-light);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
  font-style: italic;
}

.article-related-section {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 32px;
}

.article-related-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.article-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.article-related-grid .blog-card .blog-title {
  font-size: 14px;
  min-height: auto;
}

.article-related-grid .blog-card .blog-excerpt {
  display: none;
}

.article-related-grid .blog-card .blog-img-placeholder {
  height: 90px;
}

.article-related-grid .blog-card .blog-body {
  padding: 16px;
}

/* ----------------------------------
   Animations
   ---------------------------------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.2);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

/* ----------------------------------
   Gutenberg Editor Grid Alignment
   ---------------------------------- */
.editor-styles-wrapper .wp-block-group.container,
.editor-styles-wrapper .wp-block-group.container > .wp-block-group__inner-container,
.editor-styles-wrapper .wp-block-group.container > .block-editor-inner-blocks > .block-editor-block-list__layout {
  max-width: 1200px !important;
}

.editor-styles-wrapper .solutions-grid,
.editor-styles-wrapper .advantages-grid {
  display: block !important;
}

.solutions-grid>.wp-block-group__inner-container,
.solutions-grid>.block-editor-inner-blocks>.block-editor-block-list__layout {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
}

.advantages-grid>.wp-block-group__inner-container,
.advantages-grid>.block-editor-inner-blocks>.block-editor-block-list__layout {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
}

@media (max-width: 1024px) {

  .solutions-grid>.wp-block-group__inner-container,
  .solutions-grid>.block-editor-inner-blocks>.block-editor-block-list__layout,
  .advantages-grid>.wp-block-group__inner-container,
  .advantages-grid>.block-editor-inner-blocks>.block-editor-block-list__layout {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {

  .solutions-grid>.wp-block-group__inner-container,
  .solutions-grid>.block-editor-inner-blocks>.block-editor-block-list__layout,
  .advantages-grid>.wp-block-group__inner-container,
  .advantages-grid>.block-editor-inner-blocks>.block-editor-block-list__layout {
    grid-template-columns: 1fr !important;
  }
}

/* ----------------------------------
   Responsive Design
   ---------------------------------- */
@media (max-width: 1024px) {

  .solutions-grid,
  .solutions-grid>.wp-block-group__inner-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .solutions-grid .csrd-card,
  .solutions-grid>.wp-block-group__inner-container .csrd-card,
  .solutions-grid>.block-editor-inner-blocks>.block-editor-block-list__layout .csrd-card {
    grid-column: span 2 !important;
  }

  .advantages-grid,
  .advantages-grid>.wp-block-group__inner-container,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .header {
    top: 0;
  }

  .header .container {
    padding: 0;
  }

  .nav-wrapper {
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    /* Context for absolute positioning of nav-menu */
  }

  .nav-menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 20px;
    align-items: stretch;
    z-index: 1000;

    /* Smooth Slide Down and Fade In Animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }

  .nav-actions {
    display: none;
  }

  /* Style nav-actions only when it is inside nav-menu on mobile */
  .nav-menu .nav-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    width: 100%;
    position: static;
  }

  .nav-menu .nav-actions .btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 14px;
  }

  .hamburger {
    display: block;
  }

  .hero {
    padding: 120px 0 64px;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    gap: 20px;
  }

  .stat-item {
    width: 100%;
  }

  .siret-search-row {
    flex-direction: column;
  }

  .siret-search-row button {
    width: 100%;
  }

  .solutions-grid,
  .solutions-grid>.wp-block-group__inner-container {
    grid-template-columns: 1fr !important;
  }

  .solutions-grid .csrd-card,
  .solutions-grid>.wp-block-group__inner-container .csrd-card {
    grid-column: span 1 !important;
  }

  .steps-grid,
  .steps-grid>.wp-block-group__inner-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps-grid::before {
    display: none;
  }

  .advantages-grid,
  .advantages-grid>.wp-block-group__inner-container,
  .blog-grid {
    grid-template-columns: 1fr !important;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding: 32px;
  }

  .contact-form-container {
    padding: 32px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-legal-links {
    justify-content: center;
    width: 100%;
  }

  .article-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   SVG ICONS STYLING DEFINITIONS
   ========================================== */
.stat-icon svg,
.sol-icon svg,
.adv-icon svg,
.contact-detail-icon svg,
.diag-icon svg,
.tag-icon svg,
.footer-link svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  display: inline-block;
  vertical-align: middle;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.sol-icon svg {
  width: 32px;
  height: 32px;
}

.adv-icon svg {
  width: 24px;
  height: 24px;
}

.contact-detail-icon svg {
  width: 24px;
  height: 24px;
}

.diag-icon svg {
  width: 24px;
  height: 24px;
}

.tag-icon svg {
  width: 14px;
  height: 14px;
}

.footer-link svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   SIRET Search Modal
   ========================================================================== */
.ademova-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.ademova-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.ademova-modal {
  background: var(--surface, #ffffff);
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}
.ademova-modal-overlay.active .ademova-modal {
  transform: translateY(0);
}
.ademova-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.ademova-modal-close:hover {
  color: var(--text-color);
}
.ademova-modal-header {
  margin-bottom: 1.5rem;
}
.ademova-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}
.ademova-modal-company-info {
  background: var(--background);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}
.ademova-modal-company-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.ademova-modal-company-details {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.ademova-modal-form-group {
  margin-bottom: 1.5rem;
}
.ademova-modal-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}
.ademova-modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ademova-modal-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.ademova-modal-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.875rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.ademova-modal-submit:hover {
  background: var(--primary-hover);
}
.ademova-modal-submit:active {
  transform: translateY(1px);
}
.ademova-modal-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.ademova-modal-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  display: none;
}
.ademova-modal-message.error {
  display: block;
  background: #fee2e2;
  color: #b91c1c;
}
.ademova-modal-message.success {
  display: block;
  background: #dcfce7;
  color: #15803d;
}

/* ==========================================================================
   Standard Page Styling (CGV, CGU, Mentions)
   ========================================================================== */
.site-main:not(.landing-page-main) .container {
  max-width: 900px;
  padding-top: 60px;
  padding-bottom: 80px;
}

.site-main:not(.landing-page-main) p {
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.site-main:not(.landing-page-main) h1,
.site-main:not(.landing-page-main) h2,
.site-main:not(.landing-page-main) h3,
.site-main:not(.landing-page-main) h4 {
  color: var(--dark);
  font-family: var(--font-sans);
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 18px;
  line-height: 1.4;
}

.site-main:not(.landing-page-main) h1 { font-size: 32px; }
.site-main:not(.landing-page-main) h2 { font-size: 24px; }
.site-main:not(.landing-page-main) h3 { font-size: 20px; }

.site-main:not(.landing-page-main) ul,
.site-main:not(.landing-page-main) ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.site-main:not(.landing-page-main) li {
  margin-bottom: 12px;
  list-style: disc;
  color: var(--text);
}
/* Extra CSS append to style.css */
.site-main.blog-page-main .container,
.blog-page-container {
  max-width: 1320px !important;
  width: 92% !important;
  margin: 0 auto !important;
  padding-top: 20px !important;
  padding-bottom: 80px !important;
}

.blog-search-input {
  width: 100%;
  padding: 14px 44px 14px 22px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid #e2e8f0;
  border-radius: 99px;
  background: #ffffff;
  color: var(--dark, #0f172a);
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.blog-search-input:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.blog-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}

.blog-search-clear:hover {
  background: #f1f5f9;
  color: #0f172a;
}

#blog-page-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
}

@media (max-width: 1024px) {
  #blog-page-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  #blog-page-grid {
    grid-template-columns: 1fr !important;
  }
}

.pagination-wrapper {
  margin-top: 56px;
  margin-bottom: 20px;
}

.pagination-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  height: 44px !important;
  padding: 0 16px !important;
  border-radius: 99px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #334155 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03) !important;
  cursor: pointer !important;
}

.page-numbers:hover:not(.current) {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #16a34a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

.page-numbers.current {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35) !important;
}

.page-numbers.prev,
.page-numbers.next {
  padding: 0 20px !important;
  font-weight: 600 !important;
}
/* Hide category filter buttons on homepage blog section */
#blog .blog-filters,
.section#blog .blog-filters,
.landing-page-main #blog .blog-filters {
  display: none !important;
}