/**
 * ITSOFT DZ - Logiciels Page Styles
 * Full light/dark mode support using CSS variables
 */

/* ============================================
   HERO SECTION (aligné sur about/contact)
   ============================================ */

.logiciels-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: calc(72px + 4rem) 0 4rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  overflow: hidden;
}

.logiciels-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
}

.logiciels-hero .hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0, 163, 224, 0.08) 0%, transparent 50%);
}

.logiciels-hero .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 102, 204, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 204, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.logiciels-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.logiciels-hero .hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 102, 204, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0066CC;
  margin-bottom: 2rem;
}

.logiciels-hero .hero-label i {
  font-size: 1rem;
}

.logiciels-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.logiciels-hero h1 .line {
  display: block;
}

.logiciels-hero .hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #334155;
  line-height: 1.7;
  max-width: 700px;
  margin: 0;
}

[data-theme="dark"] .logiciels-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .logiciels-hero .hero-mesh {
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 163, 224, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0, 102, 204, 0.1) 0%, transparent 50%);
}

[data-theme="dark"] .logiciels-hero .hero-grid {
  background-image:
    linear-gradient(rgba(0, 163, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 163, 224, 0.05) 1px, transparent 1px);
}

[data-theme="dark"] .logiciels-hero .hero-label {
  background: rgba(0, 102, 204, 0.2);
  color: #00A3E0;
}

[data-theme="dark"] .logiciels-hero h1 {
  color: #f1f5f9;
}

[data-theme="dark"] .logiciels-hero .hero-description {
  color: #cbd5e1;
}

/* ============================================
   FEATURED PRODUCT SHOWCASE
   ============================================ */

.featured-product-section {
  background: var(--bg-alt);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.featured-product-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpattern id='grid' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 20 0 L 0 0 0 20' fill='none' stroke='rgba(0,102,204,0.04)' stroke-width='1'/%3E%3C/pattern%3E%3Crect width='100' height='100' fill='url(%23grid)'/%3E%3C/svg%3E");
}

[data-theme="dark"] .featured-product-section::before {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpattern id='grid' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 20 0 L 0 0 0 20' fill='none' stroke='rgba(0,163,224,0.06)' stroke-width='1'/%3E%3C/pattern%3E%3Crect width='100' height='100' fill='url(%23grid)'/%3E%3C/svg%3E");
}

.featured-product {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 10;
}

[data-theme="dark"] .featured-product {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
  .featured-product {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.featured-product .featured-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

@media (min-width: 1024px) {
  .featured-product .featured-body {
    padding: 3.5rem;
  }
}

.featured-product .featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0066CC, #00A3E0);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1.25rem;
}

.featured-product .featured-badge i {
  font-size: 0.8rem;
}

.featured-product h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: var(--text-main);
}

.featured-product .featured-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 56ch;
}

.featured-product .featured-points {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .featured-product .featured-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.featured-product .featured-point {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 1rem;
  min-width: 0;
}

[data-theme="dark"] .featured-product .featured-point {
  background: rgba(0, 102, 204, 0.08);
  border-color: rgba(0, 102, 204, 0.22);
}

.featured-product .featured-point-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #0066CC;
  background: rgba(0, 102, 204, 0.1);
  border: 1px solid rgba(0, 102, 204, 0.2);
  border-radius: 0.875rem;
}

[data-theme="dark"] .featured-product .featured-point-icon {
  color: #00A3E0;
  background: rgba(0, 163, 224, 0.12);
  border-color: rgba(0, 163, 224, 0.25);
}

.featured-product .featured-point-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.featured-product .featured-point-text strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--text-main);
}

.featured-product .featured-point-text small {
  display: block;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.featured-product .featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  width: 100%;
}

.featured-product .featured-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #0066CC 0%, #004C99 100%);
  overflow: hidden;
}

[data-theme="dark"] .featured-product .featured-visual {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0066CC 130%);
}

.featured-product .featured-visual-glow {
  position: absolute;
  inset: auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

.featured-product .featured-visual-icon {
  position: relative;
  z-index: 1;
  font-size: clamp(4.5rem, 8vw, 7rem);
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.35));
}

