/* === Base générale === */
body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background-color: #fdfdfd;
  color: #2c2c2c;
  line-height: 1.6;
}

/* === En-tête === */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e6e6e6;
}

.logo-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px 10px;
  text-align: center;
}

.site-logo {
  display: block;
  max-height: 100px;
  width: 210px;
  height: auto;
}

.slogan {
  font-family: 'Segoe UI', 'Lato', 'Arial', sans-serif;
  font-size: 15px;
  font-weight: normal;
  color: #333333;
  margin-top: 10px;
}

/* === Barre de navigation secondaire (liens principaux) === */
.link-bar {
  background: #f1f1f1;
  position: sticky;
  top: 0;
  z-index: 999;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
  padding: 0;
  box-shadow: none;
}

.navbar {
  width: 100%;
  max-width: 1200px;
  padding: 0 10px;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.nav-links li {
  position: relative;
  margin: 0;
}

.nav-links a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #009688;
}

/* === Sous-menu déroulant === */
.nav-links li ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 220px;
}
.nav-links li:hover > ul.sub-menu {
  display: block;
}
.sub-menu li a {
  padding: 10px 20px;
  text-align: left;
  white-space: nowrap;
  font-weight: 500;
  text-decoration: none;
  color: #333;
  transition: background 0.3s, color 0.3s;
}
.sub-menu li a:hover {
  background-color: #f0f0f0;
  color: #009688;
}

/* === Sections générales === */
.section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}
.section h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #444;
}

/* === Hero / Accueil === */
.hero {
  background: linear-gradient(to right, #e3f2fd, #ffffff);
  padding: 80px 20px;
}
.hero-text {
  max-width: 700px;
  margin: auto;
}
.hero-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.hero-flex .hero-text {
  flex: 1 1 400px;
  max-width: 600px;
}
.hero-flex .hero-image {
  flex: 1 1 300px;
  max-width: 450px;
}
.hero-flex .hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* === Services avec image + texte === */
.service-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.service-box {
  background: #f7f9fc;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.service-box img {
  width: 100%;
  height: auto;
  display: block;
}

.service-text {
  padding: 15px;
  text-align: center;
  background-color: #f7f9fc;
  transition: background-color 0.3s ease;
}

.service-box:hover .service-text {
  background-color: #e0ecf9;
}

.service-text h3 {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
  text-transform: uppercase;
}

.service-text p {
  font-size: 0.95em;
  color: #333;
  margin-bottom: 15px;
}

.btn-info {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #007BFF;
  color: #007BFF;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.btn-info:hover {
  background: #007BFF;
  color: #fff;
}

/* === Blog === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.blog-grid article {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

/* === Formulaire de contact === */
.contact-form {
  max-width: 600px;
  margin: auto;
  text-align: left;
}
.contact-form label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  color: #333;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}
.contact-form .btn {
  background: #009688;
  color: white;
  padding: 10px 20px;
  margin-top: 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
}
.contact-form .btn:hover {
  background: #00796b;
}

/* === Pied de page === */
footer {
  background: #f1f1f1;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #777;
  border-top: 1px solid #e6e6e6;
}

/* === Pages spécifiques === */
.cours-content {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: left;
  font-size: 1.1em;
  line-height: 1.6;
}
.cours-content h1 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #3c2f1c;
}
.cours-content h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  color: #a56b00;
}
.cours-content ul {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}
.cours-content p {
  margin-bottom: 18px;
}

/* === Témoignages === */
.testimonial-container {
  max-width: 1000px;
  margin: auto;
}

.testimonial-block {
  background-color: #e0e0e0;
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ccc;
  text-align: left; /* Alignement à gauche */
}

.testimonial-block h3 {
  color: #555;
  margin-top: 0;
  margin-bottom: 10px;
}

.testimonial-block p {
  line-height: 1.6;
  color: #333;
}

/* === Responsive Mobile Fixes === */
@media (max-width: 768px) {
  .logo-bar {
    padding: 10px 20px;
  }

  .site-logo {
    width: 180px;
  }

  .link-bar {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    padding: 10px;
    display: block;
    width: 100%;
  }
}