/**
 * ========================================
 * FEUILLE DE STYLE OPTIMISÉE - 1 BROUILLON
 * ========================================
 *
 * Système de design unifié pour l'application "Quotes Game".
 * Architecture CSS moderne avec variables, composants réutilisables
 * et responsive design.
 *
 * PAGES GÉRÉES :
 * - index.html : Interface de jeu avec dés 3D
 * - histoire.html : Masonry lecture seule des citations
 * - cheffe.html : Formulaire d'administration
 * - shop.html : Boutique de cartes aquarelle
 * - contact.html : Page de crédits
 *
 * STRUCTURE OPTIMISÉE :
 * 1. Variables CSS globales
 * 2. Reset et base
 * 3. Composants réutilisables
 * 4. Navigation unifiée
 * 5. Pages spécifiques
 * 6. Responsive design
 *
 * ========================================
 */

/* ===== 1. VARIABLES CSS GLOBALES ===== */
:root {
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #b8ffcb 0%, #fbffde 100%);
  --gradient-secondary: linear-gradient(135deg, #b8ffcb 20%, #fbffde 80%);

  /* Couleurs */
  --color-white: #ffffff;
  --color-dark: #2c3e50;
  --color-text: #34495e;
  --color-text-light: #7f8c8d;
  --color-success: #27ae60;
  --color-error: #e74c3c;

  /* Ombres */
  --shadow-soft: 0 4px 20px rgba(184, 255, 203, 0.3);
  --shadow-medium: 0 8px 32px rgba(184, 255, 203, 0.4);
  --shadow-strong: 0 12px 40px rgba(184, 255, 203, 0.5);

  /* Radius */
  --radius: 0.8rem;
  --radius-large: 1.2rem;
  --radius-xl: 1.8rem;

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 2. RESET ET BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: #f5f2e8;
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== 3. COMPOSANTS RÉUTILISABLES ===== */

/* Titres de page */
.page-title {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 99;
  color: var(--color-dark);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--color-white);
  color: var(--color-text);
  border: none;
  border-radius: var(--radius-large);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-secondary);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: var(--color-dark);
}

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

.btn-primary {
  background: var(--gradient-secondary);
  color: var(--color-dark);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: var(--radius-xl);
}

/* Formulaires */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-dark);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius-large);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 1rem;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-soft);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: #b8ffcb;
  box-shadow: var(--shadow-medium);
  transform: translateY(-1px);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Utilitaires */
.text-break {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ===== 4. NAVIGATION UNIFIÉE ===== */
.game-nav,
.admin-nav,
.contact-nav,
.shop-nav,
.histoire-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 0.75rem;
  background: var(--color-white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition-fast);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--gradient-secondary);
  color: var(--color-dark);
  transform: translateY(-1px);
}

.nav-link.active {
  background: var(--gradient-secondary);
  color: var(--color-dark);
  font-weight: 600;
}

/* ===== 5. PAGES SPÉCIFIQUES ===== */

/* ===== PAGE JEU (index.html) ===== */
.game-container {
  position: relative;
  min-height: 100vh;
  background: #f5f2e8;
  overflow-x: hidden;
  overflow-y: auto;
}

.game-container-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 1800px;
  margin: 0 auto;
  padding: 10rem 2rem 2rem 2rem;
  height: calc(100vh - 9rem);
}

.game-canvas {
  display: block;
  width: 900px;
  height: 650px;
  border: 2px solid #d4f4dd;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  flex-shrink: 0;
}

.grimoire-3d-container {
  display: none;
}

/* Bouton grimoire */
.grimoire-button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 4rem;
  height: 4rem;
  background: var(--color-white);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-medium);
  cursor: pointer;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: var(--transition-smooth);
  line-height: 1;
  padding-bottom: 0.2rem;
}

.grimoire-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-strong);
}

/* Modal grimoire */
.grimoire-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.grimoire-modal.show {
  display: flex;
}

.grimoire-modal-content {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
  width: 90%;
  max-width: 1000px;
  height: 90vh;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

.grimoire-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 2px solid #eee;
  background: var(--gradient-secondary);
}

.grimoire-modal-header h2 {
  margin: 0;
  color: var(--color-dark);
  font-size: 1.5rem;
  font-weight: 700;
}

.grimoire-modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-text-light);
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.grimoire-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--color-error);
}

