/* Design System Anti-Slop - Santé & IA - Dr Elias Chaddouk */
/* Light Mode Strict - Zéro Dark Mode */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Surfaces Light Mode Unique */
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #F1F5F9;
  --bg-hover: #E2E8F0;
  
  /* Typography */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  
  /* Accent: Medical Cyan / Sky Blue */
  --accent-primary: #0284C7;
  --accent-hover: #0369A1;
  --accent-subtle: rgba(2, 132, 199, 0.08);
  --accent-border: rgba(2, 132, 199, 0.2);
  
  /* Borders & Shadows */
  --border-light: rgba(15, 23, 42, 0.08);
  --border-subtle: rgba(15, 23, 42, 0.04);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-book: 0 20px 30px -10px rgba(15, 23, 42, 0.2), 0 10px 10px -5px rgba(15, 23, 42, 0.08);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--accent-primary);
}

/* Hero Section */
.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: 5rem;
    padding-bottom: 5.5rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4.5rem;
  }
}

.hero-title {
  font-size: 2.15rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.65rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 2.9rem;
  }
}

.hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 36rem;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

.hero-meta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 2rem;
}

/* Waitlist Card */
.waitlist-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 0.875rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 32rem;
}

.waitlist-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.waitlist-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .waitlist-form {
    flex-direction: row;
  }
}

.form-input {
  flex: 1;
  min-height: 44px;
  padding: 0.65rem 1rem;
  font-size: 16px; /* Prévention zoom iOS Safari */
  border: 1px solid var(--border-light);
  background-color: var(--bg-surface-subtle);
  color: var(--text-primary);
  border-radius: 0.5rem;
  outline: none;
  transition: all 0.15s ease;
}

.form-input:focus {
  border-color: var(--accent-primary);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.btn-primary {
  min-height: 44px;
  min-width: 44px;
  padding: 0.65rem 1.25rem;
  background-color: var(--accent-primary);
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
}

/* Book Mockup Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-frame {
  position: relative;
  max-width: 320px;
  width: 100%;
  border-radius: 0.85rem;
  box-shadow: var(--shadow-book);
  transition: transform 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

@media (min-width: 640px) {
  .book-frame {
    max-width: 350px;
  }
}

.book-frame:hover {
  transform: translateY(-4px);
}

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

/* Section Common */
.section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 42rem;
}

/* Author Section */
.author-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .author-card {
    grid-template-columns: auto 1fr;
    padding: 2.5rem;
    gap: 2.75rem;
  }
}

.author-avatar-wrap {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg-surface-subtle);
  box-shadow: var(--shadow-sm);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .author-avatar-wrap {
    width: 150px;
    height: 150px;
    margin: 0;
  }
}

.author-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

@media (min-width: 768px) {
  .author-content {
    text-align: left;
  }
}

.author-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.author-role {
  font-size: 0.9375rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.author-bio {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.author-bio:last-child {
  margin-bottom: 0;
}

/* Applications Grid (Numbered 01-04) */
.applications-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

@media (min-width: 1024px) {
  .applications-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.app-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.app-number {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  font-family: monospace;
}

.app-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.app-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-surface);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* Feedback alert */
.alert-feedback {
  display: none;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
