/* Style principal pour JJK COUTURE */

:root {
  --primary-color: #DAA520; /* Jaune Or plus sombre */
  --background-color: #FFFFFF; /* Blanc */
  --text-color: #333333;
  --border-color: #DDDDDD;
  --success-color: #4CAF50;
  --error-color: #F44336;
  --dark-color: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Header & Navigation */
.main-header {
  background-color: var(--primary-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo-jjk {
  color: white;
  background-color: var(--dark-color);
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
}

.logo-couture {
  color: var(--dark-color);
  background-color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  margin-left: 5px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-color);
  transition: color 0.3s;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--background-color);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-color);
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  flex: 1;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Footer */
.main-footer {
  text-align: center;
  padding: 2rem;
  background-color: var(--dark-color);
  color: var(--background-color);
  margin-top: auto;
}

/* Forms */
form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-width: 100%;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.2);
}

button, .btn {
  background-color: var(--primary-color);
  color: var(--dark-color);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
  font-weight: bold;
}

button:hover, .btn:hover {
  background-color: #B8860B;
  color: var(--dark-color);
}

/* Styled links for auth pages */
.auth-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
}

.auth-link:hover {
  color: var(--dark-color);
  text-decoration: underline;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: #f5f5f5;
  font-weight: bold;
}

tr:hover {
  background-color: #f9f9f9;
}

/* Alerts */
.alert {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Dashboard */
.dashboard-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.dashboard-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  border: 2px solid var(--primary-color);
}

.dashboard-card:hover {
  transform: translateY(-5px);
  background-color: var(--primary-color);
}

.dashboard-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.dashboard-card:hover h3 {
  color: var(--dark-color);
}

.search-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 2rem 0;
  border: 2px solid var(--primary-color);
}

#search-results {
  margin-top: 1rem;
}

#search-results ul {
  list-style: none;
}

#search-results li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.recent-clients {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 2rem 0;
  overflow-x: auto;
  border: 2px solid var(--primary-color);
}

.recent-clients table {
  min-width: 600px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: 0;
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid var(--background-color);
  }
  
  .hamburger {
    display: block;
  }
  
  nav {
    padding: 1rem;
  }
  
  main {
    margin: 1rem auto;
    padding: 0 0.5rem;
  }
  
  .dashboard-container {
    grid-template-columns: 1fr;
  }
  
  .recent-clients {
    padding: 1rem;
  }
  
  form {
    padding: 1rem;
  }
}