/* ============================================
   PRODUCTS GRID
   ============================================ */

.products-section {
  background: var(--bg);
  padding: 6rem 0;
}

.products-section .section-header h2 {
  color: var(--text-main);
}

.products-section .section-header .lead {
  color: var(--text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   PRODUCT CARD
   ============================================ */

.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.03), rgba(0, 163, 224, 0.03));
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 102, 204, 0.12);
  border-color: #0066CC;
}

[data-theme="dark"] .product-card:hover {
  box-shadow: 0 20px 40px rgba(0, 102, 204, 0.2);
  background: var(--bg-alt);
}

.product-card:hover::before {
  opacity: 1;
}

/* Card Header */
.product-card .header {
  padding: 2rem 2rem 1.5rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.product-card .header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0066CC, #00A3E0);
}

.product-card .header .icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #0066CC, #00A3E0);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .header .icon {
  transform: scale(1.1);
}

.product-card .header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.product-card .header .tagline {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* Card Body */
.product-card .body {
  padding: 2rem;
  position: relative;
  z-index: 10;
}

.product-card .description {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.product-card .features {
  margin-bottom: 1.5rem;
}

.product-card .features-title,
.product-card .use-cases-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.product-card .features-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-card .features-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  transition: all 0.3s;
}

.product-card .features-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #0066CC;
  font-size: 0.75rem;
}

.product-card .features-list li:hover {
  color: #0066CC;
  transform: translateX(5px);
}

/* Use Cases */
.product-card .use-cases-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-card .use-case-tag {
  background: var(--bg-alt);
  padding: 0.4rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.8125rem;
  color: #0066CC;
  font-weight: 600;
  border: 1px solid rgba(0, 102, 204, 0.2);
  transition: all 0.3s;
}

[data-theme="dark"] .product-card .use-case-tag {
  background: rgba(0, 102, 204, 0.1);
  border-color: rgba(0, 102, 204, 0.25);
  color: #00A3E0;
}

.product-card .use-case-tag:hover {
  background: linear-gradient(135deg, #0066CC, #00A3E0);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Screenshot area */
.product-card .screenshot {
  width: 100%;
  height: 180px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #0066CC;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

[data-theme="dark"] .product-card .screenshot {
  background: rgba(0, 102, 204, 0.08);
}

.product-card .screenshot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(0, 102, 204, 0.08));
  opacity: 0;
  transition: opacity 0.4s;
}

[data-theme="dark"] .product-card .screenshot::before {
  background: linear-gradient(135deg, transparent, rgba(0, 163, 224, 0.1));
}

.product-card:hover .screenshot::before {
  opacity: 1;
}

/* Card Footer */
.product-card .footer {
  padding: 1.5rem 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  position: relative;
}

.product-card .footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #0066CC, #00A3E0);
  transform: scaleX(0);
  transition: transform 0.4s;
  transform-origin: left;
}

.product-card:hover .footer::before {
  transform: scaleX(1);
}

