/**
 * Nova IP Design System - CMS Pages (Fullwidth Layout)
 * camera-videosurveillance.fr
 * Inspiré AJAX Systems - Sections fullwidth + containers
 */

/* ==========================================
   FULLWIDTH LAYOUT BASE
   ========================================== */

/* Body class pour CMS fullwidth */
body.cms-fullwidth #wrapper {
  padding: 0;
  padding-top: 0 !important;
}

body.cms-fullwidth .mx-wrapper-fullwidth {
  width: 100%;
  max-width: 100%;
}

body.cms-fullwidth .mx-content-fullwidth {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Override theme.css .page-content.page-cms */
body.cms-fullwidth .page-cms,
body.cms-fullwidth .page-content.page-cms {
  width: 100%;
  max-width: 100%;
  padding: 0;
  background: transparent;
  text-align: left;
}

/* ==========================================
   HERO AUTOMATIQUE CMS
   ========================================== */

.mx-cms-auto-hero {
  min-height: auto;
  padding: var(--space-12) 0;
}

.mx-cms-auto-hero h1 {
  font-size: var(--fs-4xl);
  margin: 0;
}

/* Breadcrumb CMS */
.mx-cms-breadcrumb-wrapper {
  padding: var(--space-4) 0;
}

.mx-cms-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
}

.mx-cms-breadcrumb a {
  color: var(--mx-gray-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mx-cms-breadcrumb a:hover {
  color: var(--mx-orange);
}

.mx-cms-breadcrumb-sep {
  color: var(--mx-gray-400);
}

.mx-cms-breadcrumb-current {
  color: var(--mx-gray-900);
}

/* ==========================================
   SECTIONS - FOND FULLWIDTH
   ========================================== */

.mx-section {
  width: 100%;
  padding: var(--space-16) 0;
}

.mx-section-dark {
  background: var(--mx-gray-900);
  color: white;
}

.mx-section-dark h1,
.mx-section-dark h2,
.mx-section-dark h3,
.mx-section-dark h4,
.mx-section-dark p {
  color: white;
}

.mx-section-dark p {
  color: var(--mx-gray-300);
}

.mx-section-light {
  background: white;
  color: var(--mx-gray-900);
}

.mx-section-gray {
  background: var(--mx-gray-100);
  color: var(--mx-gray-900);
}

.mx-section-gradient {
  background: linear-gradient(180deg, var(--mx-gray-900) 0%, var(--mx-gray-800) 100%);
  color: white;
}

.mx-section-gradient h1,
.mx-section-gradient h2,
.mx-section-gradient h3,
.mx-section-gradient p {
  color: white;
}

/* Padding variants */
.mx-section-sm {
  padding: var(--space-10) 0;
}

.mx-section-lg {
  padding: var(--space-24) 0;
}

.mx-section-none {
  padding: 0;
}

/* ==========================================
   CONTAINER INTERNE
   ========================================== */

.mx-cms-fullwidth .mx-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.mx-container-sm {
  max-width: 900px;
}

.mx-container-lg {
  max-width: 1600px;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.mx-hero {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) 0;
  overflow: hidden;
}

.mx-hero-dark {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
  color: white;
}

.mx-hero h1 {
  font-size: var(--fs-5xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.mx-hero p {
  font-size: var(--fs-xl);
  color: var(--mx-gray-300);
  max-width: 700px;
  margin: 0 auto var(--space-8);
}

.mx-hero-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--mx-blue-500);
  color: white;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero avec image de fond */
.mx-hero-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mx-hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.mx-hero-image .mx-container {
  position: relative;
  z-index: 1;
}

.mx-hero-image h1 {
  color: white;
}

/* Hero avec produits 3D (comme AJAX) */
.mx-hero-products {
  position: relative;
}

.mx-hero-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.mx-hero-product {
  text-align: center;
}

.mx-hero-product img {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-base);
}

.mx-hero-product:hover img {
  transform: translateY(-10px) scale(1.05);
}

/* ==========================================
   GRILLES
   ========================================== */

.mx-grid {
  display: grid;
  gap: var(--space-8);
}

.mx-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.mx-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.mx-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.mx-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.mx-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

/* Gap variants */
.mx-grid-gap-sm {
  gap: var(--space-4);
}

.mx-grid-gap-lg {
  gap: var(--space-12);
}

/* Responsive grids */
@media (max-width: 1024px) {
  .mx-grid-4,
  .mx-grid-5,
  .mx-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .mx-grid-2,
  .mx-grid-3,
  .mx-grid-4,
  .mx-grid-5,
  .mx-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .mx-grid-2,
  .mx-grid-3,
  .mx-grid-4,
  .mx-grid-5,
  .mx-grid-6 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   FEATURE CARDS (Icône + Texte)
   ========================================== */

.mx-feature {
  text-align: center;
  padding: var(--space-6);
}

.mx-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mx-blue-500);
  border-radius: var(--radius-lg);
}

.mx-feature-icon img,
.mx-feature-icon svg {
  width: 32px;
  height: 32px;
}

/* ==========================================
   FEATURE CARDS PORTRAIT (Page Paiements)
   ========================================== */

.mx-section-garanties {
  padding: var(--space-24) 0;
  max-width: var(--container-xl);
  margin: 0 auto;
}

.page-cms-5 .mx-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  justify-items: center;
}

