/* --- VARIABLES ET COULEURS --- */
:root {
  --primary-green: #2a9d8f;
  --primary-green-dark: #21867c;
  --text-color: #333;
  --bg-color: #fff;
  --light-bg: #fafafa;
  --shadow-color: rgba(0,0,0,0.1);
  --shadow-hover: rgba(0,0,0,0.15);
}

/* --- GLOBAL --- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

a {
  text-decoration: none;
  color: var(--primary-green);
}

a:focus {
  outline: 2px solid var(--primary-green-dark);
  outline-offset: 2px;
}

/* --- BOUTONS --- */
.btn {
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  background-color: var(--primary-green);
  color: #fff;
  padding: 12px 25px;
}

.btn:hover, .btn:focus {
  background-color: var(--primary-green-dark);
  transform: scale(1.02);
}

/* --- HEADER --- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: var(--bg-color);
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap;
  gap: 10px;
}

.header .logo img {
  height: 120px;
  width: auto;
  display: block;
}


/* Header sticky et ombre */
.header {
  position: sticky;  /* reste en haut */
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

/* Ombre dynamique au scroll */
.header.scrolled {
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
/* --- HERO --- */
.hero-image {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 250px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 700px;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.1rem;
  font-weight: 300;
  color: #f5f5f5;
}
/* --- HERO ANIMÉ --- */
.hero-image {
  position: relative;
  width: 100%;
  height: 60vh; /* ajuste la hauteur du Hero */
  min-height: 300px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
  transition: transform 0.5s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 700px;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero-text h1,
.hero-text p,
.hero-text .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlide 1s forwards;
}

.hero-text h1 { animation-delay: 0.3s; font-size: 2.2rem; }
.hero-text p { animation-delay: 0.6s; font-size: 1.1rem; }
.hero-text .btn { animation-delay: 0.9s; }

/* Bouton CTA */
.hero-text .btn {
  display: inline-block;
  background-color: var(--primary-green);
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-text .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Animation clé */
@keyframes fadeSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- SECTION INTRODUCTIVE --- */
.welcome-section {
  background-color: var(--light-bg);
  padding: 60px 20px;
  text-align: center;
}

.welcome-section .container {
  max-width: 900px;
  margin: 0 auto;
}

.welcome-section h2 {
  font-size: 2rem;
  color: var(--primary-green-dark);
  margin-bottom: 20px;
  font-weight: 700;
}

.welcome-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0 auto;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--primary-green-dark);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
}

.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  flex: 1 1 30%;
  min-width: 250px;
  display: flex;
  flex-direction: column;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #fff;
  border-bottom: 2px solid var(--primary-green);
  display: inline-block;
  padding-bottom: 5px;
}

.footer-col p,
.footer-col ul {
  margin: 0;
  padding: 0;
  color: #f1f1f1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  margin-top: 10px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

/* Liens du footer */
.footer-col ul li a,
.footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover,
.footer a:hover {
  color: #ff6f61;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #e0e0e0;
  font-size: 0.9rem;
  text-align: center;
}

/* --- MEDIA QUERIES POUR FOOTER --- */
@media (max-width: 768px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-col {
    flex: 1 1 100%;
    min-width: auto;
    margin-bottom: 20px;
  }
}


/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
  .hero-text h1 { font-size: 1.8rem; }
  .hero-text p { font-size: 0.95rem; }
  .header { flex-direction: column; gap: 10px; align-items: center; }
  .header .nav { display: flex; flex-wrap: wrap; justify-content: center; }
  .header .nav a { margin: 5px; }
}