.grimoire-modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.grimoire-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 2px solid #eee;
  text-align: center;
  background: var(--gradient-secondary);
}

.grimoire-open-button {
  padding: 1rem 2.5rem;
  font-size: 1.3rem;
  background: var(--color-white);
  color: var(--color-dark);
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-weight: 700;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-smooth);
}

.grimoire-open-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.grimoire-open-button.opened {
  background: var(--color-success);
  color: white;
}

.grimoire-open-button:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.grimoire-open-button:disabled:hover {
  transform: none;
  box-shadow: var(--shadow-medium);
}

.grimoire-3d-modal-container {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border-radius: var(--radius-xl);
  background: #f5f2e8;
  display: block;
}

/* Bouton lancer dés */
.game-roll-btn {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  font-size: 1.5rem;
  background: var(--color-white);
  color: var(--color-dark);
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  z-index: 100;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-smooth);
  font-weight: 700;
}

.game-roll-btn:hover {
  transform: translateX(-50%) translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-strong);
  background: var(--gradient-secondary);
}

.game-roll-btn:active {
  transform: translateX(-50%) translateY(-2px) scale(1.02);
}

/* Notifications du dé */
.dice-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  max-width: 90vw;
  width: 400px;
  max-height: 80vh;
  overflow-y: auto;
}

.dice-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.dice-notification-content {
  padding: 2rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.close-notification-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-light);
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.close-notification-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--color-error);
}

.dice-notification-content h3 {
  margin: 0 0 1rem 0;
  color: var(--color-dark);
  font-size: 1.3rem;
}

.dice-notification-content p {
  margin: 0;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.4;
}

.notification-quote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-dark);
  margin: 1rem 0;
  padding: 0;
  border: none;
  background: none;
  line-height: 1.5;
  white-space: pre-wrap;
  width: 100%;
  box-sizing: border-box;
}

.notification-author {
  font-weight: 600;
  color: var(--color-text-light);
  margin: 0.5rem 0 0 0;
  font-size: 0.95rem;
}

.notification-date {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin: 0.3rem 0 0 0;
  opacity: 0.8;
}

/* ===== PAGE SHOP ===== */
.shop-container {
  position: relative;
  min-height: 100vh;
  background: #f5f2e8;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

.shop-content {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 8rem;
}

.shop-subtitle {
  color: var(--color-text);
  text-align: center;
  margin-bottom: 4rem;
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0 6rem;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.product-title {
  color: var(--color-dark);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin: 1.5rem 0 1rem 0;
}

.product-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-price {
  color: var(--color-dark);
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  margin: 1rem 0 1.5rem 0;
}

.product-buy-btn {
  background: var(--gradient-secondary);
  color: var(--color-dark);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-large);
  cursor: pointer;
  transition: var(--transition-smooth);
  margin: 0 1.5rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.product-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: var(--color-success);
  color: white;
}

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

/* ===== PAGE CONTACT ===== */
.contact-container {
  min-height: 100vh;
  background: #f5f2e8;
  padding: 2rem;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  max-width: 800px;
  margin: 0 auto;
}

.contact-title {
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.credits-card {
  background: #d4f4dd;
  border-radius: 1.5rem;
  padding: 3rem;
  width: 100%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
}

.credits-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.credits-content p {
  font-size: 1.2rem;
  margin: 1.5rem 0;
  color: var(--color-text);
  line-height: 1.6;
}

.credits-content strong {
  color: var(--color-dark);
  font-weight: 700;
}

/* ===== PAGES ADMIN (cheffe.html & histoire.html) ===== */
.admin-container {
  min-height: 100vh;
  background: #f5f2e8;
  padding: 2rem 0;
}

.admin-form-container {
  display: flex;
  justify-content: center;
  padding: 4rem 2rem 2rem 2rem;
  width: 100%;
}

.admin-form {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-medium);
  padding: 3rem;
  width: 100%;
  max-width: 600px;
  position: relative;
  overflow: hidden;
}

.admin-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-secondary);
}

.admin-form h1 {
  color: var(--color-dark);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2rem;
}

/* Messages admin */
.admin-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-large);
  text-align: center;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition-smooth);
}

.admin-message.show {
  opacity: 1;
  transform: translateY(0);
}

.admin-message.success {
  background: rgba(39, 174, 96, 0.1);
  color: var(--color-success);
  border: 2px solid rgba(39, 174, 96, 0.2);
}

