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

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #94a3b8;
    --accent-color: #fbbf24;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3),
      0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3),
      0 4px 6px -4px rgb(0 0 0 / 0.3);
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #ef4444 100%);
  }
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  margin: 0 auto;
  background-color: var(--bg-primary);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Sélecteur de langue */
.language-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.lang-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.lang-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.lang-btn svg {
  width: 16px;
  height: 16px;
}

/* Bannière */
.banner {
  background: var(--gradient-primary);
  padding: 3rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.banner-content {
  position: relative;
  z-index: 1;
}

.banner-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Photo de profil */
.profile-section {
  display: flex;
  justify-content: center;
  margin-top: -4rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.profile-image {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Informations personnelles */
.info-section {
  text-align: center;
  padding: 0 1.5rem;
  margin-bottom: 2rem;
}

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

.title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.company {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 320px;
  margin: 0 auto;
  font-style: italic;
}

/* Boutons d'action */
.actions-section {
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
}

.buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 32px;
  height: 32px;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

/* Informations de contact */
.contact-section {
  padding: 0 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.contact-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.contact-link:active {
  transform: translateY(0);
}

.contact-link svg {
  flex-shrink: 0;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.contact-link:hover svg {
  color: white;
}

/* Réseaux sociaux */
.social-section {
  padding: 0 1.5rem;
  margin-bottom: 2rem;
}

.social-section h3 {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* QR Code */
.qr-section {
  text-align: center;
  padding: 0 1.5rem 2rem;
}

.qr-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.qr-code {
  display: inline-block;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 0.5rem;
}

.qr-code img {
  width: 150px;
  height: 150px;
  border-radius: 0.5rem;
}

.qr-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (min-width: 480px) {
  .banner {
    padding: 3.5rem 2rem 4.5rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
  }

  .banner-title {
    font-size: 1.75rem;
  }

  .profile-image {
    width: 9.5rem;
    height: 9.5rem;
  }

  .name {
    font-size: 2rem;
  }

  .actions-section {
    padding: 0 2rem;
  }

  .contact-section {
    padding: 0 2rem;
  }

  .social-section {
    padding: 0 2rem;
  }

  .qr-section {
    padding: 0 2rem 2rem;
  }

  .btn svg {
    width: 28px;
    height: 28px;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .container {
    max-width: 100%;
    padding: 0 1rem;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 500px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
  }

  .banner {
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    width: auto;
  }
}

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

.profile-section,
.info-section,
.actions-section,
.contact-section,
.social-section,
.qr-section {
  animation: fadeInUp 0.6s ease-out;
}

.info-section {
  animation-delay: 0.1s;
}

.actions-section {
  animation-delay: 0.2s;
}

.contact-section {
  animation-delay: 0.3s;
}

.social-section {
  animation-delay: 0.4s;
}

.qr-section {
  animation-delay: 0.5s;
}

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

/* Focus states */
.btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.social-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.contact-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
