/* ============================================
   LANDING PAGES - SOLUTIONS LOGICIELLES
   ============================================ */

.landing-page {
  min-height: 100vh;
  background: var(--a3k-light);
}

/* Navigation */
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--a3k-white);
  border-bottom: 1px solid var(--a3k-gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.landing-nav .logo-a3k {
  height: 40px;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--a3k-green);
}

/* Hero Section */
.landing-hero {
  padding: 4rem 2rem 6rem;
  background: linear-gradient(135deg, var(--a3k-white) 0%, var(--a3k-light) 100%);
  position: relative;
  background-size: cover;
  background-position: center;
}

/* Hero with background image */
.landing-hero[style*="background-image"] {
  padding: 6rem 2rem 8rem;
  min-height: 500px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(21, 42, 102, 0.9) 100%);
  z-index: 1;
}

.landing-hero .hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.landing-hero .hero-container.hero-centered {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 800px;
}

.hero-centered .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-centered .hero-description {
  max-width: 600px;
}

/* Light text for background hero */
.landing-hero[style*="background-image"] h1 {
  color: white;
}

.landing-hero[style*="background-image"] .hero-tagline {
  color: var(--a3k-green);
}

.landing-hero[style*="background-image"] .hero-description {
  color: rgba(255, 255, 255, 0.85);
}

.btn-secondary-light {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.btn-secondary-light:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.product-badge {
  width: 80px;
  height: 80px;
  background: var(--a3k-white);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.landing-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--a3k-green);
  font-weight: 600;
  margin: 0 0 1.5rem 0;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0 0 2rem 0;
  max-width: 500px;
}

.landing-hero .hero-actions {
  display: flex;
  gap: 1rem;
}

.visual-placeholder {
  background: var(--a3k-white);
  border: 2px dashed var(--a3k-gray-200);
  border-radius: 16px;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  gap: 1rem;
}

.visual-placeholder i {
  font-size: 3rem;
  opacity: 0.5;
}

.visual-placeholder span {
  font-size: 0.9rem;
}

/* Features Section */
.landing-features {
  padding: 6rem 2rem;
  background: var(--a3k-white);
}

.landing-features .section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.landing-features .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.landing-features .section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 1rem 0;
}

.landing-features .section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--a3k-light);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--a3k-green), #16a34a);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.75rem 0;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
.landing-cta {
  padding: 6rem 2rem;
  background: var(--a3k-light);
}

.landing-cta .section-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-card {
  background: linear-gradient(135deg, var(--a3k-blue) 0%, #152a66 100%);
  border-radius: 24px;
  padding: 4rem;
  text-align: center;
  color: white;
}

.cta-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.cta-card p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0 0 2rem 0;
}

.cta-card .btn-primary {
  background: var(--a3k-green);
}

.cta-card .btn-primary:hover {
  background: #16a34a;
}

/* Footer */
.landing-footer {
  padding: 2rem;
  background: var(--a3k-white);
  border-top: 1px solid var(--a3k-gray-200);
}

.landing-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-footer p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.landing-footer a {
  color: var(--a3k-green);
  text-decoration: none;
  font-size: 0.9rem;
}

.landing-footer a:hover {
  text-decoration: underline;
}

/* Hero Screenshot */
.hero-screenshot {
  background: var(--a3k-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Features Grid 3 columns */
.features-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Problems Section */
.landing-problems {
  padding: 6rem 2rem;
  background: var(--a3k-light);
}

.landing-problems .section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.landing-problems .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.landing-problems .section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 1rem 0;
}

.landing-problems .section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.problem-card {
  background: var(--a3k-white);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--a3k-gray-200);
}

.problem-icon {
  width: 50px;
  height: 50px;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.problem-icon i {
  font-size: 1.25rem;
  color: #dc2626;
}

.problem-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
}

.problem-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

/* Screenshots Section */
.landing-screenshots {
  padding: 6rem 2rem;
  background: var(--a3k-light);
}

.landing-screenshots .section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.landing-screenshots .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.landing-screenshots .section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 1rem 0;
}

.landing-screenshots .section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

.screenshot-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.screenshot-placeholder {
  background: var(--a3k-white);
  border: 2px dashed var(--a3k-gray-200);
  border-radius: 12px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.screenshot-placeholder i {
  font-size: 2rem;
  opacity: 0.4;
}

.screenshot-placeholder span {
  font-size: 0.85rem;
  font-weight: 500;
}

.screenshot-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

.screenshot-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.screenshot-card img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Use Cases Section */
.landing-usecases {
  padding: 6rem 2rem;
  background: var(--a3k-white);
}

.landing-usecases .section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.landing-usecases .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.landing-usecases .section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 1rem 0;
}

.landing-usecases .section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.usecases-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.usecase-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--a3k-light);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

.usecase-item i {
  color: var(--a3k-green);
  font-size: 1.1rem;
}

