/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #e31383;
  color: white;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s;
}

.btn:hover {
  background-color: #c40e6f;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #8abe42;
}

.btn-secondary:hover {
  background-color: #76a938;
}

.btn-tertiary {
  background-color: #14a9e3;
}

.btn-tertiary:hover {
  background-color: #1195c9;
}

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar {
  background-color: #e31383;
  color: white;
  padding: 5px 0;
  font-size: 0.9rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.top-bar span {
  margin-right: 15px;
  display: inline-flex;
  align-items: center;
}

.top-bar i {
  margin-right: 5px;
}

.main-header {
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo img {
  height: 70px;
  margin-right: 15px;
}

.logo-text h1 {
  font-size: 1.5rem;
  color: #e31383;
}

.logo-text p {
  font-size: 0.8rem;
  color: #666;
}

/* Navigation et sous-menus */
nav ul {
  display: flex;
}

nav ul li {
  margin-left: 20px;
  position: relative;
}

nav ul li a {
  font-weight: bold;
  color: #333;
  padding: 5px 0;
  position: relative;
}

nav ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #e31383;
  transition: width 0.3s;
}

nav ul li a:hover:after {
  width: 100%;
}

.menu-item-has-children {
  position: relative;
}

.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 250px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 15px 0;
  border-radius: 0 0 4px 4px;
  z-index: 100;
}

.menu-item-has-children:hover .sub-menu {
  display: block;
}

.sub-menu li {
  margin: 0;
  padding: 5px 20px;
}

.sub-menu li a {
  padding: 8px 0;
  display: block;
  color: #333;
  transition: all 0.3s;
}

.sub-menu li a:hover {
  color: #e31383;
  padding-left: 5px;
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #e31383;
}

/* Hero Sections */
.hero-carousel, .hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.hero-carousel {
  height: 500px;
}

.hero {
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide::before, .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.slide-content, .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.slide-content h2, .hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slide-content p, .hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.carousel-nav {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dot.active {
  background-color: white;
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #e31383;
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
}

.bg-light {
  background-color: #f9f9f9;
}

.bg-accent {
  background-color: #8abe42;
  color: white;
}

.bg-accent .section-title h2 {
  color: white;
}

.bg-dark {
  background-color: #222;
  color: white;
}

/* Content Styles */
.content-block {
  margin-bottom: 40px;
}

.content-block h3 {
  color: #14a9e3;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.content-block p {
  margin-bottom: 15px;
}

.content-block ul {
  margin: 20px 0;
}

.content-block ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.content-block ul li:before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #e31383;
}

/* Table Styles */
.service-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-table th {
  background-color: #e31383;
  color: white;
  padding: 15px;
  text-align: left;
}

.service-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.service-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.service-table tr:hover {
  background-color: #f0f0f0;
}

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

.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s;
}

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

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card-img img {
  transform: scale(1.1);
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  margin-bottom: 15px;
  color: #e31383;
}

/* Approche */
.approche-list, .features, .testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.approche-item, .feature-item, .testimonial {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  position: relative;
}

.approche-item i, .feature-item i {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.approche-item i {
  color: #e31383;
}

.feature-item i {
  color: #8abe42;
}

.approche-item h3 {
  color: #14a9e3;
}

.feature-item h3 {
  color: #14a9e3;
}

.testimonial:before {
  content: '\f10d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 20px;
  left: 20px;
  color: #e31383;
  opacity: 0.2;
  font-size: 3rem;
}

.testimonial-content {
  position: relative;
  z-index: 1;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: bold;
  color: #8abe42;
  text-align: right;
}

/* Programme */
.programme-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.programme-item {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  position: relative;
  padding-left: 60px;
  color: #333;
}

.programme-item::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  background-color: #f2901c;
  border-radius: 50%;
}

/* Contact Box */
.contact-box {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin: 40px 0;
}

.contact-box h3 {
  color: #e31383;
  margin-bottom: 20px;
  text-align: center;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.contact-method {
  display: flex;
  align-items: center;
}

.contact-method i {
  font-size: 1.5rem;
  color: #14a9e3;
  margin-right: 15px;
  width: 40px;
  text-align: center;
}

/* Footer */
footer {
  background-color: #222;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: #8abe42;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-column ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-column ul li i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.footer-column ul li a:hover {
  color: #8abe42;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #333;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: #e31383;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 0.9rem;
  color: #aaa;
}

/* Responsive */
@media (max-width: 992px) {
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
  }

  .mobile-menu {
    display: block;
  }

  .header-content {
    position: relative;
  }

  .menu-item-has-children {
    position: static;
  }
    
  .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    padding-left: 20px;
  }
    
  .menu-item-has-children:hover .sub-menu {
    display: none;
  }
    
  .sub-menu.show {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero-carousel, .hero {
    height: 400px;
  }

  .hero {
    height: 350px;
  }

  .slide-content h2, .hero h1 {
    font-size: 2rem;
  }

  .slide-content p, .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 40px 0;
  }

  .top-bar-content {
    justify-content: center;
    text-align: center;
  }

  .top-bar span {
    margin: 5px 10px;
  }

  .service-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .logo {
    flex-direction: column;
    text-align: center;
  }

  .logo img {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .slide-content h2, .hero h1 {
    font-size: 1.8rem;
  }

  .btn {
    display: block;
    margin: 10px auto;
    width: 80%;
    max-width: 200px;
  }
}

#main-menu li {
  position: relative;
}

#main-menu .sub-menu {
  display: none;
  position: absolute;
  background: #fff;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 999;
}

#main-menu li:hover > .sub-menu {
  display: block;
}

#main-menu li.active > .sub-menu {
  display: block;
}

