@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Variables */
:root {
  --color-bg: #f5f5f5;
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-primary: #0071e3;
  --color-primary-hover: #005bb5;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-lg: 32px;
}

/* Honeypot anti-spam (masqué) */
.hidden {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

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

html,
body {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  line-height: 1.5;
  background: var(--color-bg);
}

/* ========== Section 1 : Hero ========== */
.section-hero {
  width: 100%;
  height: 100vh;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  background-color: var(--color-bg);
}

.hero-left {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 83px;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(26, 26, 26, 1);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: rgba(26, 26, 26, 1);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.hero-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  padding: 8px;
  background: var(--color-white);
  border-radius: 9999px;
  box-shadow: none;
  overflow: hidden;
}

.hero-input {
  flex: 1;
  padding: 14px 24px;
  font-size: 1rem;
  border: none;
  background: transparent;
  outline: none;
}

.hero-input::placeholder {
  color: #A9A9A9;
}

.hero-input:focus {
  outline: none;
}

.hero-btn {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: #008BFF;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-btn:hover {
  background: #006ecc;
}

.hero-right {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 40px;
  color: rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-phone-wrapper {
  width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: none;
  overflow: hidden;
  height: 100%;
  max-height: 100%;
  padding: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

.hero-phone-mockup {
  height: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.hero-phone-img {
  height: 100%;
  max-height: 100%;
  width: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* ========== Section 2 : Fonctionnalités ========== */
.section-features {
  padding: 80px 60px;
  background: var(--color-bg);
}

.features-title {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: var(--color-text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1600px;
  margin: 0 auto;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.feature-card-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.feature-mockup {
  background: var(--color-white);
  border-radius: 38px;
  box-shadow: none;
  padding: 20px;
  border: 1px solid #eee;
  overflow: hidden;
}

.feature-mockup-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

/* Mockup Santé */
.feature-mockup-sante .mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.mockup-back {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.mockup-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--color-text);
}

/* Mockup Notification */
.feature-mockup-notification .mockup-header {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.mockup-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.toggle-switch {
  width: 44px;
  height: 24px;
  background: #e0e0e0;
  border-radius: 12px;
  position: relative;
}

.toggle-switch.active {
  background: #4caf50;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  box-shadow: none;
}

.toggle-switch.active::after {
  left: auto;
  right: 3px;
}

.mockup-reminders {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.mockup-reminder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 6px 8px;
  background: #ffebee;
  border-radius: 6px;
  color: var(--color-text);
}

.mockup-remove {
  color: #c62828;
  font-weight: bold;
  cursor: default;
}

.mockup-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  font-size: 0.85rem;
  color: var(--color-primary);
  background: transparent;
  border: 1px dashed var(--color-primary);
  border-radius: 8px;
  cursor: default;
}

/* Mockup Scanner */
.feature-mockup-scanner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.mockup-scanner-icon {
  font-size: 2.5rem;
  margin-bottom: 4px;
}

.mockup-scanner-title {
  font-size: 0.95rem;
  color: var(--color-text);
}

.mockup-scanner-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

.mockup-scanner-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  font-size: 0.85rem;
  color: var(--color-primary);
  background: #e3f2fd;
  border: none;
  border-radius: 8px;
  cursor: default;
  margin-top: 4px;
}

.feature-mockup-1 .mockup-header {
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.mockup-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.mockup-item:last-child {
  border-bottom: none;
}

.mockup-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mockup-avatar-cat {
  background: linear-gradient(135deg, #a8e6cf 0%, #88d8b0 100%);
}

.mockup-avatar-dog {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.mockup-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.875rem;
}

.mockup-info strong {
  color: var(--color-text);
}

.mockup-info span {
  color: var(--color-text-muted);
}

.mockup-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  margin-top: 4px;
  width: fit-content;
}

.badge-green {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-gray {
  background: #f5f5f5;
  color: var(--color-text-muted);
}

.feature-mockup-2 .mockup-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mockup-tab {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: 8px;
  cursor: default;
}

.mockup-tab.active {
  background: #e3f2fd;
  color: var(--color-primary);
  font-weight: 600;
}

.mockup-tab:not(.active) {
  background: #f5f5f5;
  color: var(--color-text-muted);
}

.mockup-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
}

.mockup-list-icon {
  font-size: 1rem;
}

.mockup-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  margin-left: auto;
}

.feature-mockup-3 .mockup-section {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.feature-mockup-3 .mockup-section:last-child {
  border-bottom: none;
}

.mockup-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.875rem;
}

.feature-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.feature-subdesc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ========== Section 3 : CTA finale ========== */
.section-cta {
  min-height: 60vh;
  padding: 80px 60px;
  background: var(--color-bg);
  display: flex;
}

.cta-container {
  width: 100%;
  flex: 1;
  margin: 0 auto;
  padding: 32px;
  background-color: #ffffff;
  border-radius: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cta-content {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--color-text);
}

.cta-form-wrapper {
  padding: 8px;
  background-color: #f5f5f5;
  border-radius: 9999px;
}

.cta-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  padding: 8px;
  background: var(--color-white);
  border-radius: 9999px;
  box-shadow: none;
  overflow: hidden;
}

.cta-input {
  flex: 1;
  padding: 14px 24px;
  font-size: 1rem;
  border: none;
  background: transparent;
  outline: none;
}

.cta-input::placeholder {
  color: #A9A9A9;
}

.cta-input:focus {
  outline: none;
}

.cta-btn {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: #008BFF;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.cta-btn:hover {
  background: #006ecc;
}

.cta-legal-link {
  display: block;
  margin-top: 24px;
  color: #999;
  font-size: 0.8rem;
  text-decoration: none;
}

.cta-legal-link:hover {
  color: var(--color-text-muted);
  text-decoration: underline;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-grid .feature-card {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .section-hero {
    grid-template-columns: 1fr;
    padding: 40px 16px;
    overflow-x: hidden;
    gap: 24px;
  }

  .hero-brand {
    font-size: 16px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-left,
  .hero-right {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-left {
    order: 2;
  }

  .hero-right {
    order: 1;
    padding: 0 0 24px 0;
  }

  .hero-form {
    max-width: 100%;
    padding: 6px;
  }

  .hero-form .hero-input {
    min-width: 0;
    padding: 12px 16px;
  }

  .hero-form .hero-btn {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

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

  .features-title {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }

  .section-cta {
    padding: 60px 16px;
  }

  .cta-container {
    padding: 24px;
  }

  .cta-form .cta-input {
    min-width: 0;
    padding: 12px 16px;
  }

  .cta-form .cta-btn {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

/* ========== Page Mentions légales ========== */
.legal-header {
  padding: 24px 40px;
  background: var(--color-white);
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-back {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.legal-main {
  padding: 60px 40px 80px;
  background: var(--color-bg);
}

.legal-container {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.legal-container h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 16px 0 8px;
}

.legal-section p {
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.6;
}

.legal-section a {
  color: var(--color-primary);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-list {
  margin: 12px 0;
  padding-left: 24px;
}

.legal-list li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--color-text);
}

.legal-footer {
  padding: 24px 40px;
  background: var(--color-bg);
  text-align: center;
}

.legal-footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

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

@media (max-width: 768px) {
  .legal-header {
    padding: 20px 16px;
  }

  .legal-main {
    padding: 32px 16px 48px;
  }

  .legal-container {
    padding: 24px;
  }

  .legal-container h1 {
    font-size: 1.5rem;
  }
}