.product-card .footer .btn {
  width: 100%;
  padding: 0.875rem;
  font-size: 0.9375rem;
  background: var(--bg);
  color: #0066CC;
  border: 2px solid #0066CC;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.product-card .footer .btn:hover {
  background: linear-gradient(135deg, #0066CC, #00A3E0);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

[data-theme="dark"] .product-card .footer .btn {
  background: rgba(0, 102, 204, 0.1);
  color: #00A3E0;
  border-color: rgba(0, 102, 204, 0.4);
}

[data-theme="dark"] .product-card .footer .btn:hover {
  background: linear-gradient(135deg, #0066CC, #00A3E0);
  color: white;
  border-color: transparent;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */

.comparison-section {
  background: var(--bg-alt);
  padding: 6rem 0;
  position: relative;
}

.comparison-section .section-header h2 {
  color: var(--text-main);
}

.comparison-section .section-header .lead {
  color: var(--text-muted);
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .comparison-table-wrapper {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border-radius: 1rem;
  overflow: hidden;
}

.comparison-table thead tr {
  background: linear-gradient(135deg, #0066CC, #004C99);
}

.comparison-table th {
  padding: 1rem 1.25rem;
  text-align: center;
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.comparison-table th:first-child {
  text-align: left;
}

.comparison-table td {
  padding: 0.875rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-main);
}

.comparison-table tbody tr {
  transition: background 0.2s;
}

.comparison-table tbody tr:hover {
  background: rgba(0, 102, 204, 0.04);
}

[data-theme="dark"] .comparison-table tbody tr:hover {
  background: rgba(0, 102, 204, 0.08);
}

.comparison-table td .fa-check {
  color: #10b981;
}

.comparison-table td.na {
  color: var(--text-light);
  opacity: 0.6;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   CTA SECTION
   ============================================ */

.demo-cta {
  background: linear-gradient(135deg, #0066CC 0%, #004C99 100%);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.demo-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

[data-theme="dark"] .demo-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0066CC 100%);
}

[data-theme="dark"] .demo-cta::before {
  background-image:
    radial-gradient(circle at 50% 50%, rgba(0, 163, 224, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 0% 0%, rgba(0, 163, 224, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.demo-cta h2 {
  color: white;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.demo-cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 10;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 10;
}

.demo-cta .btn-primary {
  background: white;
  color: #0066CC;
  padding: 1rem 2rem;
  font-size: 1rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.demo-cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  background: #f8fafc;
}

.demo-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 1rem 2rem;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  text-decoration: none;
  position: relative;
  z-index: 10;
}

.demo-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

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

@media (max-width: 767px) {
  .logiciels-hero {
    min-height: auto;
    padding: calc(64px + 3rem) 0 3rem;
  }

  .logiciels-hero,
  .featured-product-section,
  .products-section,
  .comparison-section,
  .demo-cta {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .logiciels-hero {
    padding-top: calc(64px + 3rem);
  }

  .featured-product .featured-body {
    padding: 1.75rem;
  }

  .featured-product .featured-visual {
    min-height: 240px;
    padding: 2.5rem 1.5rem;
  }

  .featured-product .featured-visual-icon {
    font-size: 3.5rem;
  }

  .featured-product .featured-points {
    grid-template-columns: 1fr;
  }

  .featured-product .featured-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .featured-product .featured-actions .btn {
    width: 100%;
    text-align: center;
  }

  .product-card .header {
    padding: 1.5rem;
  }

  .product-card .body {
    padding: 1.5rem;
  }

  .product-card .footer {
    padding: 1.25rem 1.5rem;
  }

  .product-card .header .icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .demo-cta .btn-primary,
  .demo-cta .btn-secondary {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .products-grid {
    gap: 1.5rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.8125rem;
  }
}

/* ============================================
   LOGICIEL DETAIL
   ============================================ */

.logiciel-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: calc(72px + 4rem) 0 4rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  overflow: hidden;
}

.logiciel-hero .hero-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.6;
  pointer-events: none;
}

.logiciel-hero .hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0, 163, 224, 0.08) 0%, transparent 50%);
}

.logiciel-hero .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 102, 204, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 204, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.logiciel-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.logiciel-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.logiciel-breadcrumb a {
  color: #0066CC;
  text-decoration: none;
  font-weight: 600;
}

.logiciel-breadcrumb a:hover {
  text-decoration: underline;
}

.logiciel-breadcrumb span:last-child {
  color: #64748b;
}

.logiciel-hero .hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 102, 204, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0066CC;
  margin-bottom: 2rem;
}

.logiciel-hero .hero-label i {
  font-size: 1rem;
}

.logiciel-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.logiciel-hero h1 .line {
  display: block;
}

.logiciel-hero .hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #334155;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 0 2rem;
}

.logiciel-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  position: relative;
  z-index: 2;
}

[data-theme="dark"] .logiciel-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .logiciel-hero .hero-mesh {
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 163, 224, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0, 102, 204, 0.1) 0%, transparent 50%);
}

[data-theme="dark"] .logiciel-hero .hero-grid {
  background-image:
    linear-gradient(rgba(0, 163, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 163, 224, 0.05) 1px, transparent 1px);
}

[data-theme="dark"] .logiciel-hero .hero-label {
  background: rgba(0, 102, 204, 0.2);
  color: #00A3E0;
}

[data-theme="dark"] .logiciel-hero h1 {
  color: #f1f5f9;
}

[data-theme="dark"] .logiciel-hero .hero-description {
  color: #cbd5e1;
}

[data-theme="dark"] .logiciel-breadcrumb a {
  color: #00A3E0;
}

[data-theme="dark"] .logiciel-breadcrumb span:last-child {
  color: #94a3b8;
}

.logiciel-section {
  background: var(--bg);
  padding: 5rem 0;
}

.logiciel-section-alt {
  background: var(--bg-alt);
}

.logiciel-section .section-header h2 {
  color: var(--text-main);
}

.logiciel-section .section-header .lead {
  color: var(--text-muted);
}

.logiciel-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .logiciel-overview {
    grid-template-columns: 1.4fr 0.9fr;
    align-items: start;
  }
}

.logiciel-overview-main h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-main);
  margin: 0 0 1rem;
}

