
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f6f7f9;
  color: #333;
  line-height: 1.6;
}
header {
  /*background: linear-gradient(135deg, #003f66, #005f99);*/
  background: #002b45;
  color: white;
  padding-bottom: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.header-top {
  background: rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  padding: 5px 0;
  letter-spacing: 0.3px;
  animation: fadeIn 1s ease;
}

.header-top p {
  margin: 0;
  color: #e0f0ff;
}
.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
}
/* Menu de navigation */
nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-bottom: 8px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

/* Couleur et effet au survol */
nav a:hover {
  background: rgba(255, 255, 255, 0.35); /* un peu plus visible que 0.25 */
  transform: scale(1.05);
}

/* Couleur pour la page active */
nav a.active {
  background: rgba(255, 255, 255, 0.6); /* couleur plus claire pour l’actif */
  color: #004f7c; /* texte foncé pour contraster */
}


/* Animation d’apparition */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 700px) {
  .header-text h1 {
    font-size: 1.3rem;
  }
  .logo {
    width: 50px;
    height: 50px;
  }
}
header h1 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 5px;
}
header p {
  text-align: center;
  font-size: 0.95rem;
}
/* Partie principale */
.header-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 15px 10px;
}

.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
}

.header-text h1 {
  font-size: 1.7rem;
  margin: 0;
  text-align: center;
}

.header-text p {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 4px;
  color: #d6ecff;
}




/* --- ANIMATIONS GLOBALES --- */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeIn 1.2s ease forwards;
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 1s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 1.5s ease forwards;
}
@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

/*Hero section*/

/* ======== HERO SLIDER ======== */
.hero {
  position: relative;
  width: 100%;
  height: 80vh; /* ajuste la hauteur comme tu veux (ex: 70vh, 90vh) */
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* fond dynamique (si tu utilises plusieurs images animées) */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: slideShow 12s infinite;
  transition: opacity 1s ease;
}

/* images du slider */
.hero-bg.bg {
  background-image: url('../img/lekol.jpg');
  animation-delay: 0s;
}
.hero-bg.bg1 {
  background-image: url('../img/lekol1.jpg');
  animation-delay: 4s;
}
.hero-bg.bg2 {
  background-image: url('../img/lekol2.jpg');
  animation-delay: 8s;
}

/* animation */
@keyframes slideShow {
  0%, 33% { opacity: 1; }
  34%, 100% { opacity: 0; }
}

/* superposition foncée pour lisibilité du texte */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.55)
  ); /* ✅ Voile sombre dégradé pour améliorer la lisibilité du texte */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  z-index: 2;
}

/* contenu texte */
.hero-text {
  color: white;
  z-index: 2;
  max-width: 700px;
}

.hero-text h2 {
  color: #ffcc33;
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero-btn {
  display: inline-block;
  background: #ffcc33;
  color: #222;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background: #ffd84d;
  transform: scale(1.05);
}

/* Animation du texte */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }

  .hero-text h2 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }
}

/* ======== ABOUT SECTION ======== */
.about-school {
  padding: 3rem 1rem;
  text-align: center;
  background: #fafafa;
  border-top: 4px solid #0056a6;
}

.about-school h2 {
  color: #004080;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.about-school p {
  color: #444;
  max-width: 800px;
  margin: 0 auto 1rem auto;
  line-height: 1.6;
}

.goals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 350px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  border-left: 6px solid #0077cc;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}


/* ======== TEAM GALLERY ======== */
.team-gallery {
  padding: 3rem 1rem;
  text-align: center;
  background: #f5f9ff;
}

.team-gallery h2 {
  font-size: 1.9rem;
  color: #003366;
  margin-bottom: 2rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid #0066cc;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
  border-color: #ffcc33;
}

/* ======== TEAM TEXT ======== */
.team-text {
  max-width: 800px;
  margin: 1.5rem auto 0;
  color: #333;
  line-height: 1.6;
}

/* ======== ANIMATIONS ======== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }

  .hero-text h2 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .goals {
    flex-direction: column;
    align-items: center;
  }

  .gallery-item img {
    height: 240px;
  }
}



.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #ddd;
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
}


/* --- Version uniforme pour les cartes des professeurs --- */
.teachers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 25px;
  justify-items: center;
}

