/* Style général */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Abel', sans-serif;
}

body {
  background-color: white;
  color: #233D63;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #1a237e;
  color: white;
  padding: 1rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

nav .logo {
  width: 40px;
  height: 40px;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #90caf9;
}

.back-arrow img {
  width: 30px;
  height: 30px;
  filter: invert(1);
}

/* Section héro */
.hero {
  padding-top: 100px;
  min-height: 100vh;
}

.description-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.description-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #233D63;
}

.intro-text {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
  line-height: 1.6;
}

.featured-image {
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.featured-image:hover img {
  transform: scale(1.02);
}

/* Section formations */
.formations-section {
  padding: 4rem 2rem;
  background-color: rgba(35, 61, 99, 0.05);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #233D63;
}

.formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.formation-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.formation-card:hover {
  transform: translateY(-5px);
}

.formation-card h3 {
  color: #4a90e2;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.formation-card ul {
  list-style-position: inside;
  line-height: 1.6;
}

.formation-card li {
  margin-bottom: 0.8rem;
}

/* Galerie */
.gallery-section {
  padding: 4rem 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(35, 61, 99, 0.9);
  color: white;
  padding: 1rem;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .image-caption {
  transform: translateY(0);
}

/* Contact */
#contact {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #233D63;
  color: white;
}

.btn-reseau-contact {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.btn-home {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-home:hover {
  transform: scale(1.1);
}

.btn-home img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.legal-links {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #4a90e2;
}

/* Media Queries */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  
  nav h3 span {
    display: none;
  }

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

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

  .section-title {
    font-size: 2rem;
  }

  .formation-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 150px;
  }

  nav h3 {
    font-size: 1rem;
  }

  .logo {
    width: 30px;
    height: 30px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .btn-reseau-contact {
    flex-wrap: wrap;
  }
}