.page-cms-5 .mx-feature {
  background: var(--mx-gray-50);
  border-radius: var(--radius-xl);
  padding: 0;
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  overflow: hidden;
}

.page-cms-5 .mx-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.page-cms-5 .mx-feature-icon {
  width: 100%;
  height: 280px;
  margin: 0;
  border-radius: 0;
  background: var(--mx-orange);
}

.page-cms-5 .mx-feature-icon svg {
  width: 56px;
  height: 56px;
}

.page-cms-5 .mx-feature h4,
.page-cms-5 .mx-feature p {
  padding: 0 var(--space-4);
}

.page-cms-5 .mx-feature h4 {
  margin-top: var(--space-4);
}

.page-cms-5 .mx-feature p {
  padding-bottom: var(--space-4);
}

.mx-feature-icon-outline {
  background: transparent;
  border: 2px solid var(--mx-gray-600);
}

.mx-section-dark .mx-feature-icon-outline {
  border-color: var(--mx-gray-500);
}

.mx-feature h3,
.mx-feature h4 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-2);
}

.mx-feature p {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin: 0;
}

/* Feature horizontal (icône à gauche) */
.mx-feature-horizontal {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  text-align: left;
}

.mx-feature-horizontal .mx-feature-icon {
  margin: 0;
  flex-shrink: 0;
}

/* ==========================================
   CARDS
   ========================================== */

.mx-card-cms {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.mx-card-cms:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.mx-card-cms-dark {
  background: var(--mx-gray-800);
  color: white;
}

.mx-card-cms-dark h3,
.mx-card-cms-dark h4 {
  color: white;
}

.mx-card-cms-dark p {
  color: var(--mx-gray-300);
}

.mx-card-cms-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.mx-card-cms-body {
  padding: var(--space-6);
}

.mx-card-cms-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-2);
}

.mx-card-cms-text {
  font-size: var(--fs-base);
  color: var(--mx-gray-600);
  margin: 0;
}

/* Card avec bordure */
.mx-card-cms-bordered {
  box-shadow: none;
  border: 1px solid var(--mx-gray-200);
}

.mx-card-cms-bordered:hover {
  border-color: var(--mx-blue-500);
}

/* ==========================================
   STATS / CHIFFRES CLÉS
   ========================================== */

.mx-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.mx-stat {
  text-align: center;
}

.mx-stat-number {
  font-size: var(--fs-5xl);
  font-weight: var(--fw-bold);
  color: var(--mx-blue-500);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.mx-section-dark .mx-stat-number {
  color: var(--mx-blue-400);
}

.mx-stat-label {
  font-size: var(--fs-sm);
  color: var(--mx-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mx-section-dark .mx-stat-label {
  color: var(--mx-gray-400);
}

/* Stats avec bordure */
.mx-stat-bordered {
  padding: var(--space-6);
  border: 1px solid var(--mx-gray-200);
  border-radius: var(--radius-lg);
}

.mx-section-dark .mx-stat-bordered {
  border-color: var(--mx-gray-700);
}

/* ==========================================
   DAMIER (Image + Texte alternés)
   ========================================== */

.mx-damier {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-12) 0;
}

.mx-damier-reverse {
  direction: rtl;
}

.mx-damier-reverse > * {
  direction: ltr;
}

.mx-damier-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.mx-damier-content {
  padding: var(--space-12);
}

.mx-damier-content h2 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-4);
}

