/* ===================================
   CARELINK - STYLES GLOBAUX
   Développeur: VIEY David
   Version: 2.0.0
   =================================== */

:root {
  /* Thème Dark Blue du logiciel CareLink */
  --primary-color: #3B9BFF;
  --primary-dark: #2E7FE6;
  --secondary-color: #00E676;
  --danger-color: #FF5370;
  --warning-color: #FFB800;
  --text-dark: #F0F6FF;
  --text-light: #C5D9F2;
  --text-muted: #91B4D9;
  --bg-primary: #000914;
  --bg-secondary: #0A1929;
  --bg-tertiary: #132D45;
  --bg-light: #0A1929;
  --bg-white: #132D45;
  --bg-hover: #1A3A54;
  --border-color: #1A3347;
  --border-medium: #2D4A66;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

header {
  background: var(--bg-secondary);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.logo span {
  margin-left: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn-demo {
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-demo:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Menu mobile */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* ===================================
   SECTIONS COMMUNES
   =================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero {
  background: linear-gradient(135deg, #0F2942 0%, #132D45 50%, #0A1929 100%);
  color: var(--text-dark);
  padding: 6rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  color: var(--text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s backwards;
}

.btn-primary,
.btn-secondary {
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--primary-color);
  color: #000914;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #000914;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 155, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 155, 255, 0.2);
}

/* Style spécifique pour btn-secondary hors du hero (sur fond blanc) */
.section .btn-secondary,
.container:not(.hero) .btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.section .btn-secondary:hover,
.container:not(.hero) .btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

/* ===================================
   FEATURES GRID
   =================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-tertiary);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.8;
}

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

.comparison-table {
  margin-top: 3rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-tertiary);
  box-shadow: var(--shadow);
  border-radius: 12px;
  overflow: hidden;
}

thead {
  background: var(--primary-color);
  color: #000914;
}

th {
  padding: 1.5rem 1rem;
  text-align: center;
  font-weight: 600;
  vertical-align: middle;
}

th:first-child {
  text-align: left;
}

td {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  vertical-align: middle;
}

td:first-child {
  text-align: left;
}

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

tbody tr:hover {
  background: var(--bg-light);
}

.check {
  color: var(--secondary-color);
  font-size: 1.5rem;
  text-align: center;
}

.cross {
  color: var(--danger-color);
  font-size: 1.5rem;
  text-align: center;
}

.highlight {
  background: var(--bg-hover);
  color: var(--text-dark);
  font-weight: 600;
  border-left: 3px solid var(--primary-color);
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--bg-tertiary);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.pricing-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  background: var(--primary-color);
  color: #000914;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.pricing-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.pricing-period {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* ===================================
   CONTACT FORM
   =================================== */

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-info {
  background: var(--bg-tertiary);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
}

form {
  background: var(--bg-tertiary);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-secondary);
  color: var(--text-dark);
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 155, 255, 0.2);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

button[type="submit"] {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  color: #000914;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===================================
   FOOTER
   =================================== */

footer {
  background: var(--bg-secondary);
  color: var(--text-dark);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
}

/* ===================================
   LEGAL PAGES
   =================================== */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-tertiary);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.legal-content ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease;
}

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

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

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

  .section-title {
    font-size: 2rem;
  }

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

  .pricing-card.featured {
    transform: scale(1);
  }

  nav {
    padding: 1rem;
  }

  .container {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

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

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

.mb-2 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 2rem;
}

.bg-light {
  background: var(--bg-secondary);
}

.text-primary {
  color: var(--primary-color);
}

.text-muted {
  color: var(--text-light);
}
