@import url('https://fonts.googleapis.com/css2?family=Tillana:wght@400;500;600;700;800&display=swap');

/* Styles de base pour GrillzByYou */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Navbar styles */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Layout mobile */
.h-screen {
  height: 100vh;
}

.pt-16 {
  padding-top: 4rem;
}

/* Mobile layout */
.flex-col {
  flex-direction: column;
}

.p-4 {
  padding: 1rem;
}

.border-b {
  border-bottom-width: 1px;
}

/* Mobile canvas adjustment */
#grillzCanvas {
  width: 100%;
  max-height: 50vh;
  touch-action: none;
}

/* Sidebar styles - mobile */
.sidebar-container {
  width: 100%;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 4rem;
  z-index: 900;
}

/* Mobile navigation */
.nav-btn {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nav-btn.active {
  background-color: #000000;
  color: white;
}

.nav-btn:not(.active) {
  background-color: #f3f4f6;
  color: #374151;
}

/* Mobile section content */
.section-content {
  padding: 1rem 0;
}

.section-content.hidden {
  display: none;
}

/* Mobile material and stone options */
.material-option,
.stone-option,
.size-option {
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.material-option:hover,
.stone-option:hover,
.size-option:hover {
  background-color: #f9fafb;
}

/* Mobile main content area */
.main-content {
  padding: 1rem;
  background: #f3f4f6;
}

/* Mobile canvas container */
.canvas-container {
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Utility classes */
.flex {
  display: flex;
}

.flex-1 {
  flex: 1 1 0%;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

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

.overflow-auto {
  overflow: auto;
}

/* Colors */
.bg-white {
  background-color: #ffffff;
}

.bg-blue-500 {
  background-color: #000000;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.bg-gray-200 {
  background-color: #e5e7eb;
}

.text-white {
  color: #ffffff;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-800 {
  color: #1f2937;
}

/* Spacing */
.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

/* Typography */
.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

/* Borders and rounded corners */
.rounded-lg {
  border-radius: 0.5rem;
}

.border {
  border-width: 1px;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

/* Shadows */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Hide desktop styles temporarily */
@media (min-width: 1024px) {
  .lg\:flex-row,
  .lg\:w-80,
  .lg\:flex-shrink-0,
  .lg\:border-r,
  .lg\:border-b-0,
  .lg\:p-6,
  .desktop-layout {
    display: none !important;
  }
}

/* Mobile first - sidebar full width */
.sidebar-container {
  width: 100%;
}

/* Desktop - sidebar fixed width */
@media (min-width: 1024px) {
  .lg\:flex-row {
    flex-direction: row;
  }
  
  .lg\:w-80 {
    width: 20rem;
    min-width: 20rem;
    flex-shrink: 0;
    height: auto; /* Permet à la sidebar de prendre seulement la hauteur nécessaire */
  }

  .lg\:flex-shrink-0 {
    flex-shrink: 0;
  }

  .lg\:flex-1 {
    flex: 1 1 0%;
  }
  
  .lg\:border-r {
    border-right-width: 1px;
  }
  
  .lg\:border-b-0 {
    border-bottom-width: 0;
  }
  
  .lg\:p-6 {
    padding: 1.5rem;
  }

  /* S'assurer que le conteneur principal utilise flex-row */
  .desktop-layout {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 4rem); /* Hauteur complète moins la navbar */
  }
}

/* Mobile styles */
.flex-col {
  flex-direction: column;
}

.p-4 {
  padding: 1rem;
}

.border-b {
  border-bottom-width: 1px;
}

/* Mobile canvas adjustment */
@media (max-width: 1023px) {
  #grillzCanvas {
    max-height: 50vh;
  }
}

/* Sidebar styles - desktop par défaut */
.w-80 {
  width: 20rem;
  min-width: 20rem;
}

/* Image styles */
img {
  max-width: 100%;
  height: auto;
}

/* Buttons styles */
button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* Cards et shadows */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

.bg-white {
  animation: fadeIn 0.6s ease-out;
}

/* Utility classes */
.flex {
  display: flex;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-col {
  flex-direction: column;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.space-x-4 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 1rem;
}

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

.overflow-auto {
  overflow: auto;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.bg-white {
  background-color: #ffffff;
}

.bg-blue-500 {
  background-color: #000000;
}

.bg-blue-600 {
  background-color: #2563eb;
}

.bg-gray-500 {
  background-color: #6b7280;
}

.bg-gray-600 {
  background-color: #4b5563;
}

.bg-gray-800 {
  background-color: #1f2937;
}

.text-white {
  color: #ffffff;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-800 {
  color: #1f2937;
}

.text-blue-800 {
  color: #1e40af;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.border {
  border-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-r {
  border-right-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-l-4 {
  border-left-width: 4px;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.border-gray-700 {
  border-color: #374151;
}

.border-blue-400 {
  border-color: #60a5fa;
}

.bg-blue-50 {
  background-color: #eff6ff;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.w-full {
  width: 100%;
}

.h-16 {
  height: 4rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.hover\:bg-blue-600:hover {
  background-color: #2563eb;
}

.hover\:bg-gray-600:hover {
  background-color: #4b5563;
}

.hover\:text-white:hover {
  color: #ffffff;
}

.inline-block {
  display: inline-block;
}

/* Responsive design - suppression des anciens styles conflictuels */
/* Ces styles sont maintenant gérés dans la section mobile-first ci-dessus */

.bg-yellow-400 {
  background-color: #facc15;
}

.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.rounded-full {
  border-radius: 9999px;
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-crosshair {
  cursor: crosshair;
}

.hover\:bg-gray-50:hover {
  background-color: #f9fafb;
}

.bg-blue-100 {
  background-color: #dbeafe;
}

.border-blue-300 {
  border-color: #93c5fd;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.rounded {
  border-radius: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.w-2 {
  width: 0.5rem;
}

.h-2 {
  height: 0.5rem;
}

.w-3 {
  width: 0.75rem;
}

.h-3 {
  height: 0.75rem;
}

.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0.5rem;
}

.bg-gray-400 {
  background-color: #9ca3af;
}

.w-1\.5 {
  width: 0.375rem;
}

.h-1\.5 {
  height: 0.375rem;
}

.w-2\.5 {
  width: 0.625rem;
}

.h-2\.5 {
  height: 0.625rem;
}

.w-3\.5 {
  width: 0.875rem;
}

.h-3\.5 {
  height: 0.875rem;
}

.ml-4 {
  margin-left: 1rem;
}

.p-1 {
  padding: 0.25rem;
}

.bg-red-500 {
  background-color: #ef4444;
}

.bg-blue-200 {
  background-color: #bfdbfe;
}

.bg-green-500 {
  background-color: #10b981;
}

.border-2 {
  border-width: 2px;
}

.border-gray-300 {
  border-color: #d1d5db;
}

.border-blue-200 {
  border-color: #bfdbfe;
}

.hidden {
  display: none;
}

.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.25rem;
}

.ml-6 {
  margin-left: 1.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.ml-auto {
  margin-left: auto;
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.bg-purple-500 {
  background-color: #a855f7;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-700 {
  color: #374151;
}

.bg-red-100 {
  background-color: #fee2e2;
}

.bg-red-200 {
  background-color: #fecaca;
}

.hover\:bg-red-200:hover {
  background-color: #fecaca;
}

.border-red-300 {
  border-color: #fca5a5;
}

.border-red-400 {
  border-color: #f87171;
}

.text-red-600 {
  color: #dc2626;
}

.text-red-700 {
  color: #b91c1c;
}

.cursor-grab {
  cursor: grab;
}

.cursor-grab:active {
  cursor: grabbing;
}

.p-3 {
  padding: 0.75rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.bg-blue-500 {
  background-color: #000000;
}

.text-white {
  color: #ffffff;
}

.border-t {
  border-top-width: 1px;
}

.pt-4 {
  padding-top: 1rem;
}

.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Responsive breakpoints - correction */
@media (min-width: 1024px) {
  .lg\:flex-row {
    flex-direction: row;
  }
  
  .lg\:w-80 {
    width: 20rem;
    min-width: 20rem;
  }
  
  .lg\:min-w-80 {
    min-width: 20rem;
  }
}

/* Mobile first styles */
.flex-col {
  flex-direction: column;
}

/* Sidebar adjustments for mobile uniquement */
@media (max-width: 1023px) {
  .w-full {
    width: 100% !important;
  }
  
  .lg\:w-80 {
    width: 100% !important;
    min-width: auto !important;
  }
  
  /* Reduce padding on mobile for sidebar */
  .sidebar-mobile .p-6 {
    padding: 1rem;
  }
  
  /* Adjust canvas size for mobile */
  #grillzCanvas {
    max-height: 50vh;
  }
  
  /* Remove border-r on mobile */
  .lg\:border-r {
    border-right: none;
  }
}

/* Garde seulement les classes utilitaires nécessaires */
/* Toutes les autres définitions sont déjà faites plus haut dans le fichier */

/* Fin du fichier CSS - styles responsive corrigés */

.min-h-screen {
  min-height: 100vh;
} 

.logo {
  height: 35px;
}

.draw-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.draw-header-right {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 20px;
  /* font familly stylé écrite à la main*/
  font-family: "Tillana", system-ui;
  font-weight: 400;
  font-style: normal;
}