/* KiM - Styles globaux */
/* Ce fichier peut être étendu pour centraliser tous les styles */

/* Variables CSS globales */
:root {
  --red: #E53935;
  --red-600: #D32F2F;
  --green: #2E7D32;
  --yellow: #FFB300;
  --bg: #FFF9F6;
  --card: #FFFFFF;
  --ink: #121212;
  --muted: #6b7280;
  --ring: 0 0 0 3px rgba(229, 57, 53, .25);
  --radius: 16px;
  --shadow: 0 10px 25px rgba(0, 0, 0, .07);
}

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

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(46, 125, 50, .08), transparent 60%),
              radial-gradient(900px 400px at -10% 0%, rgba(255, 179, 0, .08), transparent 60%), 
              var(--bg);
  line-height: 1.45;
}

/* Utilitaires */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Impression */
@media print {
  header, footer, .btn, .recipe-actions {
    display: none !important;
  }
  
  body {
    background: white;
  }
  
  .recipe-section {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Accessibilité */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible pour navigation clavier */
*:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
