/*
 * AmberVault.group – Thème & fondations
 * Rôle : variables de thème, styles de base, toile de fond globale.
 * Design : thème clair minimaliste inspiré Apple, ultra-professionnel.
 */

:root {
  /* Palette principale - thème clair premium */
  --white: #ffffff;
  --off-white: #fafafa;
  --light-gray: #f5f5f7;
  --mid-gray: #e8e8ed;
  --dark-gray: #86868b;
  --charcoal: #1d1d1f;
  --black: #000000;
  
  /* Couleurs de marque AmberVault */
  --amber: #c9a227;
  --amber-dark: #a68920;
  --amber-light: #e8d174;
  --amber-subtle: rgba(201, 162, 39, 0.06);
  --amber-glow: rgba(201, 162, 39, 0.12);
  
  /* Couleurs sémantiques */
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-tertiary: #fbfbfd;
  
  /* Bordures et ombres */
  --border-light: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 12px 48px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.08);
  
  /* Rayons et espacements */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  /* Typographie - polices système Apple-like */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Utilitaires de typographie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

/* Conteneur principal */
.page-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Animation d'entrée pour les éléments */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-in {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Délais d'animation pour effet cascade */
.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }

.security-card:nth-child(1),
.feature-card:nth-child(1),
.testimonial-card:nth-child(1) { animation-delay: 0s; }

.security-card:nth-child(2),
.feature-card:nth-child(2),
.testimonial-card:nth-child(2) { animation-delay: 0.1s; }

.security-card:nth-child(3),
.feature-card:nth-child(3),
.testimonial-card:nth-child(3) { animation-delay: 0.2s; }

.feature-card:nth-child(4) { animation-delay: 0.1s; }
.feature-card:nth-child(5) { animation-delay: 0.2s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }

/* Sélection de texte avec couleur de marque */
::selection {
  background: var(--amber);
  color: var(--white);
}

/* Focus visible pour accessibilité */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
