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

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 1rem;
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: #e84c3d;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #444;
}

nav a:hover {
  color: #e84c3d;
}

footer {
  background: #f5f5f5;
  border-top: 1px solid #e5e5e5;
  padding: 2rem 1rem;
  text-align: center;
  color: #666;
  font-size: 0.875rem;
}

footer p + p {
  margin-top: 0.5rem;
}

/* Grille coloriages */
.grid-coloriages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.carte-coloriage {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.carte-coloriage:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carte-coloriage img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

.carte-coloriage-titre {
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Bouton */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #e84c3d;
  color: #fff;
}

.btn-primary:hover {
  background: #c0392b;
}

.btn-amazon {
  background: #ff9900;
  color: #111;
}

.btn-amazon:hover {
  background: #e68a00;
}

.btn-disabled {
  background: #eee;
  color: #888;
  cursor: default;
}
