/* Mon Bébé Journal - Page App Style */

/* Variables supplémentaires pour les couleurs pastel */
:root {
  --pastel-blue: #a8d8ff;
  --pastel-beige: #f5e6d3;
  --pastel-lavender: #d4a5ff;
  --pastel-pink: #ffcad4;
  --pastel-mint: #caffbf;
  --gradient-1: linear-gradient(135deg, #a8d8ff 0%, #d4a5ff 100%);
  --gradient-2: linear-gradient(135deg, #ffcad4 0%, #ffd6ff 100%);
  --app-max-width: 1280px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pastel-blue: #4a7ba7;
    --pastel-beige: #5c5043;
    --pastel-lavender: #7b5ba1;
    --pastel-pink: #a86b77;
    --pastel-mint: #6b9d63;
  }
}

/* Layout principal */
.app-page {
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: 0;
}

/* Hero Section */
.app-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 24px;
  max-width: var(--app-max-width);
  margin: 0 auto;
}

.hero-content {
  max-width: 580px;
}

.app-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  background: var(--gradient-1);
  color: white;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.app-title {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px 0;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-tagline {
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.4;
  color: var(--fg);
  margin: 0 0 24px 0;
  font-weight: 500;
}

.app-description {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 32px 0;
}

/* Boutons CTA */
.cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-1);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(168, 216, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 216, 255, 0.4);
}

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

.btn-primary.large {
  padding: 18px 36px;
  font-size: 18px;
}

/* Mockup iPhone */
.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.screenshots-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.iphone-mockup {
  position: relative;
  width: 280px;
  height: 580px;
  background: linear-gradient(145deg, #1c1c1e 0%, #2c2c2e 100%);
  border-radius: 45px;
  padding: 12px;
  box-shadow: 
    0 0 0 8px rgba(0,0,0,0.1),
    0 20px 60px rgba(0,0,0,0.3),
    inset 0 0 6px rgba(255,255,255,0.1);
}

.iphone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #1c1c1e;
  border-radius: 0 0 18px 18px;
  z-index: 10;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 38px;
  overflow: hidden;
  position: relative;
}

.app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40px;
  padding-top: 30px;
}

.app-preview {
  padding: 60px 20px 20px;
  height: 100%;
}

.preview-header {
  text-align: center;
  margin-bottom: 24px;
}

.preview-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.preview-content h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--fg);
}

.preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.preview-icon {
  font-size: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 216, 255, 0.1);
  border-radius: 12px;
}

.preview-text {
  flex: 1;
}

.preview-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}

.preview-subtitle {
  font-size: 13px;
  color: var(--muted);
}

/* Section Features */
.features-section {
  padding: 80px 24px;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  text-align: center;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: var(--app-max-width);
  margin: 0 auto;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.feature-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Section Confidentialité */
.privacy-section {
  padding: 100px 24px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.privacy-icon-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: var(--gradient-1);
  border-radius: 24px;
  margin-bottom: 32px;
  color: white;
}

.privacy-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px 0;
}

.privacy-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 48px 0;
}

.privacy-features {
  display: grid;
  gap: 24px;
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.privacy-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.privacy-item:hover {
  transform: translateX(4px);
  border-color: var(--pastel-blue);
}

.privacy-item svg {
  flex-shrink: 0;
  color: var(--pastel-blue);
  margin-top: 2px;
}

.privacy-item strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--fg);
}

.privacy-item p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* Section CTA finale */
.cta-section {
  padding: 100px 24px;
  background: var(--gradient-2);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px 0;
  color: white;
}

.cta-description {
  font-size: 19px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 36px 0;
}

.cta-note {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-delayed {
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
  opacity: 0;
}

.slide-up {
  animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .app-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 24px;
  }

  .hero-mockup {
    order: -1;
  }

  .screenshots-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .iphone-mockup {
    width: 260px;
    height: 520px;
    margin-top: 0 !important;
  }

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

  .privacy-section,
  .cta-section {
    padding: 60px 24px;
  }
}

@media (max-width: 640px) {
  .app-hero {
    padding: 40px 20px;
  }

  .features-section {
    padding: 60px 20px;
  }

  .feature-card {
    padding: 24px;
  }

  .screenshots-container {
    gap: 20px;
  }

  .iphone-mockup {
    width: 240px;
    height: 480px;
  }

  .app-preview {
    padding: 50px 16px 16px;
  }
}

/* Mode sombre amélioré */
@media (prefers-color-scheme: dark) {
  .iphone-mockup {
    background: linear-gradient(145deg, #2c2c2e 0%, #3c3c3e 100%);
  }

  .btn-primary {
    box-shadow: 0 4px 14px rgba(74, 123, 167, 0.4);
  }

  .btn-primary:hover:not(:disabled) {
    box-shadow: 0 8px 24px rgba(74, 123, 167, 0.5);
  }

  .cta-section {
    background: linear-gradient(135deg, #4a3d5c 0%, #5c4a6d 100%);
  }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible pour accessibilité */
.btn-primary:focus-visible {
  outline: 3px solid var(--pastel-blue);
  outline-offset: 3px;
}