/* Chaque carte a la même taille */
.teacher {
  width: 220px;
  height: 260px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.teacher:hover {
  transform: translateY(-3px);
}

/* Toutes les photos ont la même dimension */
.teacher img {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #004f7c;
  margin-bottom: 10px;
}

/* Texte uniforme et centré */
.teacher h4 {
  font-size: 1rem;
  color: #004f7c;
  margin-bottom: 5px;
}

.teacher p {
  font-size: 0.9rem;
  color: #555;
}

/* Responsive pour petits écrans */
@media (max-width: 600px) {
  .teacher {
    width: 180px;
    height: 240px;
  }
  .teacher img {
    width: 75px;
    height: 75px;
  }
}

/*section pour les class */

.class-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 1rem;
}

/* Style général des cartes */
.class-item {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

/* Animation d’apparition douce */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation légère au survol */
.class-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Titres */
.class-item h3 {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* Texte interne */
.class-item p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Bordures personnalisées selon la matière */
.class-item:nth-child(1) {
  border-top: 5px solid #007bff; /* Matematik - ble teknoloji */
  animation-delay: 0.1s;
}
.class-item:nth-child(2) {
  border-top: 5px solid #28a745; /* Syans - vèt inovasyon */
  animation-delay: 0.3s;
}
.class-item:nth-child(3) {
  border-top: 5px solid #ff9800; /* Lang - zoranj kominikasyon */
  animation-delay: 0.5s;
}

/* Responsive pour mobile */
@media (max-width: 600px) {
  .class-item {
    padding: 15px;
  }
  .class-item h3 {
    font-size: 1.1rem;
  }
}





/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1rem;
  align-items: start;
}

/* Bloc du formulaire */
.contact-form {
  background: var(--card);
  padding: 1rem;
  border-radius: 12px;
}

/* Champs du formulaire */
.input,
textarea {
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid #e4e7ec;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  resize: none;
}

/* Bouton principal */
.btn {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(42, 111, 158, 0.16);
  filter: brightness(1.02);
}

/* ✅ Responsive: tablette et mobile */
@media (max-width: 850px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form {
    padding: 1.2rem;
  }

  textarea {
    min-height: 150px;
  }
}

/* ✅ Petits téléphones */
@media (max-width: 480px) {
  .contact-form {
    padding: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Responsive pour petits écrans */



form {
  background: white;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
}
input, textarea {
  width: 100%;
  padding: 8px;
  margin: 6px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}
button {
  background: #004f7c;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background: #0070b0;
}

@media (max-width: 700px) {
  header h1 {
    font-size: 1.4rem;
  }
}

/* --- Footer ITIS --- */
.footer {
  background: #002b45;
  color: #f5f5f5;
  margin-top: 40px;
  padding: 40px 0 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  width: 90%;
  max-width: 1000px;
  margin: auto;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.footer-section p {
  color: #ddd;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 6px;
}

.footer-section a {
  color: #cce5ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: white;
  text-decoration: underline;
}

.footer-social {
  margin-top: 10px;
}

.footer-social a {
  margin-right: 8px;
  display: inline-block;
}

.footer-social img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social img:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
  color: #cce5ff;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 700px) {
  .footer-container {
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
}

/* ======== PAGE LABORATWA ======== */
.lab-intro {
  text-align: center;
  margin-top: 3rem;
}

.lab-intro h2 {
  color: #004080;
  font-size: 1.9rem;
  margin-bottom: 0.8rem;
}

.lab-intro p {
  color: #444;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.lab-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.lab-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 1s ease forwards;
}

.lab-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 4px solid #007baf;
}

.lab-card h3 {
  color: #004080;
  margin: 1rem 0 0.5rem;
  text-align: center;
}

.lab-card p {
  color: #555;
  padding: 0 1rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.lab-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.lab-message {
  text-align: center;
  margin: 3rem 0;
}

.lab-message h2 {
  color: #007baf;
  margin-bottom: 1rem;
}

.lab-message p {
  color: #333;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}
