/**
 * Premium Theme - PC800.fr (Vanilla CSS)
 * Pas de Tailwind - Classes utilitaires manuelles
 */

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

/* Variables */
:root {
  --red-700: #C41E3A;
  --red-800: #A01830;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --metal-100: #F5F5F4;
  --metal-200: #E7E5E4;
  --metal-800: #292524;
  --metal-900: #1C1917;
}

/* Base */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  color: var(--gray-900);
  background-color: white;
}

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

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

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* Sections - Padding réduit de 30-40% */
.section {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

@media (min-width: 768px) {
  .section { padding: 3rem 0; }
}

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

.section-header__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red-700);
  margin-bottom: 0.5rem;
  display: block;
}

.section-header__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.section-header__intro {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 600px;
  margin-top: 0.75rem;
}

/* Backgrounds */
.bg-white { background-color: white; }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-metal-100 { background-color: var(--metal-100); }
.bg-metal-200 { background-color: var(--metal-200); }
.bg-metal-800 { background-color: var(--metal-800); }
.bg-metal-900 { background-color: var(--metal-900); }
.bg-red-700 { background-color: var(--red-700); }
.bg-red-50 { background-color: #FEF2F2; }

/* Alternance de fonds pour les sections */
.bg-section-gray { background-color: #F8F9FA; }
.bg-section-beige { background-color: #FFF9F5; }
.bg-dark { background-color: #0A0A0A; }

/* Borders */
.border-top { border-top: 1px solid rgba(0,0,0,0.06); }
.border-left-accent { border-left: 4px solid var(--red-700); }

/* Text colors */
.text-white { color: white; }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }
.text-red-400 { color: #F87171; }
.text-red-500 { color: #EF4444; }
.text-red-700 { color: var(--red-700); }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.1em; }

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

/* Spacing */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }

.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

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

@media (min-width: 768px) {
  .md\\:flex { display: flex; }
  .md\\:hidden { display: none; }
  .md\\:flex-row { flex-direction: row; }
  .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\\:w-1\\/3 { width: 33.333333%; }
  .md\\:w-2\\/3 { width: 66.666667%; }
  .md\\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .md\\:text-right { text-align: right; }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Widths & Heights */
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-20 { width: 5rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }

.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }

/* Borders */
.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }

.border-gray-100 { border-color: var(--gray-100); }
.border-gray-200 { border-color: var(--gray-200); }
.border-gray-300 { border-color: var(--gray-300); }
.border-gray-600 { border-color: var(--gray-600); }
.border-gray-700 { border-color: var(--gray-700); }
.border-metal-700 { border-color: #44403C; }

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

/* Positioning */
.relative { position: relative; }
.fixed { position: fixed; }
.absolute { position: absolute; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.bottom-0 { bottom: 0; }
.bottom-8 { bottom: 2rem; }
.left-0 { left: 0; }
.left-1\\/2 { left: 50%; }
.left-4 { left: 1rem; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.-translate-x-1\\/2 { transform: translateX(-50%); }
.-translate-y-1\\/2 { transform: translateY(-50%); }

/* Backdrop blur */
.backdrop-blur-md { backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* Opacity */
.opacity-5 { opacity: 0.05; }
.opacity-10 { opacity: 0.1; }
.opacity-60 { opacity: 0.6; }

/* Misc */
.whitespace-nowrap { white-space: nowrap; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

.transition-all { transition-property: all; }
.transition-colors { transition-property: color, background-color, border-color; }
.transition-transform { transition-property: transform; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.hover\\:border-gray-300:hover { border-color: var(--gray-300); }
.hover\\:border-red-700:hover { border-color: var(--red-700); }
.hover\\:bg-red-800:hover { background-color: var(--red-800); }
.hover\\:bg-gray-50:hover { background-color: var(--gray-50); }
.hover\\:bg-gray-900:hover { background-color: var(--gray-900); }
.hover\\:bg-white\\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\\:text-gray-900:hover { color: var(--gray-900); }
.hover\\:text-red-300:hover { color: #FCA5A5; }
.hover\\:text-red-700:hover { color: var(--red-700); }
.hover\\:-translate-y-0\\.5:hover { transform: translateY(-2px); }
.hover\\:-translate-y-1:hover { transform: translateY(-4px); }
.hover\\:scale-105:hover { transform: scale(1.05); }
.hover\\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

.focus\\:outline-none:focus { outline: none; }
.focus\\:border-red-700:focus { border-color: var(--red-700); }
.focus\\:ring-2:focus { box-shadow: 0 0 0 2px var(--red-700); }

.animate-bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Aspect ratios */
.aspect-video { aspect-ratio: 16 / 9; }
.aspect\\[4\\/3\\] { aspect-ratio: 4 / 3; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f1f1f1; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }

/* Components */
.card {
  background-color: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--gray-300);
  transform: translateY(-3px);
}

/* Feature cards avec fond beige léger */
.feature-card {
  background-color: #FFFCFA;
  border: 1px solid #F0E6E0;
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-color: #E5D5CC;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--red-700), 0 0 0 4px white;
}

.btn--primary {
  background-color: var(--red-700);
  color: white;
  box-shadow: 0 4px 14px rgba(196, 30, 58, 0.35);
}

.btn--primary:hover {
  background-color: var(--red-800);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.45);
}

.btn--secondary {
  background-color: white;
  color: var(--gray-900);
  border: 2px solid var(--gray-300);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn--secondary:hover {
  border-color: var(--red-700);
  color: var(--red-700);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--gray-900);
  background-color: white;
  border: 2px solid var(--gray-300);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.input:focus {
  border-color: var(--red-700);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
  outline: none;
}

.input::placeholder {
  color: var(--gray-400);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--red {
  background-color: rgba(196, 30, 58, 0.1);
  color: var(--red-700);
}

.badge--metal {
  background-color: var(--gray-100);
  color: var(--gray-600);
}

/* Fade animation */
.fade-in {
  animation: fadeIn 0.4s ease;
}

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