.mx-damier-content p {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
  .mx-damier {
    grid-template-columns: 1fr;
  }

  .mx-damier-reverse {
    direction: ltr;
  }

  .mx-damier-image {
    min-height: 250px;
  }

  .mx-damier-content {
    padding: var(--space-8);
  }
}

/* ==========================================
   ACCORDÉONS
   ========================================== */

.mx-accordion {
  border: 1px solid var(--mx-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mx-section-dark .mx-accordion {
  border-color: var(--mx-gray-700);
}

.mx-accordion-item {
  border-bottom: 1px solid var(--mx-gray-200);
}

.mx-section-dark .mx-accordion-item {
  border-color: var(--mx-gray-700);
}

.mx-accordion-item:last-child {
  border-bottom: none;
}

.mx-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: inherit;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.mx-accordion-header:hover {
  background: var(--mx-gray-50);
}

.mx-section-dark .mx-accordion-header:hover {
  background: var(--mx-gray-800);
}

.mx-accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.mx-accordion-item.active .mx-accordion-icon {
  transform: rotate(180deg);
}

.mx-accordion-content {
  padding: 0 var(--space-6) var(--space-6);
  display: none;
}

.mx-accordion-item.active .mx-accordion-content {
  display: block;
}

/* ==========================================
   LISTE AVEC ICÔNES
   ========================================== */

.mx-list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mx-list-check li {
  position: relative;
  padding-left: var(--space-8);
  margin-bottom: var(--space-3);
  line-height: var(--lh-relaxed);
}

.mx-list-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  background: var(--mx-blue-500);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ==========================================
   CTA BANNER
   ========================================== */

.mx-cta-banner {
  text-align: center;
  padding: var(--space-12);
  background: linear-gradient(135deg, var(--mx-blue-600) 0%, var(--mx-blue-700) 100%);
  border-radius: var(--radius-xl);
  color: white;
}

.mx-cta-banner h2 {
  color: white;
  margin-bottom: var(--space-4);
}

.mx-cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
}

.mx-cta-banner .mx-btn {
  background: white;
  color: var(--mx-blue-600);
}

.mx-cta-banner .mx-btn:hover {
  background: var(--mx-gray-100);
}

/* ==========================================
   CTA SECTION AVEC IMAGE SKEW (Page Paiements)
   ========================================== */

.mx-section-cta {
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #ea6839 0%, #d45a2f 100%);
  min-height: 300px;
  overflow: hidden;
}

.mx-cta-image {
  position: relative;
  width: 30%;
  flex-shrink: 0;
}

.mx-cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mx-cta-image::after {
  content: '';
  position: absolute;
  top: 0;
  right: -153px;
  width: 210px;
  height: 100%;
  background: #e26335;
  transform: skewX(10deg);
}

.mx-cta-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--space-12);
  color: white;
  position: relative;
  z-index: 2;
}

.mx-cta-content h2 {
  color: white;
  margin-bottom: var(--space-4);
}

.mx-cta-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
}

.mx-cta-content .mx-btn-cms-primary {
  background: white;
  color: #ea6839;
}

.mx-cta-content .mx-btn-cms-primary:hover {
  background: var(--mx-gray-100);
}

@media (max-width: 768px) {
  .mx-section-cta {
    flex-direction: column;
  }

  .mx-cta-image {
    width: 100%;
    height: 200px;
  }

  .mx-cta-image::after {
    display: none;
  }

  .mx-cta-content {
    text-align: center;
    align-items: center;
  }
}

/* ==========================================
   IMAGE FULLWIDTH
   ========================================== */

.mx-image-fullwidth {
  width: 100%;
  height: auto;
  display: block;
}

.mx-image-parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

@media (max-width: 768px) {
  .mx-image-parallax {
    background-attachment: scroll;
  }
}

