/*
Theme Name: ziri-langue
Author: ziri-langue
Version: 1.0
Description: site de centre ziri de langage pour passer des quizz 
*/
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #475569;
  background-color: #ffffff;
}
img {
  width: 100px;
  margin-left: 45%;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: #ecfeff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  color: #164e63;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo p {
  color: #6b7280;
  font-size: 0.875rem;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  color: #475569;
  text-decoration: none;
  transition: color 0.3s;
}

.nav a:hover {
  color: #164e63;
}

/* Added authentication styles */

/* User welcome message */
.user-welcome {
  color: #164e63;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  border-radius: 6px;
}

/* Logout button */
.btn-logout {
  background-color: #dc2626;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn-logout:hover {
  background-color: #b91c1c;
}

/* Authentication container */
.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  background-color: #f9fafb;
}

.auth-box {
  background: white;
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  width: 100%;
}

.auth-box h2 {
  color: #164e63;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-subtitle {
  color: #6b7280;
  text-align: center;
  margin-bottom: 2rem;
}

/* Alert messages */
.alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.alert-error {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-success {
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.alert-info {
  background-color: #dbeafe;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  text-align: center;
  margin: 1.5rem 0;
}

.alert-link {
  color: #065f46;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 0.5rem;
}

/* Form styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-group input {
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #164e63;
}

.form-group small {
  color: #6b7280;
  font-size: 0.75rem;
}

.btn-full {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: #6b7280;
}

.auth-footer a {
  color: #164e63;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #475569;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.features span {
  color: #6b7280;
  font-size: 1rem;
}

/* Test Levels Section */
.tests {
  padding: 4rem 0;
  background-color: #f9fafb;
}

.tests h3 {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
  color: #475569;
}

.tests > .container > p {
  text-align: center;
  color: #6b7280;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.test-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.test-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.level-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: bold;
}

.level-badge.a1 {
  background-color: #dcfce7;
  color: #166534;
}

.level-badge.a2 {
  background-color: #dbeafe;
  color: #1e40af;
}

.level-badge.b1 {
  background-color: #fef3c7;
  color: #92400e;
}

.level-badge.b2 {
  background-color: #fed7aa;
  color: #c2410c;
}

.duration {
  font-size: 0.875rem;
  color: #6b7280;
}

.test-card h4 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #475569;
}

.test-card p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background-color: #164e63;
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s;
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #0f3a47;
}

/* About Section */
.about {
  padding: 4rem 0;
}

.about h3 {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #475569;
}

.about > .container > p {
  text-align: center;
  color: #6b7280;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.about-item {
  text-align: center;
}

.about-item h4 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #475569;
}

.about-item p {
  color: #6b7280;
}

/* Footer */
.footer {
  background-color: #ecfeff;
  border-top: 1px solid #e5e7eb;
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .features {
    flex-direction: column;
    gap: 1rem;
  }

  .test-grid {
    grid-template-columns: 1fr;
  }

  .auth-box {
    padding: 1.5rem;
    margin: 0 1rem;
  }
}