/* Advantages Section */
.landing-advantages {
  padding: 6rem 2rem;
  background: var(--a3k-light);
}

.landing-advantages .section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.landing-advantages .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.landing-advantages .section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 1rem 0;
}

.landing-advantages .section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.advantage-card {
  display: flex;
  gap: 1rem;
  background: var(--a3k-white);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--a3k-gray-200);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.advantage-icon i {
  font-size: 1.25rem;
  color: var(--a3k-green);
}

.advantage-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
}

.advantage-content p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

/* Problem cards - Green variant */
.problem-card-green {
  border-color: rgba(34, 197, 94, 0.2);
}

.problem-icon-green {
  background: rgba(34, 197, 94, 0.1);
}

.problem-icon-green i {
  color: var(--a3k-green);
}

/* Escalade Section */
.escalade-section {
  background: var(--a3k-light);
}

.escalade-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

.escalade-description p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.escalade-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.escalade-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-dark);
  line-height: 1.5;
}

.escalade-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 8px;
  height: 8px;
  background: var(--a3k-green);
  border-radius: 50%;
}

.escalade-list li strong {
  color: var(--text-dark);
}

.escalade-note {
  font-style: italic;
  color: var(--text-light);
  padding: 1rem;
  background: var(--a3k-white);
  border-radius: 8px;
  border-left: 3px solid var(--a3k-green);
}

.escalade-schema {
  background: var(--a3k-white);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--a3k-gray-200);
}

.schema-level {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--a3k-light);
  border-radius: 12px;
}

.level-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.level-badge.n1 {
  background: #dc2626;
}

.level-badge.n2 {
  background: #f59e0b;
}

.level-badge.n3 {
  background: #3b82f6;
}

.level-detail {
  display: flex;
  flex-direction: column;
}

.level-detail span {
  font-weight: 600;
  color: var(--text-dark);
}

.level-detail small {
  color: var(--text-light);
  font-size: 0.8rem;
}

.schema-arrow {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
  color: var(--a3k-gray-300);
}

@media (max-width: 768px) {
  .escalade-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .escalade-schema {
    order: -1;
  }
}

/* Workflow Section - Nervus */
.workflow-section {
  background: var(--a3k-light);
}

.workflow-content {
  max-width: 1000px;
  margin: 0 auto;
}

.workflow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 140px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--a3k-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.25rem 0;
}

.step-content p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
}

.workflow-arrow {
  display: flex;
  align-items: center;
  padding-top: 0.75rem;
  color: var(--a3k-gray-300);
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .workflow-steps {
    flex-direction: column;
    gap: 1rem;
  }

  .workflow-step {
    flex-direction: row;
    max-width: 100%;
    text-align: left;
    gap: 1rem;
  }

  .step-number {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .workflow-arrow {
    transform: rotate(90deg);
    padding: 0;
  }
}

/* User Profiles Grid - Nervus */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.profile-card {
  background: var(--a3k-white);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--a3k-gray-200);
}

.profile-icon {
  width: 60px;
  height: 60px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.profile-icon i {
  font-size: 1.5rem;
  color: var(--a3k-green);
}

.profile-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
}

.profile-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 1024px) {
  .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Menu Grid - SmartHome */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.menu-item {
  display: flex;
  gap: 1rem;
  background: var(--a3k-light);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--a3k-gray-200);
}

.menu-icon {
  width: 48px;
  height: 48px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-icon i {
  font-size: 1.25rem;
  color: var(--a3k-green);
}

.menu-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.25rem 0;
}

.menu-content p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Permissions Grid - SmartHome */
.permissions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.permission-card {
  text-align: center;
  background: var(--a3k-white);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--a3k-gray-200);
}

.permission-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.permission-icon i {
  font-size: 1.5rem;
  color: white;
}

.permission-read {
  background: #3b82f6;
}

.permission-write {
  background: #f59e0b;
}

.permission-admin {
  background: #8b5cf6;
}

.permission-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
}

.permission-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

.permissions-note {
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  margin-top: 2rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .permissions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: white;
  margin-top: 1.5rem;
  font-size: 1rem;
  text-align: center;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
  .landing-hero .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .landing-hero h1 {
    font-size: 2.5rem;
  }

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

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

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

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

  .hero-visual {
    order: -1;
  }

  .visual-placeholder {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .landing-hero {
    padding: 2rem 1rem 4rem;
  }

  .landing-hero h1 {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .landing-hero .hero-actions {
    flex-direction: column;
  }

  .features-grid,
  .features-grid-3 {
    grid-template-columns: 1fr;
  }

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

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

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

  .landing-problems,
  .landing-screenshots,
  .landing-usecases,
  .landing-advantages {
    padding: 4rem 1rem;
  }

  .cta-card {
    padding: 2.5rem 1.5rem;
  }

  .cta-card h2 {
    font-size: 1.5rem;
  }

  .landing-footer .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