/* ==========================================
   SÉPARATEUR
   ========================================== */

.mx-divider-cms {
  height: 1px;
  background: var(--mx-gray-200);
  margin: var(--space-8) 0;
}

.mx-section-dark .mx-divider-cms {
  background: var(--mx-gray-700);
}

/* ==========================================
   TITRE DE SECTION (scoped CMS only)
   ========================================== */

body.cms-fullwidth .mx-section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-12);
}

body.cms-fullwidth .mx-section-header h2 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-4);
}

body.cms-fullwidth .mx-section-header p {
  font-size: var(--fs-lg);
  color: var(--mx-gray-600);
}

.mx-section-dark .mx-section-header p {
  color: var(--mx-gray-400);
}

/* ==========================================
   BADGES / CERTIFICATIONS
   ========================================== */

.mx-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.mx-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.mx-badge-item img {
  height: 60px;
  width: auto;
}

.mx-badge-item span {
  font-size: var(--fs-xs);
  color: var(--mx-gray-500);
}

/* ==========================================
   RESPONSIVE SECTIONS
   ========================================== */

@media (max-width: 768px) {
  .mx-section {
    padding: var(--space-10) 0;
  }

  .mx-section-lg {
    padding: var(--space-16) 0;
  }

  .mx-hero {
    min-height: 400px;
    padding: var(--space-12) 0;
  }

  .mx-hero h1 {
    font-size: var(--fs-3xl);
  }

  .mx-hero p {
    font-size: var(--fs-lg);
  }

  .mx-hero-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .mx-stats {
    gap: var(--space-8);
  }

  .mx-stat-number {
    font-size: var(--fs-4xl);
  }

  .mx-section-header h2 {
    font-size: var(--fs-2xl);
  }

  .mx-cms-fullwidth .mx-container {
    padding: 0 var(--space-4);
  }
}

/* ==========================================
   BUTTONS CMS
   ========================================== */

.mx-btn-cms {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.mx-btn-cms-primary {
  background: var(--mx-gray-900);
  color: white;
  border: none;
}

.mx-btn-cms-primary:hover {
  background: var(--mx-orange-500);
  color: white;
  text-decoration: none;
}

.mx-btn-cms-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.mx-btn-cms-outline:hover {
  background: white;
  color: var(--mx-gray-900);
  text-decoration: none;
}

.mx-section-light .mx-btn-cms-outline {
  color: var(--mx-gray-900);
  border-color: var(--mx-gray-900);
}

.mx-section-light .mx-btn-cms-outline:hover {
  background: var(--mx-gray-900);
  color: white;
}

/* ==========================================
   ANIMATIONS AU SCROLL (optionnel)
   ========================================== */

.mx-animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mx-animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   UTILITIES CMS
   ========================================== */

.mx-text-center {
  text-align: center;
}

.mx-text-left {
  text-align: left;
}

.mx-text-right {
  text-align: right;
}

.mx-mb-0 { margin-bottom: 0; }
.mx-mb-4 { margin-bottom: var(--space-4); }
.mx-mb-8 { margin-bottom: var(--space-8); }
.mx-mb-12 { margin-bottom: var(--space-12); }

.mx-mt-0 { margin-top: 0; }
.mx-mt-4 { margin-top: var(--space-4); }
.mx-mt-8 { margin-top: var(--space-8); }
.mx-mt-12 { margin-top: var(--space-12); }

/* ==========================================
   PAGES CMS SIMPLES (Informatives)
   CGV, Mentions légales, Livraison, etc.
   ========================================== */

.page-cms-simple {
  max-width: 1220px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  background: white;
}

/* Header simple */
.mx-cms-simple-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 2px solid var(--mx-gray-900);
}

.mx-cms-simple-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--mx-gray-900);
  margin: 0;
}

/* Body content */
.mx-cms-simple-body {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--mx-gray-700);
}

.mx-cms-simple-body h2 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--mx-gray-900);
  margin: var(--space-8) 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--mx-gray-200);
}

.mx-cms-simple-body h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
  margin: var(--space-6) 0 var(--space-3);
}

