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

:root {
  --primary-blue: #1e40af;
  --light-blue: #3b82f6;
  --primary-yellow: #fbbf24;
  --light-yellow: #fcd34d;
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --text-dark: #1e293b;
  --text-light: #64748b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Barre de progression */
.progress-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-yellow));
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  z-index: 9999;
  animation: progressFill 0.8s ease-in-out;
}

@keyframes progressFill {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
  color: var(--white);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(30, 64, 175, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--primary-yellow);
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo-text p {
  font-size: 0.85rem;
  opacity: 0.9;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav button,
nav a {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--primary-yellow);
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav button:hover,
nav a:hover {
  background: var(--primary-yellow);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

nav button.active {
  background: var(--primary-yellow);
  color: var(--primary-blue);
}

nav .inscription-link {
  background: var(--primary-yellow);
  color: var(--primary-blue);
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Main content */
main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

.page-section {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  animation: pageSlide 0.5s ease-out;
}

.page-section.active {
  display: block;
  opacity: 1;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 50%, var(--primary-yellow) 100%);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(30px);
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-button {
  background: var(--primary-yellow);
  color: var(--primary-blue);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  animation: slideIn 0.5s ease-out;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.2);
  border-color: var(--primary-yellow);
}

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

.card-icon {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* Enseignants */
.teacher-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  animation: slideIn 0.5s ease-out;
}

.teacher-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.2);
}

.teacher-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-yellow));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
}

.teacher-card h3 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.teacher-subject {
  color: var(--primary-yellow);
  font-weight: bold;
  margin-bottom: 1rem;
}

.teacher-info {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.contact-badge {
  display: inline-block;
  background: var(--light-bg);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: var(--primary-blue);
  font-size: 0.85rem;
}

/* Heures des professeurs */
.teacher-hours {
  background: linear-gradient(135deg, #f0f9ff, #fef9c3);
  border-left: 4px solid var(--primary-yellow);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--text-dark);
  font-weight: 500;
}

.teacher-hours i {
  color: var(--primary-yellow);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.teacher-hours p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Section horaires administration */
.admin-hours-section {
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  color: var(--white);
  padding: 3rem 2rem;
  border-radius: 15px;
  margin-bottom: 3rem;
  text-align: center;
}

.admin-hours-section h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.admin-hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.admin-hour-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.admin-hour-card:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary-yellow);
  transform: translateY(-5px);
}

.admin-hour-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.admin-hour-card p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--light-yellow);
}

.badge-open,
.badge-closed {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.badge-open {
  background: #10b981;
  color: var(--white);
}

.badge-closed {
  background: #ef4444;
  color: var(--white);
}

/* À Propos */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  color: var(--primary-blue);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-text ul {
  list-style: none;
  padding-left: 0;
}

.about-text li {
  color: var(--text-light);
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

.about-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-yellow);
  font-weight: bold;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  color: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
}

.stat-card h4 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-bg) 100%);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  color: var(--white);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--primary-yellow);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }

  nav {
    gap: 0.5rem;
  }

  nav button,
  nav a {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--primary-blue);
    flex-direction: column;
    gap: 0;
    padding: 1rem;
  }

  nav.mobile-open {
    display: flex;
  }

  nav button,
  nav a {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 2px solid var(--primary-yellow);
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-hours-section h3 {
    font-size: 1.5rem; /* Adjust for smaller screens */
    flex-direction: column;
    gap: 0.5rem;
  }
}