/* ---------------------------
   STYLE GLOBAL
---------------------------- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #fafafa;
  color: #333;
  line-height: 1.6;
}

/* ---------------------------
   HEADER & NAVIGATION
---------------------------- */
header {
  background: #2b62c7;
  color: white;
  padding: 1rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  font-size: 1.4rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a.active,
nav ul li a:hover {
  text-decoration: underline;
}

/* Menu mobile */
#menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: #2b62c7;
    padding: 1rem;
  }
  nav ul.open {
    display: flex;
  }
  #menu-toggle {
    display: block;
    color: white;
  }
}

/* ---------------------------
   LAYOUT GÉNÉRAL
---------------------------- */
.container {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
}

/* ---------------------------
   HERO AVEC IMAGE
---------------------------- */
.hero {
  background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80')
              no-repeat center center/cover;
  color: white;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

/* ---------------------------
   BOUTONS
---------------------------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  margin-top: 1rem;
  background: #2b62c7;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #588c68;
}

/* ---------------------------
   SECTIONS ET CONTENUS
---------------------------- */
.hero {
  background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80')
              no-repeat center center/cover;
}

/* Animation fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cartes */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card i {
  font-size: 2.5rem;
  color: #6da77c;
  margin-bottom: 1rem;
}

/* CTA */
.cta {
  background: #fff6e6;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

/* ---------------------------
   FORMULAIRE DE CONTACT
---------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2b62c7;
  box-shadow: 0 0 5px rgba(109, 167, 124, 0.6);
}

/* ---------------------------
   MISE EN AVANT (highlight)
---------------------------- */
.highlight-section {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #f0f8ff;
  border-left: 6px solid #4facfe;
  padding: 20px;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.highlight-icon {
  font-size: 2.5rem;
  color: #4facfe;
}

.highlight-content h2 {
  margin-top: 0;
  color: #333;
}

.highlight-content p {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ---------------------------
   BOUTON RETOUR EN HAUT
---------------------------- */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2b62c7;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  transition: 0.3s;
}

#backToTop:hover {
  background: #588c68;
}

/* ---------------------------
   FOOTER
---------------------------- */
footer {
  background: #2b62c7;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
/* ---------------------------
   BOUTON FORMULAIRE CONTACT
---------------------------- */
.contact-form button {
  padding: 0.8rem 1.5rem;
  background: #2b62c7;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #588c68;
}

/* Amélioration formulaire */
.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
}
/* ---------------------------
   SECTION IMAGE À DROITE (À PROPOS)
---------------------------- */
.top-section {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 30px;
}

.top-text {
  flex: 1;
}

.top-image img {
  width: 260px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* MOBILE */
@media (max-width: 768px) {
  .top-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .top-image img {
    width: 200px;
  }
}
.hero {
  padding: 60px 20px;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-content h2 {
  margin-bottom: 20px;
  font-size: 28px;
}

.hero-content p {
  margin-bottom: 15px;
  line-height: 1.5;
}

.hero-buttons {
  margin-top: 25px;
}

.hero-buttons .btn {
  display: inline-block;
  margin: 10px;
}
.hero-content h2,
.hero-content p {
  margin: 0;
  line-height: 1.2;
}
.hero-content h2 {
  white-space: nowrap;
}