.mx-cms-simple-body h4 {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
  margin: var(--space-4) 0 var(--space-2);
}

.mx-cms-simple-body p {
  margin-bottom: var(--space-4);
}

.mx-cms-simple-body ul,
.mx-cms-simple-body ol {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
}

.mx-cms-simple-body li {
  margin-bottom: var(--space-2);
}

.mx-cms-simple-body a {
  color: var(--mx-blue-600);
  text-decoration: underline;
}

.mx-cms-simple-body a:hover {
  color: var(--mx-orange);
}

.mx-cms-simple-body strong {
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
}

.mx-cms-simple-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
}

.mx-cms-simple-body th,
.mx-cms-simple-body td {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--mx-gray-200);
  text-align: left;
}

.mx-cms-simple-body th {
  background: var(--mx-gray-100);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
}

/* Responsive */
@media (max-width: 768px) {
  .page-cms-simple {
    padding: var(--space-6) var(--space-4);
  }

  .mx-cms-simple-title {
    font-size: var(--fs-2xl);
  }

  .mx-cms-simple-body h2 {
    font-size: var(--fs-lg);
  }

  .mx-cms-simple-body {
    font-size: var(--fs-sm);
  }
}

/* ==========================================
   PAGE PAIEMENTS SÉCURISÉS (ID 5)
   Styles spécifiques fullwidth
   ========================================== */

.page-cms-5 .mx-payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin: var(--space-8) 0;
}

.page-cms-5 .mx-payment-card {
  width: 100%;
  aspect-ratio: 1;
  max-width: 540px;
  border-radius: var(--radius-lg);
  padding: 0;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.page-cms-5 .mx-payment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.page-cms-5 .mx-payment-card-content {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  padding: var(--space-6);
}

.page-cms-5 .mx-payment-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: white;
  margin-bottom: var(--space-2);
}

.page-cms-5 .mx-payment-desc {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Logos partenaires (icônes Font Awesome) */
.mx-payment-logos-cms {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.mx-payment-logos-cms i {
  font-size: 40px;
  color: var(--mx-gray-500);
  transition: color var(--transition-fast);
}

.mx-payment-logos-cms i:hover {
  color: var(--mx-gray-700);
}

/* Responsive */
@media (max-width: 768px) {
  .page-cms-5 .mx-payment-methods {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   PAGE PAIEMENT SECURISE (ID 5) - complement
   Regles presentes sur la prod Nova mais absentes du repo GitHub
   qui a servi au rapatriement du theme (h2::after, marges logos,
   garanties, CTA). Passees en charte Maxxilot :
   #ea6839 -> var(--mx-blue-500) | #46bceb -> var(--mx-orange-500)
   ========================================== */

.page-cms-5 .mx-section-header h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--mx-blue-500);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.page-cms-5 > .mx-container > .mx-section-header {
  margin-top: 3rem;
  margin-bottom: 0.5rem;
}

.page-cms-5 > .mx-section-gray {
  padding-top: 1.5rem;
}

.page-cms-5 .mx-section-gray .mx-section-header {
  margin-bottom: var(--space-8);
}

.page-cms-5 .mx-section-garanties {
  padding: var(--space-16) var(--space-8);
}

.page-cms-5 .mx-payment-logos-cms {
  margin-bottom: 2rem;
}

.page-cms-5 .mx-cta-content {
  background: var(--mx-gray-900);
}

.page-cms-5 .mx-cta-content .mx-btn-cms-primary {
  background: var(--mx-blue-500);
  color: #fff;
}

.page-cms-5 .mx-cta-content .mx-btn-cms-primary:hover {
  background: var(--mx-orange-500);
  color: #fff;
}

.page-cms-5 .mx-list-check li {
  list-style-type: none;
}

.page-cms-5 .mx-feature-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.page-cms-5 .mx-cta-image::after {
  background: var(--mx-gray-900);
}

@media (max-width: 1024px) {
  .page-cms-5 .mx-grid-4 { grid-template-columns: repeat(2, 1fr); padding: 0 1rem; }
}

@media (max-width: 480px) {
  .page-cms-5 .mx-grid-4 { grid-template-columns: 1fr; padding: 0 1rem; }
}
