/* ------------------------ */
/* RESET & BASE */
/* ------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  font-family: Arial, sans-serif;
  line-height: 1.6;
 background: linear-gradient(180deg, #cfe5ff 0%, #f5f9ff 50%, #ffffff 100%);
  color: #333;
  margin: 0;
}

/* ------------------------ */
/* HEADER + NAVIGATION */
/* ------------------------ */
header {
  background: #2c3e50;
  color: white;
  width: 100%;
  position: relative;
  z-index: 10;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  position: relative;
}

.logo {
  color: white;
  font-size: 1.4rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #f39c12;
}

/* Bouton burger (mobile uniquement) */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* ------------------------ */
/* HERO PRINCIPAL */
/* ------------------------ */
.hero {
  background: url('/tourisme/pays_du_der/lac/_photos/CIMG0822.JPG') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 120px 20px;
}

.hero-text h2,
.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: white;
  border-bottom: none;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 20px;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero img {
  width: 100px;
  height: auto;
  margin-top: 20px;
}

.hero .btn {
  background-color: #f39c12;
  color: white;
  padding: 10px 25px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  margin-top: 20px;
  transition: background 0.3s ease;
}

.hero .btn:hover {
  background-color: #d35400;
}

/* ------------------------ */
/* HERO INTERNE */
/* ------------------------ */
.hero-interne {
  background: url('/_photos/banniere_ambrieres.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 70px 20px;
  position: relative;
}

.hero-interne::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  border-radius: 0 0 8px 8px;
}

.hero-interne h2 {
  position: relative;
  font-size: 2.2rem;
  z-index: 1;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-interne p {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 10px auto 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* ------------------------ */
/* SERVICES */
/* ------------------------ */
.main-services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 40px 20px;
}

.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 280px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.service-content p {
  font-size: 1rem;
  color: #666;
}

/* ------------------------ */
/* PAGES INTERNES */
/* ------------------------ */
main.content, main section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

main section {
  background-color: white;
  margin-bottom: 40px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

main section h2 {
  color: #2c3e50;
  margin-bottom: 15px;
  border-bottom: 2px solid #f39c12;
  display: inline-block;
  padding-bottom: 5px;
}

main section p {
  color: #444;
  margin-bottom: 20px;
}

/* --- BLOC HISTOIRE, RUBRIQUES, IMAGES --- */
#rubriques .hero {
  background: linear-gradient(135deg, #f3f3f3 0%, #ffffff 100%);
  border-radius: 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

#rubriques .hero:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------ */
/* DIAPORAMA / GALERIE */
/* ------------------------ */
.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
  overflow: visible;
}

.slideshow-container img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 10px;
  background: #000;
}

.caption {
  color: white;
  font-style: italic;
  margin-top: 10px;
}

/* Flèches du diaporama */
.slideshow-container .prev,
.slideshow-container .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  width: auto;
  color: white;
  font-weight: bold;
  font-size: 2.5em;
  cursor: pointer;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px 16px;
  border-radius: 50%;
  transition: background-color 0.3s, transform 0.2s;
  z-index: 10;
}

.slideshow-container .prev:hover,
.slideshow-container .next:hover {
  background-color: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.slideshow-container .prev {
  left: 20px;
}
.slideshow-container .next {
  right: 20px;
}

@media (max-width: 768px) {
  .slideshow-container img {
    max-height: 300px;
  }
  .slideshow-container .prev,
  .slideshow-container .next {
    font-size: 2em;
    padding: 8px 12px;
  }
}

.back-to-top {
  text-align: right;
  margin-top: 1em;
}

.back-to-top a {
  text-decoration: none;
  color: #004080;
  font-weight: bold;
}

.back-to-top a:hover {
  text-decoration: underline;
}
/* ------------------------ */
/* FOOTER */
/* ------------------------ */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* ------------------------ */
/* MENU BURGER RESPONSIVE */
/* ------------------------ */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #34495e;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 15px;
    display: none;
    border-radius: 0 0 8px 8px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}