.logiciel-overview-main h3 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin: 1.75rem 0 0.5rem;
}

.logiciel-overview-main p {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.logiciel-facts {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(72px + 1.5rem);
}

.logiciel-facts-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  background: linear-gradient(135deg, #0066CC, #00A3E0);
  border-radius: 1rem;
}

.logiciel-facts h3 {
  color: var(--text-main);
  margin: 0;
  font-size: 1.25rem;
}

.logiciel-facts-row > span:first-child {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.logiciel-facts .use-cases-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.logiciel-facts .use-case-tag {
  background: var(--bg);
  padding: 0.4rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.8125rem;
  color: #0066CC;
  font-weight: 600;
  border: 1px solid rgba(0, 102, 204, 0.2);
}

.logiciel-facts .use-case-tag-alt {
  color: var(--text-muted);
  border-color: var(--border);
}

[data-theme="dark"] .logiciel-facts .use-case-tag {
  background: rgba(0, 102, 204, 0.1);
  border-color: rgba(0, 102, 204, 0.25);
  color: #00A3E0;
}

[data-theme="dark"] .logiciel-facts .use-case-tag-alt {
  color: #94a3b8;
  border-color: #334155;
  background: transparent;
}

.logiciel-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .logiciel-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

.logiciel-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
}

.logiciel-panel h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 0 0 1.25rem;
}

.logiciel-panel h3 i {
  color: #0066CC;
}

[data-theme="dark"] .logiciel-panel h3 i {
  color: #00A3E0;
}

.logiciel-panel .features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.logiciel-panel .features-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.logiciel-panel .features-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-size: 0.8rem;
  color: #0066CC;
}

.logiciel-panel .features-list-check li::before {
  color: #10b981;
}

.logiciel-siblings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .logiciel-siblings {
    grid-template-columns: repeat(2, 1fr);
  }
}

.logiciel-sibling {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 1rem;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.logiciel-sibling:hover {
  transform: translateY(-3px);
  border-color: #0066CC;
  box-shadow: 0 12px 30px rgba(0, 102, 204, 0.12);
}

.logiciel-sibling-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #0066CC;
  background: rgba(0, 102, 204, 0.1);
  border: 1px solid rgba(0, 102, 204, 0.2);
  border-radius: 0.875rem;
}

.logiciel-sibling-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.logiciel-sibling-text strong {
  color: var(--text-main);
  font-size: 0.95rem;
}

.logiciel-sibling-text small {
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logiciel-sibling-arrow {
  color: var(--text-light);
  flex-shrink: 0;
}

.logiciel-sibling:hover .logiciel-sibling-arrow {
  color: #0066CC;
}

[data-theme="dark"] .logiciel-sibling-icon {
  color: #00A3E0;
  background: rgba(0, 102, 204, 0.15);
  border-color: rgba(0, 102, 204, 0.3);
}

.logiciel-back {
  margin-top: 2.5rem;
  text-align: center;
}

@media (max-width: 767px) {
  .logiciel-hero {
    min-height: auto;
    padding: calc(64px + 3rem) 0 3rem;
  }

  .logiciel-section {
    padding: 3rem 0;
  }

  .logiciel-facts {
    position: static;
  }

  .logiciel-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .logiciel-hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

.comparison-table thead a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 3px;
}

.comparison-table thead a:hover {
  text-decoration-color: #fff;
}