.admin-message.error {
  background: rgba(231, 76, 60, 0.1);
  color: var(--color-error);
  border: 2px solid rgba(231, 76, 60, 0.2);
}

/* Modal de sélection des tags */
.tag-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.tag-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag-modal-content {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

.tag-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #eee;
}

.tag-modal-header h3 {
  margin: 0;
  color: var(--color-dark);
  font-size: 1.3rem;
}

.tag-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-light);
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.tag-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--color-error);
}

.tag-modal-body {
  padding: 2rem;
}

.tag-selector-modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tag-option-modal {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0.5rem;
  border-radius: var(--radius);
}

.tag-option-modal:hover {
  background: rgba(184, 255, 203, 0.1);
}

.tag-checkbox {
  display: none;
}

.tag-face-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: var(--transition-fast);
  border: 2px solid transparent;
  width: 100%;
}

.tag-checkbox:checked + .tag-face-modal {
  border-color: white;
  box-shadow: 0 0 0 2px var(--color-dark);
  transform: scale(1.05);
}

.tag-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #eee;
  text-align: center;
}

/* Masonry des citations */
.admin-quotes-section {
  margin-top: 4rem;
  width: 100%;
  padding: 0 2rem;
}

.admin-quotes-section h2 {
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.quotes-masonry {
  column-count: 3;
  column-gap: 2rem;
  padding: 2rem 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.quote-card {
  break-inside: avoid;
  background: #d4f4dd;
  border-radius: 1.5rem;
  box-shadow: none;
  padding: 1.8rem;
  margin-bottom: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: visible;
  border: none;
  cursor: pointer;
  min-height: 120px;
  box-sizing: border-box;
}

.quote-card:hover {
  backdrop-filter: blur(2px);
  background: rgba(212, 244, 221, 0.8);
}

.quote-card:hover .quote-content {
  filter: blur(1px);
  opacity: 0.7;
}

.quote-content {
  font-size: 1.1rem;
  line-height: 1.6;
  width: 100%;
}

.quote-content p {
  margin: 0 0 1rem 0;
  font-weight: 500;
  white-space: pre-wrap;
}

.quote-content em {
  font-size: 1rem;
  color: var(--color-text-light);
  font-style: normal;
  font-weight: 600;
}

.quote-date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition-smooth);
  pointer-events: none;
  z-index: 10;
}

.quote-card:hover .quote-date {
  opacity: 1;
  transform: translateY(0);
}

/* Cartes admin avec suppression */
.admin-quote-card {
  position: relative;
}

.delete-quote-btn {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 1.8rem;
  height: 1.8rem;
  border: none;
  border-radius: 50%;
  background: var(--color-error);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  opacity: 0;
  transform: scale(0.8);
  z-index: 10;
}

.admin-quote-card:hover .delete-quote-btn {
  opacity: 1;
  transform: scale(1);
}

.delete-quote-btn:hover {
  background: #c0392b;
  transform: scale(1.1) rotate(90deg);
}

.quote-meta {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.quote-tags {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.quote-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  border-radius: 50%;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* ===== 6. ANIMATIONS ===== */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 7. RESPONSIVE DESIGN ===== */

/* Tablettes */
@media (max-width: 1200px) {
  .products-grid {
    margin: 0 3rem;
  }

  .game-container-main {
    justify-content: center;
    gap: 3rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .quotes-masonry {
    column-count: 2;
    padding: 2rem 2rem;
  }

  .game-container-main {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 1rem;
  }

  .game-canvas {
    width: 100%;
    max-width: 400px;
    height: 300px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 0 1rem;
  }

  .product-image {
    height: 200px;
  }

  .product-title {
    font-size: 1.3rem;
  }

  .product-price {
    font-size: 1.2rem;
  }

  .shop-content {
    padding-top: 7rem;
  }

  .contact-container {
    padding: 1rem;
  }

  .contact-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .credits-card {
    padding: 2rem;
  }

  .credits-content p {
    font-size: 1.1rem;
    margin: 1rem 0;
  }

  .admin-form {
    padding: 2rem;
    margin: 1rem;
  }
}

/* Petit mobile */
@media (max-width: 480px) {
  .quotes-masonry {
    column-count: 1;
    padding: 2rem 1rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 0;
  }
}