.top-nav {
  display: flex;
  background: linear-gradient(to right, #1e3c72, #2a5298, #2ecc71);
  justify-content: space-between;
  align-items: center;
  color: white;
  padding: 10px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}


.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-slogan {
  font-size: 1.2em;
  font-weight: 500;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #f0f4f8;
}

/* Typographie et couleurs générales */
body {
  font-family: 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f4f8;
  color: #2c3e50;
}

/* En-tête */
header {
  background-image: url('images/9b1c0795994b36eacdc54653df7c18c0.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 400px;
}

header h1 {
  font-size: 3em;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

header h2 {
  font-size: 1.5em;
  font-weight: 300;
}

/* Contenu principal */
main {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Section intro */
.intro p {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.intro img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Section détails */
.details p {
  font-size: 1.1em;
  margin-bottom: 15px;
}

.details-section {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin: 60px auto;
  max-width: 1000px;
  padding: 0 20px;
}

.detail-card {
  position: relative;
  flex: 1;
  min-width: 280px;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* Exemple d’images en fond */
.detail-card:nth-child(1) {
  background-image: url('images/news.jpg');
}
.detail-card:nth-child(2) {
  background-image: url('images/algue.jpg');
}
.detail-card:nth-child(3) {
  background-image: url('images/IMG_7782.jpg');
}

.card-text {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}


.card-text h3 {
  margin: 0 0 10px;
  font-size: 1.4em;
  color: #2a5298;
}

.card-text p {
  margin: 0;
  font-size: 1em;
  color: #2c3e50;
  line-height: 1.5;
}


.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.image-grid img {
  width: 30%;
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-grid img:hover {
  transform: scale(1.05);
}


.eutrophisation-section {
  max-width: 1000px;
background-color: rgba(42, 82, 152, 0.1);
  margin: 60px auto;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.bubble-text {
  background-color: rgba(42, 82, 152, 0.1); /* bleu pâle transparent */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  backdrop-filter: blur(2px);
}

.bubble-text h3 {
  font-size: 1.6em;
  color: #2a5298;
  margin-bottom: 15px;
}

.bubble-text p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #2c3e50;
}


/* Pied de page */
footer {
  background: #1e3c72;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 60px;
  font-size: 0.9em;
  border-top: 4px solid #2a5298;
}

.values {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 60px auto;
  padding: 40px 20px;
  background: linear-gradient(to right, #eaf2f8, #d4efdf);
  border-radius: 16px;
  max-width: 1100px;
  background: linear-gradient(to right, #eaf2f8, #d4efdf);
}

.value-card {
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  background: white;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
    
}

.value-card:hover {
  
  box-shadow: 0 12px 20px rgba(0,0,0,0.12);
    transform: translateY(-8px) rotate(-1deg);
}

.value-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.value-card h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #2a5298;
}

.value-card p {
  font-size: 1em;
  line-height: 1.6;
  color: #2c3e50;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1000px;
  margin: 60px auto;
  padding: 40px 20px;
  background: #fdfdfd;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  flex-wrap: wrap;
}

.cta-text {
  flex: 1;
  min-width: 280px;
}

.cta-text h2 {
  font-size: 2em;
  color: #2a5298;
  margin-bottom: 20px;
}

.cta-text p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #333;
}

.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background: #2a5298;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #1e3c72;
}

.cta-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.cta-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}


.like-button {
  background: #2a5298;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s ease;
}

.like-button:hover {
  background: #1e3c72;
}

.photo-gallery {
  max-width: 1000px;
  margin: 60px auto;
  padding: 40px 20px;
  background: #f0f4f8;
  border-radius: 12px;
  text-align: center;
}

.photo-gallery h2 {
  font-size: 2em;
  color: #2a5298;
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
    height:200px;
    object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.burst-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.burst {
  position: absolute;
  font-size: 24px;
  animation: floatUp 1s ease-out forwards;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) scale(1.5);
  }
}

.hero-header {
  position: relative;
  height: 400px;
  background-image: url('images/9b1c0795994b36eacdc54653df7c18c0.jpg'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.4); /* pour assombrir l'image...necessaire? */
  padding: 40px;
  border-radius: 12px;
}

.hero-header h1 {
  font-size: 4em;
  margin: 0;
  letter-spacing: 2px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.hero-header h2 {
  font-size: 1.8em;
  font-weight: 300;
  margin-top: 10px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.details-section-title {
  text-align: center;
  font-size: 2em;
  font-weight: 600;
  color: #2a5298;
  margin: 60px auto 30px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  position: relative;
}

.details-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #2ecc71;
  margin: 12px auto 0;
  border-radius: 2px;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #eaf2f8, #d4efdf);
  margin: 0;
  padding: 0;
}

.contact-section {
  max-width: 600px;
  margin: 80px auto;
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.contact-section h2 {
  font-size: 2em;
  color: #2a5298;
  margin-bottom: 10px;
}

.contact-intro {
  font-size: 1.1em;
  color: #2c3e50;
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.contact-form label {
  font-weight: bold;
  color: #2a5298;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  resize: vertical;
}

.contact-form button {
  background: #2ecc71;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #27ae60;
}

.confirmation {
  margin-top: 20px;
  font-size: 1.1em;
  color: #2ecc71;
  background: #eafaf1;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  animation: fadeIn 0.8s ease both;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.duck-challenge {
  margin-top: 30px;
  text-align: center;
}

.duck-zone {
  position: relative;
  width: 300px;
  height: 200px;
  margin: 0 auto;
  background-color: #eaf2f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.island {
  width: 200px;
  height: 200px;
  object-fit:cover;
}

.duck {
  width: 100px;
  cursor: grab;
  margin-top: 20px;
}
.emoji-burst {
  position: absolute;
  font-size: 2rem;
  animation: pop 1s ease-out forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes pop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
    transform: translateY(-20px);
  }
}
